fix build on multiple versions of wx-config
[ctsim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/ctsim.cpp"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 MAINTAINER_MODE_TRUE
654 MAINTAINER_MODE_FALSE
655 MAINT
656 INSTALL_PROGRAM
657 INSTALL_SCRIPT
658 INSTALL_DATA
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 AMTAR
668 install_sh
669 STRIP
670 INSTALL_STRIP_PROGRAM
671 AWK
672 SET_MAKE
673 am__leading_dot
674 RANLIB
675 CC
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
682 DEPDIR
683 am__include
684 am__quote
685 AMDEP_TRUE
686 AMDEP_FALSE
687 AMDEPBACKSLASH
688 CCDEPMODE
689 am__fastdepCC_TRUE
690 am__fastdepCC_FALSE
691 CXX
692 CXXFLAGS
693 ac_ct_CXX
694 CXXDEPMODE
695 am__fastdepCXX_TRUE
696 am__fastdepCXX_FALSE
697 CPP
698 GREP
699 EGREP
700 wxconfig
701 build
702 build_cpu
703 build_vendor
704 build_os
705 host
706 host_cpu
707 host_vendor
708 host_os
709 INCLUDED_GETOPT_LONG_TRUE
710 INCLUDED_GETOPT_LONG_FALSE
711 DEBUG_TRUE
712 DEBUG_FALSE
713 lamdir
714 mpienable
715 cgibindir
716 cgibinurl
717 webdatadir
718 webdataurl
719 cgiprograms
720 htmldata
721 USE_HTML_TRUE
722 USE_HTML_FALSE
723 webenabled
724 USE_LAM_TRUE
725 USE_LAM_FALSE
726 XMKMF
727 X_CFLAGS
728 X_PRE_LIBS
729 X_LIBS
730 X_EXTRA_LIBS
731 X_TOOLKIT_LIBS
732 X_BASIC_LIBS
733 NO_X_TRUE
734 NO_X_FALSE
735 my_includes
736 HAVE_SGP_TRUE
737 HAVE_SGP_FALSE
738 wxcflags
739 wxlibs
740 HAVE_WXWINDOWS_TRUE
741 HAVE_WXWINDOWS_FALSE
742 ctlibs
743 lamprograms
744 lamdefs
745 LIBOBJS
746 LTLIBOBJS'
747 ac_subst_files=''
748       ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CXX
757 CXXFLAGS
758 CCC
759 CPP
760 XMKMF'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
782
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813   # If the previous option needs an argument, assign it.
814   if test -n "$ac_prev"; then
815     eval $ac_prev=\$ac_option
816     ac_prev=
817     continue
818   fi
819
820   case $ac_option in
821   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822   *)    ac_optarg=yes ;;
823   esac
824
825   # Accept the important Cygnus configure options, so we can diagnose typos.
826
827   case $ac_dashdash$ac_option in
828   --)
829     ac_dashdash=yes ;;
830
831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
832     ac_prev=bindir ;;
833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834     bindir=$ac_optarg ;;
835
836   -build | --build | --buil | --bui | --bu)
837     ac_prev=build_alias ;;
838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839     build_alias=$ac_optarg ;;
840
841   -cache-file | --cache-file | --cache-fil | --cache-fi \
842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843     ac_prev=cache_file ;;
844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846     cache_file=$ac_optarg ;;
847
848   --config-cache | -C)
849     cache_file=config.cache ;;
850
851   -datadir | --datadir | --datadi | --datad)
852     ac_prev=datadir ;;
853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
854     datadir=$ac_optarg ;;
855
856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857   | --dataroo | --dataro | --datar)
858     ac_prev=datarootdir ;;
859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861     datarootdir=$ac_optarg ;;
862
863   -disable-* | --disable-*)
864     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868    { (exit 1); exit 1; }; }
869     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870     eval enable_$ac_feature=no ;;
871
872   -docdir | --docdir | --docdi | --doc | --do)
873     ac_prev=docdir ;;
874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875     docdir=$ac_optarg ;;
876
877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878     ac_prev=dvidir ;;
879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880     dvidir=$ac_optarg ;;
881
882   -enable-* | --enable-*)
883     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
886       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887    { (exit 1); exit 1; }; }
888     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
889     eval enable_$ac_feature=\$ac_optarg ;;
890
891   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893   | --exec | --exe | --ex)
894     ac_prev=exec_prefix ;;
895   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897   | --exec=* | --exe=* | --ex=*)
898     exec_prefix=$ac_optarg ;;
899
900   -gas | --gas | --ga | --g)
901     # Obsolete; use --with-gas.
902     with_gas=yes ;;
903
904   -help | --help | --hel | --he | -h)
905     ac_init_help=long ;;
906   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907     ac_init_help=recursive ;;
908   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909     ac_init_help=short ;;
910
911   -host | --host | --hos | --ho)
912     ac_prev=host_alias ;;
913   -host=* | --host=* | --hos=* | --ho=*)
914     host_alias=$ac_optarg ;;
915
916   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917     ac_prev=htmldir ;;
918   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919   | --ht=*)
920     htmldir=$ac_optarg ;;
921
922   -includedir | --includedir | --includedi | --included | --include \
923   | --includ | --inclu | --incl | --inc)
924     ac_prev=includedir ;;
925   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926   | --includ=* | --inclu=* | --incl=* | --inc=*)
927     includedir=$ac_optarg ;;
928
929   -infodir | --infodir | --infodi | --infod | --info | --inf)
930     ac_prev=infodir ;;
931   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932     infodir=$ac_optarg ;;
933
934   -libdir | --libdir | --libdi | --libd)
935     ac_prev=libdir ;;
936   -libdir=* | --libdir=* | --libdi=* | --libd=*)
937     libdir=$ac_optarg ;;
938
939   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940   | --libexe | --libex | --libe)
941     ac_prev=libexecdir ;;
942   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943   | --libexe=* | --libex=* | --libe=*)
944     libexecdir=$ac_optarg ;;
945
946   -localedir | --localedir | --localedi | --localed | --locale)
947     ac_prev=localedir ;;
948   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949     localedir=$ac_optarg ;;
950
951   -localstatedir | --localstatedir | --localstatedi | --localstated \
952   | --localstate | --localstat | --localsta | --localst | --locals)
953     ac_prev=localstatedir ;;
954   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956     localstatedir=$ac_optarg ;;
957
958   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959     ac_prev=mandir ;;
960   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
961     mandir=$ac_optarg ;;
962
963   -nfp | --nfp | --nf)
964     # Obsolete; use --without-fp.
965     with_fp=no ;;
966
967   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968   | --no-cr | --no-c | -n)
969     no_create=yes ;;
970
971   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973     no_recursion=yes ;;
974
975   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977   | --oldin | --oldi | --old | --ol | --o)
978     ac_prev=oldincludedir ;;
979   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982     oldincludedir=$ac_optarg ;;
983
984   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985     ac_prev=prefix ;;
986   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987     prefix=$ac_optarg ;;
988
989   -program-prefix | --program-prefix | --program-prefi | --program-pref \
990   | --program-pre | --program-pr | --program-p)
991     ac_prev=program_prefix ;;
992   -program-prefix=* | --program-prefix=* | --program-prefi=* \
993   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994     program_prefix=$ac_optarg ;;
995
996   -program-suffix | --program-suffix | --program-suffi | --program-suff \
997   | --program-suf | --program-su | --program-s)
998     ac_prev=program_suffix ;;
999   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001     program_suffix=$ac_optarg ;;
1002
1003   -program-transform-name | --program-transform-name \
1004   | --program-transform-nam | --program-transform-na \
1005   | --program-transform-n | --program-transform- \
1006   | --program-transform | --program-transfor \
1007   | --program-transfo | --program-transf \
1008   | --program-trans | --program-tran \
1009   | --progr-tra | --program-tr | --program-t)
1010     ac_prev=program_transform_name ;;
1011   -program-transform-name=* | --program-transform-name=* \
1012   | --program-transform-nam=* | --program-transform-na=* \
1013   | --program-transform-n=* | --program-transform-=* \
1014   | --program-transform=* | --program-transfor=* \
1015   | --program-transfo=* | --program-transf=* \
1016   | --program-trans=* | --program-tran=* \
1017   | --progr-tra=* | --program-tr=* | --program-t=*)
1018     program_transform_name=$ac_optarg ;;
1019
1020   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021     ac_prev=pdfdir ;;
1022   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023     pdfdir=$ac_optarg ;;
1024
1025   -psdir | --psdir | --psdi | --psd | --ps)
1026     ac_prev=psdir ;;
1027   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028     psdir=$ac_optarg ;;
1029
1030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031   | -silent | --silent | --silen | --sile | --sil)
1032     silent=yes ;;
1033
1034   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035     ac_prev=sbindir ;;
1036   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037   | --sbi=* | --sb=*)
1038     sbindir=$ac_optarg ;;
1039
1040   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042   | --sharedst | --shareds | --shared | --share | --shar \
1043   | --sha | --sh)
1044     ac_prev=sharedstatedir ;;
1045   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048   | --sha=* | --sh=*)
1049     sharedstatedir=$ac_optarg ;;
1050
1051   -site | --site | --sit)
1052     ac_prev=site ;;
1053   -site=* | --site=* | --sit=*)
1054     site=$ac_optarg ;;
1055
1056   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057     ac_prev=srcdir ;;
1058   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059     srcdir=$ac_optarg ;;
1060
1061   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062   | --syscon | --sysco | --sysc | --sys | --sy)
1063     ac_prev=sysconfdir ;;
1064   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066     sysconfdir=$ac_optarg ;;
1067
1068   -target | --target | --targe | --targ | --tar | --ta | --t)
1069     ac_prev=target_alias ;;
1070   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071     target_alias=$ac_optarg ;;
1072
1073   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074     verbose=yes ;;
1075
1076   -version | --version | --versio | --versi | --vers | -V)
1077     ac_init_version=: ;;
1078
1079   -with-* | --with-*)
1080     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid package name: $ac_package" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086     eval with_$ac_package=\$ac_optarg ;;
1087
1088   -without-* | --without-*)
1089     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092       { echo "$as_me: error: invalid package name: $ac_package" >&2
1093    { (exit 1); exit 1; }; }
1094     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1095     eval with_$ac_package=no ;;
1096
1097   --x)
1098     # Obsolete; use --with-x.
1099     with_x=yes ;;
1100
1101   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102   | --x-incl | --x-inc | --x-in | --x-i)
1103     ac_prev=x_includes ;;
1104   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106     x_includes=$ac_optarg ;;
1107
1108   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110     ac_prev=x_libraries ;;
1111   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113     x_libraries=$ac_optarg ;;
1114
1115   -*) { echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117    { (exit 1); exit 1; }; }
1118     ;;
1119
1120   *=*)
1121     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125    { (exit 1); exit 1; }; }
1126     eval $ac_envvar=\$ac_optarg
1127     export $ac_envvar ;;
1128
1129   *)
1130     # FIXME: should be removed in autoconf 3.0.
1131     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1135     ;;
1136
1137   esac
1138 done
1139
1140 if test -n "$ac_prev"; then
1141   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142   { echo "$as_me: error: missing argument to $ac_option" >&2
1143    { (exit 1); exit 1; }; }
1144 fi
1145
1146 # Be sure to have absolute directory names.
1147 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148                 datadir sysconfdir sharedstatedir localstatedir includedir \
1149                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150                 libdir localedir mandir
1151 do
1152   eval ac_val=\$$ac_var
1153   case $ac_val in
1154     [\\/$]* | ?:[\\/]* )  continue;;
1155     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156   esac
1157   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158    { (exit 1); exit 1; }; }
1159 done
1160
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1167
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170   if test "x$build_alias" = x; then
1171     cross_compiling=maybe
1172     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173     If a cross compiler is detected then cross compile mode will be used." >&2
1174   elif test "x$build_alias" != "x$host_alias"; then
1175     cross_compiling=yes
1176   fi
1177 fi
1178
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181
1182 test "$silent" = yes && exec 6>/dev/null
1183
1184
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188   { echo "$as_me: error: Working directory cannot be determined" >&2
1189    { (exit 1); exit 1; }; }
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191   { echo "$as_me: error: pwd does not report name of working directory" >&2
1192    { (exit 1); exit 1; }; }
1193
1194
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197   ac_srcdir_defaulted=yes
1198   # Try the directory containing this script, then the parent directory.
1199   ac_confdir=`$as_dirname -- "$0" ||
1200 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201          X"$0" : 'X\(//\)[^/]' \| \
1202          X"$0" : 'X\(//\)$' \| \
1203          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1204 echo X"$0" |
1205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206             s//\1/
1207             q
1208           }
1209           /^X\(\/\/\)[^/].*/{
1210             s//\1/
1211             q
1212           }
1213           /^X\(\/\/\)$/{
1214             s//\1/
1215             q
1216           }
1217           /^X\(\/\).*/{
1218             s//\1/
1219             q
1220           }
1221           s/.*/./; q'`
1222   srcdir=$ac_confdir
1223   if test ! -r "$srcdir/$ac_unique_file"; then
1224     srcdir=..
1225   fi
1226 else
1227   ac_srcdir_defaulted=no
1228 fi
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1232    { (exit 1); exit 1; }; }
1233 fi
1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 ac_abs_confdir=`(
1236         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1237    { (exit 1); exit 1; }; }
1238         pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241   srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251   eval ac_env_${ac_var}_value=\$${ac_var}
1252   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260   # Omit some internal or obsolete options to make the list less imposing.
1261   # This message is too long to be a string in the A/UX 3.1 sh.
1262   cat <<_ACEOF
1263 \`configure' configures this package to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE.  See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273   -h, --help              display this help and exit
1274       --help=short        display options specific to this package
1275       --help=recursive    display the short help of all the included packages
1276   -V, --version           display version information and exit
1277   -q, --quiet, --silent   do not print \`checking...' messages
1278       --cache-file=FILE   cache test results in FILE [disabled]
1279   -C, --config-cache      alias for \`--cache-file=config.cache'
1280   -n, --no-create         do not create output files
1281       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284   --prefix=PREFIX         install architecture-independent files in PREFIX
1285                           [$ac_default_prefix]
1286   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1287                           [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297   --bindir=DIR           user executables [EPREFIX/bin]
1298   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1299   --libexecdir=DIR       program executables [EPREFIX/libexec]
1300   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1301   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1302   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1303   --libdir=DIR           object code libraries [EPREFIX/lib]
1304   --includedir=DIR       C header files [PREFIX/include]
1305   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1306   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1307   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1308   --infodir=DIR          info documentation [DATAROOTDIR/info]
1309   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1310   --mandir=DIR           man documentation [DATAROOTDIR/man]
1311   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1312   --htmldir=DIR          html documentation [DOCDIR]
1313   --dvidir=DIR           dvi documentation [DOCDIR]
1314   --pdfdir=DIR           pdf documentation [DOCDIR]
1315   --psdir=DIR            ps documentation [DOCDIR]
1316 _ACEOF
1317
1318   cat <<\_ACEOF
1319
1320 Program names:
1321   --program-prefix=PREFIX            prepend PREFIX to installed program names
1322   --program-suffix=SUFFIX            append SUFFIX to installed program names
1323   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1324
1325 X features:
1326   --x-includes=DIR    X include files are in DIR
1327   --x-libraries=DIR   X library files are in DIR
1328
1329 System types:
1330   --build=BUILD     configure for building on BUILD [guessed]
1331   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1332 _ACEOF
1333 fi
1334
1335 if test -n "$ac_init_help"; then
1336
1337   cat <<\_ACEOF
1338
1339 Optional Features:
1340   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1341   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1342   --enable-maintainer-mode enable make rules and dependencies not useful
1343                           (and sometimes confusing) to the casual installer
1344   --disable-dependency-tracking Speeds up one-time builds
1345   --enable-dependency-tracking  Do not reject slow dependency extractors
1346   --enable-debug          Turn on debugging
1347   --enable-verbose-warnings
1348                           Enable verbose compiler warnings.
1349   --enable-static
1350                             Enable static executables.
1351   --enable-dmalloc        Use dmalloc memory allocation
1352   --enable-efence        Use ElectricFence memory allocation
1353
1354 Optional Packages:
1355   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1356   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1357   --with-lam=PATH         Set path of LAM MPI
1358   --with-ctn=PATH         Set path of CTN DICOM library
1359   --with-mcpu=CPU         Set name of CPU for gcc -mcpu
1360   --with-cgibin-dir=PATH  Set path of CGI binaries directory
1361   --with-cgibin-url=PATH  Set URL path of CGI binaries
1362   --with-webdata-dir=PATH Set path of webdata
1363   --with-webdata-url=PATH Set URL path of webdata
1364   --with-html-dir=PATH    Set directory of html files
1365   --with-x                use the X Window System
1366
1367 Some influential environment variables:
1368   CC          C compiler command
1369   CFLAGS      C compiler flags
1370   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1371               nonstandard directory <lib dir>
1372   LIBS        libraries to pass to the linker, e.g. -l<library>
1373   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374               you have headers in a nonstandard directory <include dir>
1375   CXX         C++ compiler command
1376   CXXFLAGS    C++ compiler flags
1377   CPP         C preprocessor
1378   XMKMF       Path to xmkmf, Makefile generator for X Window System
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 _ACEOF
1384 ac_status=$?
1385 fi
1386
1387 if test "$ac_init_help" = "recursive"; then
1388   # If there are subdirs, report their specific --help.
1389   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390     test -d "$ac_dir" || continue
1391     ac_builddir=.
1392
1393 case "$ac_dir" in
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *)
1396   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397   # A ".." for each directory in $ac_dir_suffix.
1398   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399   case $ac_top_builddir_sub in
1400   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402   esac ;;
1403 esac
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1408
1409 case $srcdir in
1410   .)  # We are building in place.
1411     ac_srcdir=.
1412     ac_top_srcdir=$ac_top_builddir_sub
1413     ac_abs_top_srcdir=$ac_pwd ;;
1414   [\\/]* | ?:[\\/]* )  # Absolute name.
1415     ac_srcdir=$srcdir$ac_dir_suffix;
1416     ac_top_srcdir=$srcdir
1417     ac_abs_top_srcdir=$srcdir ;;
1418   *) # Relative name.
1419     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420     ac_top_srcdir=$ac_top_build_prefix$srcdir
1421     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 esac
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425     cd "$ac_dir" || { ac_status=$?; continue; }
1426     # Check for guested configure.
1427     if test -f "$ac_srcdir/configure.gnu"; then
1428       echo &&
1429       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430     elif test -f "$ac_srcdir/configure"; then
1431       echo &&
1432       $SHELL "$ac_srcdir/configure" --help=recursive
1433     else
1434       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435     fi || ac_status=$?
1436     cd "$ac_pwd" || { ac_status=$?; break; }
1437   done
1438 fi
1439
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1442   cat <<\_ACEOF
1443 configure
1444 generated by GNU Autoconf 2.61
1445
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1450 _ACEOF
1451   exit
1452 fi
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1456
1457 It was created by $as_me, which was
1458 generated by GNU Autoconf 2.61.  Invocation command line was
1459
1460   $ $0 $@
1461
1462 _ACEOF
1463 exec 5>>config.log
1464 {
1465 cat <<_ASUNAME
1466 ## --------- ##
1467 ## Platform. ##
1468 ## --------- ##
1469
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1478
1479 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1480 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1483 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1484 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1485 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1486
1487 _ASUNAME
1488
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   echo "PATH: $as_dir"
1495 done
1496 IFS=$as_save_IFS
1497
1498 } >&5
1499
1500 cat >&5 <<_ACEOF
1501
1502
1503 ## ----------- ##
1504 ## Core tests. ##
1505 ## ----------- ##
1506
1507 _ACEOF
1508
1509
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_configure_args=
1516 ac_configure_args0=
1517 ac_configure_args1=
1518 ac_must_keep_next=false
1519 for ac_pass in 1 2
1520 do
1521   for ac_arg
1522   do
1523     case $ac_arg in
1524     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526     | -silent | --silent | --silen | --sile | --sil)
1527       continue ;;
1528     *\'*)
1529       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1530     esac
1531     case $ac_pass in
1532     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533     2)
1534       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535       if test $ac_must_keep_next = true; then
1536         ac_must_keep_next=false # Got value, back to normal.
1537       else
1538         case $ac_arg in
1539           *=* | --config-cache | -C | -disable-* | --disable-* \
1540           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542           | -with-* | --with-* | -without-* | --without-* | --x)
1543             case "$ac_configure_args0 " in
1544               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545             esac
1546             ;;
1547           -* ) ac_must_keep_next=true ;;
1548         esac
1549       fi
1550       ac_configure_args="$ac_configure_args '$ac_arg'"
1551       ;;
1552     esac
1553   done
1554 done
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log.  We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564   # Save into config.log some information that might help in debugging.
1565   {
1566     echo
1567
1568     cat <<\_ASBOX
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1572 _ASBOX
1573     echo
1574     # The following way of writing the cache mishandles newlines in values,
1575 (
1576   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577     eval ac_val=\$$ac_var
1578     case $ac_val in #(
1579     *${as_nl}*)
1580       case $ac_var in #(
1581       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583       esac
1584       case $ac_var in #(
1585       _ | IFS | as_nl) ;; #(
1586       *) $as_unset $ac_var ;;
1587       esac ;;
1588     esac
1589   done
1590   (set) 2>&1 |
1591     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592     *${as_nl}ac_space=\ *)
1593       sed -n \
1594         "s/'\''/'\''\\\\'\'''\''/g;
1595           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596       ;; #(
1597     *)
1598       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599       ;;
1600     esac |
1601     sort
1602 )
1603     echo
1604
1605     cat <<\_ASBOX
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1609 _ASBOX
1610     echo
1611     for ac_var in $ac_subst_vars
1612     do
1613       eval ac_val=\$$ac_var
1614       case $ac_val in
1615       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616       esac
1617       echo "$ac_var='\''$ac_val'\''"
1618     done | sort
1619     echo
1620
1621     if test -n "$ac_subst_files"; then
1622       cat <<\_ASBOX
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1626 _ASBOX
1627       echo
1628       for ac_var in $ac_subst_files
1629       do
1630         eval ac_val=\$$ac_var
1631         case $ac_val in
1632         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633         esac
1634         echo "$ac_var='\''$ac_val'\''"
1635       done | sort
1636       echo
1637     fi
1638
1639     if test -s confdefs.h; then
1640       cat <<\_ASBOX
1641 ## ----------- ##
1642 ## confdefs.h. ##
1643 ## ----------- ##
1644 _ASBOX
1645       echo
1646       cat confdefs.h
1647       echo
1648     fi
1649     test "$ac_signal" != 0 &&
1650       echo "$as_me: caught signal $ac_signal"
1651     echo "$as_me: exit $exit_status"
1652   } >&5
1653   rm -f core *.core core.conftest.* &&
1654     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655     exit $exit_status
1656 ' 0
1657 for ac_signal in 1 2 13 15; do
1658   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659 done
1660 ac_signal=0
1661
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1664
1665 # Predefined preprocessor variables.
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1669 _ACEOF
1670
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674 _ACEOF
1675
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689 _ACEOF
1690
1691
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695   set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698 else
1699   set x "$ac_default_prefix/share/config.site" \
1700         "$ac_default_prefix/etc/config.site"
1701 fi
1702 shift
1703 for ac_site_file
1704 do
1705   if test -r "$ac_site_file"; then
1706     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708     sed 's/^/| /' "$ac_site_file" >&5
1709     . "$ac_site_file"
1710   fi
1711 done
1712
1713 if test -r "$cache_file"; then
1714   # Some versions of bash will fail to source /dev/null (special
1715   # files actually), so we avoid doing that.
1716   if test -f "$cache_file"; then
1717     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1719     case $cache_file in
1720       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721       *)                      . "./$cache_file";;
1722     esac
1723   fi
1724 else
1725   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1727   >$cache_file
1728 fi
1729
1730 # Check that the precious variables saved in the cache have kept the same
1731 # value.
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735   eval ac_new_set=\$ac_env_${ac_var}_set
1736   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737   eval ac_new_val=\$ac_env_${ac_var}_value
1738   case $ac_old_set,$ac_new_set in
1739     set,)
1740       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742       ac_cache_corrupted=: ;;
1743     ,set)
1744       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746       ac_cache_corrupted=: ;;
1747     ,);;
1748     *)
1749       if test "x$ac_old_val" != "x$ac_new_val"; then
1750         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1753 echo "$as_me:   former value:  $ac_old_val" >&2;}
1754         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1755 echo "$as_me:   current value: $ac_new_val" >&2;}
1756         ac_cache_corrupted=:
1757       fi;;
1758   esac
1759   # Pass precious variables to config.status.
1760   if test "$ac_new_set" = set; then
1761     case $ac_new_val in
1762     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763     *) ac_arg=$ac_var=$ac_new_val ;;
1764     esac
1765     case " $ac_configure_args " in
1766       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1767       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768     esac
1769   fi
1770 done
1771 if $ac_cache_corrupted; then
1772   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776    { (exit 1); exit 1; }; }
1777 fi
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800
1801
1802
1803 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1804 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1805     # Check whether --enable-maintainer-mode was given.
1806 if test "${enable_maintainer_mode+set}" = set; then
1807   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1808 else
1809   USE_MAINTAINER_MODE=no
1810 fi
1811
1812   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1813 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1814
1815
1816 if test $USE_MAINTAINER_MODE = yes; then
1817   MAINTAINER_MODE_TRUE=
1818   MAINTAINER_MODE_FALSE='#'
1819 else
1820   MAINTAINER_MODE_TRUE='#'
1821   MAINTAINER_MODE_FALSE=
1822 fi
1823
1824   MAINT=$MAINTAINER_MODE_TRUE
1825
1826
1827 am__api_version="1.7"
1828 ac_aux_dir=
1829 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1830   if test -f "$ac_dir/install-sh"; then
1831     ac_aux_dir=$ac_dir
1832     ac_install_sh="$ac_aux_dir/install-sh -c"
1833     break
1834   elif test -f "$ac_dir/install.sh"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/install.sh -c"
1837     break
1838   elif test -f "$ac_dir/shtool"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/shtool install -c"
1841     break
1842   fi
1843 done
1844 if test -z "$ac_aux_dir"; then
1845   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1846 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1857
1858
1859 # Find a good install program.  We prefer a C program (faster),
1860 # so one script is as good as another.  But avoid the broken or
1861 # incompatible versions:
1862 # SysV /etc/install, /usr/sbin/install
1863 # SunOS /usr/etc/install
1864 # IRIX /sbin/install
1865 # AIX /bin/install
1866 # AmigaOS /C/install, which installs bootblocks on floppy discs
1867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1870 # OS/2's system install, which has a completely different semantic
1871 # ./install, which can be erroneously created by make from ./install.sh.
1872 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1874 if test -z "$INSTALL"; then
1875 if test "${ac_cv_path_install+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   # Account for people who put trailing slashes in PATH elements.
1884 case $as_dir/ in
1885   ./ | .// | /cC/* | \
1886   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1887   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1888   /usr/ucb/* ) ;;
1889   *)
1890     # OSF1 and SCO ODT 3.0 have their own names for install.
1891     # Don't use installbsd from OSF since it installs stuff as root
1892     # by default.
1893     for ac_prog in ginstall scoinst install; do
1894       for ac_exec_ext in '' $ac_executable_extensions; do
1895         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1896           if test $ac_prog = install &&
1897             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1898             # AIX install.  It has an incompatible calling convention.
1899             :
1900           elif test $ac_prog = install &&
1901             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1902             # program-specific install script used by HP pwplus--don't use.
1903             :
1904           else
1905             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1906             break 3
1907           fi
1908         fi
1909       done
1910     done
1911     ;;
1912 esac
1913 done
1914 IFS=$as_save_IFS
1915
1916
1917 fi
1918   if test "${ac_cv_path_install+set}" = set; then
1919     INSTALL=$ac_cv_path_install
1920   else
1921     # As a last resort, use the slow shell script.  Don't cache a
1922     # value for INSTALL within a source directory, because that will
1923     # break other packages using the cache if that directory is
1924     # removed, or if the value is a relative name.
1925     INSTALL=$ac_install_sh
1926   fi
1927 fi
1928 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1929 echo "${ECHO_T}$INSTALL" >&6; }
1930
1931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1932 # It thinks the first close brace ends the variable substitution.
1933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1934
1935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1936
1937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1938
1939 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1940 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1941 # Just in case
1942 sleep 1
1943 echo timestamp > conftest.file
1944 # Do `set' in a subshell so we don't clobber the current shell's
1945 # arguments.  Must try -L first in case configure is actually a
1946 # symlink; some systems play weird games with the mod time of symlinks
1947 # (eg FreeBSD returns the mod time of the symlink's containing
1948 # directory).
1949 if (
1950    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1951    if test "$*" = "X"; then
1952       # -L didn't work.
1953       set X `ls -t $srcdir/configure conftest.file`
1954    fi
1955    rm -f conftest.file
1956    if test "$*" != "X $srcdir/configure conftest.file" \
1957       && test "$*" != "X conftest.file $srcdir/configure"; then
1958
1959       # If neither matched, then we have a broken ls.  This can happen
1960       # if, for instance, CONFIG_SHELL is bash and it inherits a
1961       # broken ls alias from the environment.  This has actually
1962       # happened.  Such a system could not be considered "sane".
1963       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1964 alias in your environment" >&5
1965 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1966 alias in your environment" >&2;}
1967    { (exit 1); exit 1; }; }
1968    fi
1969
1970    test "$2" = conftest.file
1971    )
1972 then
1973    # Ok.
1974    :
1975 else
1976    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1977 Check your system clock" >&5
1978 echo "$as_me: error: newly created file is older than distributed files!
1979 Check your system clock" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982 { echo "$as_me:$LINENO: result: yes" >&5
1983 echo "${ECHO_T}yes" >&6; }
1984 test "$program_prefix" != NONE &&
1985   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1986 # Use a double $ so make ignores it.
1987 test "$program_suffix" != NONE &&
1988   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1989 # Double any \ or $.  echo might interpret backslashes.
1990 # By default was `s,x,x', remove it if useless.
1991 cat <<\_ACEOF >conftest.sed
1992 s/[\\$]/&&/g;s/;s,x,x,$//
1993 _ACEOF
1994 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1995 rm -f conftest.sed
1996
1997
1998 # expand $ac_aux_dir to an absolute path
1999 am_aux_dir=`cd $ac_aux_dir && pwd`
2000
2001 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2002 # Use eval to expand $SHELL
2003 if eval "$MISSING --run true"; then
2004   am_missing_run="$MISSING --run "
2005 else
2006   am_missing_run=
2007   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2008 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2009 fi
2010
2011 for ac_prog in gawk mawk nawk awk
2012 do
2013   # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_AWK+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$AWK"; then
2021   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2030     ac_cv_prog_AWK="$ac_prog"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2037
2038 fi
2039 fi
2040 AWK=$ac_cv_prog_AWK
2041 if test -n "$AWK"; then
2042   { echo "$as_me:$LINENO: result: $AWK" >&5
2043 echo "${ECHO_T}$AWK" >&6; }
2044 else
2045   { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2047 fi
2048
2049
2050   test -n "$AWK" && break
2051 done
2052
2053 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2054 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2055 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2056 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   cat >conftest.make <<\_ACEOF
2060 SHELL = /bin/sh
2061 all:
2062         @echo '@@@%%%=$(MAKE)=@@@%%%'
2063 _ACEOF
2064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2065 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2066   *@@@%%%=?*=@@@%%%*)
2067     eval ac_cv_prog_make_${ac_make}_set=yes;;
2068   *)
2069     eval ac_cv_prog_make_${ac_make}_set=no;;
2070 esac
2071 rm -f conftest.make
2072 fi
2073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2074   { echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6; }
2076   SET_MAKE=
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080   SET_MAKE="MAKE=${MAKE-make}"
2081 fi
2082
2083 rm -rf .tst 2>/dev/null
2084 mkdir .tst 2>/dev/null
2085 if test -d .tst; then
2086   am__leading_dot=.
2087 else
2088   am__leading_dot=_
2089 fi
2090 rmdir .tst 2>/dev/null
2091
2092  # test to see if srcdir already configured
2093 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2094    test -f $srcdir/config.status; then
2095   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2096 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2097    { (exit 1); exit 1; }; }
2098 fi
2099
2100 # test whether we have cygpath
2101 if test -z "$CYGPATH_W"; then
2102   if (cygpath --version) >/dev/null 2>/dev/null; then
2103     CYGPATH_W='cygpath -w'
2104   else
2105     CYGPATH_W=echo
2106   fi
2107 fi
2108
2109
2110 # Define the identity of the package.
2111  PACKAGE=ctsim
2112  VERSION=4.5.2
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE "$PACKAGE"
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define VERSION "$VERSION"
2122 _ACEOF
2123
2124 # Some tools Automake needs.
2125
2126 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2127
2128
2129 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2130
2131
2132 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2133
2134
2135 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2136
2137
2138 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2139
2140
2141 AMTAR=${AMTAR-"${am_missing_run}tar"}
2142
2143 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2144
2145 # Installed binaries are usually stripped using `strip' when the user
2146 # run `make install-strip'.  However `strip' might not be the right
2147 # tool to use in cross-compilation environments, therefore Automake
2148 # will honor the `STRIP' environment variable to overrule this program.
2149 if test "$cross_compiling" != no; then
2150   if test -n "$ac_tool_prefix"; then
2151   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2152 set dummy ${ac_tool_prefix}strip; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_STRIP+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$STRIP"; then
2159   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 STRIP=$ac_cv_prog_STRIP
2179 if test -n "$STRIP"; then
2180   { echo "$as_me:$LINENO: result: $STRIP" >&5
2181 echo "${ECHO_T}$STRIP" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188 fi
2189 if test -z "$ac_cv_prog_STRIP"; then
2190   ac_ct_STRIP=$STRIP
2191   # Extract the first word of "strip", so it can be a program name with args.
2192 set dummy strip; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$ac_ct_STRIP"; then
2199   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208     ac_cv_prog_ac_ct_STRIP="strip"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214 IFS=$as_save_IFS
2215
2216 fi
2217 fi
2218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2219 if test -n "$ac_ct_STRIP"; then
2220   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2221 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2222 else
2223   { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2225 fi
2226
2227   if test "x$ac_ct_STRIP" = x; then
2228     STRIP=":"
2229   else
2230     case $cross_compiling:$ac_tool_warned in
2231 yes:)
2232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2233 whose name does not start with the host triplet.  If you think this
2234 configuration is useful to you, please write to autoconf@gnu.org." >&5
2235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2236 whose name does not start with the host triplet.  If you think this
2237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2238 ac_tool_warned=yes ;;
2239 esac
2240     STRIP=$ac_ct_STRIP
2241   fi
2242 else
2243   STRIP="$ac_cv_prog_STRIP"
2244 fi
2245
2246 fi
2247 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2248
2249 # We need awk for the "check" target.  The system "awk" is bad on
2250 # some platforms.
2251
2252
2253
2254 ac_config_headers="$ac_config_headers config.h"
2255
2256
2257 for ac_prog in gawk mawk nawk awk
2258 do
2259   # Extract the first word of "$ac_prog", so it can be a program name with args.
2260 set dummy $ac_prog; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_AWK+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$AWK"; then
2267   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276     ac_cv_prog_AWK="$ac_prog"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282 IFS=$as_save_IFS
2283
2284 fi
2285 fi
2286 AWK=$ac_cv_prog_AWK
2287 if test -n "$AWK"; then
2288   { echo "$as_me:$LINENO: result: $AWK" >&5
2289 echo "${ECHO_T}$AWK" >&6; }
2290 else
2291   { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2293 fi
2294
2295
2296   test -n "$AWK" && break
2297 done
2298
2299 # Find a good install program.  We prefer a C program (faster),
2300 # so one script is as good as another.  But avoid the broken or
2301 # incompatible versions:
2302 # SysV /etc/install, /usr/sbin/install
2303 # SunOS /usr/etc/install
2304 # IRIX /sbin/install
2305 # AIX /bin/install
2306 # AmigaOS /C/install, which installs bootblocks on floppy discs
2307 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2308 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2309 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2310 # OS/2's system install, which has a completely different semantic
2311 # ./install, which can be erroneously created by make from ./install.sh.
2312 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2313 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2314 if test -z "$INSTALL"; then
2315 if test "${ac_cv_path_install+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321   IFS=$as_save_IFS
2322   test -z "$as_dir" && as_dir=.
2323   # Account for people who put trailing slashes in PATH elements.
2324 case $as_dir/ in
2325   ./ | .// | /cC/* | \
2326   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2327   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2328   /usr/ucb/* ) ;;
2329   *)
2330     # OSF1 and SCO ODT 3.0 have their own names for install.
2331     # Don't use installbsd from OSF since it installs stuff as root
2332     # by default.
2333     for ac_prog in ginstall scoinst install; do
2334       for ac_exec_ext in '' $ac_executable_extensions; do
2335         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2336           if test $ac_prog = install &&
2337             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2338             # AIX install.  It has an incompatible calling convention.
2339             :
2340           elif test $ac_prog = install &&
2341             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342             # program-specific install script used by HP pwplus--don't use.
2343             :
2344           else
2345             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2346             break 3
2347           fi
2348         fi
2349       done
2350     done
2351     ;;
2352 esac
2353 done
2354 IFS=$as_save_IFS
2355
2356
2357 fi
2358   if test "${ac_cv_path_install+set}" = set; then
2359     INSTALL=$ac_cv_path_install
2360   else
2361     # As a last resort, use the slow shell script.  Don't cache a
2362     # value for INSTALL within a source directory, because that will
2363     # break other packages using the cache if that directory is
2364     # removed, or if the value is a relative name.
2365     INSTALL=$ac_install_sh
2366   fi
2367 fi
2368 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2369 echo "${ECHO_T}$INSTALL" >&6; }
2370
2371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2372 # It thinks the first close brace ends the variable substitution.
2373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2374
2375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2376
2377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2378
2379 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2381 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2382 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   cat >conftest.make <<\_ACEOF
2386 SHELL = /bin/sh
2387 all:
2388         @echo '@@@%%%=$(MAKE)=@@@%%%'
2389 _ACEOF
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2392   *@@@%%%=?*=@@@%%%*)
2393     eval ac_cv_prog_make_${ac_make}_set=yes;;
2394   *)
2395     eval ac_cv_prog_make_${ac_make}_set=no;;
2396 esac
2397 rm -f conftest.make
2398 fi
2399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2400   { echo "$as_me:$LINENO: result: yes" >&5
2401 echo "${ECHO_T}yes" >&6; }
2402   SET_MAKE=
2403 else
2404   { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2406   SET_MAKE="MAKE=${MAKE-make}"
2407 fi
2408
2409 if test -n "$ac_tool_prefix"; then
2410   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_RANLIB+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   if test -n "$RANLIB"; then
2418   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423   IFS=$as_save_IFS
2424   test -z "$as_dir" && as_dir=.
2425   for ac_exec_ext in '' $ac_executable_extensions; do
2426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429     break 2
2430   fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 RANLIB=$ac_cv_prog_RANLIB
2438 if test -n "$RANLIB"; then
2439   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2440 echo "${ECHO_T}$RANLIB" >&6; }
2441 else
2442   { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$ac_cv_prog_RANLIB"; then
2449   ac_ct_RANLIB=$RANLIB
2450   # Extract the first word of "ranlib", so it can be a program name with args.
2451 set dummy ranlib; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$ac_ct_RANLIB"; then
2458   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     ac_cv_prog_ac_ct_RANLIB="ranlib"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2478 if test -n "$ac_ct_RANLIB"; then
2479   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2480 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2481 else
2482   { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486   if test "x$ac_ct_RANLIB" = x; then
2487     RANLIB=":"
2488   else
2489     case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet.  If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet.  If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499     RANLIB=$ac_ct_RANLIB
2500   fi
2501 else
2502   RANLIB="$ac_cv_prog_RANLIB"
2503 fi
2504
2505
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 if test -n "$ac_tool_prefix"; then
2512   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_CC+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$CC"; then
2520   ac_cv_prog_CC="$CC" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548
2549 fi
2550 if test -z "$ac_cv_prog_CC"; then
2551   ac_ct_CC=$CC
2552   # Extract the first word of "gcc", so it can be a program name with args.
2553 set dummy gcc; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$ac_ct_CC"; then
2560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_ac_ct_CC="gcc"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582 echo "${ECHO_T}$ac_ct_CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588   if test "x$ac_ct_CC" = x; then
2589     CC=""
2590   else
2591     case $cross_compiling:$ac_tool_warned in
2592 yes:)
2593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet.  If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&5
2596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet.  If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601     CC=$ac_ct_CC
2602   fi
2603 else
2604   CC="$ac_cv_prog_CC"
2605 fi
2606
2607 if test -z "$CC"; then
2608           if test -n "$ac_tool_prefix"; then
2609     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}cc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$CC"; then
2617   ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626     ac_cv_prog_CC="${ac_tool_prefix}cc"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638   { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2640 else
2641   { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645
2646   fi
2647 fi
2648 if test -z "$CC"; then
2649   # Extract the first word of "cc", so it can be a program name with args.
2650 set dummy cc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   if test -n "$CC"; then
2657   ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659   ac_prog_rejected=no
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2668        ac_prog_rejected=yes
2669        continue
2670      fi
2671     ac_cv_prog_CC="cc"
2672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 if test $ac_prog_rejected = yes; then
2680   # We found a bogon in the path, so make sure we never use it.
2681   set dummy $ac_cv_prog_CC
2682   shift
2683   if test $# != 0; then
2684     # We chose a different compiler from the bogus one.
2685     # However, it has the same basename, so the bogon will be chosen
2686     # first if we set CC to just the basename; use the full file name.
2687     shift
2688     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2689   fi
2690 fi
2691 fi
2692 fi
2693 CC=$ac_cv_prog_CC
2694 if test -n "$CC"; then
2695   { echo "$as_me:$LINENO: result: $CC" >&5
2696 echo "${ECHO_T}$CC" >&6; }
2697 else
2698   { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2700 fi
2701
2702
2703 fi
2704 if test -z "$CC"; then
2705   if test -n "$ac_tool_prefix"; then
2706   for ac_prog in cl.exe
2707   do
2708     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   if test -n "$CC"; then
2716   ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 for as_dir in $PATH
2720 do
2721   IFS=$as_save_IFS
2722   test -z "$as_dir" && as_dir=.
2723   for ac_exec_ext in '' $ac_executable_extensions; do
2724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727     break 2
2728   fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi
2734 fi
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737   { echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6; }
2739 else
2740   { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2742 fi
2743
2744
2745     test -n "$CC" && break
2746   done
2747 fi
2748 if test -z "$CC"; then
2749   ac_ct_CC=$CC
2750   for ac_prog in cl.exe
2751 do
2752   # Extract the first word of "$ac_prog", so it can be a program name with args.
2753 set dummy $ac_prog; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if test -n "$ac_ct_CC"; then
2760   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767   for ac_exec_ext in '' $ac_executable_extensions; do
2768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769     ac_cv_prog_ac_ct_CC="$ac_prog"
2770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771     break 2
2772   fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 fi
2778 fi
2779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780 if test -n "$ac_ct_CC"; then
2781   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2782 echo "${ECHO_T}$ac_ct_CC" >&6; }
2783 else
2784   { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2786 fi
2787
2788
2789   test -n "$ac_ct_CC" && break
2790 done
2791
2792   if test "x$ac_ct_CC" = x; then
2793     CC=""
2794   else
2795     case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet.  If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&5
2800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2801 whose name does not start with the host triplet.  If you think this
2802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     CC=$ac_ct_CC
2806   fi
2807 fi
2808
2809 fi
2810
2811
2812 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2813 See \`config.log' for more details." >&5
2814 echo "$as_me: error: no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details." >&2;}
2816    { (exit 1); exit 1; }; }
2817
2818 # Provide some information about the compiler.
2819 echo "$as_me:$LINENO: checking for C compiler version" >&5
2820 ac_compiler=`set X $ac_compile; echo $2`
2821 { (ac_try="$ac_compiler --version >&5"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_compiler --version >&5") 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }
2831 { (ac_try="$ac_compiler -v >&5"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compiler -v >&5") 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }
2841 { (ac_try="$ac_compiler -V >&5"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_compiler -V >&5") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }
2851
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858
2859 int
2860 main ()
2861 {
2862
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 ac_clean_files_save=$ac_clean_files
2868 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2869 # Try to create an executable without -o first, disregard a.out.
2870 # It will help us diagnose broken compilers, and finding out an intuition
2871 # of exeext.
2872 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2873 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2874 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2875 #
2876 # List of possible output files, starting from the most likely.
2877 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2878 # only as a last resort.  b.out is created by i960 compilers.
2879 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2880 #
2881 # The IRIX 6 linker writes into existing files which may not be
2882 # executable, retaining their permissions.  Remove them first so a
2883 # subsequent execution test works.
2884 ac_rmfiles=
2885 for ac_file in $ac_files
2886 do
2887   case $ac_file in
2888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890   esac
2891 done
2892 rm -f $ac_rmfiles
2893
2894 if { (ac_try="$ac_link_default"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_link_default") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; then
2904   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2907 # so that the user can short-circuit this test for compilers unknown to
2908 # Autoconf.
2909 for ac_file in $ac_files ''
2910 do
2911   test -f "$ac_file" || continue
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2914         ;;
2915     [ab].out )
2916         # We found the default executable, but exeext='' is most
2917         # certainly right.
2918         break;;
2919     *.* )
2920         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921         then :; else
2922            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923         fi
2924         # We set ac_cv_exeext here because the later test for it is not
2925         # safe: cross compilers may not add the suffix if given an `-o'
2926         # argument, so we may need to know it at that point already.
2927         # Even if this section looks crufty: it has the advantage of
2928         # actually working.
2929         break;;
2930     * )
2931         break;;
2932   esac
2933 done
2934 test "$ac_cv_exeext" = no && ac_cv_exeext=
2935
2936 else
2937   ac_file=''
2938 fi
2939
2940 { echo "$as_me:$LINENO: result: $ac_file" >&5
2941 echo "${ECHO_T}$ac_file" >&6; }
2942 if test -z "$ac_file"; then
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: C compiler cannot create executables
2949 See \`config.log' for more details." >&2;}
2950    { (exit 77); exit 77; }; }
2951 fi
2952
2953 ac_exeext=$ac_cv_exeext
2954
2955 # Check that the compiler produces executables we can run.  If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2958 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2959 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2960 # If not cross compiling, check that we can run a simple program.
2961 if test "$cross_compiling" != yes; then
2962   if { ac_try='./$ac_file'
2963   { (case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_try") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972     cross_compiling=no
2973   else
2974     if test "$cross_compiling" = maybe; then
2975         cross_compiling=yes
2976     else
2977         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983    { (exit 1); exit 1; }; }
2984     fi
2985   fi
2986 fi
2987 { echo "$as_me:$LINENO: result: yes" >&5
2988 echo "${ECHO_T}yes" >&6; }
2989
2990 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run.  If not, either
2993 # the compiler is broken, or we cross compile.
2994 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2996 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 echo "${ECHO_T}$cross_compiling" >&6; }
2998
2999 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3001 if { (ac_try="$ac_link"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_link") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; then
3011   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3014 # `rm'.
3015 for ac_file in conftest.exe conftest conftest.*; do
3016   test -f "$ac_file" || continue
3017   case $ac_file in
3018     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3019     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020           break;;
3021     * ) break;;
3022   esac
3023 done
3024 else
3025   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details." >&5
3027 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&2;}
3029    { (exit 1); exit 1; }; }
3030 fi
3031
3032 rm -f conftest$ac_cv_exeext
3033 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3034 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3035
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3038 ac_exeext=$EXEEXT
3039 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3040 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3041 if test "${ac_cv_objext+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 rm -f conftest.o conftest.obj
3060 if { (ac_try="$ac_compile"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_compile") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; then
3070   for ac_file in conftest.o conftest.obj conftest.*; do
3071   test -f "$ac_file" || continue;
3072   case $ac_file in
3073     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3074     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3075        break;;
3076   esac
3077 done
3078 else
3079   echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3081
3082 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&2;}
3086    { (exit 1); exit 1; }; }
3087 fi
3088
3089 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090 fi
3091 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092 echo "${ECHO_T}$ac_cv_objext" >&6; }
3093 OBJEXT=$ac_cv_objext
3094 ac_objext=$OBJEXT
3095 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3097 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3098   echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100   cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110 #ifndef __GNUC__
3111        choke me
3112 #endif
3113
3114   ;
3115   return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compile") 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } && {
3132          test -z "$ac_c_werror_flag" ||
3133          test ! -s conftest.err
3134        } && test -s conftest.$ac_objext; then
3135   ac_compiler_gnu=yes
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_compiler_gnu=no
3141 fi
3142
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146 fi
3147 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3148 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3149 GCC=`test $ac_compiler_gnu = yes && echo yes`
3150 ac_test_CFLAGS=${CFLAGS+set}
3151 ac_save_CFLAGS=$CFLAGS
3152 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_g+set}" = set; then
3155   echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157   ac_save_c_werror_flag=$ac_c_werror_flag
3158    ac_c_werror_flag=yes
3159    ac_cv_prog_cc_g=no
3160    CFLAGS="-g"
3161    cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         CFLAGS=""
3199       cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   :
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236         ac_c_werror_flag=$ac_save_c_werror_flag
3237          CFLAGS="-g"
3238          cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } && {
3267          test -z "$ac_c_werror_flag" ||
3268          test ! -s conftest.err
3269        } && test -s conftest.$ac_objext; then
3270   ac_cv_prog_cc_g=yes
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 fi
3280
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285    ac_c_werror_flag=$ac_save_c_werror_flag
3286 fi
3287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290   CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292   if test "$GCC" = yes; then
3293     CFLAGS="-g -O2"
3294   else
3295     CFLAGS="-g"
3296   fi
3297 else
3298   if test "$GCC" = yes; then
3299     CFLAGS="-O2"
3300   else
3301     CFLAGS=
3302   fi
3303 fi
3304 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   ac_cv_prog_cc_c89=no
3310 ac_save_CC=$CC
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <stdarg.h>
3318 #include <stdio.h>
3319 #include <sys/types.h>
3320 #include <sys/stat.h>
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3325      char **p;
3326      int i;
3327 {
3328   return p[i];
3329 }
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3331 {
3332   char *s;
3333   va_list v;
3334   va_start (v,p);
3335   s = g (p, va_arg (v,int));
3336   va_end (v);
3337   return s;
3338 }
3339
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3341    function prototypes and stuff, but not '\xHH' hex character constants.
3342    These don't provoke an error unfortunately, instead are silently treated
3343    as 'x'.  The following induces an error, until -std is added to get
3344    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3345    array size at least.  It's necessary to write '\x00'==0 to get something
3346    that's true only with -std.  */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3348
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350    inside strings and character constants.  */
3351 #define FOO(x) 'x'
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3353
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3358 int argc;
3359 char **argv;
3360 int
3361 main ()
3362 {
3363 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 do
3371   CC="$ac_save_CC $ac_arg"
3372   rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3379   (eval "$ac_compile") 2>conftest.er1
3380   ac_status=$?
3381   grep -v '^ *+' conftest.er1 >conftest.err
3382   rm -f conftest.er1
3383   cat conftest.err >&5
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } && {
3386          test -z "$ac_c_werror_flag" ||
3387          test ! -s conftest.err
3388        } && test -s conftest.$ac_objext; then
3389   ac_cv_prog_cc_c89=$ac_arg
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext
3398   test "x$ac_cv_prog_cc_c89" != "xno" && break
3399 done
3400 rm -f conftest.$ac_ext
3401 CC=$ac_save_CC
3402
3403 fi
3404 # AC_CACHE_VAL
3405 case "x$ac_cv_prog_cc_c89" in
3406   x)
3407     { echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6; } ;;
3409   xno)
3410     { echo "$as_me:$LINENO: result: unsupported" >&5
3411 echo "${ECHO_T}unsupported" >&6; } ;;
3412   *)
3413     CC="$CC $ac_cv_prog_cc_c89"
3414     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3416 esac
3417
3418
3419 ac_ext=c
3420 ac_cpp='$CPP $CPPFLAGS'
3421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 DEPDIR="${am__leading_dot}deps"
3425
3426 ac_config_commands="$ac_config_commands depfiles"
3427
3428
3429 am_make=${MAKE-make}
3430 cat > confinc << 'END'
3431 am__doit:
3432         @echo done
3433 .PHONY: am__doit
3434 END
3435 # If we don't find an include directive, just comment out the code.
3436 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3437 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3438 am__include="#"
3439 am__quote=
3440 _am_result=none
3441 # First try GNU make style include.
3442 echo "include confinc" > confmf
3443 # We grep out `Entering directory' and `Leaving directory'
3444 # messages which can occur if `w' ends up in MAKEFLAGS.
3445 # In particular we don't look at `^make:' because GNU make might
3446 # be invoked under some other name (usually "gmake"), in which
3447 # case it prints its new name instead of `make'.
3448 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3449    am__include=include
3450    am__quote=
3451    _am_result=GNU
3452 fi
3453 # Now try BSD make style include.
3454 if test "$am__include" = "#"; then
3455    echo '.include "confinc"' > confmf
3456    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3457       am__include=.include
3458       am__quote="\""
3459       _am_result=BSD
3460    fi
3461 fi
3462
3463
3464 { echo "$as_me:$LINENO: result: $_am_result" >&5
3465 echo "${ECHO_T}$_am_result" >&6; }
3466 rm -f confinc confmf
3467
3468 # Check whether --enable-dependency-tracking was given.
3469 if test "${enable_dependency_tracking+set}" = set; then
3470   enableval=$enable_dependency_tracking;
3471 fi
3472
3473 if test "x$enable_dependency_tracking" != xno; then
3474   am_depcomp="$ac_aux_dir/depcomp"
3475   AMDEPBACKSLASH='\'
3476 fi
3477
3478
3479 if test "x$enable_dependency_tracking" != xno; then
3480   AMDEP_TRUE=
3481   AMDEP_FALSE='#'
3482 else
3483   AMDEP_TRUE='#'
3484   AMDEP_FALSE=
3485 fi
3486
3487
3488
3489
3490 depcc="$CC"   am_compiler_list=
3491
3492 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3493 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3494 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3498   # We make a subdir and do the tests there.  Otherwise we can end up
3499   # making bogus files that we don't know about and never remove.  For
3500   # instance it was reported that on HP-UX the gcc test will end up
3501   # making a dummy file named `D' -- because `-MD' means `put the output
3502   # in D'.
3503   mkdir conftest.dir
3504   # Copy depcomp to subdir because otherwise we won't find it if we're
3505   # using a relative directory.
3506   cp "$am_depcomp" conftest.dir
3507   cd conftest.dir
3508   # We will build objects and dependencies in a subdirectory because
3509   # it helps to detect inapplicable dependency modes.  For instance
3510   # both Tru64's cc and ICC support -MD to output dependencies as a
3511   # side effect of compilation, but ICC will put the dependencies in
3512   # the current directory while Tru64 will put them in the object
3513   # directory.
3514   mkdir sub
3515
3516   am_cv_CC_dependencies_compiler_type=none
3517   if test "$am_compiler_list" = ""; then
3518      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519   fi
3520   for depmode in $am_compiler_list; do
3521     # Setup a source with many dependencies, because some compilers
3522     # like to wrap large dependency lists on column 80 (with \), and
3523     # we should not choose a depcomp mode which is confused by this.
3524     #
3525     # We need to recreate these files for each test, as the compiler may
3526     # overwrite some of them when testing with obscure command lines.
3527     # This happens at least with the AIX C compiler.
3528     : > sub/conftest.c
3529     for i in 1 2 3 4 5 6; do
3530       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3531       : > sub/conftst$i.h
3532     done
3533     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3534
3535     case $depmode in
3536     nosideeffect)
3537       # after this tag, mechanisms are not by side-effect, so they'll
3538       # only be used when explicitly requested
3539       if test "x$enable_dependency_tracking" = xyes; then
3540         continue
3541       else
3542         break
3543       fi
3544       ;;
3545     none) break ;;
3546     esac
3547     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548     # mode.  It turns out that the SunPro C++ compiler does not properly
3549     # handle `-M -o', and we need to detect this.
3550     if depmode=$depmode \
3551        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554          >/dev/null 2>conftest.err &&
3555        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3556        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3557        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3558       # icc doesn't choke on unknown options, it will just issue warnings
3559       # (even with -Werror).  So we grep stderr for any message
3560       # that says an option was ignored.
3561       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3562         am_cv_CC_dependencies_compiler_type=$depmode
3563         break
3564       fi
3565     fi
3566   done
3567
3568   cd ..
3569   rm -rf conftest.dir
3570 else
3571   am_cv_CC_dependencies_compiler_type=none
3572 fi
3573
3574 fi
3575 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578
3579
3580
3581 if
3582   test "x$enable_dependency_tracking" != xno \
3583   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3584   am__fastdepCC_TRUE=
3585   am__fastdepCC_FALSE='#'
3586 else
3587   am__fastdepCC_TRUE='#'
3588   am__fastdepCC_FALSE=
3589 fi
3590
3591
3592 ac_ext=cpp
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597 if test -z "$CXX"; then
3598   if test -n "$CCC"; then
3599     CXX=$CCC
3600   else
3601     if test -n "$ac_tool_prefix"; then
3602   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3603   do
3604     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_CXX+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   if test -n "$CXX"; then
3612   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619   for ac_exec_ext in '' $ac_executable_extensions; do
3620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626 done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 CXX=$ac_cv_prog_CXX
3632 if test -n "$CXX"; then
3633   { echo "$as_me:$LINENO: result: $CXX" >&5
3634 echo "${ECHO_T}$CXX" >&6; }
3635 else
3636   { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3638 fi
3639
3640
3641     test -n "$CXX" && break
3642   done
3643 fi
3644 if test -z "$CXX"; then
3645   ac_ct_CXX=$CXX
3646   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3647 do
3648   # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655   if test -n "$ac_ct_CXX"; then
3656   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661   IFS=$as_save_IFS
3662   test -z "$as_dir" && as_dir=.
3663   for ac_exec_ext in '' $ac_executable_extensions; do
3664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665     ac_cv_prog_ac_ct_CXX="$ac_prog"
3666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667     break 2
3668   fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi
3674 fi
3675 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3676 if test -n "$ac_ct_CXX"; then
3677   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3678 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3679 else
3680   { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682 fi
3683
3684
3685   test -n "$ac_ct_CXX" && break
3686 done
3687
3688   if test "x$ac_ct_CXX" = x; then
3689     CXX="g++"
3690   else
3691     case $cross_compiling:$ac_tool_warned in
3692 yes:)
3693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694 whose name does not start with the host triplet.  If you think this
3695 configuration is useful to you, please write to autoconf@gnu.org." >&5
3696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697 whose name does not start with the host triplet.  If you think this
3698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701     CXX=$ac_ct_CXX
3702   fi
3703 fi
3704
3705   fi
3706 fi
3707 # Provide some information about the compiler.
3708 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3709 ac_compiler=`set X $ac_compile; echo $2`
3710 { (ac_try="$ac_compiler --version >&5"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_compiler --version >&5") 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }
3720 { (ac_try="$ac_compiler -v >&5"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726   (eval "$ac_compiler -v >&5") 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }
3730 { (ac_try="$ac_compiler -V >&5"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_compiler -V >&5") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }
3740
3741 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3742 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756 #ifndef __GNUC__
3757        choke me
3758 #endif
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771   (eval "$ac_compile") 2>conftest.er1
3772   ac_status=$?
3773   grep -v '^ *+' conftest.er1 >conftest.err
3774   rm -f conftest.er1
3775   cat conftest.err >&5
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); } && {
3778          test -z "$ac_cxx_werror_flag" ||
3779          test ! -s conftest.err
3780        } && test -s conftest.$ac_objext; then
3781   ac_compiler_gnu=yes
3782 else
3783   echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3785
3786         ac_compiler_gnu=no
3787 fi
3788
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3791
3792 fi
3793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3795 GXX=`test $ac_compiler_gnu = yes && echo yes`
3796 ac_test_CXXFLAGS=${CXXFLAGS+set}
3797 ac_save_CXXFLAGS=$CXXFLAGS
3798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3800 if test "${ac_cv_prog_cxx_g+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3804    ac_cxx_werror_flag=yes
3805    ac_cv_prog_cxx_g=no
3806    CXXFLAGS="-g"
3807    cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_compile") 2>conftest.er1
3830   ac_status=$?
3831   grep -v '^ *+' conftest.er1 >conftest.err
3832   rm -f conftest.er1
3833   cat conftest.err >&5
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); } && {
3836          test -z "$ac_cxx_werror_flag" ||
3837          test ! -s conftest.err
3838        } && test -s conftest.$ac_objext; then
3839   ac_cv_prog_cxx_g=yes
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844         CXXFLAGS=""
3845       cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h.  */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h.  */
3851
3852 int
3853 main ()
3854 {
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3862 case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_compile") 2>conftest.er1
3868   ac_status=$?
3869   grep -v '^ *+' conftest.er1 >conftest.err
3870   rm -f conftest.er1
3871   cat conftest.err >&5
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); } && {
3874          test -z "$ac_cxx_werror_flag" ||
3875          test ! -s conftest.err
3876        } && test -s conftest.$ac_objext; then
3877   :
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3883          CXXFLAGS="-g"
3884          cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890
3891 int
3892 main ()
3893 {
3894
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_compile") 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && {
3913          test -z "$ac_cxx_werror_flag" ||
3914          test ! -s conftest.err
3915        } && test -s conftest.$ac_objext; then
3916   ac_cv_prog_cxx_g=yes
3917 else
3918   echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3932 fi
3933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3934 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3935 if test "$ac_test_CXXFLAGS" = set; then
3936   CXXFLAGS=$ac_save_CXXFLAGS
3937 elif test $ac_cv_prog_cxx_g = yes; then
3938   if test "$GXX" = yes; then
3939     CXXFLAGS="-g -O2"
3940   else
3941     CXXFLAGS="-g"
3942   fi
3943 else
3944   if test "$GXX" = yes; then
3945     CXXFLAGS="-O2"
3946   else
3947     CXXFLAGS=
3948   fi
3949 fi
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955
3956 depcc="$CXX"  am_compiler_list=
3957
3958 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3960 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964   # We make a subdir and do the tests there.  Otherwise we can end up
3965   # making bogus files that we don't know about and never remove.  For
3966   # instance it was reported that on HP-UX the gcc test will end up
3967   # making a dummy file named `D' -- because `-MD' means `put the output
3968   # in D'.
3969   mkdir conftest.dir
3970   # Copy depcomp to subdir because otherwise we won't find it if we're
3971   # using a relative directory.
3972   cp "$am_depcomp" conftest.dir
3973   cd conftest.dir
3974   # We will build objects and dependencies in a subdirectory because
3975   # it helps to detect inapplicable dependency modes.  For instance
3976   # both Tru64's cc and ICC support -MD to output dependencies as a
3977   # side effect of compilation, but ICC will put the dependencies in
3978   # the current directory while Tru64 will put them in the object
3979   # directory.
3980   mkdir sub
3981
3982   am_cv_CXX_dependencies_compiler_type=none
3983   if test "$am_compiler_list" = ""; then
3984      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985   fi
3986   for depmode in $am_compiler_list; do
3987     # Setup a source with many dependencies, because some compilers
3988     # like to wrap large dependency lists on column 80 (with \), and
3989     # we should not choose a depcomp mode which is confused by this.
3990     #
3991     # We need to recreate these files for each test, as the compiler may
3992     # overwrite some of them when testing with obscure command lines.
3993     # This happens at least with the AIX C compiler.
3994     : > sub/conftest.c
3995     for i in 1 2 3 4 5 6; do
3996       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3997       : > sub/conftst$i.h
3998     done
3999     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4000
4001     case $depmode in
4002     nosideeffect)
4003       # after this tag, mechanisms are not by side-effect, so they'll
4004       # only be used when explicitly requested
4005       if test "x$enable_dependency_tracking" = xyes; then
4006         continue
4007       else
4008         break
4009       fi
4010       ;;
4011     none) break ;;
4012     esac
4013     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014     # mode.  It turns out that the SunPro C++ compiler does not properly
4015     # handle `-M -o', and we need to detect this.
4016     if depmode=$depmode \
4017        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4018        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4019        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4020          >/dev/null 2>conftest.err &&
4021        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4023        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024       # icc doesn't choke on unknown options, it will just issue warnings
4025       # (even with -Werror).  So we grep stderr for any message
4026       # that says an option was ignored.
4027       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4028         am_cv_CXX_dependencies_compiler_type=$depmode
4029         break
4030       fi
4031     fi
4032   done
4033
4034   cd ..
4035   rm -rf conftest.dir
4036 else
4037   am_cv_CXX_dependencies_compiler_type=none
4038 fi
4039
4040 fi
4041 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4042 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4043 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4044
4045
4046
4047 if
4048   test "x$enable_dependency_tracking" != xno \
4049   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4050   am__fastdepCXX_TRUE=
4051   am__fastdepCXX_FALSE='#'
4052 else
4053   am__fastdepCXX_TRUE='#'
4054   am__fastdepCXX_FALSE=
4055 fi
4056
4057
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4068   CPP=
4069 fi
4070 if test -z "$CPP"; then
4071   if test "${ac_cv_prog_CPP+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074       # Double quotes because CPP needs to be expanded
4075     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076     do
4077       ac_preproc_ok=false
4078 for ac_c_preproc_warn_flag in '' yes
4079 do
4080   # Use a header file that comes with gcc, so configuring glibc
4081   # with a fresh cross-compiler works.
4082   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083   # <limits.h> exists even on freestanding compilers.
4084   # On the NeXT, cc -E runs the code through the compiler's parser,
4085   # not just through cpp. "Syntax error" is here to catch this case.
4086   cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h.  */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h.  */
4092 #ifdef __STDC__
4093 # include <limits.h>
4094 #else
4095 # include <assert.h>
4096 #endif
4097                      Syntax error
4098 _ACEOF
4099 if { (ac_try="$ac_cpp conftest.$ac_ext"
4100 case "(($ac_try" in
4101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102   *) ac_try_echo=$ac_try;;
4103 esac
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106   ac_status=$?
4107   grep -v '^ *+' conftest.er1 >conftest.err
4108   rm -f conftest.er1
4109   cat conftest.err >&5
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); } >/dev/null && {
4112          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113          test ! -s conftest.err
4114        }; then
4115   :
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120   # Broken: fails on valid input.
4121 continue
4122 fi
4123
4124 rm -f conftest.err conftest.$ac_ext
4125
4126   # OK, works on sane cases.  Now check whether nonexistent headers
4127   # can be detected and how.
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <ac_nonexistent.h>
4135 _ACEOF
4136 if { (ac_try="$ac_cpp conftest.$ac_ext"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } >/dev/null && {
4149          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4150          test ! -s conftest.err
4151        }; then
4152   # Broken: success on invalid input.
4153 continue
4154 else
4155   echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158   # Passes both tests.
4159 ac_preproc_ok=:
4160 break
4161 fi
4162
4163 rm -f conftest.err conftest.$ac_ext
4164
4165 done
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then
4169   break
4170 fi
4171
4172     done
4173     ac_cv_prog_CPP=$CPP
4174
4175 fi
4176   CPP=$ac_cv_prog_CPP
4177 else
4178   ac_cv_prog_CPP=$CPP
4179 fi
4180 { echo "$as_me:$LINENO: result: $CPP" >&5
4181 echo "${ECHO_T}$CPP" >&6; }
4182 ac_preproc_ok=false
4183 for ac_c_preproc_warn_flag in '' yes
4184 do
4185   # Use a header file that comes with gcc, so configuring glibc
4186   # with a fresh cross-compiler works.
4187   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188   # <limits.h> exists even on freestanding compilers.
4189   # On the NeXT, cc -E runs the code through the compiler's parser,
4190   # not just through cpp. "Syntax error" is here to catch this case.
4191   cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h.  */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h.  */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202                      Syntax error
4203 _ACEOF
4204 if { (ac_try="$ac_cpp conftest.$ac_ext"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4211   ac_status=$?
4212   grep -v '^ *+' conftest.er1 >conftest.err
4213   rm -f conftest.er1
4214   cat conftest.err >&5
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); } >/dev/null && {
4217          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4218          test ! -s conftest.err
4219        }; then
4220   :
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225   # Broken: fails on valid input.
4226 continue
4227 fi
4228
4229 rm -f conftest.err conftest.$ac_ext
4230
4231   # OK, works on sane cases.  Now check whether nonexistent headers
4232   # can be detected and how.
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <ac_nonexistent.h>
4240 _ACEOF
4241 if { (ac_try="$ac_cpp conftest.$ac_ext"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } >/dev/null && {
4254          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4255          test ! -s conftest.err
4256        }; then
4257   # Broken: success on invalid input.
4258 continue
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263   # Passes both tests.
4264 ac_preproc_ok=:
4265 break
4266 fi
4267
4268 rm -f conftest.err conftest.$ac_ext
4269
4270 done
4271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272 rm -f conftest.err conftest.$ac_ext
4273 if $ac_preproc_ok; then
4274   :
4275 else
4276   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log' for more details." >&5
4278 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4279 See \`config.log' for more details." >&2;}
4280    { (exit 1); exit 1; }; }
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289
4290 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4291 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4292 if test "${ac_cv_path_GREP+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   # Extract the first word of "grep ggrep" to use in msg output
4296 if test -z "$GREP"; then
4297 set dummy grep ggrep; ac_prog_name=$2
4298 if test "${ac_cv_path_GREP+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_path_GREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_prog in grep ggrep; do
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4312     # Check for GNU ac_path_GREP and select it if it is found.
4313   # Check for GNU $ac_path_GREP
4314 case `"$ac_path_GREP" --version 2>&1` in
4315 *GNU*)
4316   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317 *)
4318   ac_count=0
4319   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4320   while :
4321   do
4322     cat "conftest.in" "conftest.in" >"conftest.tmp"
4323     mv "conftest.tmp" "conftest.in"
4324     cp "conftest.in" "conftest.nl"
4325     echo 'GREP' >> "conftest.nl"
4326     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328     ac_count=`expr $ac_count + 1`
4329     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330       # Best one so far, save it but keep looking for a better one
4331       ac_cv_path_GREP="$ac_path_GREP"
4332       ac_path_GREP_max=$ac_count
4333     fi
4334     # 10*(2^10) chars as input seems more than enough
4335     test $ac_count -gt 10 && break
4336   done
4337   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 esac
4339
4340
4341     $ac_path_GREP_found && break 3
4342   done
4343 done
4344
4345 done
4346 IFS=$as_save_IFS
4347
4348
4349 fi
4350
4351 GREP="$ac_cv_path_GREP"
4352 if test -z "$GREP"; then
4353   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355    { (exit 1); exit 1; }; }
4356 fi
4357
4358 else
4359   ac_cv_path_GREP=$GREP
4360 fi
4361
4362
4363 fi
4364 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4365 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4366  GREP="$ac_cv_path_GREP"
4367
4368
4369 { echo "$as_me:$LINENO: checking for egrep" >&5
4370 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4371 if test "${ac_cv_path_EGREP+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375    then ac_cv_path_EGREP="$GREP -E"
4376    else
4377      # Extract the first word of "egrep" to use in msg output
4378 if test -z "$EGREP"; then
4379 set dummy egrep; ac_prog_name=$2
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   ac_path_EGREP_found=false
4384 # Loop through the user's path and test for each of PROGNAME-LIST
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390   for ac_prog in egrep; do
4391   for ac_exec_ext in '' $ac_executable_extensions; do
4392     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4393     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4394     # Check for GNU ac_path_EGREP and select it if it is found.
4395   # Check for GNU $ac_path_EGREP
4396 case `"$ac_path_EGREP" --version 2>&1` in
4397 *GNU*)
4398   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4399 *)
4400   ac_count=0
4401   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4402   while :
4403   do
4404     cat "conftest.in" "conftest.in" >"conftest.tmp"
4405     mv "conftest.tmp" "conftest.in"
4406     cp "conftest.in" "conftest.nl"
4407     echo 'EGREP' >> "conftest.nl"
4408     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410     ac_count=`expr $ac_count + 1`
4411     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4412       # Best one so far, save it but keep looking for a better one
4413       ac_cv_path_EGREP="$ac_path_EGREP"
4414       ac_path_EGREP_max=$ac_count
4415     fi
4416     # 10*(2^10) chars as input seems more than enough
4417     test $ac_count -gt 10 && break
4418   done
4419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 esac
4421
4422
4423     $ac_path_EGREP_found && break 3
4424   done
4425 done
4426
4427 done
4428 IFS=$as_save_IFS
4429
4430
4431 fi
4432
4433 EGREP="$ac_cv_path_EGREP"
4434 if test -z "$EGREP"; then
4435   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4436 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4437    { (exit 1); exit 1; }; }
4438 fi
4439
4440 else
4441   ac_cv_path_EGREP=$EGREP
4442 fi
4443
4444
4445    fi
4446 fi
4447 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4448 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4449  EGREP="$ac_cv_path_EGREP"
4450
4451
4452 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4467
4468 int
4469 main ()
4470 {
4471
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483   (eval "$ac_compile") 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } && {
4490          test -z "$ac_c_werror_flag" ||
4491          test ! -s conftest.err
4492        } && test -s conftest.$ac_objext; then
4493   ac_cv_header_stdc=yes
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498         ac_cv_header_stdc=no
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502
4503 if test $ac_cv_header_stdc = yes; then
4504   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505   cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 #include <string.h>
4512
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515   $EGREP "memchr" >/dev/null 2>&1; then
4516   :
4517 else
4518   ac_cv_header_stdc=no
4519 fi
4520 rm -f conftest*
4521
4522 fi
4523
4524 if test $ac_cv_header_stdc = yes; then
4525   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4526   cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h.  */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h.  */
4532 #include <stdlib.h>
4533
4534 _ACEOF
4535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536   $EGREP "free" >/dev/null 2>&1; then
4537   :
4538 else
4539   ac_cv_header_stdc=no
4540 fi
4541 rm -f conftest*
4542
4543 fi
4544
4545 if test $ac_cv_header_stdc = yes; then
4546   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547   if test "$cross_compiling" = yes; then
4548   :
4549 else
4550   cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h.  */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h.  */
4556 #include <ctype.h>
4557 #include <stdlib.h>
4558 #if ((' ' & 0x0FF) == 0x020)
4559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4561 #else
4562 # define ISLOWER(c) \
4563                    (('a' <= (c) && (c) <= 'i') \
4564                      || ('j' <= (c) && (c) <= 'r') \
4565                      || ('s' <= (c) && (c) <= 'z'))
4566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4567 #endif
4568
4569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4570 int
4571 main ()
4572 {
4573   int i;
4574   for (i = 0; i < 256; i++)
4575     if (XOR (islower (i), ISLOWER (i))
4576         || toupper (i) != TOUPPER (i))
4577       return 2;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4583 case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_link") 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592   { (case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_try") 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   :
4602 else
4603   echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 ( exit $ac_status )
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4611 fi
4612
4613
4614 fi
4615 fi
4616 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4617 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4618 if test $ac_cv_header_stdc = yes; then
4619
4620 cat >>confdefs.h <<\_ACEOF
4621 #define STDC_HEADERS 1
4622 _ACEOF
4623
4624 fi
4625
4626 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4637                   inttypes.h stdint.h unistd.h
4638 do
4639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 $ac_includes_default
4652
4653 #include <$ac_header>
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662   (eval "$ac_compile") 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } && {
4669          test -z "$ac_c_werror_flag" ||
4670          test ! -s conftest.err
4671        } && test -s conftest.$ac_objext; then
4672   eval "$as_ac_Header=yes"
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677         eval "$as_ac_Header=no"
4678 fi
4679
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 ac_res=`eval echo '${'$as_ac_Header'}'`
4683                { echo "$as_me:$LINENO: result: $ac_res" >&5
4684 echo "${ECHO_T}$ac_res" >&6; }
4685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686   cat >>confdefs.h <<_ACEOF
4687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4689
4690 fi
4691
4692 done
4693
4694
4695 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4696 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4697 if test "${ac_cv_c_bigendian+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   # See if sys/param.h defines the BYTE_ORDER macro.
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <sys/types.h>
4708 #include <sys/param.h>
4709
4710 int
4711 main ()
4712 {
4713 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4714         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4715  bogus endian macros
4716 #endif
4717
4718   ;
4719   return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (ac_try="$ac_compile"
4724 case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729   (eval "$ac_compile") 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } && {
4736          test -z "$ac_c_werror_flag" ||
4737          test ! -s conftest.err
4738        } && test -s conftest.$ac_objext; then
4739   # It does; now see whether it defined to BIG_ENDIAN or not.
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h.  */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h.  */
4746 #include <sys/types.h>
4747 #include <sys/param.h>
4748
4749 int
4750 main ()
4751 {
4752 #if BYTE_ORDER != BIG_ENDIAN
4753  not big endian
4754 #endif
4755
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext
4761 if { (ac_try="$ac_compile"
4762 case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_compile") 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } && {
4774          test -z "$ac_c_werror_flag" ||
4775          test ! -s conftest.err
4776        } && test -s conftest.$ac_objext; then
4777   ac_cv_c_bigendian=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782         ac_cv_c_bigendian=no
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790         # It does not; compile a test program.
4791 if test "$cross_compiling" = yes; then
4792   # try to guess the endianness by grepping values into an object file
4793   ac_cv_c_bigendian=unknown
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4801 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4802 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4803 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4804 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4805 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4806 int
4807 main ()
4808 {
4809  _ascii (); _ebcdic ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (ac_try="$ac_compile"
4816 case "(($ac_try" in
4817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818   *) ac_try_echo=$ac_try;;
4819 esac
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821   (eval "$ac_compile") 2>conftest.er1
4822   ac_status=$?
4823   grep -v '^ *+' conftest.er1 >conftest.err
4824   rm -f conftest.er1
4825   cat conftest.err >&5
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } && {
4828          test -z "$ac_c_werror_flag" ||
4829          test ! -s conftest.err
4830        } && test -s conftest.$ac_objext; then
4831   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4832   ac_cv_c_bigendian=yes
4833 fi
4834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4835   if test "$ac_cv_c_bigendian" = unknown; then
4836     ac_cv_c_bigendian=no
4837   else
4838     # finding both strings is unlikely to happen, but who knows?
4839     ac_cv_c_bigendian=unknown
4840   fi
4841 fi
4842 else
4843   echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846
4847 fi
4848
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 else
4851   cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 $ac_includes_default
4858 int
4859 main ()
4860 {
4861
4862   /* Are we little or big endian?  From Harbison&Steele.  */
4863   union
4864   {
4865     long int l;
4866     char c[sizeof (long int)];
4867   } u;
4868   u.l = 1;
4869   return u.c[sizeof (long int) - 1] == 1;
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest$ac_exeext
4876 if { (ac_try="$ac_link"
4877 case "(($ac_try" in
4878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879   *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882   (eval "$ac_link") 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4886   { (case "(($ac_try" in
4887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888   *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891   (eval "$ac_try") 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; }; then
4895   ac_cv_c_bigendian=no
4896 else
4897   echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ( exit $ac_status )
4902 ac_cv_c_bigendian=yes
4903 fi
4904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905 fi
4906
4907
4908 fi
4909
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4913 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4914 case $ac_cv_c_bigendian in
4915   yes)
4916
4917 cat >>confdefs.h <<\_ACEOF
4918 #define WORDS_BIGENDIAN 1
4919 _ACEOF
4920  ;;
4921   no)
4922      ;;
4923   *)
4924     { { echo "$as_me:$LINENO: error: unknown endianness
4925 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4926 echo "$as_me: error: unknown endianness
4927 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4928    { (exit 1); exit 1; }; } ;;
4929 esac
4930
4931
4932 # Extract the first word of "wxgtk-2.4-config", so it can be a program name with args.
4933 set dummy wxgtk-2.4-config; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_wxconfig+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   case $wxconfig in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959   ;;
4960 esac
4961 fi
4962 wxconfig=$ac_cv_path_wxconfig
4963 if test -n "$wxconfig"; then
4964   { echo "$as_me:$LINENO: result: $wxconfig" >&5
4965 echo "${ECHO_T}$wxconfig" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972 if test -z "$wxconfig" ; then
4973   # Extract the first word of "wx-config", so it can be a program name with args.
4974 set dummy wx-config; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_wxconfig+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   case $wxconfig in
4981   [\\/]* | ?:[\\/]*)
4982   ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
4983   ;;
4984   *)
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998 IFS=$as_save_IFS
4999
5000   ;;
5001 esac
5002 fi
5003 wxconfig=$ac_cv_path_wxconfig
5004 if test -n "$wxconfig"; then
5005   { echo "$as_me:$LINENO: result: $wxconfig" >&5
5006 echo "${ECHO_T}$wxconfig" >&6; }
5007 else
5008   { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5010 fi
5011
5012
5013 fi
5014
5015 # Make sure we can run config.sub.
5016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5017   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5019    { (exit 1); exit 1; }; }
5020
5021 { echo "$as_me:$LINENO: checking build system type" >&5
5022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5023 if test "${ac_cv_build+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   ac_build_alias=$build_alias
5027 test "x$ac_build_alias" = x &&
5028   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5029 test "x$ac_build_alias" = x &&
5030   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5032    { (exit 1); exit 1; }; }
5033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5034   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5036    { (exit 1); exit 1; }; }
5037
5038 fi
5039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5040 echo "${ECHO_T}$ac_cv_build" >&6; }
5041 case $ac_cv_build in
5042 *-*-*) ;;
5043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5044 echo "$as_me: error: invalid value of canonical build" >&2;}
5045    { (exit 1); exit 1; }; };;
5046 esac
5047 build=$ac_cv_build
5048 ac_save_IFS=$IFS; IFS='-'
5049 set x $ac_cv_build
5050 shift
5051 build_cpu=$1
5052 build_vendor=$2
5053 shift; shift
5054 # Remember, the first character of IFS is used to create $*,
5055 # except with old shells:
5056 build_os=$*
5057 IFS=$ac_save_IFS
5058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5059
5060
5061 { echo "$as_me:$LINENO: checking host system type" >&5
5062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5063 if test "${ac_cv_host+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   if test "x$host_alias" = x; then
5067   ac_cv_host=$ac_cv_build
5068 else
5069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5070     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5072    { (exit 1); exit 1; }; }
5073 fi
5074
5075 fi
5076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5077 echo "${ECHO_T}$ac_cv_host" >&6; }
5078 case $ac_cv_host in
5079 *-*-*) ;;
5080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5081 echo "$as_me: error: invalid value of canonical host" >&2;}
5082    { (exit 1); exit 1; }; };;
5083 esac
5084 host=$ac_cv_host
5085 ac_save_IFS=$IFS; IFS='-'
5086 set x $ac_cv_host
5087 shift
5088 host_cpu=$1
5089 host_vendor=$2
5090 shift; shift
5091 # Remember, the first character of IFS is used to create $*,
5092 # except with old shells:
5093 host_os=$*
5094 IFS=$ac_save_IFS
5095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5096
5097
5098 { echo "$as_me:$LINENO: checking for inline" >&5
5099 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5100 if test "${ac_cv_c_inline+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   ac_cv_c_inline=no
5104 for ac_kw in inline __inline__ __inline; do
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111 #ifndef __cplusplus
5112 typedef int foo_t;
5113 static $ac_kw foo_t static_foo () {return 0; }
5114 $ac_kw foo_t foo () {return 0; }
5115 #endif
5116
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (ac_try="$ac_compile"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_compile") 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } && {
5132          test -z "$ac_c_werror_flag" ||
5133          test ! -s conftest.err
5134        } && test -s conftest.$ac_objext; then
5135   ac_cv_c_inline=$ac_kw
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140
5141 fi
5142
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144   test "$ac_cv_c_inline" != no && break
5145 done
5146
5147 fi
5148 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5149 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5150
5151
5152 case $ac_cv_c_inline in
5153   inline | yes) ;;
5154   *)
5155     case $ac_cv_c_inline in
5156       no) ac_val=;;
5157       *) ac_val=$ac_cv_c_inline;;
5158     esac
5159     cat >>confdefs.h <<_ACEOF
5160 #ifndef __cplusplus
5161 #define inline $ac_val
5162 #endif
5163 _ACEOF
5164     ;;
5165 esac
5166
5167 { echo "$as_me:$LINENO: checking for short" >&5
5168 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5169 if test "${ac_cv_type_short+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178 $ac_includes_default
5179 typedef short ac__type_new_;
5180 int
5181 main ()
5182 {
5183 if ((ac__type_new_ *) 0)
5184   return 0;
5185 if (sizeof (ac__type_new_))
5186   return 0;
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (ac_try="$ac_compile"
5193 case "(($ac_try" in
5194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195   *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198   (eval "$ac_compile") 2>conftest.er1
5199   ac_status=$?
5200   grep -v '^ *+' conftest.er1 >conftest.err
5201   rm -f conftest.er1
5202   cat conftest.err >&5
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } && {
5205          test -z "$ac_c_werror_flag" ||
5206          test ! -s conftest.err
5207        } && test -s conftest.$ac_objext; then
5208   ac_cv_type_short=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213         ac_cv_type_short=no
5214 fi
5215
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 fi
5218 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5219 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5220
5221 # The cast to long int works around a bug in the HP C Compiler
5222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5224 # This bug is HP SR number 8606223364.
5225 { echo "$as_me:$LINENO: checking size of short" >&5
5226 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5227 if test "${ac_cv_sizeof_short+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test "$cross_compiling" = yes; then
5231   # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 $ac_includes_default
5239    typedef short ac__type_sizeof_;
5240 int
5241 main ()
5242 {
5243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5244 test_array [0] = 0
5245
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compile") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } && {
5264          test -z "$ac_c_werror_flag" ||
5265          test ! -s conftest.err
5266        } && test -s conftest.$ac_objext; then
5267   ac_lo=0 ac_mid=0
5268   while :; do
5269     cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276    typedef short ac__type_sizeof_;
5277 int
5278 main ()
5279 {
5280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5281 test_array [0] = 0
5282
5283   ;
5284   return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_compile") 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } && {
5301          test -z "$ac_c_werror_flag" ||
5302          test ! -s conftest.err
5303        } && test -s conftest.$ac_objext; then
5304   ac_hi=$ac_mid; break
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309         ac_lo=`expr $ac_mid + 1`
5310                         if test $ac_lo -le $ac_mid; then
5311                           ac_lo= ac_hi=
5312                           break
5313                         fi
5314                         ac_mid=`expr 2 '*' $ac_mid + 1`
5315 fi
5316
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318   done
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323         cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330    typedef short ac__type_sizeof_;
5331 int
5332 main ()
5333 {
5334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5335 test_array [0] = 0
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } && {
5355          test -z "$ac_c_werror_flag" ||
5356          test ! -s conftest.err
5357        } && test -s conftest.$ac_objext; then
5358   ac_hi=-1 ac_mid=-1
5359   while :; do
5360     cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 $ac_includes_default
5367    typedef short ac__type_sizeof_;
5368 int
5369 main ()
5370 {
5371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5372 test_array [0] = 0
5373
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_compile") 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } && {
5392          test -z "$ac_c_werror_flag" ||
5393          test ! -s conftest.err
5394        } && test -s conftest.$ac_objext; then
5395   ac_lo=$ac_mid; break
5396 else
5397   echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5399
5400         ac_hi=`expr '(' $ac_mid ')' - 1`
5401                         if test $ac_mid -le $ac_hi; then
5402                           ac_lo= ac_hi=
5403                           break
5404                         fi
5405                         ac_mid=`expr 2 '*' $ac_mid`
5406 fi
5407
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409   done
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414         ac_lo= ac_hi=
5415 fi
5416
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 # Binary search between lo and hi bounds.
5422 while test "x$ac_lo" != "x$ac_hi"; do
5423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5424   cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h.  */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h.  */
5430 $ac_includes_default
5431    typedef short ac__type_sizeof_;
5432 int
5433 main ()
5434 {
5435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5436 test_array [0] = 0
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_compile") 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } && {
5456          test -z "$ac_c_werror_flag" ||
5457          test ! -s conftest.err
5458        } && test -s conftest.$ac_objext; then
5459   ac_hi=$ac_mid
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464         ac_lo=`expr '(' $ac_mid ')' + 1`
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 done
5469 case $ac_lo in
5470 ?*) ac_cv_sizeof_short=$ac_lo;;
5471 '') if test "$ac_cv_type_short" = yes; then
5472      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: cannot compute sizeof (short)
5475 See \`config.log' for more details." >&2;}
5476    { (exit 77); exit 77; }; }
5477    else
5478      ac_cv_sizeof_short=0
5479    fi ;;
5480 esac
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 $ac_includes_default
5489    typedef short ac__type_sizeof_;
5490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5492 #include <stdio.h>
5493 #include <stdlib.h>
5494 int
5495 main ()
5496 {
5497
5498   FILE *f = fopen ("conftest.val", "w");
5499   if (! f)
5500     return 1;
5501   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5502     {
5503       long int i = longval ();
5504       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5505         return 1;
5506       fprintf (f, "%ld\n", i);
5507     }
5508   else
5509     {
5510       unsigned long int i = ulongval ();
5511       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5512         return 1;
5513       fprintf (f, "%lu\n", i);
5514     }
5515   return ferror (f) || fclose (f) != 0;
5516
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest$ac_exeext
5522 if { (ac_try="$ac_link"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_link") 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5532   { (case "(($ac_try" in
5533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534   *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537   (eval "$ac_try") 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_sizeof_short=`cat conftest.val`
5542 else
5543   echo "$as_me: program exited with status $ac_status" >&5
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ( exit $ac_status )
5548 if test "$ac_cv_type_short" = yes; then
5549      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (short)
5552 See \`config.log' for more details." >&2;}
5553    { (exit 77); exit 77; }; }
5554    else
5555      ac_cv_sizeof_short=0
5556    fi
5557 fi
5558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 rm -f conftest.val
5561 fi
5562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5563 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5564
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define SIZEOF_SHORT $ac_cv_sizeof_short
5569 _ACEOF
5570
5571
5572 { echo "$as_me:$LINENO: checking for int" >&5
5573 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5574 if test "${ac_cv_type_int+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583 $ac_includes_default
5584 typedef int ac__type_new_;
5585 int
5586 main ()
5587 {
5588 if ((ac__type_new_ *) 0)
5589   return 0;
5590 if (sizeof (ac__type_new_))
5591   return 0;
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_compile") 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
5607   cat conftest.err >&5
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } && {
5610          test -z "$ac_c_werror_flag" ||
5611          test ! -s conftest.err
5612        } && test -s conftest.$ac_objext; then
5613   ac_cv_type_int=yes
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618         ac_cv_type_int=no
5619 fi
5620
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 fi
5623 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5624 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5625
5626 # The cast to long int works around a bug in the HP C Compiler
5627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5629 # This bug is HP SR number 8606223364.
5630 { echo "$as_me:$LINENO: checking size of int" >&5
5631 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5632 if test "${ac_cv_sizeof_int+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   if test "$cross_compiling" = yes; then
5636   # Depending upon the size, compute the lo and hi bounds.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 $ac_includes_default
5644    typedef int ac__type_sizeof_;
5645 int
5646 main ()
5647 {
5648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5649 test_array [0] = 0
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_compile") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest.$ac_objext; then
5672   ac_lo=0 ac_mid=0
5673   while :; do
5674     cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680 $ac_includes_default
5681    typedef int ac__type_sizeof_;
5682 int
5683 main ()
5684 {
5685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5686 test_array [0] = 0
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (ac_try="$ac_compile"
5694 case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699   (eval "$ac_compile") 2>conftest.er1
5700   ac_status=$?
5701   grep -v '^ *+' conftest.er1 >conftest.err
5702   rm -f conftest.er1
5703   cat conftest.err >&5
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); } && {
5706          test -z "$ac_c_werror_flag" ||
5707          test ! -s conftest.err
5708        } && test -s conftest.$ac_objext; then
5709   ac_hi=$ac_mid; break
5710 else
5711   echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714         ac_lo=`expr $ac_mid + 1`
5715                         if test $ac_lo -le $ac_mid; then
5716                           ac_lo= ac_hi=
5717                           break
5718                         fi
5719                         ac_mid=`expr 2 '*' $ac_mid + 1`
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723   done
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728         cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h.  */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h.  */
5734 $ac_includes_default
5735    typedef int ac__type_sizeof_;
5736 int
5737 main ()
5738 {
5739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5740 test_array [0] = 0
5741
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_compile") 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } && {
5760          test -z "$ac_c_werror_flag" ||
5761          test ! -s conftest.err
5762        } && test -s conftest.$ac_objext; then
5763   ac_hi=-1 ac_mid=-1
5764   while :; do
5765     cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 $ac_includes_default
5772    typedef int ac__type_sizeof_;
5773 int
5774 main ()
5775 {
5776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5777 test_array [0] = 0
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } && {
5797          test -z "$ac_c_werror_flag" ||
5798          test ! -s conftest.err
5799        } && test -s conftest.$ac_objext; then
5800   ac_lo=$ac_mid; break
5801 else
5802   echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805         ac_hi=`expr '(' $ac_mid ')' - 1`
5806                         if test $ac_mid -le $ac_hi; then
5807                           ac_lo= ac_hi=
5808                           break
5809                         fi
5810                         ac_mid=`expr 2 '*' $ac_mid`
5811 fi
5812
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814   done
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819         ac_lo= ac_hi=
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 # Binary search between lo and hi bounds.
5827 while test "x$ac_lo" != "x$ac_hi"; do
5828   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 $ac_includes_default
5836    typedef int ac__type_sizeof_;
5837 int
5838 main ()
5839 {
5840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5841 test_array [0] = 0
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854   (eval "$ac_compile") 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } && {
5861          test -z "$ac_c_werror_flag" ||
5862          test ! -s conftest.err
5863        } && test -s conftest.$ac_objext; then
5864   ac_hi=$ac_mid
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869         ac_lo=`expr '(' $ac_mid ')' + 1`
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 done
5874 case $ac_lo in
5875 ?*) ac_cv_sizeof_int=$ac_lo;;
5876 '') if test "$ac_cv_type_int" = yes; then
5877      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: cannot compute sizeof (int)
5880 See \`config.log' for more details." >&2;}
5881    { (exit 77); exit 77; }; }
5882    else
5883      ac_cv_sizeof_int=0
5884    fi ;;
5885 esac
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 $ac_includes_default
5894    typedef int ac__type_sizeof_;
5895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5897 #include <stdio.h>
5898 #include <stdlib.h>
5899 int
5900 main ()
5901 {
5902
5903   FILE *f = fopen ("conftest.val", "w");
5904   if (! f)
5905     return 1;
5906   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5907     {
5908       long int i = longval ();
5909       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5910         return 1;
5911       fprintf (f, "%ld\n", i);
5912     }
5913   else
5914     {
5915       unsigned long int i = ulongval ();
5916       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5917         return 1;
5918       fprintf (f, "%lu\n", i);
5919     }
5920   return ferror (f) || fclose (f) != 0;
5921
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest$ac_exeext
5927 if { (ac_try="$ac_link"
5928 case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_link") 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5937   { (case "(($ac_try" in
5938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939   *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942   (eval "$ac_try") 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_cv_sizeof_int=`cat conftest.val`
5947 else
5948   echo "$as_me: program exited with status $ac_status" >&5
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ( exit $ac_status )
5953 if test "$ac_cv_type_int" = yes; then
5954      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5955 See \`config.log' for more details." >&5
5956 echo "$as_me: error: cannot compute sizeof (int)
5957 See \`config.log' for more details." >&2;}
5958    { (exit 77); exit 77; }; }
5959    else
5960      ac_cv_sizeof_int=0
5961    fi
5962 fi
5963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5964 fi
5965 rm -f conftest.val
5966 fi
5967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5968 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5969
5970
5971
5972 cat >>confdefs.h <<_ACEOF
5973 #define SIZEOF_INT $ac_cv_sizeof_int
5974 _ACEOF
5975
5976
5977 { echo "$as_me:$LINENO: checking for long" >&5
5978 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5979 if test "${ac_cv_type_long+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 $ac_includes_default
5989 typedef long ac__type_new_;
5990 int
5991 main ()
5992 {
5993 if ((ac__type_new_ *) 0)
5994   return 0;
5995 if (sizeof (ac__type_new_))
5996   return 0;
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } && {
6015          test -z "$ac_c_werror_flag" ||
6016          test ! -s conftest.err
6017        } && test -s conftest.$ac_objext; then
6018   ac_cv_type_long=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023         ac_cv_type_long=no
6024 fi
6025
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6029 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6030
6031 # The cast to long int works around a bug in the HP C Compiler
6032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6034 # This bug is HP SR number 8606223364.
6035 { echo "$as_me:$LINENO: checking size of long" >&5
6036 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6037 if test "${ac_cv_sizeof_long+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test "$cross_compiling" = yes; then
6041   # Depending upon the size, compute the lo and hi bounds.
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048 $ac_includes_default
6049    typedef long ac__type_sizeof_;
6050 int
6051 main ()
6052 {
6053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6054 test_array [0] = 0
6055
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064   *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067   (eval "$ac_compile") 2>conftest.er1
6068   ac_status=$?
6069   grep -v '^ *+' conftest.er1 >conftest.err
6070   rm -f conftest.er1
6071   cat conftest.err >&5
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } && {
6074          test -z "$ac_c_werror_flag" ||
6075          test ! -s conftest.err
6076        } && test -s conftest.$ac_objext; then
6077   ac_lo=0 ac_mid=0
6078   while :; do
6079     cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h.  */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h.  */
6085 $ac_includes_default
6086    typedef long ac__type_sizeof_;
6087 int
6088 main ()
6089 {
6090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6091 test_array [0] = 0
6092
6093   ;
6094   return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104   (eval "$ac_compile") 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && {
6111          test -z "$ac_c_werror_flag" ||
6112          test ! -s conftest.err
6113        } && test -s conftest.$ac_objext; then
6114   ac_hi=$ac_mid; break
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119         ac_lo=`expr $ac_mid + 1`
6120                         if test $ac_lo -le $ac_mid; then
6121                           ac_lo= ac_hi=
6122                           break
6123                         fi
6124                         ac_mid=`expr 2 '*' $ac_mid + 1`
6125 fi
6126
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128   done
6129 else
6130   echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133         cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 $ac_includes_default
6140    typedef long ac__type_sizeof_;
6141 int
6142 main ()
6143 {
6144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6145 test_array [0] = 0
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_compile") 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } && {
6165          test -z "$ac_c_werror_flag" ||
6166          test ! -s conftest.err
6167        } && test -s conftest.$ac_objext; then
6168   ac_hi=-1 ac_mid=-1
6169   while :; do
6170     cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 $ac_includes_default
6177    typedef long ac__type_sizeof_;
6178 int
6179 main ()
6180 {
6181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6182 test_array [0] = 0
6183
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195   (eval "$ac_compile") 2>conftest.er1
6196   ac_status=$?
6197   grep -v '^ *+' conftest.er1 >conftest.err
6198   rm -f conftest.er1
6199   cat conftest.err >&5
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } && {
6202          test -z "$ac_c_werror_flag" ||
6203          test ! -s conftest.err
6204        } && test -s conftest.$ac_objext; then
6205   ac_lo=$ac_mid; break
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210         ac_hi=`expr '(' $ac_mid ')' - 1`
6211                         if test $ac_mid -le $ac_hi; then
6212                           ac_lo= ac_hi=
6213                           break
6214                         fi
6215                         ac_mid=`expr 2 '*' $ac_mid`
6216 fi
6217
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219   done
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224         ac_lo= ac_hi=
6225 fi
6226
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 fi
6229
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 # Binary search between lo and hi bounds.
6232 while test "x$ac_lo" != "x$ac_hi"; do
6233   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6234   cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240 $ac_includes_default
6241    typedef long ac__type_sizeof_;
6242 int
6243 main ()
6244 {
6245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6246 test_array [0] = 0
6247
6248   ;
6249   return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_compile") 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } && {
6266          test -z "$ac_c_werror_flag" ||
6267          test ! -s conftest.err
6268        } && test -s conftest.$ac_objext; then
6269   ac_hi=$ac_mid
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274         ac_lo=`expr '(' $ac_mid ')' + 1`
6275 fi
6276
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 done
6279 case $ac_lo in
6280 ?*) ac_cv_sizeof_long=$ac_lo;;
6281 '') if test "$ac_cv_type_long" = yes; then
6282      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6283 See \`config.log' for more details." >&5
6284 echo "$as_me: error: cannot compute sizeof (long)
6285 See \`config.log' for more details." >&2;}
6286    { (exit 77); exit 77; }; }
6287    else
6288      ac_cv_sizeof_long=0
6289    fi ;;
6290 esac
6291 else
6292   cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298 $ac_includes_default
6299    typedef long ac__type_sizeof_;
6300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6302 #include <stdio.h>
6303 #include <stdlib.h>
6304 int
6305 main ()
6306 {
6307
6308   FILE *f = fopen ("conftest.val", "w");
6309   if (! f)
6310     return 1;
6311   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6312     {
6313       long int i = longval ();
6314       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6315         return 1;
6316       fprintf (f, "%ld\n", i);
6317     }
6318   else
6319     {
6320       unsigned long int i = ulongval ();
6321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6322         return 1;
6323       fprintf (f, "%lu\n", i);
6324     }
6325   return ferror (f) || fclose (f) != 0;
6326
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 rm -f conftest$ac_exeext
6332 if { (ac_try="$ac_link"
6333 case "(($ac_try" in
6334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335   *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338   (eval "$ac_link") 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6342   { (case "(($ac_try" in
6343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344   *) ac_try_echo=$ac_try;;
6345 esac
6346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347   (eval "$ac_try") 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_cv_sizeof_long=`cat conftest.val`
6352 else
6353   echo "$as_me: program exited with status $ac_status" >&5
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 ( exit $ac_status )
6358 if test "$ac_cv_type_long" = yes; then
6359      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6360 See \`config.log' for more details." >&5
6361 echo "$as_me: error: cannot compute sizeof (long)
6362 See \`config.log' for more details." >&2;}
6363    { (exit 77); exit 77; }; }
6364    else
6365      ac_cv_sizeof_long=0
6366    fi
6367 fi
6368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6369 fi
6370 rm -f conftest.val
6371 fi
6372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6373 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6374
6375
6376
6377 cat >>confdefs.h <<_ACEOF
6378 #define SIZEOF_LONG $ac_cv_sizeof_long
6379 _ACEOF
6380
6381
6382 { echo "$as_me:$LINENO: checking for float" >&5
6383 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
6384 if test "${ac_cv_type_float+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 $ac_includes_default
6394 typedef float ac__type_new_;
6395 int
6396 main ()
6397 {
6398 if ((ac__type_new_ *) 0)
6399   return 0;
6400 if (sizeof (ac__type_new_))
6401   return 0;
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410   *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413   (eval "$ac_compile") 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } && {
6420          test -z "$ac_c_werror_flag" ||
6421          test ! -s conftest.err
6422        } && test -s conftest.$ac_objext; then
6423   ac_cv_type_float=yes
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428         ac_cv_type_float=no
6429 fi
6430
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 fi
6433 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6434 echo "${ECHO_T}$ac_cv_type_float" >&6; }
6435
6436 # The cast to long int works around a bug in the HP C Compiler
6437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6439 # This bug is HP SR number 8606223364.
6440 { echo "$as_me:$LINENO: checking size of float" >&5
6441 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
6442 if test "${ac_cv_sizeof_float+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   if test "$cross_compiling" = yes; then
6446   # Depending upon the size, compute the lo and hi bounds.
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453 $ac_includes_default
6454    typedef float ac__type_sizeof_;
6455 int
6456 main ()
6457 {
6458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6459 test_array [0] = 0
6460
6461   ;
6462   return 0;
6463 }
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469   *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472   (eval "$ac_compile") 2>conftest.er1
6473   ac_status=$?
6474   grep -v '^ *+' conftest.er1 >conftest.err
6475   rm -f conftest.er1
6476   cat conftest.err >&5
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } && {
6479          test -z "$ac_c_werror_flag" ||
6480          test ! -s conftest.err
6481        } && test -s conftest.$ac_objext; then
6482   ac_lo=0 ac_mid=0
6483   while :; do
6484     cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490 $ac_includes_default
6491    typedef float ac__type_sizeof_;
6492 int
6493 main ()
6494 {
6495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6496 test_array [0] = 0
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6504 case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509   (eval "$ac_compile") 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } && {
6516          test -z "$ac_c_werror_flag" ||
6517          test ! -s conftest.err
6518        } && test -s conftest.$ac_objext; then
6519   ac_hi=$ac_mid; break
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524         ac_lo=`expr $ac_mid + 1`
6525                         if test $ac_lo -le $ac_mid; then
6526                           ac_lo= ac_hi=
6527                           break
6528                         fi
6529                         ac_mid=`expr 2 '*' $ac_mid + 1`
6530 fi
6531
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533   done
6534 else
6535   echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538         cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 $ac_includes_default
6545    typedef float ac__type_sizeof_;
6546 int
6547 main ()
6548 {
6549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6550 test_array [0] = 0
6551
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563   (eval "$ac_compile") 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } && {
6570          test -z "$ac_c_werror_flag" ||
6571          test ! -s conftest.err
6572        } && test -s conftest.$ac_objext; then
6573   ac_hi=-1 ac_mid=-1
6574   while :; do
6575     cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581 $ac_includes_default
6582    typedef float ac__type_sizeof_;
6583 int
6584 main ()
6585 {
6586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6587 test_array [0] = 0
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (ac_try="$ac_compile"
6595 case "(($ac_try" in
6596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6597   *) ac_try_echo=$ac_try;;
6598 esac
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600   (eval "$ac_compile") 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } && {
6607          test -z "$ac_c_werror_flag" ||
6608          test ! -s conftest.err
6609        } && test -s conftest.$ac_objext; then
6610   ac_lo=$ac_mid; break
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615         ac_hi=`expr '(' $ac_mid ')' - 1`
6616                         if test $ac_mid -le $ac_hi; then
6617                           ac_lo= ac_hi=
6618                           break
6619                         fi
6620                         ac_mid=`expr 2 '*' $ac_mid`
6621 fi
6622
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624   done
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629         ac_lo= ac_hi=
6630 fi
6631
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 # Binary search between lo and hi bounds.
6637 while test "x$ac_lo" != "x$ac_hi"; do
6638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6639   cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 $ac_includes_default
6646    typedef float ac__type_sizeof_;
6647 int
6648 main ()
6649 {
6650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6651 test_array [0] = 0
6652
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6659 case "(($ac_try" in
6660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661   *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664   (eval "$ac_compile") 2>conftest.er1
6665   ac_status=$?
6666   grep -v '^ *+' conftest.er1 >conftest.err
6667   rm -f conftest.er1
6668   cat conftest.err >&5
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } && {
6671          test -z "$ac_c_werror_flag" ||
6672          test ! -s conftest.err
6673        } && test -s conftest.$ac_objext; then
6674   ac_hi=$ac_mid
6675 else
6676   echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679         ac_lo=`expr '(' $ac_mid ')' + 1`
6680 fi
6681
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 done
6684 case $ac_lo in
6685 ?*) ac_cv_sizeof_float=$ac_lo;;
6686 '') if test "$ac_cv_type_float" = yes; then
6687      { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6688 See \`config.log' for more details." >&5
6689 echo "$as_me: error: cannot compute sizeof (float)
6690 See \`config.log' for more details." >&2;}
6691    { (exit 77); exit 77; }; }
6692    else
6693      ac_cv_sizeof_float=0
6694    fi ;;
6695 esac
6696 else
6697   cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 $ac_includes_default
6704    typedef float ac__type_sizeof_;
6705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6707 #include <stdio.h>
6708 #include <stdlib.h>
6709 int
6710 main ()
6711 {
6712
6713   FILE *f = fopen ("conftest.val", "w");
6714   if (! f)
6715     return 1;
6716   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6717     {
6718       long int i = longval ();
6719       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6720         return 1;
6721       fprintf (f, "%ld\n", i);
6722     }
6723   else
6724     {
6725       unsigned long int i = ulongval ();
6726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6727         return 1;
6728       fprintf (f, "%lu\n", i);
6729     }
6730   return ferror (f) || fclose (f) != 0;
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest$ac_exeext
6737 if { (ac_try="$ac_link"
6738 case "(($ac_try" in
6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740   *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743   (eval "$ac_link") 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6747   { (case "(($ac_try" in
6748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749   *) ac_try_echo=$ac_try;;
6750 esac
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752   (eval "$ac_try") 2>&5
6753   ac_status=$?
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); }; }; then
6756   ac_cv_sizeof_float=`cat conftest.val`
6757 else
6758   echo "$as_me: program exited with status $ac_status" >&5
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 ( exit $ac_status )
6763 if test "$ac_cv_type_float" = yes; then
6764      { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
6765 See \`config.log' for more details." >&5
6766 echo "$as_me: error: cannot compute sizeof (float)
6767 See \`config.log' for more details." >&2;}
6768    { (exit 77); exit 77; }; }
6769    else
6770      ac_cv_sizeof_float=0
6771    fi
6772 fi
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6774 fi
6775 rm -f conftest.val
6776 fi
6777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6778 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
6779
6780
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6784 _ACEOF
6785
6786
6787 { echo "$as_me:$LINENO: checking for double" >&5
6788 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
6789 if test "${ac_cv_type_double+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 $ac_includes_default
6799 typedef double ac__type_new_;
6800 int
6801 main ()
6802 {
6803 if ((ac__type_new_ *) 0)
6804   return 0;
6805 if (sizeof (ac__type_new_))
6806   return 0;
6807   ;
6808   return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (ac_try="$ac_compile"
6813 case "(($ac_try" in
6814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815   *) ac_try_echo=$ac_try;;
6816 esac
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818   (eval "$ac_compile") 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } && {
6825          test -z "$ac_c_werror_flag" ||
6826          test ! -s conftest.err
6827        } && test -s conftest.$ac_objext; then
6828   ac_cv_type_double=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833         ac_cv_type_double=no
6834 fi
6835
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6839 echo "${ECHO_T}$ac_cv_type_double" >&6; }
6840
6841 # The cast to long int works around a bug in the HP C Compiler
6842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6844 # This bug is HP SR number 8606223364.
6845 { echo "$as_me:$LINENO: checking size of double" >&5
6846 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
6847 if test "${ac_cv_sizeof_double+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   if test "$cross_compiling" = yes; then
6851   # Depending upon the size, compute the lo and hi bounds.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h.  */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h.  */
6858 $ac_includes_default
6859    typedef double ac__type_sizeof_;
6860 int
6861 main ()
6862 {
6863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6864 test_array [0] = 0
6865
6866   ;
6867   return 0;
6868 }
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874   *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877   (eval "$ac_compile") 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } && {
6884          test -z "$ac_c_werror_flag" ||
6885          test ! -s conftest.err
6886        } && test -s conftest.$ac_objext; then
6887   ac_lo=0 ac_mid=0
6888   while :; do
6889     cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895 $ac_includes_default
6896    typedef double ac__type_sizeof_;
6897 int
6898 main ()
6899 {
6900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6901 test_array [0] = 0
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914   (eval "$ac_compile") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && {
6921          test -z "$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        } && test -s conftest.$ac_objext; then
6924   ac_hi=$ac_mid; break
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929         ac_lo=`expr $ac_mid + 1`
6930                         if test $ac_lo -le $ac_mid; then
6931                           ac_lo= ac_hi=
6932                           break
6933                         fi
6934                         ac_mid=`expr 2 '*' $ac_mid + 1`
6935 fi
6936
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938   done
6939 else
6940   echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943         cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 $ac_includes_default
6950    typedef double ac__type_sizeof_;
6951 int
6952 main ()
6953 {
6954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6955 test_array [0] = 0
6956
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_compile") 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && {
6975          test -z "$ac_c_werror_flag" ||
6976          test ! -s conftest.err
6977        } && test -s conftest.$ac_objext; then
6978   ac_hi=-1 ac_mid=-1
6979   while :; do
6980     cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 $ac_includes_default
6987    typedef double ac__type_sizeof_;
6988 int
6989 main ()
6990 {
6991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6992 test_array [0] = 0
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002   *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005   (eval "$ac_compile") 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && {
7012          test -z "$ac_c_werror_flag" ||
7013          test ! -s conftest.err
7014        } && test -s conftest.$ac_objext; then
7015   ac_lo=$ac_mid; break
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020         ac_hi=`expr '(' $ac_mid ')' - 1`
7021                         if test $ac_mid -le $ac_hi; then
7022                           ac_lo= ac_hi=
7023                           break
7024                         fi
7025                         ac_mid=`expr 2 '*' $ac_mid`
7026 fi
7027
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029   done
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034         ac_lo= ac_hi=
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 fi
7039
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 # Binary search between lo and hi bounds.
7042 while test "x$ac_lo" != "x$ac_hi"; do
7043   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7044   cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h.  */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h.  */
7050 $ac_includes_default
7051    typedef double ac__type_sizeof_;
7052 int
7053 main ()
7054 {
7055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7056 test_array [0] = 0
7057
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (ac_try="$ac_compile"
7064 case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_compile") 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && {
7076          test -z "$ac_c_werror_flag" ||
7077          test ! -s conftest.err
7078        } && test -s conftest.$ac_objext; then
7079   ac_hi=$ac_mid
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084         ac_lo=`expr '(' $ac_mid ')' + 1`
7085 fi
7086
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 done
7089 case $ac_lo in
7090 ?*) ac_cv_sizeof_double=$ac_lo;;
7091 '') if test "$ac_cv_type_double" = yes; then
7092      { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7093 See \`config.log' for more details." >&5
7094 echo "$as_me: error: cannot compute sizeof (double)
7095 See \`config.log' for more details." >&2;}
7096    { (exit 77); exit 77; }; }
7097    else
7098      ac_cv_sizeof_double=0
7099    fi ;;
7100 esac
7101 else
7102   cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108 $ac_includes_default
7109    typedef double ac__type_sizeof_;
7110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7112 #include <stdio.h>
7113 #include <stdlib.h>
7114 int
7115 main ()
7116 {
7117
7118   FILE *f = fopen ("conftest.val", "w");
7119   if (! f)
7120     return 1;
7121   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7122     {
7123       long int i = longval ();
7124       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7125         return 1;
7126       fprintf (f, "%ld\n", i);
7127     }
7128   else
7129     {
7130       unsigned long int i = ulongval ();
7131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7132         return 1;
7133       fprintf (f, "%lu\n", i);
7134     }
7135   return ferror (f) || fclose (f) != 0;
7136
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7143 case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148   (eval "$ac_link") 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7152   { (case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157   (eval "$ac_try") 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ac_cv_sizeof_double=`cat conftest.val`
7162 else
7163   echo "$as_me: program exited with status $ac_status" >&5
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 ( exit $ac_status )
7168 if test "$ac_cv_type_double" = yes; then
7169      { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
7170 See \`config.log' for more details." >&5
7171 echo "$as_me: error: cannot compute sizeof (double)
7172 See \`config.log' for more details." >&2;}
7173    { (exit 77); exit 77; }; }
7174    else
7175      ac_cv_sizeof_double=0
7176    fi
7177 fi
7178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7179 fi
7180 rm -f conftest.val
7181 fi
7182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7183 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
7184
7185
7186
7187 cat >>confdefs.h <<_ACEOF
7188 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
7189 _ACEOF
7190
7191
7192
7193
7194 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
7195 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
7196 if test "${ac_cv_lib_z_deflate+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   ac_check_lib_save_LIBS=$LIBS
7200 LIBS="-lz  $LIBS"
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207
7208 /* Override any GCC internal prototype to avoid an error.
7209    Use char because int might match the return type of a GCC
7210    builtin and then its argument prototype would still apply.  */
7211 #ifdef __cplusplus
7212 extern "C"
7213 #endif
7214 char deflate ();
7215 int
7216 main ()
7217 {
7218 return deflate ();
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext conftest$ac_exeext
7224 if { (ac_try="$ac_link"
7225 case "(($ac_try" in
7226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227   *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230   (eval "$ac_link") 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } && {
7237          test -z "$ac_c_werror_flag" ||
7238          test ! -s conftest.err
7239        } && test -s conftest$ac_exeext &&
7240        $as_test_x conftest$ac_exeext; then
7241   ac_cv_lib_z_deflate=yes
7242 else
7243   echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246         ac_cv_lib_z_deflate=no
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250       conftest$ac_exeext conftest.$ac_ext
7251 LIBS=$ac_check_lib_save_LIBS
7252 fi
7253 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
7254 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
7255 if test $ac_cv_lib_z_deflate = yes; then
7256    zlib="true"
7257 else
7258    zlib="false" ;  { echo "$as_me:$LINENO: WARNING: zlib missing. Will need zlib for PNG support" >&5
7259 echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
7260 fi
7261
7262
7263 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
7264 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
7265 if test "${ac_cv_lib_m_sin+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   ac_check_lib_save_LIBS=$LIBS
7269 LIBS="-lm  $LIBS"
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h.  */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h.  */
7276
7277 /* Override any GCC internal prototype to avoid an error.
7278    Use char because int might match the return type of a GCC
7279    builtin and then its argument prototype would still apply.  */
7280 #ifdef __cplusplus
7281 extern "C"
7282 #endif
7283 char sin ();
7284 int
7285 main ()
7286 {
7287 return sin ();
7288   ;
7289   return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (ac_try="$ac_link"
7294 case "(($ac_try" in
7295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296   *) ac_try_echo=$ac_try;;
7297 esac
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299   (eval "$ac_link") 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } && {
7306          test -z "$ac_c_werror_flag" ||
7307          test ! -s conftest.err
7308        } && test -s conftest$ac_exeext &&
7309        $as_test_x conftest$ac_exeext; then
7310   ac_cv_lib_m_sin=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315         ac_cv_lib_m_sin=no
7316 fi
7317
7318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7319       conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7321 fi
7322 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7323 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
7324 if test $ac_cv_lib_m_sin = yes; then
7325   cat >>confdefs.h <<_ACEOF
7326 #define HAVE_LIBM 1
7327 _ACEOF
7328
7329   LIBS="-lm $LIBS"
7330
7331 fi
7332
7333 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
7334 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
7335 if test "${ac_cv_lib_curses_main+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   ac_check_lib_save_LIBS=$LIBS
7339 LIBS="-lcurses  $LIBS"
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346
7347
7348 int
7349 main ()
7350 {
7351 return main ();
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (ac_try="$ac_link"
7358 case "(($ac_try" in
7359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360   *) ac_try_echo=$ac_try;;
7361 esac
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363   (eval "$ac_link") 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } && {
7370          test -z "$ac_c_werror_flag" ||
7371          test ! -s conftest.err
7372        } && test -s conftest$ac_exeext &&
7373        $as_test_x conftest$ac_exeext; then
7374   ac_cv_lib_curses_main=yes
7375 else
7376   echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379         ac_cv_lib_curses_main=no
7380 fi
7381
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383       conftest$ac_exeext conftest.$ac_ext
7384 LIBS=$ac_check_lib_save_LIBS
7385 fi
7386 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
7387 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
7388 if test $ac_cv_lib_curses_main = yes; then
7389   curses=true
7390 else
7391   curses=false
7392 fi
7393
7394 { echo "$as_me:$LINENO: checking for main in -lncurses" >&5
7395 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; }
7396 if test "${ac_cv_lib_ncurses_main+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   ac_check_lib_save_LIBS=$LIBS
7400 LIBS="-lncurses  $LIBS"
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407
7408
7409 int
7410 main ()
7411 {
7412 return main ();
7413   ;
7414   return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7419 case "(($ac_try" in
7420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421   *) ac_try_echo=$ac_try;;
7422 esac
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424   (eval "$ac_link") 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } && {
7431          test -z "$ac_c_werror_flag" ||
7432          test ! -s conftest.err
7433        } && test -s conftest$ac_exeext &&
7434        $as_test_x conftest$ac_exeext; then
7435   ac_cv_lib_ncurses_main=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440         ac_cv_lib_ncurses_main=no
7441 fi
7442
7443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444       conftest$ac_exeext conftest.$ac_ext
7445 LIBS=$ac_check_lib_save_LIBS
7446 fi
7447 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
7448 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; }
7449 if test $ac_cv_lib_ncurses_main = yes; then
7450   ncurses=true
7451 else
7452   ncurses=false
7453 fi
7454
7455 { echo "$as_me:$LINENO: checking for main in -lreadline" >&5
7456 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6; }
7457 if test "${ac_cv_lib_readline_main+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   ac_check_lib_save_LIBS=$LIBS
7461 LIBS="-lreadline -lcurses $LIBS"
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468
7469
7470 int
7471 main ()
7472 {
7473 return main ();
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7480 case "(($ac_try" in
7481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482   *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485   (eval "$ac_link") 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } && {
7492          test -z "$ac_c_werror_flag" ||
7493          test ! -s conftest.err
7494        } && test -s conftest$ac_exeext &&
7495        $as_test_x conftest$ac_exeext; then
7496   ac_cv_lib_readline_main=yes
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501         ac_cv_lib_readline_main=no
7502 fi
7503
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505       conftest$ac_exeext conftest.$ac_ext
7506 LIBS=$ac_check_lib_save_LIBS
7507 fi
7508 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
7509 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6; }
7510 if test $ac_cv_lib_readline_main = yes; then
7511   readline=true;
7512
7513 cat >>confdefs.h <<\_ACEOF
7514 #define HAVE_READLINE 1
7515 _ACEOF
7516
7517 else
7518   readline=false
7519 fi
7520
7521 wxwin=false
7522 { echo "$as_me:$LINENO: checking for main in -lwx_gtk-2.4" >&5
7523 echo $ECHO_N "checking for main in -lwx_gtk-2.4... $ECHO_C" >&6; }
7524 if test "${ac_cv_lib_wx_gtk_2_4_main+set}" = set; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527   ac_check_lib_save_LIBS=$LIBS
7528 LIBS="-lwx_gtk-2.4 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread`  $LIBS"
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535
7536
7537 int
7538 main ()
7539 {
7540 return main ();
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (ac_try="$ac_link"
7547 case "(($ac_try" in
7548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549   *) ac_try_echo=$ac_try;;
7550 esac
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552   (eval "$ac_link") 2>conftest.er1
7553   ac_status=$?
7554   grep -v '^ *+' conftest.er1 >conftest.err
7555   rm -f conftest.er1
7556   cat conftest.err >&5
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } && {
7559          test -z "$ac_c_werror_flag" ||
7560          test ! -s conftest.err
7561        } && test -s conftest$ac_exeext &&
7562        $as_test_x conftest$ac_exeext; then
7563   ac_cv_lib_wx_gtk_2_4_main=yes
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568         ac_cv_lib_wx_gtk_2_4_main=no
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572       conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_gtk_2_4_main" >&5
7576 echo "${ECHO_T}$ac_cv_lib_wx_gtk_2_4_main" >&6; }
7577 if test $ac_cv_lib_wx_gtk_2_4_main = yes; then
7578   wxwin=true; wx_gtk=true;
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_WXWINDOWS 1
7581 _ACEOF
7582
7583 fi
7584
7585 { echo "$as_me:$LINENO: checking for main in -lwx_mac-2.4" >&5
7586 echo $ECHO_N "checking for main in -lwx_mac-2.4... $ECHO_C" >&6; }
7587 if test "${ac_cv_lib_wx_mac_2_4_main+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   ac_check_lib_save_LIBS=$LIBS
7591 LIBS="-lwx_mac-2.4  $LIBS"
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h.  */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h.  */
7598
7599
7600 int
7601 main ()
7602 {
7603 return main ();
7604   ;
7605   return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (ac_try="$ac_link"
7610 case "(($ac_try" in
7611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612   *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615   (eval "$ac_link") 2>conftest.er1
7616   ac_status=$?
7617   grep -v '^ *+' conftest.er1 >conftest.err
7618   rm -f conftest.er1
7619   cat conftest.err >&5
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } && {
7622          test -z "$ac_c_werror_flag" ||
7623          test ! -s conftest.err
7624        } && test -s conftest$ac_exeext &&
7625        $as_test_x conftest$ac_exeext; then
7626   ac_cv_lib_wx_mac_2_4_main=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631         ac_cv_lib_wx_mac_2_4_main=no
7632 fi
7633
7634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7635       conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7637 fi
7638 { echo "$as_me:$LINENO: result: $ac_cv_lib_wx_mac_2_4_main" >&5
7639 echo "${ECHO_T}$ac_cv_lib_wx_mac_2_4_main" >&6; }
7640 if test $ac_cv_lib_wx_mac_2_4_main = yes; then
7641   wxwin=true; wx_mac=true;
7642 cat >>confdefs.h <<\_ACEOF
7643 #define HAVE_WXWINDOWS 1
7644 _ACEOF
7645
7646 fi
7647
7648 { echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5
7649 echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6; }
7650 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   ac_check_lib_save_LIBS=$LIBS
7654 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661
7662 /* Override any GCC internal prototype to avoid an error.
7663    Use char because int might match the return type of a GCC
7664    builtin and then its argument prototype would still apply.  */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 char fftw_malloc ();
7669 int
7670 main ()
7671 {
7672 return fftw_malloc ();
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (ac_try="$ac_link"
7679 case "(($ac_try" in
7680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681   *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684   (eval "$ac_link") 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } && {
7691          test -z "$ac_c_werror_flag" ||
7692          test ! -s conftest.err
7693        } && test -s conftest$ac_exeext &&
7694        $as_test_x conftest$ac_exeext; then
7695   ac_cv_lib_fftw3_fftw_malloc=yes
7696 else
7697   echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700         ac_cv_lib_fftw3_fftw_malloc=no
7701 fi
7702
7703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7704       conftest$ac_exeext conftest.$ac_ext
7705 LIBS=$ac_check_lib_save_LIBS
7706 fi
7707 { echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
7708 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6; }
7709 if test $ac_cv_lib_fftw3_fftw_malloc = yes; then
7710   fftw=true;
7711 cat >>confdefs.h <<\_ACEOF
7712 #define HAVE_FFTW 1
7713 _ACEOF
7714
7715 else
7716   fftw=false
7717 fi
7718
7719 { echo "$as_me:$LINENO: checking for main in -lGL" >&5
7720 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; }
7721 if test "${ac_cv_lib_GL_main+set}" = set; then
7722   echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724   ac_check_lib_save_LIBS=$LIBS
7725 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
7726 cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h.  */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h.  */
7732
7733
7734 int
7735 main ()
7736 {
7737 return main ();
7738   ;
7739   return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7744 case "(($ac_try" in
7745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746   *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749   (eval "$ac_link") 2>conftest.er1
7750   ac_status=$?
7751   grep -v '^ *+' conftest.er1 >conftest.err
7752   rm -f conftest.er1
7753   cat conftest.err >&5
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } && {
7756          test -z "$ac_c_werror_flag" ||
7757          test ! -s conftest.err
7758        } && test -s conftest$ac_exeext &&
7759        $as_test_x conftest$ac_exeext; then
7760   ac_cv_lib_GL_main=yes
7761 else
7762   echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765         ac_cv_lib_GL_main=no
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769       conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
7773 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; }
7774 if test $ac_cv_lib_GL_main = yes; then
7775   libgl=true
7776 else
7777   libgl=false
7778 fi
7779
7780 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7781 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
7782 if test "${ac_cv_lib_pthread_main+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   ac_check_lib_save_LIBS=$LIBS
7786 LIBS="-lpthread  $LIBS"
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793
7794
7795 int
7796 main ()
7797 {
7798 return main ();
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7805 case "(($ac_try" in
7806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807   *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810   (eval "$ac_link") 2>conftest.er1
7811   ac_status=$?
7812   grep -v '^ *+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } && {
7817          test -z "$ac_c_werror_flag" ||
7818          test ! -s conftest.err
7819        } && test -s conftest$ac_exeext &&
7820        $as_test_x conftest$ac_exeext; then
7821   ac_cv_lib_pthread_main=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826         ac_cv_lib_pthread_main=no
7827 fi
7828
7829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7830       conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7832 fi
7833 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7834 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
7835 if test $ac_cv_lib_pthread_main = yes; then
7836   pthread=true
7837 else
7838   pthread=false
7839 fi
7840
7841
7842 if test "$zlib" = "true" ; then
7843   { echo "$as_me:$LINENO: checking for main in -lpng" >&5
7844 echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
7845 if test "${ac_cv_lib_png_main+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lpng -lz -lm $LIBS"
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h.  */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h.  */
7856
7857
7858 int
7859 main ()
7860 {
7861 return main ();
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7868 case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_link") 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } && {
7880          test -z "$ac_c_werror_flag" ||
7881          test ! -s conftest.err
7882        } && test -s conftest$ac_exeext &&
7883        $as_test_x conftest$ac_exeext; then
7884   ac_cv_lib_png_main=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889         ac_cv_lib_png_main=no
7890 fi
7891
7892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7893       conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7895 fi
7896 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
7897 echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
7898 if test $ac_cv_lib_png_main = yes; then
7899   png=true ;
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_PNG 1
7902 _ACEOF
7903
7904 else
7905   png=false
7906 fi
7907
7908 fi
7909
7910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7912 if test "${ac_cv_header_stdc+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h.  */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h.  */
7921 #include <stdlib.h>
7922 #include <stdarg.h>
7923 #include <string.h>
7924 #include <float.h>
7925
7926 int
7927 main ()
7928 {
7929
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_compile") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } && {
7948          test -z "$ac_c_werror_flag" ||
7949          test ! -s conftest.err
7950        } && test -s conftest.$ac_objext; then
7951   ac_cv_header_stdc=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         ac_cv_header_stdc=no
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960
7961 if test $ac_cv_header_stdc = yes; then
7962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963   cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h.  */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h.  */
7969 #include <string.h>
7970
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973   $EGREP "memchr" >/dev/null 2>&1; then
7974   :
7975 else
7976   ac_cv_header_stdc=no
7977 fi
7978 rm -f conftest*
7979
7980 fi
7981
7982 if test $ac_cv_header_stdc = yes; then
7983   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7984   cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990 #include <stdlib.h>
7991
7992 _ACEOF
7993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7994   $EGREP "free" >/dev/null 2>&1; then
7995   :
7996 else
7997   ac_cv_header_stdc=no
7998 fi
7999 rm -f conftest*
8000
8001 fi
8002
8003 if test $ac_cv_header_stdc = yes; then
8004   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8005   if test "$cross_compiling" = yes; then
8006   :
8007 else
8008   cat >conftest.$ac_ext <<_ACEOF
8009 /* confdefs.h.  */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h.  */
8014 #include <ctype.h>
8015 #include <stdlib.h>
8016 #if ((' ' & 0x0FF) == 0x020)
8017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8019 #else
8020 # define ISLOWER(c) \
8021                    (('a' <= (c) && (c) <= 'i') \
8022                      || ('j' <= (c) && (c) <= 'r') \
8023                      || ('s' <= (c) && (c) <= 'z'))
8024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8025 #endif
8026
8027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8028 int
8029 main ()
8030 {
8031   int i;
8032   for (i = 0; i < 256; i++)
8033     if (XOR (islower (i), ISLOWER (i))
8034         || toupper (i) != TOUPPER (i))
8035       return 2;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest$ac_exeext
8040 if { (ac_try="$ac_link"
8041 case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_link") 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050   { (case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_try") 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); }; }; then
8059   :
8060 else
8061   echo "$as_me: program exited with status $ac_status" >&5
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ( exit $ac_status )
8066 ac_cv_header_stdc=no
8067 fi
8068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8069 fi
8070
8071
8072 fi
8073 fi
8074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8076 if test $ac_cv_header_stdc = yes; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define STDC_HEADERS 1
8080 _ACEOF
8081
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
8109 do
8110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8112   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 fi
8117 ac_res=`eval echo '${'$as_ac_Header'}'`
8118                { echo "$as_me:$LINENO: result: $ac_res" >&5
8119 echo "${ECHO_T}$ac_res" >&6; }
8120 else
8121   # Is the header compilable?
8122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h.  */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h.  */
8130 $ac_includes_default
8131 #include <$ac_header>
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_compile") 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } && {
8147          test -z "$ac_c_werror_flag" ||
8148          test ! -s conftest.err
8149        } && test -s conftest.$ac_objext; then
8150   ac_header_compiler=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155         ac_header_compiler=no
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160 echo "${ECHO_T}$ac_header_compiler" >&6; }
8161
8162 # Is the header present?
8163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171 #include <$ac_header>
8172 _ACEOF
8173 if { (ac_try="$ac_cpp conftest.$ac_ext"
8174 case "(($ac_try" in
8175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176   *) ac_try_echo=$ac_try;;
8177 esac
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } >/dev/null && {
8186          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8187          test ! -s conftest.err
8188        }; then
8189   ac_header_preproc=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194   ac_header_preproc=no
8195 fi
8196
8197 rm -f conftest.err conftest.$ac_ext
8198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199 echo "${ECHO_T}$ac_header_preproc" >&6; }
8200
8201 # So?  What about this header?
8202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203   yes:no: )
8204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8208     ac_header_preproc=yes
8209     ;;
8210   no:yes:* )
8211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8223
8224     ;;
8225 esac
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   eval "$as_ac_Header=\$ac_header_preproc"
8232 fi
8233 ac_res=`eval echo '${'$as_ac_Header'}'`
8234                { echo "$as_me:$LINENO: result: $ac_res" >&5
8235 echo "${ECHO_T}$ac_res" >&6; }
8236
8237 fi
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239   cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8249 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8250 if test "${ac_cv_c_const+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259
8260 int
8261 main ()
8262 {
8263 /* FIXME: Include the comments suggested by Paul. */
8264 #ifndef __cplusplus
8265   /* Ultrix mips cc rejects this.  */
8266   typedef int charset[2];
8267   const charset cs;
8268   /* SunOS 4.1.1 cc rejects this.  */
8269   char const *const *pcpcc;
8270   char **ppc;
8271   /* NEC SVR4.0.2 mips cc rejects this.  */
8272   struct point {int x, y;};
8273   static struct point const zero = {0,0};
8274   /* AIX XL C 1.02.0.0 rejects this.
8275      It does not let you subtract one const X* pointer from another in
8276      an arm of an if-expression whose if-part is not a constant
8277      expression */
8278   const char *g = "string";
8279   pcpcc = &g + (g ? g-g : 0);
8280   /* HPUX 7.0 cc rejects these. */
8281   ++pcpcc;
8282   ppc = (char**) pcpcc;
8283   pcpcc = (char const *const *) ppc;
8284   { /* SCO 3.2v4 cc rejects this.  */
8285     char *t;
8286     char const *s = 0 ? (char *) 0 : (char const *) 0;
8287
8288     *t++ = 0;
8289     if (s) return 0;
8290   }
8291   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8292     int x[] = {25, 17};
8293     const int *foo = &x[0];
8294     ++foo;
8295   }
8296   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8297     typedef const int *iptr;
8298     iptr p = 0;
8299     ++p;
8300   }
8301   { /* AIX XL C 1.02.0.0 rejects this saying
8302        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8303     struct s { int j; const int *ap[3]; };
8304     struct s *b; b->j = 5;
8305   }
8306   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8307     const int foo = 10;
8308     if (!foo) return 0;
8309   }
8310   return !cs[0] && !zero.x;
8311 #endif
8312
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8319 case "(($ac_try" in
8320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321   *) ac_try_echo=$ac_try;;
8322 esac
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324   (eval "$ac_compile") 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } && {
8331          test -z "$ac_c_werror_flag" ||
8332          test ! -s conftest.err
8333        } && test -s conftest.$ac_objext; then
8334   ac_cv_c_const=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339         ac_cv_c_const=no
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8345 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8346 if test $ac_cv_c_const = no; then
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define const
8350 _ACEOF
8351
8352 fi
8353
8354 { echo "$as_me:$LINENO: checking for off_t" >&5
8355 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8356 if test "${ac_cv_type_off_t+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h.  */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h.  */
8365 $ac_includes_default
8366 typedef off_t ac__type_new_;
8367 int
8368 main ()
8369 {
8370 if ((ac__type_new_ *) 0)
8371   return 0;
8372 if (sizeof (ac__type_new_))
8373   return 0;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_compile") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } && {
8392          test -z "$ac_c_werror_flag" ||
8393          test ! -s conftest.err
8394        } && test -s conftest.$ac_objext; then
8395   ac_cv_type_off_t=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400         ac_cv_type_off_t=no
8401 fi
8402
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8406 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8407 if test $ac_cv_type_off_t = yes; then
8408   :
8409 else
8410
8411 cat >>confdefs.h <<_ACEOF
8412 #define off_t long int
8413 _ACEOF
8414
8415 fi
8416
8417 { echo "$as_me:$LINENO: checking for size_t" >&5
8418 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8419 if test "${ac_cv_type_size_t+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428 $ac_includes_default
8429 typedef size_t ac__type_new_;
8430 int
8431 main ()
8432 {
8433 if ((ac__type_new_ *) 0)
8434   return 0;
8435 if (sizeof (ac__type_new_))
8436   return 0;
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_compile") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } && {
8455          test -z "$ac_c_werror_flag" ||
8456          test ! -s conftest.err
8457        } && test -s conftest.$ac_objext; then
8458   ac_cv_type_size_t=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_cv_type_size_t=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8469 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8470 if test $ac_cv_type_size_t = yes; then
8471   :
8472 else
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define size_t unsigned int
8476 _ACEOF
8477
8478 fi
8479
8480 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8482 if test "${ac_cv_struct_tm+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 #include <sys/types.h>
8492 #include <time.h>
8493
8494 int
8495 main ()
8496 {
8497 struct tm tm;
8498                                      int *p = &tm.tm_sec;
8499                                      return !p;
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_compile") 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } && {
8518          test -z "$ac_c_werror_flag" ||
8519          test ! -s conftest.err
8520        } && test -s conftest.$ac_objext; then
8521   ac_cv_struct_tm=time.h
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526         ac_cv_struct_tm=sys/time.h
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8532 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8533 if test $ac_cv_struct_tm = sys/time.h; then
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define TM_IN_SYS_TIME 1
8537 _ACEOF
8538
8539 fi
8540
8541
8542
8543 for ac_func in vprintf
8544 do
8545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8559 #define $ac_func innocuous_$ac_func
8560
8561 /* System header to define __stub macros and hopefully few prototypes,
8562     which can conflict with char $ac_func (); below.
8563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8564     <limits.h> exists even on freestanding compilers.  */
8565
8566 #ifdef __STDC__
8567 # include <limits.h>
8568 #else
8569 # include <assert.h>
8570 #endif
8571
8572 #undef $ac_func
8573
8574 /* Override any GCC internal prototype to avoid an error.
8575    Use char because int might match the return type of a GCC
8576    builtin and then its argument prototype would still apply.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char $ac_func ();
8581 /* The GNU C library defines this for functions which it implements
8582     to always fail with ENOSYS.  Some functions are actually named
8583     something starting with __ and the normal name is an alias.  */
8584 #if defined __stub_$ac_func || defined __stub___$ac_func
8585 choke me
8586 #endif
8587
8588 int
8589 main ()
8590 {
8591 return $ac_func ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_link") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } && {
8610          test -z "$ac_c_werror_flag" ||
8611          test ! -s conftest.err
8612        } && test -s conftest$ac_exeext &&
8613        $as_test_x conftest$ac_exeext; then
8614   eval "$as_ac_var=yes"
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619         eval "$as_ac_var=no"
8620 fi
8621
8622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8623       conftest$ac_exeext conftest.$ac_ext
8624 fi
8625 ac_res=`eval echo '${'$as_ac_var'}'`
8626                { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8628 if test `eval echo '${'$as_ac_var'}'` = yes; then
8629   cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8631 _ACEOF
8632
8633 { echo "$as_me:$LINENO: checking for _doprnt" >&5
8634 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8635 if test "${ac_cv_func__doprnt+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8646 #define _doprnt innocuous__doprnt
8647
8648 /* System header to define __stub macros and hopefully few prototypes,
8649     which can conflict with char _doprnt (); below.
8650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8651     <limits.h> exists even on freestanding compilers.  */
8652
8653 #ifdef __STDC__
8654 # include <limits.h>
8655 #else
8656 # include <assert.h>
8657 #endif
8658
8659 #undef _doprnt
8660
8661 /* Override any GCC internal prototype to avoid an error.
8662    Use char because int might match the return type of a GCC
8663    builtin and then its argument prototype would still apply.  */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 char _doprnt ();
8668 /* The GNU C library defines this for functions which it implements
8669     to always fail with ENOSYS.  Some functions are actually named
8670     something starting with __ and the normal name is an alias.  */
8671 #if defined __stub__doprnt || defined __stub____doprnt
8672 choke me
8673 #endif
8674
8675 int
8676 main ()
8677 {
8678 return _doprnt ();
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (ac_try="$ac_link"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_link") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } && {
8697          test -z "$ac_c_werror_flag" ||
8698          test ! -s conftest.err
8699        } && test -s conftest$ac_exeext &&
8700        $as_test_x conftest$ac_exeext; then
8701   ac_cv_func__doprnt=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706         ac_cv_func__doprnt=no
8707 fi
8708
8709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8710       conftest$ac_exeext conftest.$ac_ext
8711 fi
8712 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8713 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8714 if test $ac_cv_func__doprnt = yes; then
8715
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_DOPRNT 1
8718 _ACEOF
8719
8720 fi
8721
8722 fi
8723 done
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
8740 do
8741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8755 #define $ac_func innocuous_$ac_func
8756
8757 /* System header to define __stub macros and hopefully few prototypes,
8758     which can conflict with char $ac_func (); below.
8759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8760     <limits.h> exists even on freestanding compilers.  */
8761
8762 #ifdef __STDC__
8763 # include <limits.h>
8764 #else
8765 # include <assert.h>
8766 #endif
8767
8768 #undef $ac_func
8769
8770 /* Override any GCC internal prototype to avoid an error.
8771    Use char because int might match the return type of a GCC
8772    builtin and then its argument prototype would still apply.  */
8773 #ifdef __cplusplus
8774 extern "C"
8775 #endif
8776 char $ac_func ();
8777 /* The GNU C library defines this for functions which it implements
8778     to always fail with ENOSYS.  Some functions are actually named
8779     something starting with __ and the normal name is an alias.  */
8780 #if defined __stub_$ac_func || defined __stub___$ac_func
8781 choke me
8782 #endif
8783
8784 int
8785 main ()
8786 {
8787 return $ac_func ();
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8794 case "(($ac_try" in
8795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796   *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799   (eval "$ac_link") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } && {
8806          test -z "$ac_c_werror_flag" ||
8807          test ! -s conftest.err
8808        } && test -s conftest$ac_exeext &&
8809        $as_test_x conftest$ac_exeext; then
8810   eval "$as_ac_var=yes"
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815         eval "$as_ac_var=no"
8816 fi
8817
8818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8819       conftest$ac_exeext conftest.$ac_ext
8820 fi
8821 ac_res=`eval echo '${'$as_ac_var'}'`
8822                { echo "$as_me:$LINENO: result: $ac_res" >&5
8823 echo "${ECHO_T}$ac_res" >&6; }
8824 if test `eval echo '${'$as_ac_var'}'` = yes; then
8825   cat >>confdefs.h <<_ACEOF
8826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8827 _ACEOF
8828
8829 fi
8830 done
8831
8832 { echo "$as_me:$LINENO: checking for basename" >&5
8833 echo $ECHO_N "checking for basename... $ECHO_C" >&6; }
8834 if test "${ac_cv_func_basename+set}" = set; then
8835   echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 /* Define basename to an innocuous variant, in case <limits.h> declares basename.
8844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8845 #define basename innocuous_basename
8846
8847 /* System header to define __stub macros and hopefully few prototypes,
8848     which can conflict with char basename (); below.
8849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8850     <limits.h> exists even on freestanding compilers.  */
8851
8852 #ifdef __STDC__
8853 # include <limits.h>
8854 #else
8855 # include <assert.h>
8856 #endif
8857
8858 #undef basename
8859
8860 /* Override any GCC internal prototype to avoid an error.
8861    Use char because int might match the return type of a GCC
8862    builtin and then its argument prototype would still apply.  */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 char basename ();
8867 /* The GNU C library defines this for functions which it implements
8868     to always fail with ENOSYS.  Some functions are actually named
8869     something starting with __ and the normal name is an alias.  */
8870 #if defined __stub_basename || defined __stub___basename
8871 choke me
8872 #endif
8873
8874 int
8875 main ()
8876 {
8877 return basename ();
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_link") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } && {
8896          test -z "$ac_c_werror_flag" ||
8897          test ! -s conftest.err
8898        } && test -s conftest$ac_exeext &&
8899        $as_test_x conftest$ac_exeext; then
8900   ac_cv_func_basename=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905         ac_cv_func_basename=no
8906 fi
8907
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909       conftest$ac_exeext conftest.$ac_ext
8910 fi
8911 { echo "$as_me:$LINENO: result: $ac_cv_func_basename" >&5
8912 echo "${ECHO_T}$ac_cv_func_basename" >&6; }
8913
8914 { echo "$as_me:$LINENO: checking for setjmp" >&5
8915 echo $ECHO_N "checking for setjmp... $ECHO_C" >&6; }
8916 if test "${ac_cv_func_setjmp+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925 /* Define setjmp to an innocuous variant, in case <limits.h> declares setjmp.
8926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8927 #define setjmp innocuous_setjmp
8928
8929 /* System header to define __stub macros and hopefully few prototypes,
8930     which can conflict with char setjmp (); below.
8931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8932     <limits.h> exists even on freestanding compilers.  */
8933
8934 #ifdef __STDC__
8935 # include <limits.h>
8936 #else
8937 # include <assert.h>
8938 #endif
8939
8940 #undef setjmp
8941
8942 /* Override any GCC internal prototype to avoid an error.
8943    Use char because int might match the return type of a GCC
8944    builtin and then its argument prototype would still apply.  */
8945 #ifdef __cplusplus
8946 extern "C"
8947 #endif
8948 char setjmp ();
8949 /* The GNU C library defines this for functions which it implements
8950     to always fail with ENOSYS.  Some functions are actually named
8951     something starting with __ and the normal name is an alias.  */
8952 #if defined __stub_setjmp || defined __stub___setjmp
8953 choke me
8954 #endif
8955
8956 int
8957 main ()
8958 {
8959 return setjmp ();
8960   ;
8961   return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8966 case "(($ac_try" in
8967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968   *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971   (eval "$ac_link") 2>conftest.er1
8972   ac_status=$?
8973   grep -v '^ *+' conftest.er1 >conftest.err
8974   rm -f conftest.er1
8975   cat conftest.err >&5
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } && {
8978          test -z "$ac_c_werror_flag" ||
8979          test ! -s conftest.err
8980        } && test -s conftest$ac_exeext &&
8981        $as_test_x conftest$ac_exeext; then
8982   ac_cv_func_setjmp=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987         ac_cv_func_setjmp=no
8988 fi
8989
8990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8991       conftest$ac_exeext conftest.$ac_ext
8992 fi
8993 { echo "$as_me:$LINENO: result: $ac_cv_func_setjmp" >&5
8994 echo "${ECHO_T}$ac_cv_func_setjmp" >&6; }
8995
8996 { echo "$as_me:$LINENO: checking for setpriority" >&5
8997 echo $ECHO_N "checking for setpriority... $ECHO_C" >&6; }
8998 if test "${ac_cv_func_setpriority+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h.  */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h.  */
9007 /* Define setpriority to an innocuous variant, in case <limits.h> declares setpriority.
9008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9009 #define setpriority innocuous_setpriority
9010
9011 /* System header to define __stub macros and hopefully few prototypes,
9012     which can conflict with char setpriority (); below.
9013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9014     <limits.h> exists even on freestanding compilers.  */
9015
9016 #ifdef __STDC__
9017 # include <limits.h>
9018 #else
9019 # include <assert.h>
9020 #endif
9021
9022 #undef setpriority
9023
9024 /* Override any GCC internal prototype to avoid an error.
9025    Use char because int might match the return type of a GCC
9026    builtin and then its argument prototype would still apply.  */
9027 #ifdef __cplusplus
9028 extern "C"
9029 #endif
9030 char setpriority ();
9031 /* The GNU C library defines this for functions which it implements
9032     to always fail with ENOSYS.  Some functions are actually named
9033     something starting with __ and the normal name is an alias.  */
9034 #if defined __stub_setpriority || defined __stub___setpriority
9035 choke me
9036 #endif
9037
9038 int
9039 main ()
9040 {
9041 return setpriority ();
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9048 case "(($ac_try" in
9049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050   *) ac_try_echo=$ac_try;;
9051 esac
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053   (eval "$ac_link") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } && {
9060          test -z "$ac_c_werror_flag" ||
9061          test ! -s conftest.err
9062        } && test -s conftest$ac_exeext &&
9063        $as_test_x conftest$ac_exeext; then
9064   ac_cv_func_setpriority=yes
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069         ac_cv_func_setpriority=no
9070 fi
9071
9072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9073       conftest$ac_exeext conftest.$ac_ext
9074 fi
9075 { echo "$as_me:$LINENO: result: $ac_cv_func_setpriority" >&5
9076 echo "${ECHO_T}$ac_cv_func_setpriority" >&6; }
9077
9078 { echo "$as_me:$LINENO: checking for time" >&5
9079 echo $ECHO_N "checking for time... $ECHO_C" >&6; }
9080 if test "${ac_cv_func_time+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089 /* Define time to an innocuous variant, in case <limits.h> declares time.
9090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9091 #define time innocuous_time
9092
9093 /* System header to define __stub macros and hopefully few prototypes,
9094     which can conflict with char time (); below.
9095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9096     <limits.h> exists even on freestanding compilers.  */
9097
9098 #ifdef __STDC__
9099 # include <limits.h>
9100 #else
9101 # include <assert.h>
9102 #endif
9103
9104 #undef time
9105
9106 /* Override any GCC internal prototype to avoid an error.
9107    Use char because int might match the return type of a GCC
9108    builtin and then its argument prototype would still apply.  */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 char time ();
9113 /* The GNU C library defines this for functions which it implements
9114     to always fail with ENOSYS.  Some functions are actually named
9115     something starting with __ and the normal name is an alias.  */
9116 #if defined __stub_time || defined __stub___time
9117 choke me
9118 #endif
9119
9120 int
9121 main ()
9122 {
9123 return time ();
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9130 case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135   (eval "$ac_link") 2>conftest.er1
9136   ac_status=$?
9137   grep -v '^ *+' conftest.er1 >conftest.err
9138   rm -f conftest.er1
9139   cat conftest.err >&5
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } && {
9142          test -z "$ac_c_werror_flag" ||
9143          test ! -s conftest.err
9144        } && test -s conftest$ac_exeext &&
9145        $as_test_x conftest$ac_exeext; then
9146   ac_cv_func_time=yes
9147 else
9148   echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151         ac_cv_func_time=no
9152 fi
9153
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155       conftest$ac_exeext conftest.$ac_ext
9156 fi
9157 { echo "$as_me:$LINENO: result: $ac_cv_func_time" >&5
9158 echo "${ECHO_T}$ac_cv_func_time" >&6; }
9159
9160 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
9161 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
9162 if test "${ac_cv_func_gettimeofday+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
9172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9173 #define gettimeofday innocuous_gettimeofday
9174
9175 /* System header to define __stub macros and hopefully few prototypes,
9176     which can conflict with char gettimeofday (); below.
9177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9178     <limits.h> exists even on freestanding compilers.  */
9179
9180 #ifdef __STDC__
9181 # include <limits.h>
9182 #else
9183 # include <assert.h>
9184 #endif
9185
9186 #undef gettimeofday
9187
9188 /* Override any GCC internal prototype to avoid an error.
9189    Use char because int might match the return type of a GCC
9190    builtin and then its argument prototype would still apply.  */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char gettimeofday ();
9195 /* The GNU C library defines this for functions which it implements
9196     to always fail with ENOSYS.  Some functions are actually named
9197     something starting with __ and the normal name is an alias.  */
9198 #if defined __stub_gettimeofday || defined __stub___gettimeofday
9199 choke me
9200 #endif
9201
9202 int
9203 main ()
9204 {
9205 return gettimeofday ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214   *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217   (eval "$ac_link") 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } && {
9224          test -z "$ac_c_werror_flag" ||
9225          test ! -s conftest.err
9226        } && test -s conftest$ac_exeext &&
9227        $as_test_x conftest$ac_exeext; then
9228   ac_cv_func_gettimeofday=yes
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233         ac_cv_func_gettimeofday=no
9234 fi
9235
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237       conftest$ac_exeext conftest.$ac_ext
9238 fi
9239 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
9240 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
9241
9242 { echo "$as_me:$LINENO: checking for getopt" >&5
9243 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
9244 if test "${ac_cv_func_getopt+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
9254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9255 #define getopt innocuous_getopt
9256
9257 /* System header to define __stub macros and hopefully few prototypes,
9258     which can conflict with char getopt (); below.
9259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9260     <limits.h> exists even on freestanding compilers.  */
9261
9262 #ifdef __STDC__
9263 # include <limits.h>
9264 #else
9265 # include <assert.h>
9266 #endif
9267
9268 #undef getopt
9269
9270 /* Override any GCC internal prototype to avoid an error.
9271    Use char because int might match the return type of a GCC
9272    builtin and then its argument prototype would still apply.  */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 char getopt ();
9277 /* The GNU C library defines this for functions which it implements
9278     to always fail with ENOSYS.  Some functions are actually named
9279     something starting with __ and the normal name is an alias.  */
9280 #if defined __stub_getopt || defined __stub___getopt
9281 choke me
9282 #endif
9283
9284 int
9285 main ()
9286 {
9287 return getopt ();
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296   *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299   (eval "$ac_link") 2>conftest.er1
9300   ac_status=$?
9301   grep -v '^ *+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && {
9306          test -z "$ac_c_werror_flag" ||
9307          test ! -s conftest.err
9308        } && test -s conftest$ac_exeext &&
9309        $as_test_x conftest$ac_exeext; then
9310   ac_cv_func_getopt=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315         ac_cv_func_getopt=no
9316 fi
9317
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319       conftest$ac_exeext conftest.$ac_ext
9320 fi
9321 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9322 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
9323 if test $ac_cv_func_getopt = yes; then
9324    getopt=true
9325 else
9326    getopt=false
9327 fi
9328
9329
9330 if test "${OSTYPE}" = "cygwin" ; then
9331   getopt_long=false
9332 else
9333   { echo "$as_me:$LINENO: checking for getopt_long" >&5
9334 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_getopt_long+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
9345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9346 #define getopt_long innocuous_getopt_long
9347
9348 /* System header to define __stub macros and hopefully few prototypes,
9349     which can conflict with char getopt_long (); below.
9350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351     <limits.h> exists even on freestanding compilers.  */
9352
9353 #ifdef __STDC__
9354 # include <limits.h>
9355 #else
9356 # include <assert.h>
9357 #endif
9358
9359 #undef getopt_long
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362    Use char because int might match the return type of a GCC
9363    builtin and then its argument prototype would still apply.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char getopt_long ();
9368 /* The GNU C library defines this for functions which it implements
9369     to always fail with ENOSYS.  Some functions are actually named
9370     something starting with __ and the normal name is an alias.  */
9371 #if defined __stub_getopt_long || defined __stub___getopt_long
9372 choke me
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return getopt_long ();
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9385 case "(($ac_try" in
9386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387   *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390   (eval "$ac_link") 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } && {
9397          test -z "$ac_c_werror_flag" ||
9398          test ! -s conftest.err
9399        } && test -s conftest$ac_exeext &&
9400        $as_test_x conftest$ac_exeext; then
9401   ac_cv_func_getopt_long=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406         ac_cv_func_getopt_long=no
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410       conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9413 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
9414 if test $ac_cv_func_getopt_long = yes; then
9415    getopt_long=true
9416 else
9417    getopt_long=false
9418 fi
9419
9420 fi
9421
9422 if test "${getopt_long}" = "false" ; then
9423   my_includes="$my_includes -I../getopt"
9424
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_GETOPT_LONG 1
9427 _ACEOF
9428
9429   ctlibs_base="$ctlibs_base -lgetopt"
9430   LDFLAGS="$LDFLAGS -L../getopt"
9431   GETOPTLONG=1
9432 fi
9433
9434
9435 if test "$GETOPTLONG"="1"; then
9436   INCLUDED_GETOPT_LONG_TRUE=
9437   INCLUDED_GETOPT_LONG_FALSE='#'
9438 else
9439   INCLUDED_GETOPT_LONG_TRUE='#'
9440   INCLUDED_GETOPT_LONG_FALSE=
9441 fi
9442
9443
9444 if test "${readline}" = "true" ; then
9445   ctlibs_base="$ctlibs_base -lreadline"
9446   if test "${ncurses}" = "true"; then
9447     ctlibs_base="$ctlibs_base -lncurses"
9448   elif test "${curses}" = "true"; then
9449     ctlibs_base="$ctlibs_base -lcurses"
9450   fi
9451 fi
9452
9453 { echo "$as_me:$LINENO: checking debug" >&5
9454 echo $ECHO_N "checking debug... $ECHO_C" >&6; }
9455 # Check whether --enable-debug was given.
9456 if test "${enable_debug+set}" = set; then
9457   enableval=$enable_debug; case "${enableval}" in
9458   yes) debug=true
9459        { echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6; }
9461        ;;
9462   no)  debug=false
9463        { echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6; }
9465        ;;
9466   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-debug" >&5
9467 echo "${ECHO_T}bad value ${enableval} for --enable-debug" >&6; }
9468        ;;
9469 esac
9470 else
9471   debug=false; { echo "$as_me:$LINENO: result: no" >&5
9472 echo "${ECHO_T}no" >&6; }
9473 fi
9474
9475
9476
9477 if test "$debug" = "true"; then
9478   DEBUG_TRUE=
9479   DEBUG_FALSE='#'
9480 else
9481   DEBUG_TRUE='#'
9482   DEBUG_FALSE=
9483 fi
9484
9485
9486 if test "$datadir" != "" ; then
9487   CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
9488 fi
9489
9490 if test "$debug" = "true" ; then
9491   CFLAGS="$CFLAGS -g -DDEBUG"
9492
9493 cat >>confdefs.h <<\_ACEOF
9494 #define DEBUG 1
9495 _ACEOF
9496
9497 else
9498   CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define NDEBUG 1
9502 _ACEOF
9503
9504 fi
9505
9506 if test "${pthread}" = "true" ; then
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_WXTHREADS 1
9510 _ACEOF
9511
9512 fi
9513
9514 { echo "$as_me:$LINENO: checking sstream" >&5
9515 echo $ECHO_N "checking sstream... $ECHO_C" >&6; }
9516  if  test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
9517      test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
9518      test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_SSTREAM 1
9522 _ACEOF
9523
9524    { echo "$as_me:$LINENO: result: yes" >&5
9525 echo "${ECHO_T}yes" >&6; }
9526   else
9527    { echo "$as_me:$LINENO: result: no" >&5
9528 echo "${ECHO_T}no" >&6; }
9529  fi
9530
9531
9532 CFLAGS="$CFLAGS -Wall"
9533 { echo "$as_me:$LINENO: checking whether to enable verbose warnings" >&5
9534 echo $ECHO_N "checking whether to enable verbose warnings... $ECHO_C" >&6; }
9535 # Check whether --enable-verbose-warnings was given.
9536 if test "${enable_verbose_warnings+set}" = set; then
9537   enableval=$enable_verbose_warnings;  case "$enableval" in
9538   yes)
9539     { echo "$as_me:$LINENO: result: yes" >&5
9540 echo "${ECHO_T}yes" >&6; }
9541     CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
9542     ;;
9543   *)
9544     { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9546     ;;
9547   esac
9548 else
9549   { echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6; }
9551
9552 fi
9553
9554
9555 { echo "$as_me:$LINENO: checking static executables" >&5
9556 echo $ECHO_N "checking static executables... $ECHO_C" >&6; }
9557 # Check whether --enable-static was given.
9558 if test "${enable_static+set}" = set; then
9559   enableval=$enable_static;  case "$enableval" in
9560   yes)
9561     { echo "$as_me:$LINENO: result: yes" >&5
9562 echo "${ECHO_T}yes" >&6; }
9563     CFLAGS="$CFLAGS --static"
9564     ;;
9565   *)
9566     { echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6; }
9568     ;;
9569   esac
9570 else
9571   { echo "$as_me:$LINENO: result: no" >&5
9572 echo "${ECHO_T}no" >&6; }
9573
9574 fi
9575
9576
9577
9578 # Check whether --with-lam was given.
9579 if test "${with_lam+set}" = set; then
9580   withval=$with_lam;     if test "$withval" != "no" ; then
9581          trylamdir=$withval
9582      fi
9583
9584 fi
9585
9586
9587 if test "$withval" != "no" ; then
9588   if test "$prefix" != "NONE" ; then
9589      trylamdir="$trylamdir $prefix"
9590   fi
9591
9592   { echo "$as_me:$LINENO: checking for LAM MPI installation" >&5
9593 echo $ECHO_N "checking for LAM MPI installation... $ECHO_C" >&6; }
9594   for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
9595     if test -x "$testlamdir/bin/hcp" ; then
9596       if test "$testlamdir" != "/usr"; then
9597         LDFLAGS="$LDFLAGS -L$testlamdir/lib"
9598         CFLAGS="$CFLAGS -I$testlamdir/include"
9599       fi
9600       CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
9601       lamdir="$testlamdir"
9602
9603       mpienable="true"
9604
9605       break
9606     fi
9607   done
9608   { echo "$as_me:$LINENO: result: $lamdir" >&5
9609 echo "${ECHO_T}$lamdir" >&6; }
9610 else
9611   { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9613 fi
9614
9615
9616
9617 # Check whether --with-ctn was given.
9618 if test "${with_ctn+set}" = set; then
9619   withval=$with_ctn;     if test "$withval" != "no" ; then
9620          tryctndir=$withval
9621      fi
9622
9623 fi
9624
9625
9626 if test "$withval" == "no" -o "$withval" == "NONE" ; then
9627   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9628 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
9629   { echo "$as_me:$LINENO: result: disabled" >&5
9630 echo "${ECHO_T}disabled" >&6; }
9631 else
9632   { echo "$as_me:$LINENO: checking for CTN DICOM installation" >&5
9633 echo $ECHO_N "checking for CTN DICOM installation... $ECHO_C" >&6; }
9634   for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
9635     if test -f "$testctndir/libctn.a" ; then
9636       LDFLAGS="$LDFLAGS -L$testctndir"
9637       ctnlib="true"
9638       break
9639     fi
9640   done
9641   for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
9642     if test -f "$testctndir/ctn_os.h" ; then
9643       CFLAGS="$CFLAGS -I$testctndir"
9644       ctninclude="true"
9645       break
9646     fi
9647   done
9648   if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
9649       ctn="true"
9650
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_CTN_DICOM 1
9653 _ACEOF
9654
9655       { echo "$as_me:$LINENO: result: yes" >&5
9656 echo "${ECHO_T}yes" >&6; }
9657   else
9658     { echo "$as_me:$LINENO: result: no" >&5
9659 echo "${ECHO_T}no" >&6; }
9660   fi
9661 fi
9662
9663 { echo "$as_me:$LINENO: checking for CPU specification" >&5
9664 echo $ECHO_N "checking for CPU specification... $ECHO_C" >&6; }
9665
9666 # Check whether --with-mcpu was given.
9667 if test "${with_mcpu+set}" = set; then
9668   withval=$with_mcpu;
9669 fi
9670
9671
9672 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
9673   { echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6; }
9675 else
9676   { echo "$as_me:$LINENO: result: $withval" >&5
9677 echo "${ECHO_T}$withval" >&6; }
9678   CFLAGS="$CFLAGS -mcpu=$withval"
9679 fi
9680
9681 { echo "$as_me:$LINENO: checking for web access" >&5
9682 echo $ECHO_N "checking for web access... $ECHO_C" >&6; }
9683
9684 # Check whether --with-cgibin-dir was given.
9685 if test "${with_cgibin_dir+set}" = set; then
9686   withval=$with_cgibin_dir;  cgibindir=$withval ;
9687 fi
9688
9689
9690
9691 # Check whether --with-cgibin-url was given.
9692 if test "${with_cgibin_url+set}" = set; then
9693   withval=$with_cgibin_url;  cgibinurl=$withval ;
9694 fi
9695
9696
9697
9698 # Check whether --with-webdata-dir was given.
9699 if test "${with_webdata_dir+set}" = set; then
9700   withval=$with_webdata_dir;  webdatadir=$withval ;
9701 fi
9702
9703
9704
9705 # Check whether --with-webdata-url was given.
9706 if test "${with_webdata_url+set}" = set; then
9707   withval=$with_webdata_url;  webdataurl=$withval ;
9708 fi
9709
9710
9711
9712 # Check whether --with-html-dir was given.
9713 if test "${with_html_dir+set}" = set; then
9714   withval=$with_html_dir;  html_%dir=$withval ;
9715 fi
9716
9717
9718 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
9719   cgiprograms="ctsim.cgi ctsim.conf"
9720
9721 fi
9722
9723 if test -n "$html_dir" ; then
9724   htmldata=simulate.html
9725
9726 fi
9727
9728
9729 if test -n "$html_dir"; then
9730   USE_HTML_TRUE=
9731   USE_HTML_FALSE='#'
9732 else
9733   USE_HTML_TRUE='#'
9734   USE_HTML_FALSE=
9735 fi
9736
9737
9738 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then
9739   webenabled=true
9740
9741   { echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6; }
9743   if test -z "$cgibindir" ; then
9744     { { echo "$as_me:$LINENO: error: --with-cgibin-dir not set for web access" >&5
9745 echo "$as_me: error: --with-cgibin-dir not set for web access" >&2;}
9746    { (exit 1); exit 1; }; }
9747   elif test -z "$cgibinurl" ; then
9748     { { echo "$as_me:$LINENO: error: --with-cgibin-url not set for web access" >&5
9749 echo "$as_me: error: --with-cgibin-url not set for web access" >&2;}
9750    { (exit 1); exit 1; }; }
9751   elif test -z "$webdatadir" ; then
9752     { { echo "$as_me:$LINENO: error: --with-webdata-dir not set for web access" >&5
9753 echo "$as_me: error: --with-webdata-dir not set for web access" >&2;}
9754    { (exit 1); exit 1; }; }
9755   elif test -z "$webdataurl" ; then
9756     { { echo "$as_me:$LINENO: error: --with-webdata-url not set for web access" >&5
9757 echo "$as_me: error: --with-webdata-url not set for web access" >&2;}
9758    { (exit 1); exit 1; }; }
9759   elif test -z "$html_dir" ; then
9760     { { echo "$as_me:$LINENO: error: --with-html-dir not set for web access" >&5
9761 echo "$as_me: error: --with-html-dir not set for web access" >&2;}
9762    { (exit 1); exit 1; }; }
9763   fi
9764 else
9765   { echo "$as_me:$LINENO: result: no" >&5
9766 echo "${ECHO_T}no" >&6; }
9767 fi
9768
9769
9770
9771 if test -n "$lamdir"; then
9772   USE_LAM_TRUE=
9773   USE_LAM_FALSE='#'
9774 else
9775   USE_LAM_TRUE='#'
9776   USE_LAM_FALSE=
9777 fi
9778
9779
9780 { echo "$as_me:$LINENO: checking for X" >&5
9781 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9782
9783
9784 # Check whether --with-x was given.
9785 if test "${with_x+set}" = set; then
9786   withval=$with_x;
9787 fi
9788
9789 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9790 if test "x$with_x" = xno; then
9791   # The user explicitly disabled X.
9792   have_x=disabled
9793 else
9794   case $x_includes,$x_libraries in #(
9795     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9796 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9797    { (exit 1); exit 1; }; };; #(
9798     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9799   echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801   # One or both of the vars are not set, and there is no cached value.
9802 ac_x_includes=no ac_x_libraries=no
9803 rm -f -r conftest.dir
9804 if mkdir conftest.dir; then
9805   cd conftest.dir
9806   cat >Imakefile <<'_ACEOF'
9807 incroot:
9808         @echo incroot='${INCROOT}'
9809 usrlibdir:
9810         @echo usrlibdir='${USRLIBDIR}'
9811 libdir:
9812         @echo libdir='${LIBDIR}'
9813 _ACEOF
9814   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9815     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9816     for ac_var in incroot usrlibdir libdir; do
9817       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9818     done
9819     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9820     for ac_extension in a so sl; do
9821       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9822          test -f "$ac_im_libdir/libX11.$ac_extension"; then
9823         ac_im_usrlibdir=$ac_im_libdir; break
9824       fi
9825     done
9826     # Screen out bogus values from the imake configuration.  They are
9827     # bogus both because they are the default anyway, and because
9828     # using them would break gcc on systems where it needs fixed includes.
9829     case $ac_im_incroot in
9830         /usr/include) ac_x_includes= ;;
9831         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9832     esac
9833     case $ac_im_usrlibdir in
9834         /usr/lib | /lib) ;;
9835         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9836     esac
9837   fi
9838   cd ..
9839   rm -f -r conftest.dir
9840 fi
9841
9842 # Standard set of common directories for X headers.
9843 # Check X11 before X11Rn because it is often a symlink to the current release.
9844 ac_x_header_dirs='
9845 /usr/X11/include
9846 /usr/X11R6/include
9847 /usr/X11R5/include
9848 /usr/X11R4/include
9849
9850 /usr/include/X11
9851 /usr/include/X11R6
9852 /usr/include/X11R5
9853 /usr/include/X11R4
9854
9855 /usr/local/X11/include
9856 /usr/local/X11R6/include
9857 /usr/local/X11R5/include
9858 /usr/local/X11R4/include
9859
9860 /usr/local/include/X11
9861 /usr/local/include/X11R6
9862 /usr/local/include/X11R5
9863 /usr/local/include/X11R4
9864
9865 /usr/X386/include
9866 /usr/x386/include
9867 /usr/XFree86/include/X11
9868
9869 /usr/include
9870 /usr/local/include
9871 /usr/unsupported/include
9872 /usr/athena/include
9873 /usr/local/x11r5/include
9874 /usr/lpp/Xamples/include
9875
9876 /usr/openwin/include
9877 /usr/openwin/share/include'
9878
9879 if test "$ac_x_includes" = no; then
9880   # Guess where to find include files, by looking for Xlib.h.
9881   # First, try using that file with no special directory specified.
9882   cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <X11/Xlib.h>
9889 _ACEOF
9890 if { (ac_try="$ac_cpp conftest.$ac_ext"
9891 case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } >/dev/null && {
9903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9904          test ! -s conftest.err
9905        }; then
9906   # We can compile using X headers with no special include directory.
9907 ac_x_includes=
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912   for ac_dir in $ac_x_header_dirs; do
9913   if test -r "$ac_dir/X11/Xlib.h"; then
9914     ac_x_includes=$ac_dir
9915     break
9916   fi
9917 done
9918 fi
9919
9920 rm -f conftest.err conftest.$ac_ext
9921 fi # $ac_x_includes = no
9922
9923 if test "$ac_x_libraries" = no; then
9924   # Check for the libraries.
9925   # See if we find them without any special options.
9926   # Don't add to $LIBS permanently.
9927   ac_save_LIBS=$LIBS
9928   LIBS="-lX11 $LIBS"
9929   cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 #include <X11/Xlib.h>
9936 int
9937 main ()
9938 {
9939 XrmInitialize ()
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9946 case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_link") 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } && {
9958          test -z "$ac_c_werror_flag" ||
9959          test ! -s conftest.err
9960        } && test -s conftest$ac_exeext &&
9961        $as_test_x conftest$ac_exeext; then
9962   LIBS=$ac_save_LIBS
9963 # We can link X programs with no special library path.
9964 ac_x_libraries=
9965 else
9966   echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969         LIBS=$ac_save_LIBS
9970 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9971 do
9972   # Don't even attempt the hair of trying to link an X program!
9973   for ac_extension in a so sl; do
9974     if test -r "$ac_dir/libX11.$ac_extension"; then
9975       ac_x_libraries=$ac_dir
9976       break 2
9977     fi
9978   done
9979 done
9980 fi
9981
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983       conftest$ac_exeext conftest.$ac_ext
9984 fi # $ac_x_libraries = no
9985
9986 case $ac_x_includes,$ac_x_libraries in #(
9987   no,* | *,no | *\'*)
9988     # Didn't find X, or a directory has "'" in its name.
9989     ac_cv_have_x="have_x=no";; #(
9990   *)
9991     # Record where we found X for the cache.
9992     ac_cv_have_x="have_x=yes\
9993         ac_x_includes='$ac_x_includes'\
9994         ac_x_libraries='$ac_x_libraries'"
9995 esac
9996 fi
9997 ;; #(
9998     *) have_x=yes;;
9999   esac
10000   eval "$ac_cv_have_x"
10001 fi # $with_x != no
10002
10003 if test "$have_x" != yes; then
10004   { echo "$as_me:$LINENO: result: $have_x" >&5
10005 echo "${ECHO_T}$have_x" >&6; }
10006   no_x=yes
10007 else
10008   # If each of the values was on the command line, it overrides each guess.
10009   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10010   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10011   # Update the cache value to reflect the command line values.
10012   ac_cv_have_x="have_x=yes\
10013         ac_x_includes='$x_includes'\
10014         ac_x_libraries='$x_libraries'"
10015   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10016 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10017 fi
10018
10019 if test "$no_x" = yes; then
10020   # Not all programs may use this symbol, but it does not hurt to define it.
10021
10022 cat >>confdefs.h <<\_ACEOF
10023 #define X_DISPLAY_MISSING 1
10024 _ACEOF
10025
10026   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10027 else
10028   if test -n "$x_includes"; then
10029     X_CFLAGS="$X_CFLAGS -I$x_includes"
10030   fi
10031
10032   # It would also be nice to do this for all -L options, not just this one.
10033   if test -n "$x_libraries"; then
10034     X_LIBS="$X_LIBS -L$x_libraries"
10035     # For Solaris; some versions of Sun CC require a space after -R and
10036     # others require no space.  Words are not sufficient . . . .
10037     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10038 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
10039     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10040     ac_xsave_c_werror_flag=$ac_c_werror_flag
10041     ac_c_werror_flag=yes
10042     cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 int
10050 main ()
10051 {
10052
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_link") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_c_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest$ac_exeext &&
10074        $as_test_x conftest$ac_exeext; then
10075   { echo "$as_me:$LINENO: result: no" >&5
10076 echo "${ECHO_T}no" >&6; }
10077        X_LIBS="$X_LIBS -R$x_libraries"
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082         LIBS="$ac_xsave_LIBS -R $x_libraries"
10083        cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089
10090 int
10091 main ()
10092 {
10093
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } && {
10112          test -z "$ac_c_werror_flag" ||
10113          test ! -s conftest.err
10114        } && test -s conftest$ac_exeext &&
10115        $as_test_x conftest$ac_exeext; then
10116   { echo "$as_me:$LINENO: result: yes" >&5
10117 echo "${ECHO_T}yes" >&6; }
10118           X_LIBS="$X_LIBS -R $x_libraries"
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         { echo "$as_me:$LINENO: result: neither works" >&5
10124 echo "${ECHO_T}neither works" >&6; }
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10128       conftest$ac_exeext conftest.$ac_ext
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132       conftest$ac_exeext conftest.$ac_ext
10133     ac_c_werror_flag=$ac_xsave_c_werror_flag
10134     LIBS=$ac_xsave_LIBS
10135   fi
10136
10137   # Check for system-dependent libraries X programs must link with.
10138   # Do this before checking for the system-independent R6 libraries
10139   # (-lICE), since we may need -lsocket or whatever for X linking.
10140
10141   if test "$ISC" = yes; then
10142     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10143   else
10144     # Martyn Johnson says this is needed for Ultrix, if the X
10145     # libraries were built with DECnet support.  And Karl Berry says
10146     # the Alpha needs dnet_stub (dnet does not exist).
10147     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10148     cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char XOpenDisplay ();
10162 int
10163 main ()
10164 {
10165 return XOpenDisplay ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177   (eval "$ac_link") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } && {
10184          test -z "$ac_c_werror_flag" ||
10185          test ! -s conftest.err
10186        } && test -s conftest$ac_exeext &&
10187        $as_test_x conftest$ac_exeext; then
10188   :
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldnet  $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char dnet_ntoa ();
10214 int
10215 main ()
10216 {
10217 return dnet_ntoa ();
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226   *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229   (eval "$ac_link") 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } && {
10236          test -z "$ac_c_werror_flag" ||
10237          test ! -s conftest.err
10238        } && test -s conftest$ac_exeext &&
10239        $as_test_x conftest$ac_exeext; then
10240   ac_cv_lib_dnet_dnet_ntoa=yes
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245         ac_cv_lib_dnet_dnet_ntoa=no
10246 fi
10247
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249       conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10254 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10255   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10256 fi
10257
10258     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10259       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10260 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10262   echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264   ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-ldnet_stub  $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272
10273 /* Override any GCC internal prototype to avoid an error.
10274    Use char because int might match the return type of a GCC
10275    builtin and then its argument prototype would still apply.  */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char dnet_ntoa ();
10280 int
10281 main ()
10282 {
10283 return dnet_ntoa ();
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292   *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295   (eval "$ac_link") 2>conftest.er1
10296   ac_status=$?
10297   grep -v '^ *+' conftest.er1 >conftest.err
10298   rm -f conftest.er1
10299   cat conftest.err >&5
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } && {
10302          test -z "$ac_c_werror_flag" ||
10303          test ! -s conftest.err
10304        } && test -s conftest$ac_exeext &&
10305        $as_test_x conftest$ac_exeext; then
10306   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311         ac_cv_lib_dnet_stub_dnet_ntoa=no
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315       conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10319 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
10320 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10321   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10322 fi
10323
10324     fi
10325 fi
10326
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328       conftest$ac_exeext conftest.$ac_ext
10329     LIBS="$ac_xsave_LIBS"
10330
10331     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10332     # to get the SysV transport functions.
10333     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10334     # needs -lnsl.
10335     # The nsl library prevents programs from opening the X display
10336     # on Irix 5.2, according to T.E. Dickey.
10337     # The functions gethostbyname, getservbyname, and inet_addr are
10338     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10339     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
10340 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
10341 if test "${ac_cv_func_gethostbyname+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10352 #define gethostbyname innocuous_gethostbyname
10353
10354 /* System header to define __stub macros and hopefully few prototypes,
10355     which can conflict with char gethostbyname (); below.
10356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10357     <limits.h> exists even on freestanding compilers.  */
10358
10359 #ifdef __STDC__
10360 # include <limits.h>
10361 #else
10362 # include <assert.h>
10363 #endif
10364
10365 #undef gethostbyname
10366
10367 /* Override any GCC internal prototype to avoid an error.
10368    Use char because int might match the return type of a GCC
10369    builtin and then its argument prototype would still apply.  */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 char gethostbyname ();
10374 /* The GNU C library defines this for functions which it implements
10375     to always fail with ENOSYS.  Some functions are actually named
10376     something starting with __ and the normal name is an alias.  */
10377 #if defined __stub_gethostbyname || defined __stub___gethostbyname
10378 choke me
10379 #endif
10380
10381 int
10382 main ()
10383 {
10384 return gethostbyname ();
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_link") 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } && {
10403          test -z "$ac_c_werror_flag" ||
10404          test ! -s conftest.err
10405        } && test -s conftest$ac_exeext &&
10406        $as_test_x conftest$ac_exeext; then
10407   ac_cv_func_gethostbyname=yes
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412         ac_cv_func_gethostbyname=no
10413 fi
10414
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416       conftest$ac_exeext conftest.$ac_ext
10417 fi
10418 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10419 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
10420
10421     if test $ac_cv_func_gethostbyname = no; then
10422       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lnsl  $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437    Use char because int might match the return type of a GCC
10438    builtin and then its argument prototype would still apply.  */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char gethostbyname ();
10443 int
10444 main ()
10445 {
10446 return gethostbyname ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } && {
10465          test -z "$ac_c_werror_flag" ||
10466          test ! -s conftest.err
10467        } && test -s conftest$ac_exeext &&
10468        $as_test_x conftest$ac_exeext; then
10469   ac_cv_lib_nsl_gethostbyname=yes
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474         ac_cv_lib_nsl_gethostbyname=no
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478       conftest$ac_exeext conftest.$ac_ext
10479 LIBS=$ac_check_lib_save_LIBS
10480 fi
10481 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10482 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
10483 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10484   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10485 fi
10486
10487       if test $ac_cv_lib_nsl_gethostbyname = no; then
10488         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10489 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
10490 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10491   echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493   ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lbsd  $LIBS"
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503    Use char because int might match the return type of a GCC
10504    builtin and then its argument prototype would still apply.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char gethostbyname ();
10509 int
10510 main ()
10511 {
10512 return gethostbyname ();
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_link") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } && {
10531          test -z "$ac_c_werror_flag" ||
10532          test ! -s conftest.err
10533        } && test -s conftest$ac_exeext &&
10534        $as_test_x conftest$ac_exeext; then
10535   ac_cv_lib_bsd_gethostbyname=yes
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540         ac_cv_lib_bsd_gethostbyname=no
10541 fi
10542
10543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10544       conftest$ac_exeext conftest.$ac_ext
10545 LIBS=$ac_check_lib_save_LIBS
10546 fi
10547 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
10549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10550   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10551 fi
10552
10553       fi
10554     fi
10555
10556     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10557     # socket/setsockopt and other routines are undefined under SCO ODT
10558     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10559     # on later versions), says Simon Leinen: it contains gethostby*
10560     # variants that don't use the name server (or something).  -lsocket
10561     # must be given before -lnsl if both are needed.  We assume that
10562     # if connect needs -lnsl, so does gethostbyname.
10563     { echo "$as_me:$LINENO: checking for connect" >&5
10564 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
10565 if test "${ac_cv_func_connect+set}" = set; then
10566   echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568   cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10576 #define connect innocuous_connect
10577
10578 /* System header to define __stub macros and hopefully few prototypes,
10579     which can conflict with char connect (); below.
10580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581     <limits.h> exists even on freestanding compilers.  */
10582
10583 #ifdef __STDC__
10584 # include <limits.h>
10585 #else
10586 # include <assert.h>
10587 #endif
10588
10589 #undef connect
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592    Use char because int might match the return type of a GCC
10593    builtin and then its argument prototype would still apply.  */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char connect ();
10598 /* The GNU C library defines this for functions which it implements
10599     to always fail with ENOSYS.  Some functions are actually named
10600     something starting with __ and the normal name is an alias.  */
10601 #if defined __stub_connect || defined __stub___connect
10602 choke me
10603 #endif
10604
10605 int
10606 main ()
10607 {
10608 return connect ();
10609   ;
10610   return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_link") 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } && {
10627          test -z "$ac_c_werror_flag" ||
10628          test ! -s conftest.err
10629        } && test -s conftest$ac_exeext &&
10630        $as_test_x conftest$ac_exeext; then
10631   ac_cv_func_connect=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         ac_cv_func_connect=no
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640       conftest$ac_exeext conftest.$ac_ext
10641 fi
10642 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10643 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
10644
10645     if test $ac_cv_func_connect = no; then
10646       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10647 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
10648 if test "${ac_cv_lib_socket_connect+set}" = set; then
10649   echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651   ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659
10660 /* Override any GCC internal prototype to avoid an error.
10661    Use char because int might match the return type of a GCC
10662    builtin and then its argument prototype would still apply.  */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char connect ();
10667 int
10668 main ()
10669 {
10670 return connect ();
10671   ;
10672   return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679   *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682   (eval "$ac_link") 2>conftest.er1
10683   ac_status=$?
10684   grep -v '^ *+' conftest.er1 >conftest.err
10685   rm -f conftest.er1
10686   cat conftest.err >&5
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); } && {
10689          test -z "$ac_c_werror_flag" ||
10690          test ! -s conftest.err
10691        } && test -s conftest$ac_exeext &&
10692        $as_test_x conftest$ac_exeext; then
10693   ac_cv_lib_socket_connect=yes
10694 else
10695   echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698         ac_cv_lib_socket_connect=no
10699 fi
10700
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702       conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10704 fi
10705 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10706 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
10707 if test $ac_cv_lib_socket_connect = yes; then
10708   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10709 fi
10710
10711     fi
10712
10713     # Guillermo Gomez says -lposix is necessary on A/UX.
10714     { echo "$as_me:$LINENO: checking for remove" >&5
10715 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
10716 if test "${ac_cv_func_remove+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10727 #define remove innocuous_remove
10728
10729 /* System header to define __stub macros and hopefully few prototypes,
10730     which can conflict with char remove (); below.
10731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732     <limits.h> exists even on freestanding compilers.  */
10733
10734 #ifdef __STDC__
10735 # include <limits.h>
10736 #else
10737 # include <assert.h>
10738 #endif
10739
10740 #undef remove
10741
10742 /* Override any GCC internal prototype to avoid an error.
10743    Use char because int might match the return type of a GCC
10744    builtin and then its argument prototype would still apply.  */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char remove ();
10749 /* The GNU C library defines this for functions which it implements
10750     to always fail with ENOSYS.  Some functions are actually named
10751     something starting with __ and the normal name is an alias.  */
10752 #if defined __stub_remove || defined __stub___remove
10753 choke me
10754 #endif
10755
10756 int
10757 main ()
10758 {
10759 return remove ();
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_link") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } && {
10778          test -z "$ac_c_werror_flag" ||
10779          test ! -s conftest.err
10780        } && test -s conftest$ac_exeext &&
10781        $as_test_x conftest$ac_exeext; then
10782   ac_cv_func_remove=yes
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787         ac_cv_func_remove=no
10788 fi
10789
10790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791       conftest$ac_exeext conftest.$ac_ext
10792 fi
10793 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10794 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
10795
10796     if test $ac_cv_func_remove = no; then
10797       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10798 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
10799 if test "${ac_cv_lib_posix_remove+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   ac_check_lib_save_LIBS=$LIBS
10803 LIBS="-lposix  $LIBS"
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812    Use char because int might match the return type of a GCC
10813    builtin and then its argument prototype would still apply.  */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char remove ();
10818 int
10819 main ()
10820 {
10821 return remove ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_link") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } && {
10840          test -z "$ac_c_werror_flag" ||
10841          test ! -s conftest.err
10842        } && test -s conftest$ac_exeext &&
10843        $as_test_x conftest$ac_exeext; then
10844   ac_cv_lib_posix_remove=yes
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849         ac_cv_lib_posix_remove=no
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853       conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10855 fi
10856 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10857 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
10858 if test $ac_cv_lib_posix_remove = yes; then
10859   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10860 fi
10861
10862     fi
10863
10864     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10865     { echo "$as_me:$LINENO: checking for shmat" >&5
10866 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
10867 if test "${ac_cv_func_shmat+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10878 #define shmat innocuous_shmat
10879
10880 /* System header to define __stub macros and hopefully few prototypes,
10881     which can conflict with char shmat (); below.
10882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883     <limits.h> exists even on freestanding compilers.  */
10884
10885 #ifdef __STDC__
10886 # include <limits.h>
10887 #else
10888 # include <assert.h>
10889 #endif
10890
10891 #undef shmat
10892
10893 /* Override any GCC internal prototype to avoid an error.
10894    Use char because int might match the return type of a GCC
10895    builtin and then its argument prototype would still apply.  */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char shmat ();
10900 /* The GNU C library defines this for functions which it implements
10901     to always fail with ENOSYS.  Some functions are actually named
10902     something starting with __ and the normal name is an alias.  */
10903 #if defined __stub_shmat || defined __stub___shmat
10904 choke me
10905 #endif
10906
10907 int
10908 main ()
10909 {
10910 return shmat ();
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_link") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } && {
10929          test -z "$ac_c_werror_flag" ||
10930          test ! -s conftest.err
10931        } && test -s conftest$ac_exeext &&
10932        $as_test_x conftest$ac_exeext; then
10933   ac_cv_func_shmat=yes
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938         ac_cv_func_shmat=no
10939 fi
10940
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942       conftest$ac_exeext conftest.$ac_ext
10943 fi
10944 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10945 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
10946
10947     if test $ac_cv_func_shmat = no; then
10948       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10949 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
10950 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lipc  $LIBS"
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char shmat ();
10969 int
10970 main ()
10971 {
10972 return shmat ();
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984   (eval "$ac_link") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && {
10991          test -z "$ac_c_werror_flag" ||
10992          test ! -s conftest.err
10993        } && test -s conftest$ac_exeext &&
10994        $as_test_x conftest$ac_exeext; then
10995   ac_cv_lib_ipc_shmat=yes
10996 else
10997   echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000         ac_cv_lib_ipc_shmat=no
11001 fi
11002
11003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004       conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11008 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
11009 if test $ac_cv_lib_ipc_shmat = yes; then
11010   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11011 fi
11012
11013     fi
11014   fi
11015
11016   # Check for libraries that X11R6 Xt/Xaw programs need.
11017   ac_save_LDFLAGS=$LDFLAGS
11018   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11019   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11020   # check for ICE first), but we must link in the order -lSM -lICE or
11021   # we get undefined symbols.  So assume we have SM if we have ICE.
11022   # These have to be linked with before -lX11, unlike the other
11023   # libraries we check for below, so use a different variable.
11024   # John Interrante, Karl Berry
11025   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11026 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
11027 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char IceConnectionNumber ();
11046 int
11047 main ()
11048 {
11049 return IceConnectionNumber ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058   *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061   (eval "$ac_link") 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } && {
11068          test -z "$ac_c_werror_flag" ||
11069          test ! -s conftest.err
11070        } && test -s conftest$ac_exeext &&
11071        $as_test_x conftest$ac_exeext; then
11072   ac_cv_lib_ICE_IceConnectionNumber=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077         ac_cv_lib_ICE_IceConnectionNumber=no
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081       conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11083 fi
11084 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11085 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
11086 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11087   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11088 fi
11089
11090   LDFLAGS=$ac_save_LDFLAGS
11091
11092 fi
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103 if test "x$with_x" = "xno"; then
11104   NO_X_TRUE=
11105   NO_X_FALSE='#'
11106 else
11107   NO_X_TRUE='#'
11108   NO_X_FALSE=
11109 fi
11110
11111
11112 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
11113
11114
11115 LDFLAGS="$LDFLAGS -L/usr/local/lib"
11116
11117 { echo "$as_me:$LINENO: checking for X" >&5
11118 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11119 if test "$with_x" != "no" && test "$wxwin" = "true"; then
11120
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_X11 1
11123 _ACEOF
11124
11125   LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
11126   my_includes="$my_includes -I/usr/X11R6/include"
11127   ctlib_graphics="$ctlibs_base -lctgraphics"
11128   { echo "$as_me:$LINENO: result: yes" >&5
11129 echo "${ECHO_T}yes" >&6; }
11130   ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
11131   if test "$libgl" = "true" ; then
11132     # Removed "-lglut" for Mac OS X compilation
11133     ctlib_graphics="$ctlib_graphics -lGL -lGLU"
11134     if test "$wxwin" = "true" ; then
11135       if  "$wx_gtk" ; then
11136         ctlib_graphics="$ctlib_graphics `$wxconfig --libs` -lwx_gtk_gl-2.4 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
11137       elif  "$wx_mac" ; then
11138         ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.4"
11139       fi
11140     fi
11141   fi
11142   if test "$wxwin" = "true" ; then
11143
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_SGP 1
11146 _ACEOF
11147
11148   fi
11149 else
11150   { echo "$as_me:$LINENO: result: no" >&5
11151 echo "${ECHO_T}no" >&6; }
11152 fi
11153
11154
11155
11156 if test "$wxwin" = "true"; then
11157   HAVE_SGP_TRUE=
11158   HAVE_SGP_FALSE='#'
11159 else
11160   HAVE_SGP_TRUE='#'
11161   HAVE_SGP_FALSE=
11162 fi
11163
11164
11165 if test "$png" = "true" ; then
11166   ctlibs_tools="$ctlibs_tools -lpng"
11167 fi
11168 if test "$zlib" = "true" ; then
11169   ctlibs_tools="$ctlibs_tools -lz"
11170 fi
11171 if test "$fftw" = "true" ; then
11172   ctlibs_tools="$ctlibs_tools -lfftw3"
11173 fi
11174 if test "$ctn" = "true"; then
11175   ctlibs_tools="$ctlibs_tools -lctn"
11176 fi
11177
11178 { echo "$as_me:$LINENO: checking for main in -ldmallocxx" >&5
11179 echo $ECHO_N "checking for main in -ldmallocxx... $ECHO_C" >&6; }
11180 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-ldmallocxx  $LIBS"
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191
11192
11193 int
11194 main ()
11195 {
11196 return main ();
11197   ;
11198   return 0;
11199 }
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (ac_try="$ac_link"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_link") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } && {
11215          test -z "$ac_c_werror_flag" ||
11216          test ! -s conftest.err
11217        } && test -s conftest$ac_exeext &&
11218        $as_test_x conftest$ac_exeext; then
11219   ac_cv_lib_dmallocxx_main=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224         ac_cv_lib_dmallocxx_main=no
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11228       conftest$ac_exeext conftest.$ac_ext
11229 LIBS=$ac_check_lib_save_LIBS
11230 fi
11231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dmallocxx_main" >&5
11232 echo "${ECHO_T}$ac_cv_lib_dmallocxx_main" >&6; }
11233 if test $ac_cv_lib_dmallocxx_main = yes; then
11234   dmallocxx=true
11235 else
11236   dmallocxx=false
11237 fi
11238
11239 { echo "$as_me:$LINENO: checking for enable-dmalloc" >&5
11240 echo $ECHO_N "checking for enable-dmalloc... $ECHO_C" >&6; }
11241 # Check whether --enable-dmalloc was given.
11242 if test "${enable_dmalloc+set}" = set; then
11243   enableval=$enable_dmalloc; case "${enableval}" in
11244   yes) usedmalloc=true
11245        { echo "$as_me:$LINENO: result: yes" >&5
11246 echo "${ECHO_T}yes" >&6; }
11247        ;;
11248   no)  usedmalloc=false
11249        { echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6; }
11251        ;;
11252   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-dmalloc" >&5
11253 echo "${ECHO_T}bad value ${enableval} for --enable-dmalloc" >&6; }
11254        ;;
11255 esac
11256 else
11257   usedmalloc=false; { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11259 fi
11260
11261
11262 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
11263   ctlibs_tools="$ctlibs_tools -ldmallocxx"
11264
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_DMALLOC 1
11267 _ACEOF
11268
11269   { echo "$as_me:$LINENO: result: Using dmalloc" >&5
11270 echo "${ECHO_T}Using dmalloc" >&6; }
11271 fi
11272
11273 { echo "$as_me:$LINENO: checking for main in -lefence" >&5
11274 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6; }
11275 if test "${ac_cv_lib_efence_main+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-lefence  $LIBS"
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286
11287
11288 int
11289 main ()
11290 {
11291 return main ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303   (eval "$ac_link") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && {
11310          test -z "$ac_c_werror_flag" ||
11311          test ! -s conftest.err
11312        } && test -s conftest$ac_exeext &&
11313        $as_test_x conftest$ac_exeext; then
11314   ac_cv_lib_efence_main=yes
11315 else
11316   echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_cv_lib_efence_main=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11323       conftest$ac_exeext conftest.$ac_ext
11324 LIBS=$ac_check_lib_save_LIBS
11325 fi
11326 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
11327 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6; }
11328 if test $ac_cv_lib_efence_main = yes; then
11329   efence=true
11330 else
11331   efence=false
11332 fi
11333
11334 { echo "$as_me:$LINENO: checking for enable-efence" >&5
11335 echo $ECHO_N "checking for enable-efence... $ECHO_C" >&6; }
11336 # Check whether --enable-efence was given.
11337 if test "${enable_efence+set}" = set; then
11338   enableval=$enable_efence; case "${enableval}" in
11339   yes) useefence=true
11340        { echo "$as_me:$LINENO: result: yes" >&5
11341 echo "${ECHO_T}yes" >&6; }
11342        ;;
11343   no)  useefence=false
11344        { echo "$as_me:$LINENO: result: no" >&5
11345 echo "${ECHO_T}no" >&6; }
11346        ;;
11347   *) { echo "$as_me:$LINENO: result: bad value ${enableval} for --enable-efence" >&5
11348 echo "${ECHO_T}bad value ${enableval} for --enable-efence" >&6; }
11349        ;;
11350 esac
11351 else
11352   useefence=false; { echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6; }
11354 fi
11355
11356
11357 if test "$efence" = "true" -a "$useefence" = "true" ; then
11358   ctlibs_tools="$ctlibs_tools -lefence"
11359
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_EFENCE 1
11362 _ACEOF
11363
11364   { echo "$as_me:$LINENO: result: Using efence" >&5
11365 echo "${ECHO_T}Using efence" >&6; }
11366 fi
11367
11368 if test "$wxwin" = "true" ; then
11369   if  "$wx_gtk" = "true"  ||  "$wx_mac" == "true"  ; then
11370     wxcflags=`$wxconfig --cflags`
11371     wxlibs=`$wxconfig --libs`
11372   else
11373         wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
11374         wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
11375   fi
11376   CFLAGS="$CFLAGS -I../include $wxcflags"
11377   ctlib_graphics="$ctlib_graphics $wxlibs"
11378 fi
11379
11380
11381
11382
11383 if test "$wxwin"="true"; then
11384   HAVE_WXWINDOWS_TRUE=
11385   HAVE_WXWINDOWS_FALSE='#'
11386 else
11387   HAVE_WXWINDOWS_TRUE='#'
11388   HAVE_WXWINDOWS_FALSE=
11389 fi
11390
11391
11392 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
11393 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
11394
11395
11396 if test -n "$lamdir" ; then
11397   lamprograms="ctsimtext-lam"
11398
11399   lamdefs="$CFLAGS"
11400
11401 fi
11402
11403 CXXFLAGS="$CFLAGS"
11404
11405 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
11406
11407
11408 cat >confcache <<\_ACEOF
11409 # This file is a shell script that caches the results of configure
11410 # tests run on this system so they can be shared between configure
11411 # scripts and configure runs, see configure's option --config-cache.
11412 # It is not useful on other systems.  If it contains results you don't
11413 # want to keep, you may remove or edit it.
11414 #
11415 # config.status only pays attention to the cache file if you give it
11416 # the --recheck option to rerun configure.
11417 #
11418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11420 # following values.
11421
11422 _ACEOF
11423
11424 # The following way of writing the cache mishandles newlines in values,
11425 # but we know of no workaround that is simple, portable, and efficient.
11426 # So, we kill variables containing newlines.
11427 # Ultrix sh set writes to stderr and can't be redirected directly,
11428 # and sets the high bit in the cache file unless we assign to the vars.
11429 (
11430   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11431     eval ac_val=\$$ac_var
11432     case $ac_val in #(
11433     *${as_nl}*)
11434       case $ac_var in #(
11435       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11436 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11437       esac
11438       case $ac_var in #(
11439       _ | IFS | as_nl) ;; #(
11440       *) $as_unset $ac_var ;;
11441       esac ;;
11442     esac
11443   done
11444
11445   (set) 2>&1 |
11446     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11447     *${as_nl}ac_space=\ *)
11448       # `set' does not quote correctly, so add quotes (double-quote
11449       # substitution turns \\\\ into \\, and sed turns \\ into \).
11450       sed -n \
11451         "s/'/'\\\\''/g;
11452           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11453       ;; #(
11454     *)
11455       # `set' quotes correctly as required by POSIX, so do not add quotes.
11456       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11457       ;;
11458     esac |
11459     sort
11460 ) |
11461   sed '
11462      /^ac_cv_env_/b end
11463      t clear
11464      :clear
11465      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11466      t end
11467      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11468      :end' >>confcache
11469 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11470   if test -w "$cache_file"; then
11471     test "x$cache_file" != "x/dev/null" &&
11472       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11473 echo "$as_me: updating cache $cache_file" >&6;}
11474     cat confcache >$cache_file
11475   else
11476     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11477 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11478   fi
11479 fi
11480 rm -f confcache
11481
11482 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11483 # Let make expand exec_prefix.
11484 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11485
11486 DEFS=-DHAVE_CONFIG_H
11487
11488 ac_libobjs=
11489 ac_ltlibobjs=
11490 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11491   # 1. Remove the extension, and $U if already installed.
11492   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11493   ac_i=`echo "$ac_i" | sed "$ac_script"`
11494   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11495   #    will be set to the directory where LIBOBJS objects are built.
11496   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11497   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11498 done
11499 LIBOBJS=$ac_libobjs
11500
11501 LTLIBOBJS=$ac_ltlibobjs
11502
11503
11504 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11505   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11506 Usually this means the macro was only invoked conditionally." >&5
11507 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11508 Usually this means the macro was only invoked conditionally." >&2;}
11509    { (exit 1); exit 1; }; }
11510 fi
11511 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11512   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11513 Usually this means the macro was only invoked conditionally." >&5
11514 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11515 Usually this means the macro was only invoked conditionally." >&2;}
11516    { (exit 1); exit 1; }; }
11517 fi
11518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11519   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11520 Usually this means the macro was only invoked conditionally." >&5
11521 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11522 Usually this means the macro was only invoked conditionally." >&2;}
11523    { (exit 1); exit 1; }; }
11524 fi
11525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11526   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11527 Usually this means the macro was only invoked conditionally." >&5
11528 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11529 Usually this means the macro was only invoked conditionally." >&2;}
11530    { (exit 1); exit 1; }; }
11531 fi
11532 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
11533   { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11534 Usually this means the macro was only invoked conditionally." >&5
11535 echo "$as_me: error: conditional \"INCLUDED_GETOPT_LONG\" was never defined.
11536 Usually this means the macro was only invoked conditionally." >&2;}
11537    { (exit 1); exit 1; }; }
11538 fi
11539 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
11540   { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
11541 Usually this means the macro was only invoked conditionally." >&5
11542 echo "$as_me: error: conditional \"DEBUG\" was never defined.
11543 Usually this means the macro was only invoked conditionally." >&2;}
11544    { (exit 1); exit 1; }; }
11545 fi
11546 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
11547   { { echo "$as_me:$LINENO: error: conditional \"USE_HTML\" was never defined.
11548 Usually this means the macro was only invoked conditionally." >&5
11549 echo "$as_me: error: conditional \"USE_HTML\" was never defined.
11550 Usually this means the macro was only invoked conditionally." >&2;}
11551    { (exit 1); exit 1; }; }
11552 fi
11553 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
11554   { { echo "$as_me:$LINENO: error: conditional \"USE_LAM\" was never defined.
11555 Usually this means the macro was only invoked conditionally." >&5
11556 echo "$as_me: error: conditional \"USE_LAM\" was never defined.
11557 Usually this means the macro was only invoked conditionally." >&2;}
11558    { (exit 1); exit 1; }; }
11559 fi
11560 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
11561   { { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
11562 Usually this means the macro was only invoked conditionally." >&5
11563 echo "$as_me: error: conditional \"NO_X\" was never defined.
11564 Usually this means the macro was only invoked conditionally." >&2;}
11565    { (exit 1); exit 1; }; }
11566 fi
11567 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
11568   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGP\" was never defined.
11569 Usually this means the macro was only invoked conditionally." >&5
11570 echo "$as_me: error: conditional \"HAVE_SGP\" was never defined.
11571 Usually this means the macro was only invoked conditionally." >&2;}
11572    { (exit 1); exit 1; }; }
11573 fi
11574 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
11575   { { echo "$as_me:$LINENO: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11576 Usually this means the macro was only invoked conditionally." >&5
11577 echo "$as_me: error: conditional \"HAVE_WXWINDOWS\" was never defined.
11578 Usually this means the macro was only invoked conditionally." >&2;}
11579    { (exit 1); exit 1; }; }
11580 fi
11581
11582 : ${CONFIG_STATUS=./config.status}
11583 ac_clean_files_save=$ac_clean_files
11584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11585 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11586 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11587 cat >$CONFIG_STATUS <<_ACEOF
11588 #! $SHELL
11589 # Generated by $as_me.
11590 # Run this file to recreate the current configuration.
11591 # Compiler output produced by configure, useful for debugging
11592 # configure, is in config.log if it exists.
11593
11594 debug=false
11595 ac_cs_recheck=false
11596 ac_cs_silent=false
11597 SHELL=\${CONFIG_SHELL-$SHELL}
11598 _ACEOF
11599
11600 cat >>$CONFIG_STATUS <<\_ACEOF
11601 ## --------------------- ##
11602 ## M4sh Initialization.  ##
11603 ## --------------------- ##
11604
11605 # Be more Bourne compatible
11606 DUALCASE=1; export DUALCASE # for MKS sh
11607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11608   emulate sh
11609   NULLCMD=:
11610   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11611   # is contrary to our usage.  Disable this feature.
11612   alias -g '${1+"$@"}'='"$@"'
11613   setopt NO_GLOB_SUBST
11614 else
11615   case `(set -o) 2>/dev/null` in
11616   *posix*) set -o posix ;;
11617 esac
11618
11619 fi
11620
11621
11622
11623
11624 # PATH needs CR
11625 # Avoid depending upon Character Ranges.
11626 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11627 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11628 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11629 as_cr_digits='0123456789'
11630 as_cr_alnum=$as_cr_Letters$as_cr_digits
11631
11632 # The user is always right.
11633 if test "${PATH_SEPARATOR+set}" != set; then
11634   echo "#! /bin/sh" >conf$$.sh
11635   echo  "exit 0"   >>conf$$.sh
11636   chmod +x conf$$.sh
11637   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11638     PATH_SEPARATOR=';'
11639   else
11640     PATH_SEPARATOR=:
11641   fi
11642   rm -f conf$$.sh
11643 fi
11644
11645 # Support unset when possible.
11646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11647   as_unset=unset
11648 else
11649   as_unset=false
11650 fi
11651
11652
11653 # IFS
11654 # We need space, tab and new line, in precisely that order.  Quoting is
11655 # there to prevent editors from complaining about space-tab.
11656 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11657 # splitting by setting IFS to empty value.)
11658 as_nl='
11659 '
11660 IFS=" ""        $as_nl"
11661
11662 # Find who we are.  Look in the path if we contain no directory separator.
11663 case $0 in
11664   *[\\/]* ) as_myself=$0 ;;
11665   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11667 do
11668   IFS=$as_save_IFS
11669   test -z "$as_dir" && as_dir=.
11670   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11671 done
11672 IFS=$as_save_IFS
11673
11674      ;;
11675 esac
11676 # We did not find ourselves, most probably we were run as `sh COMMAND'
11677 # in which case we are not to be found in the path.
11678 if test "x$as_myself" = x; then
11679   as_myself=$0
11680 fi
11681 if test ! -f "$as_myself"; then
11682   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11683   { (exit 1); exit 1; }
11684 fi
11685
11686 # Work around bugs in pre-3.0 UWIN ksh.
11687 for as_var in ENV MAIL MAILPATH
11688 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11689 done
11690 PS1='$ '
11691 PS2='> '
11692 PS4='+ '
11693
11694 # NLS nuisances.
11695 for as_var in \
11696   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11697   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11698   LC_TELEPHONE LC_TIME
11699 do
11700   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11701     eval $as_var=C; export $as_var
11702   else
11703     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11704   fi
11705 done
11706
11707 # Required to use basename.
11708 if expr a : '\(a\)' >/dev/null 2>&1 &&
11709    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11710   as_expr=expr
11711 else
11712   as_expr=false
11713 fi
11714
11715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11716   as_basename=basename
11717 else
11718   as_basename=false
11719 fi
11720
11721
11722 # Name of the executable.
11723 as_me=`$as_basename -- "$0" ||
11724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11725          X"$0" : 'X\(//\)$' \| \
11726          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11727 echo X/"$0" |
11728     sed '/^.*\/\([^/][^/]*\)\/*$/{
11729             s//\1/
11730             q
11731           }
11732           /^X\/\(\/\/\)$/{
11733             s//\1/
11734             q
11735           }
11736           /^X\/\(\/\).*/{
11737             s//\1/
11738             q
11739           }
11740           s/.*/./; q'`
11741
11742 # CDPATH.
11743 $as_unset CDPATH
11744
11745
11746
11747   as_lineno_1=$LINENO
11748   as_lineno_2=$LINENO
11749   test "x$as_lineno_1" != "x$as_lineno_2" &&
11750   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11751
11752   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11753   # uniformly replaced by the line number.  The first 'sed' inserts a
11754   # line-number line after each line using $LINENO; the second 'sed'
11755   # does the real work.  The second script uses 'N' to pair each
11756   # line-number line with the line containing $LINENO, and appends
11757   # trailing '-' during substitution so that $LINENO is not a special
11758   # case at line end.
11759   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11760   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11761   # E. McMahon (1931-1989) for sed's syntax.  :-)
11762   sed -n '
11763     p
11764     /[$]LINENO/=
11765   ' <$as_myself |
11766     sed '
11767       s/[$]LINENO.*/&-/
11768       t lineno
11769       b
11770       :lineno
11771       N
11772       :loop
11773       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11774       t loop
11775       s/-\n.*//
11776     ' >$as_me.lineno &&
11777   chmod +x "$as_me.lineno" ||
11778     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11779    { (exit 1); exit 1; }; }
11780
11781   # Don't try to exec as it changes $[0], causing all sort of problems
11782   # (the dirname of $[0] is not the place where we might find the
11783   # original and so on.  Autoconf is especially sensitive to this).
11784   . "./$as_me.lineno"
11785   # Exit status is that of the last command.
11786   exit
11787 }
11788
11789
11790 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11791   as_dirname=dirname
11792 else
11793   as_dirname=false
11794 fi
11795
11796 ECHO_C= ECHO_N= ECHO_T=
11797 case `echo -n x` in
11798 -n*)
11799   case `echo 'x\c'` in
11800   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11801   *)   ECHO_C='\c';;
11802   esac;;
11803 *)
11804   ECHO_N='-n';;
11805 esac
11806
11807 if expr a : '\(a\)' >/dev/null 2>&1 &&
11808    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11809   as_expr=expr
11810 else
11811   as_expr=false
11812 fi
11813
11814 rm -f conf$$ conf$$.exe conf$$.file
11815 if test -d conf$$.dir; then
11816   rm -f conf$$.dir/conf$$.file
11817 else
11818   rm -f conf$$.dir
11819   mkdir conf$$.dir
11820 fi
11821 echo >conf$$.file
11822 if ln -s conf$$.file conf$$ 2>/dev/null; then
11823   as_ln_s='ln -s'
11824   # ... but there are two gotchas:
11825   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11826   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11827   # In both cases, we have to default to `cp -p'.
11828   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11829     as_ln_s='cp -p'
11830 elif ln conf$$.file conf$$ 2>/dev/null; then
11831   as_ln_s=ln
11832 else
11833   as_ln_s='cp -p'
11834 fi
11835 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11836 rmdir conf$$.dir 2>/dev/null
11837
11838 if mkdir -p . 2>/dev/null; then
11839   as_mkdir_p=:
11840 else
11841   test -d ./-p && rmdir ./-p
11842   as_mkdir_p=false
11843 fi
11844
11845 if test -x / >/dev/null 2>&1; then
11846   as_test_x='test -x'
11847 else
11848   if ls -dL / >/dev/null 2>&1; then
11849     as_ls_L_option=L
11850   else
11851     as_ls_L_option=
11852   fi
11853   as_test_x='
11854     eval sh -c '\''
11855       if test -d "$1"; then
11856         test -d "$1/.";
11857       else
11858         case $1 in
11859         -*)set "./$1";;
11860         esac;
11861         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11862         ???[sx]*):;;*)false;;esac;fi
11863     '\'' sh
11864   '
11865 fi
11866 as_executable_p=$as_test_x
11867
11868 # Sed expression to map a string onto a valid CPP name.
11869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11870
11871 # Sed expression to map a string onto a valid variable name.
11872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11873
11874
11875 exec 6>&1
11876
11877 # Save the log message, to keep $[0] and so on meaningful, and to
11878 # report actual input values of CONFIG_FILES etc. instead of their
11879 # values after options handling.
11880 ac_log="
11881 This file was extended by $as_me, which was
11882 generated by GNU Autoconf 2.61.  Invocation command line was
11883
11884   CONFIG_FILES    = $CONFIG_FILES
11885   CONFIG_HEADERS  = $CONFIG_HEADERS
11886   CONFIG_LINKS    = $CONFIG_LINKS
11887   CONFIG_COMMANDS = $CONFIG_COMMANDS
11888   $ $0 $@
11889
11890 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11891 "
11892
11893 _ACEOF
11894
11895 cat >>$CONFIG_STATUS <<_ACEOF
11896 # Files that config.status was made for.
11897 config_files="$ac_config_files"
11898 config_headers="$ac_config_headers"
11899 config_commands="$ac_config_commands"
11900
11901 _ACEOF
11902
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11904 ac_cs_usage="\
11905 \`$as_me' instantiates files from templates according to the
11906 current configuration.
11907
11908 Usage: $0 [OPTIONS] [FILE]...
11909
11910   -h, --help       print this help, then exit
11911   -V, --version    print version number and configuration settings, then exit
11912   -q, --quiet      do not print progress messages
11913   -d, --debug      don't remove temporary files
11914       --recheck    update $as_me by reconfiguring in the same conditions
11915   --file=FILE[:TEMPLATE]
11916                    instantiate the configuration file FILE
11917   --header=FILE[:TEMPLATE]
11918                    instantiate the configuration header FILE
11919
11920 Configuration files:
11921 $config_files
11922
11923 Configuration headers:
11924 $config_headers
11925
11926 Configuration commands:
11927 $config_commands
11928
11929 Report bugs to <bug-autoconf@gnu.org>."
11930
11931 _ACEOF
11932 cat >>$CONFIG_STATUS <<_ACEOF
11933 ac_cs_version="\\
11934 config.status
11935 configured by $0, generated by GNU Autoconf 2.61,
11936   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11937
11938 Copyright (C) 2006 Free Software Foundation, Inc.
11939 This config.status script is free software; the Free Software Foundation
11940 gives unlimited permission to copy, distribute and modify it."
11941
11942 ac_pwd='$ac_pwd'
11943 srcdir='$srcdir'
11944 INSTALL='$INSTALL'
11945 _ACEOF
11946
11947 cat >>$CONFIG_STATUS <<\_ACEOF
11948 # If no file are specified by the user, then we need to provide default
11949 # value.  By we need to know if files were specified by the user.
11950 ac_need_defaults=:
11951 while test $# != 0
11952 do
11953   case $1 in
11954   --*=*)
11955     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11956     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11957     ac_shift=:
11958     ;;
11959   *)
11960     ac_option=$1
11961     ac_optarg=$2
11962     ac_shift=shift
11963     ;;
11964   esac
11965
11966   case $ac_option in
11967   # Handling of the options.
11968   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11969     ac_cs_recheck=: ;;
11970   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11971     echo "$ac_cs_version"; exit ;;
11972   --debug | --debu | --deb | --de | --d | -d )
11973     debug=: ;;
11974   --file | --fil | --fi | --f )
11975     $ac_shift
11976     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11977     ac_need_defaults=false;;
11978   --header | --heade | --head | --hea )
11979     $ac_shift
11980     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11981     ac_need_defaults=false;;
11982   --he | --h)
11983     # Conflict between --help and --header
11984     { echo "$as_me: error: ambiguous option: $1
11985 Try \`$0 --help' for more information." >&2
11986    { (exit 1); exit 1; }; };;
11987   --help | --hel | -h )
11988     echo "$ac_cs_usage"; exit ;;
11989   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11990   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11991     ac_cs_silent=: ;;
11992
11993   # This is an error.
11994   -*) { echo "$as_me: error: unrecognized option: $1
11995 Try \`$0 --help' for more information." >&2
11996    { (exit 1); exit 1; }; } ;;
11997
11998   *) ac_config_targets="$ac_config_targets $1"
11999      ac_need_defaults=false ;;
12000
12001   esac
12002   shift
12003 done
12004
12005 ac_configure_extra_args=
12006
12007 if $ac_cs_silent; then
12008   exec 6>/dev/null
12009   ac_configure_extra_args="$ac_configure_extra_args --silent"
12010 fi
12011
12012 _ACEOF
12013 cat >>$CONFIG_STATUS <<_ACEOF
12014 if \$ac_cs_recheck; then
12015   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12016   CONFIG_SHELL=$SHELL
12017   export CONFIG_SHELL
12018   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12019 fi
12020
12021 _ACEOF
12022 cat >>$CONFIG_STATUS <<\_ACEOF
12023 exec 5>>config.log
12024 {
12025   echo
12026   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12027 ## Running $as_me. ##
12028 _ASBOX
12029   echo "$ac_log"
12030 } >&5
12031
12032 _ACEOF
12033 cat >>$CONFIG_STATUS <<_ACEOF
12034 #
12035 # INIT-COMMANDS
12036 #
12037 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12038
12039 _ACEOF
12040
12041 cat >>$CONFIG_STATUS <<\_ACEOF
12042
12043 # Handling of arguments.
12044 for ac_config_target in $ac_config_targets
12045 do
12046   case $ac_config_target in
12047     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12048     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12049     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12050     "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
12051     "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
12052     "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
12053     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12054     "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
12055     "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
12056     "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
12057     "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
12058     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12059     "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
12060     "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
12061     "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
12062     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12063     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12064     "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
12065     "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
12066
12067   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12068 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12069    { (exit 1); exit 1; }; };;
12070   esac
12071 done
12072
12073
12074 # If the user did not use the arguments to specify the items to instantiate,
12075 # then the envvar interface is used.  Set only those that are not.
12076 # We use the long form for the default assignment because of an extremely
12077 # bizarre bug on SunOS 4.1.3.
12078 if $ac_need_defaults; then
12079   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12080   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12081   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12082 fi
12083
12084 # Have a temporary directory for convenience.  Make it in the build tree
12085 # simply because there is no reason against having it here, and in addition,
12086 # creating and moving files from /tmp can sometimes cause problems.
12087 # Hook for its removal unless debugging.
12088 # Note that there is a small window in which the directory will not be cleaned:
12089 # after its creation but before its name has been assigned to `$tmp'.
12090 $debug ||
12091 {
12092   tmp=
12093   trap 'exit_status=$?
12094   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12095 ' 0
12096   trap '{ (exit 1); exit 1; }' 1 2 13 15
12097 }
12098 # Create a (secure) tmp directory for tmp files.
12099
12100 {
12101   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12102   test -n "$tmp" && test -d "$tmp"
12103 }  ||
12104 {
12105   tmp=./conf$$-$RANDOM
12106   (umask 077 && mkdir "$tmp")
12107 } ||
12108 {
12109    echo "$me: cannot create a temporary directory in ." >&2
12110    { (exit 1); exit 1; }
12111 }
12112
12113 #
12114 # Set up the sed scripts for CONFIG_FILES section.
12115 #
12116
12117 # No need to generate the scripts if there are no CONFIG_FILES.
12118 # This happens for instance when ./config.status config.h
12119 if test -n "$CONFIG_FILES"; then
12120
12121 _ACEOF
12122
12123
12124
12125 ac_delim='%!_!# '
12126 for ac_last_try in false false false false false :; do
12127   cat >conf$$subs.sed <<_ACEOF
12128 SHELL!$SHELL$ac_delim
12129 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12130 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12131 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12132 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12133 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12134 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12135 exec_prefix!$exec_prefix$ac_delim
12136 prefix!$prefix$ac_delim
12137 program_transform_name!$program_transform_name$ac_delim
12138 bindir!$bindir$ac_delim
12139 sbindir!$sbindir$ac_delim
12140 libexecdir!$libexecdir$ac_delim
12141 datarootdir!$datarootdir$ac_delim
12142 datadir!$datadir$ac_delim
12143 sysconfdir!$sysconfdir$ac_delim
12144 sharedstatedir!$sharedstatedir$ac_delim
12145 localstatedir!$localstatedir$ac_delim
12146 includedir!$includedir$ac_delim
12147 oldincludedir!$oldincludedir$ac_delim
12148 docdir!$docdir$ac_delim
12149 infodir!$infodir$ac_delim
12150 htmldir!$htmldir$ac_delim
12151 dvidir!$dvidir$ac_delim
12152 pdfdir!$pdfdir$ac_delim
12153 psdir!$psdir$ac_delim
12154 libdir!$libdir$ac_delim
12155 localedir!$localedir$ac_delim
12156 mandir!$mandir$ac_delim
12157 DEFS!$DEFS$ac_delim
12158 ECHO_C!$ECHO_C$ac_delim
12159 ECHO_N!$ECHO_N$ac_delim
12160 ECHO_T!$ECHO_T$ac_delim
12161 LIBS!$LIBS$ac_delim
12162 build_alias!$build_alias$ac_delim
12163 host_alias!$host_alias$ac_delim
12164 target_alias!$target_alias$ac_delim
12165 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12166 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12167 MAINT!$MAINT$ac_delim
12168 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12169 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12170 INSTALL_DATA!$INSTALL_DATA$ac_delim
12171 CYGPATH_W!$CYGPATH_W$ac_delim
12172 PACKAGE!$PACKAGE$ac_delim
12173 VERSION!$VERSION$ac_delim
12174 ACLOCAL!$ACLOCAL$ac_delim
12175 AUTOCONF!$AUTOCONF$ac_delim
12176 AUTOMAKE!$AUTOMAKE$ac_delim
12177 AUTOHEADER!$AUTOHEADER$ac_delim
12178 MAKEINFO!$MAKEINFO$ac_delim
12179 AMTAR!$AMTAR$ac_delim
12180 install_sh!$install_sh$ac_delim
12181 STRIP!$STRIP$ac_delim
12182 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12183 AWK!$AWK$ac_delim
12184 SET_MAKE!$SET_MAKE$ac_delim
12185 am__leading_dot!$am__leading_dot$ac_delim
12186 RANLIB!$RANLIB$ac_delim
12187 CC!$CC$ac_delim
12188 CFLAGS!$CFLAGS$ac_delim
12189 LDFLAGS!$LDFLAGS$ac_delim
12190 CPPFLAGS!$CPPFLAGS$ac_delim
12191 ac_ct_CC!$ac_ct_CC$ac_delim
12192 EXEEXT!$EXEEXT$ac_delim
12193 OBJEXT!$OBJEXT$ac_delim
12194 DEPDIR!$DEPDIR$ac_delim
12195 am__include!$am__include$ac_delim
12196 am__quote!$am__quote$ac_delim
12197 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12198 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12199 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12200 CCDEPMODE!$CCDEPMODE$ac_delim
12201 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12202 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12203 CXX!$CXX$ac_delim
12204 CXXFLAGS!$CXXFLAGS$ac_delim
12205 ac_ct_CXX!$ac_ct_CXX$ac_delim
12206 CXXDEPMODE!$CXXDEPMODE$ac_delim
12207 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12208 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12209 CPP!$CPP$ac_delim
12210 GREP!$GREP$ac_delim
12211 EGREP!$EGREP$ac_delim
12212 wxconfig!$wxconfig$ac_delim
12213 build!$build$ac_delim
12214 build_cpu!$build_cpu$ac_delim
12215 build_vendor!$build_vendor$ac_delim
12216 build_os!$build_os$ac_delim
12217 host!$host$ac_delim
12218 host_cpu!$host_cpu$ac_delim
12219 host_vendor!$host_vendor$ac_delim
12220 host_os!$host_os$ac_delim
12221 INCLUDED_GETOPT_LONG_TRUE!$INCLUDED_GETOPT_LONG_TRUE$ac_delim
12222 INCLUDED_GETOPT_LONG_FALSE!$INCLUDED_GETOPT_LONG_FALSE$ac_delim
12223 DEBUG_TRUE!$DEBUG_TRUE$ac_delim
12224 DEBUG_FALSE!$DEBUG_FALSE$ac_delim
12225 _ACEOF
12226
12227   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12228     break
12229   elif $ac_last_try; then
12230     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12232    { (exit 1); exit 1; }; }
12233   else
12234     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12235   fi
12236 done
12237
12238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12239 if test -n "$ac_eof"; then
12240   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12241   ac_eof=`expr $ac_eof + 1`
12242 fi
12243
12244 cat >>$CONFIG_STATUS <<_ACEOF
12245 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12247 _ACEOF
12248 sed '
12249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12250 s/^/s,@/; s/!/@,|#_!!_#|/
12251 :n
12252 t n
12253 s/'"$ac_delim"'$/,g/; t
12254 s/$/\\/; p
12255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12256 ' >>$CONFIG_STATUS <conf$$subs.sed
12257 rm -f conf$$subs.sed
12258 cat >>$CONFIG_STATUS <<_ACEOF
12259 CEOF$ac_eof
12260 _ACEOF
12261
12262
12263 ac_delim='%!_!# '
12264 for ac_last_try in false false false false false :; do
12265   cat >conf$$subs.sed <<_ACEOF
12266 lamdir!$lamdir$ac_delim
12267 mpienable!$mpienable$ac_delim
12268 cgibindir!$cgibindir$ac_delim
12269 cgibinurl!$cgibinurl$ac_delim
12270 webdatadir!$webdatadir$ac_delim
12271 webdataurl!$webdataurl$ac_delim
12272 cgiprograms!$cgiprograms$ac_delim
12273 htmldata!$htmldata$ac_delim
12274 USE_HTML_TRUE!$USE_HTML_TRUE$ac_delim
12275 USE_HTML_FALSE!$USE_HTML_FALSE$ac_delim
12276 webenabled!$webenabled$ac_delim
12277 USE_LAM_TRUE!$USE_LAM_TRUE$ac_delim
12278 USE_LAM_FALSE!$USE_LAM_FALSE$ac_delim
12279 XMKMF!$XMKMF$ac_delim
12280 X_CFLAGS!$X_CFLAGS$ac_delim
12281 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12282 X_LIBS!$X_LIBS$ac_delim
12283 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12284 X_TOOLKIT_LIBS!$X_TOOLKIT_LIBS$ac_delim
12285 X_BASIC_LIBS!$X_BASIC_LIBS$ac_delim
12286 NO_X_TRUE!$NO_X_TRUE$ac_delim
12287 NO_X_FALSE!$NO_X_FALSE$ac_delim
12288 my_includes!$my_includes$ac_delim
12289 HAVE_SGP_TRUE!$HAVE_SGP_TRUE$ac_delim
12290 HAVE_SGP_FALSE!$HAVE_SGP_FALSE$ac_delim
12291 wxcflags!$wxcflags$ac_delim
12292 wxlibs!$wxlibs$ac_delim
12293 HAVE_WXWINDOWS_TRUE!$HAVE_WXWINDOWS_TRUE$ac_delim
12294 HAVE_WXWINDOWS_FALSE!$HAVE_WXWINDOWS_FALSE$ac_delim
12295 ctlibs!$ctlibs$ac_delim
12296 lamprograms!$lamprograms$ac_delim
12297 lamdefs!$lamdefs$ac_delim
12298 LIBOBJS!$LIBOBJS$ac_delim
12299 LTLIBOBJS!$LTLIBOBJS$ac_delim
12300 _ACEOF
12301
12302   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
12303     break
12304   elif $ac_last_try; then
12305     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12307    { (exit 1); exit 1; }; }
12308   else
12309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12310   fi
12311 done
12312
12313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12314 if test -n "$ac_eof"; then
12315   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12316   ac_eof=`expr $ac_eof + 1`
12317 fi
12318
12319 cat >>$CONFIG_STATUS <<_ACEOF
12320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12322 _ACEOF
12323 sed '
12324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12325 s/^/s,@/; s/!/@,|#_!!_#|/
12326 :n
12327 t n
12328 s/'"$ac_delim"'$/,g/; t
12329 s/$/\\/; p
12330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12331 ' >>$CONFIG_STATUS <conf$$subs.sed
12332 rm -f conf$$subs.sed
12333 cat >>$CONFIG_STATUS <<_ACEOF
12334 :end
12335 s/|#_!!_#|//g
12336 CEOF$ac_eof
12337 _ACEOF
12338
12339
12340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12342 # trailing colons and then remove the whole line if VPATH becomes empty
12343 # (actually we leave an empty line to preserve line numbers).
12344 if test "x$srcdir" = x.; then
12345   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12346 s/:*\$(srcdir):*/:/
12347 s/:*\${srcdir}:*/:/
12348 s/:*@srcdir@:*/:/
12349 s/^\([^=]*=[     ]*\):*/\1/
12350 s/:*$//
12351 s/^[^=]*=[       ]*$//
12352 }'
12353 fi
12354
12355 cat >>$CONFIG_STATUS <<\_ACEOF
12356 fi # test -n "$CONFIG_FILES"
12357
12358
12359 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12360 do
12361   case $ac_tag in
12362   :[FHLC]) ac_mode=$ac_tag; continue;;
12363   esac
12364   case $ac_mode$ac_tag in
12365   :[FHL]*:*);;
12366   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12368    { (exit 1); exit 1; }; };;
12369   :[FH]-) ac_tag=-:-;;
12370   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12371   esac
12372   ac_save_IFS=$IFS
12373   IFS=:
12374   set x $ac_tag
12375   IFS=$ac_save_IFS
12376   shift
12377   ac_file=$1
12378   shift
12379
12380   case $ac_mode in
12381   :L) ac_source=$1;;
12382   :[FH])
12383     ac_file_inputs=
12384     for ac_f
12385     do
12386       case $ac_f in
12387       -) ac_f="$tmp/stdin";;
12388       *) # Look for the file first in the build tree, then in the source tree
12389          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12390          # because $ac_f cannot contain `:'.
12391          test -f "$ac_f" ||
12392            case $ac_f in
12393            [\\/$]*) false;;
12394            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12395            esac ||
12396            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12398    { (exit 1); exit 1; }; };;
12399       esac
12400       ac_file_inputs="$ac_file_inputs $ac_f"
12401     done
12402
12403     # Let's still pretend it is `configure' which instantiates (i.e., don't
12404     # use $as_me), people would be surprised to read:
12405     #    /* config.h.  Generated by config.status.  */
12406     configure_input="Generated from "`IFS=:
12407           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12408     if test x"$ac_file" != x-; then
12409       configure_input="$ac_file.  $configure_input"
12410       { echo "$as_me:$LINENO: creating $ac_file" >&5
12411 echo "$as_me: creating $ac_file" >&6;}
12412     fi
12413
12414     case $ac_tag in
12415     *:-:* | *:-) cat >"$tmp/stdin";;
12416     esac
12417     ;;
12418   esac
12419
12420   ac_dir=`$as_dirname -- "$ac_file" ||
12421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12422          X"$ac_file" : 'X\(//\)[^/]' \| \
12423          X"$ac_file" : 'X\(//\)$' \| \
12424          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12425 echo X"$ac_file" |
12426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12427             s//\1/
12428             q
12429           }
12430           /^X\(\/\/\)[^/].*/{
12431             s//\1/
12432             q
12433           }
12434           /^X\(\/\/\)$/{
12435             s//\1/
12436             q
12437           }
12438           /^X\(\/\).*/{
12439             s//\1/
12440             q
12441           }
12442           s/.*/./; q'`
12443   { as_dir="$ac_dir"
12444   case $as_dir in #(
12445   -*) as_dir=./$as_dir;;
12446   esac
12447   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12448     as_dirs=
12449     while :; do
12450       case $as_dir in #(
12451       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12452       *) as_qdir=$as_dir;;
12453       esac
12454       as_dirs="'$as_qdir' $as_dirs"
12455       as_dir=`$as_dirname -- "$as_dir" ||
12456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12457          X"$as_dir" : 'X\(//\)[^/]' \| \
12458          X"$as_dir" : 'X\(//\)$' \| \
12459          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12460 echo X"$as_dir" |
12461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12462             s//\1/
12463             q
12464           }
12465           /^X\(\/\/\)[^/].*/{
12466             s//\1/
12467             q
12468           }
12469           /^X\(\/\/\)$/{
12470             s//\1/
12471             q
12472           }
12473           /^X\(\/\).*/{
12474             s//\1/
12475             q
12476           }
12477           s/.*/./; q'`
12478       test -d "$as_dir" && break
12479     done
12480     test -z "$as_dirs" || eval "mkdir $as_dirs"
12481   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12483    { (exit 1); exit 1; }; }; }
12484   ac_builddir=.
12485
12486 case "$ac_dir" in
12487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12488 *)
12489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12490   # A ".." for each directory in $ac_dir_suffix.
12491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12492   case $ac_top_builddir_sub in
12493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12495   esac ;;
12496 esac
12497 ac_abs_top_builddir=$ac_pwd
12498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12499 # for backward compatibility:
12500 ac_top_builddir=$ac_top_build_prefix
12501
12502 case $srcdir in
12503   .)  # We are building in place.
12504     ac_srcdir=.
12505     ac_top_srcdir=$ac_top_builddir_sub
12506     ac_abs_top_srcdir=$ac_pwd ;;
12507   [\\/]* | ?:[\\/]* )  # Absolute name.
12508     ac_srcdir=$srcdir$ac_dir_suffix;
12509     ac_top_srcdir=$srcdir
12510     ac_abs_top_srcdir=$srcdir ;;
12511   *) # Relative name.
12512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12513     ac_top_srcdir=$ac_top_build_prefix$srcdir
12514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12515 esac
12516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12517
12518
12519   case $ac_mode in
12520   :F)
12521   #
12522   # CONFIG_FILE
12523   #
12524
12525   case $INSTALL in
12526   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12527   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12528   esac
12529 _ACEOF
12530
12531 cat >>$CONFIG_STATUS <<\_ACEOF
12532 # If the template does not know about datarootdir, expand it.
12533 # FIXME: This hack should be removed a few years after 2.60.
12534 ac_datarootdir_hack=; ac_datarootdir_seen=
12535
12536 case `sed -n '/datarootdir/ {
12537   p
12538   q
12539 }
12540 /@datadir@/p
12541 /@docdir@/p
12542 /@infodir@/p
12543 /@localedir@/p
12544 /@mandir@/p
12545 ' $ac_file_inputs` in
12546 *datarootdir*) ac_datarootdir_seen=yes;;
12547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12548   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12550 _ACEOF
12551 cat >>$CONFIG_STATUS <<_ACEOF
12552   ac_datarootdir_hack='
12553   s&@datadir@&$datadir&g
12554   s&@docdir@&$docdir&g
12555   s&@infodir@&$infodir&g
12556   s&@localedir@&$localedir&g
12557   s&@mandir@&$mandir&g
12558     s&\\\${datarootdir}&$datarootdir&g' ;;
12559 esac
12560 _ACEOF
12561
12562 # Neutralize VPATH when `$srcdir' = `.'.
12563 # Shell code in configure.ac might set extrasub.
12564 # FIXME: do we really want to maintain this feature?
12565 cat >>$CONFIG_STATUS <<_ACEOF
12566   sed "$ac_vpsub
12567 $extrasub
12568 _ACEOF
12569 cat >>$CONFIG_STATUS <<\_ACEOF
12570 :t
12571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12572 s&@configure_input@&$configure_input&;t t
12573 s&@top_builddir@&$ac_top_builddir_sub&;t t
12574 s&@srcdir@&$ac_srcdir&;t t
12575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12576 s&@top_srcdir@&$ac_top_srcdir&;t t
12577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12578 s&@builddir@&$ac_builddir&;t t
12579 s&@abs_builddir@&$ac_abs_builddir&;t t
12580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12581 s&@INSTALL@&$ac_INSTALL&;t t
12582 $ac_datarootdir_hack
12583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12584
12585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12586   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12587   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12588   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12589 which seems to be undefined.  Please make sure it is defined." >&5
12590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12591 which seems to be undefined.  Please make sure it is defined." >&2;}
12592
12593   rm -f "$tmp/stdin"
12594   case $ac_file in
12595   -) cat "$tmp/out"; rm -f "$tmp/out";;
12596   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12597   esac
12598  ;;
12599   :H)
12600   #
12601   # CONFIG_HEADER
12602   #
12603 _ACEOF
12604
12605 # Transform confdefs.h into a sed script `conftest.defines', that
12606 # substitutes the proper values into config.h.in to produce config.h.
12607 rm -f conftest.defines conftest.tail
12608 # First, append a space to every undef/define line, to ease matching.
12609 echo 's/$/ /' >conftest.defines
12610 # Then, protect against being on the right side of a sed subst, or in
12611 # an unquoted here document, in config.status.  If some macros were
12612 # called several times there might be several #defines for the same
12613 # symbol, which is useless.  But do not sort them, since the last
12614 # AC_DEFINE must be honored.
12615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12618 # PARAMS is the parameter list in the macro definition--in most cases, it's
12619 # just an empty string.
12620 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12621 ac_dB='\\)[      (].*,\\1define\\2'
12622 ac_dC=' '
12623 ac_dD=' ,'
12624
12625 uniq confdefs.h |
12626   sed -n '
12627         t rset
12628         :rset
12629         s/^[     ]*#[    ]*define[       ][      ]*//
12630         t ok
12631         d
12632         :ok
12633         s/[\\&,]/\\&/g
12634         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12635         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12636   ' >>conftest.defines
12637
12638 # Remove the space that was appended to ease matching.
12639 # Then replace #undef with comments.  This is necessary, for
12640 # example, in the case of _POSIX_SOURCE, which is predefined and required
12641 # on some systems where configure will not decide to define it.
12642 # (The regexp can be short, since the line contains either #define or #undef.)
12643 echo 's/ $//
12644 s,^[     #]*u.*,/* & */,' >>conftest.defines
12645
12646 # Break up conftest.defines:
12647 ac_max_sed_lines=50
12648
12649 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12650 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12651 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12652 # et cetera.
12653 ac_in='$ac_file_inputs'
12654 ac_out='"$tmp/out1"'
12655 ac_nxt='"$tmp/out2"'
12656
12657 while :
12658 do
12659   # Write a here document:
12660     cat >>$CONFIG_STATUS <<_ACEOF
12661     # First, check the format of the line:
12662     cat >"\$tmp/defines.sed" <<\\CEOF
12663 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12664 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12665 b
12666 :def
12667 _ACEOF
12668   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12669   echo 'CEOF
12670     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12671   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12672   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12673   grep . conftest.tail >/dev/null || break
12674   rm -f conftest.defines
12675   mv conftest.tail conftest.defines
12676 done
12677 rm -f conftest.defines conftest.tail
12678
12679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12680 cat >>$CONFIG_STATUS <<\_ACEOF
12681   if test x"$ac_file" != x-; then
12682     echo "/* $configure_input  */" >"$tmp/config.h"
12683     cat "$ac_result" >>"$tmp/config.h"
12684     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12685       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12686 echo "$as_me: $ac_file is unchanged" >&6;}
12687     else
12688       rm -f $ac_file
12689       mv "$tmp/config.h" $ac_file
12690     fi
12691   else
12692     echo "/* $configure_input  */"
12693     cat "$ac_result"
12694   fi
12695   rm -f "$tmp/out12"
12696 # Compute $ac_file's index in $config_headers.
12697 _am_stamp_count=1
12698 for _am_header in $config_headers :; do
12699   case $_am_header in
12700     $ac_file | $ac_file:* )
12701       break ;;
12702     * )
12703       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12704   esac
12705 done
12706 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12707 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708          X$ac_file : 'X\(//\)[^/]' \| \
12709          X$ac_file : 'X\(//\)$' \| \
12710          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12711 echo X$ac_file |
12712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12713             s//\1/
12714             q
12715           }
12716           /^X\(\/\/\)[^/].*/{
12717             s//\1/
12718             q
12719           }
12720           /^X\(\/\/\)$/{
12721             s//\1/
12722             q
12723           }
12724           /^X\(\/\).*/{
12725             s//\1/
12726             q
12727           }
12728           s/.*/./; q'`/stamp-h$_am_stamp_count
12729  ;;
12730
12731   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12732 echo "$as_me: executing $ac_file commands" >&6;}
12733  ;;
12734   esac
12735
12736
12737   case $ac_file$ac_mode in
12738     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12739   # Strip MF so we end up with the name of the file.
12740   mf=`echo "$mf" | sed -e 's/:.*$//'`
12741   # Check whether this is an Automake generated Makefile or not.
12742   # We used to match only the files named `Makefile.in', but
12743   # some people rename them; so instead we look at the file content.
12744   # Grep'ing the first line is not enough: some people post-process
12745   # each Makefile.in and add a new line on top of each file to say so.
12746   # So let's grep whole file.
12747   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12748     dirpart=`$as_dirname -- "$mf" ||
12749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750          X"$mf" : 'X\(//\)[^/]' \| \
12751          X"$mf" : 'X\(//\)$' \| \
12752          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12753 echo X"$mf" |
12754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12755             s//\1/
12756             q
12757           }
12758           /^X\(\/\/\)[^/].*/{
12759             s//\1/
12760             q
12761           }
12762           /^X\(\/\/\)$/{
12763             s//\1/
12764             q
12765           }
12766           /^X\(\/\).*/{
12767             s//\1/
12768             q
12769           }
12770           s/.*/./; q'`
12771   else
12772     continue
12773   fi
12774   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12775   # Extract the definition of DEP_FILES from the Makefile without
12776   # running `make'.
12777   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12778   test -z "$DEPDIR" && continue
12779   # When using ansi2knr, U may be empty or an underscore; expand it
12780   U=`sed -n -e '/^U = / s///p' < "$mf"`
12781   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12782   # We invoke sed twice because it is the simplest approach to
12783   # changing $(DEPDIR) to its actual value in the expansion.
12784   for file in `sed -n -e '
12785     /^DEP_FILES = .*\\\\$/ {
12786       s/^DEP_FILES = //
12787       :loop
12788         s/\\\\$//
12789         p
12790         n
12791         /\\\\$/ b loop
12792       p
12793     }
12794     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12795        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12796     # Make sure the directory exists.
12797     test -f "$dirpart/$file" && continue
12798     fdir=`$as_dirname -- "$file" ||
12799 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800          X"$file" : 'X\(//\)[^/]' \| \
12801          X"$file" : 'X\(//\)$' \| \
12802          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12803 echo X"$file" |
12804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12805             s//\1/
12806             q
12807           }
12808           /^X\(\/\/\)[^/].*/{
12809             s//\1/
12810             q
12811           }
12812           /^X\(\/\/\)$/{
12813             s//\1/
12814             q
12815           }
12816           /^X\(\/\).*/{
12817             s//\1/
12818             q
12819           }
12820           s/.*/./; q'`
12821     { as_dir=$dirpart/$fdir
12822   case $as_dir in #(
12823   -*) as_dir=./$as_dir;;
12824   esac
12825   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12826     as_dirs=
12827     while :; do
12828       case $as_dir in #(
12829       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12830       *) as_qdir=$as_dir;;
12831       esac
12832       as_dirs="'$as_qdir' $as_dirs"
12833       as_dir=`$as_dirname -- "$as_dir" ||
12834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12835          X"$as_dir" : 'X\(//\)[^/]' \| \
12836          X"$as_dir" : 'X\(//\)$' \| \
12837          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12838 echo X"$as_dir" |
12839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12840             s//\1/
12841             q
12842           }
12843           /^X\(\/\/\)[^/].*/{
12844             s//\1/
12845             q
12846           }
12847           /^X\(\/\/\)$/{
12848             s//\1/
12849             q
12850           }
12851           /^X\(\/\).*/{
12852             s//\1/
12853             q
12854           }
12855           s/.*/./; q'`
12856       test -d "$as_dir" && break
12857     done
12858     test -z "$as_dirs" || eval "mkdir $as_dirs"
12859   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12860 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12861    { (exit 1); exit 1; }; }; }
12862     # echo "creating $dirpart/$file"
12863     echo '# dummy' > "$dirpart/$file"
12864   done
12865 done
12866  ;;
12867
12868   esac
12869 done # for ac_tag
12870
12871
12872 { (exit 0); exit 0; }
12873 _ACEOF
12874 chmod +x $CONFIG_STATUS
12875 ac_clean_files=$ac_clean_files_save
12876
12877
12878 # configure is writing to config.log, and then calls config.status.
12879 # config.status does its own redirection, appending to config.log.
12880 # Unfortunately, on DOS this fails, as config.log is still kept open
12881 # by configure, so config.status won't be able to write to it; its
12882 # output is simply discarded.  So we exec the FD to /dev/null,
12883 # effectively closing config.log, so it can be properly (re)opened and
12884 # appended to by config.status.  When coming back to configure, we
12885 # need to make the FD available again.
12886 if test "$no_create" != yes; then
12887   ac_cs_success=:
12888   ac_config_status_args=
12889   test "$silent" = yes &&
12890     ac_config_status_args="$ac_config_status_args --quiet"
12891   exec 5>/dev/null
12892   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12893   exec 5>>config.log
12894   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12895   # would make configure fail if this is the last instruction.
12896   $ac_cs_success || { (exit 1); exit 1; }
12897 fi
12898