Fix for a crash which happened when a document couldn't be opened.
[AROS-Contrib.git] / regina / configure
blob4d1b378d745359ebce185c40489e641bb1ce662c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Regina REXX Interpreter "".
5 # Report bugs to <mark@rexx.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='Regina REXX Interpreter'
576 PACKAGE_TARNAME='Regina-REXX'
577 PACKAGE_VERSION='""'
578 PACKAGE_STRING='Regina REXX Interpreter ""'
579 PACKAGE_BUGREPORT='mark@rexx.org'
581 ac_default_prefix=/usr/local
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 VERSION
656 VERSION_NODOT
657 VER_DATE
658 VER_MAJOR
659 VER_MINOR
660 VER_SUPP
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
668 build
669 build_cpu
670 build_vendor
671 build_os
672 host
673 host_cpu
674 host_vendor
675 host_os
676 target
677 target_cpu
678 target_vendor
679 target_os
680 valid_arch_flags
681 SYS_DEFS
682 binarybitprefix
683 libdir64
684 libdir32
685 bitflag
686 GCI_CONVERT_HEADER
688 LEX_OUTPUT_ROOT
689 LEXLIB
690 RANLIB
691 LN_S
692 SET_MAKE
694 GREP
695 EGREP
696 LIBOBJS
697 ALLOCA
698 ALLOCA_SHO
699 ALLOCA_TSO
700 FNMATCH
701 FNMATCH_SHO
702 FNMATCH_TSO
703 REGUTIL_TERM_LIB
704 DEBUG
705 DEBUGGING
706 PURIFY
707 EFENCE
708 DLFCNINCDIR
709 DLFCNLIBDIR
710 GCI_SHO
711 HAVE_GCI
712 SHL_SCRIPT
713 THREADING_COMPILE
714 THREADING_LINK
715 THREADSAFE_TARGET
716 MH_MT_LIBS
717 MT_FILE
718 REGINAMULTITHREAD
719 TRACEMEM
720 FLISTS
721 REXXSOCKET
722 rxcurses_config
723 rexxtk_config
724 rexxgd_config
725 rexxcurl_config
726 rexxsql_config
727 rexxeec_config
728 rexxisam_config
729 rxsock_config
730 rexxdw_config
731 MH_FUNC_LIBS
732 BASE_BINARY
733 BASE_INSTALL
734 BOTHLIBS
735 CC2O
736 CEXTRA
737 DYNAMIC_LDFLAGS
738 DYN_COMP
739 EEXTRA
740 EXECISER_DEP
741 GETOPT
742 LD_RXLIB_A1
743 LD_RXLIB_A2
744 LD_RXLIB_UTILA
745 LD_RXLIB_B1
746 LD_RXLIB_B2
747 LD_RXLIB_UTILB
748 LIBEXE
749 LIBFILE
750 LIBFLAGS
751 LIBLINK
752 LINKSHL
753 LIBPRE
754 LIBPST
755 LINKREG
756 O2SAVE
757 O2SHO
759 OBJECTS
760 OSAVE
761 OTHER_INSTALLS
762 REGINAEXP
763 SAVE2O
764 SHLFILE
765 SHLIBS
766 SHLPRE
767 BUNDLE
768 SHL_LD
769 SHL_TARGETS
770 STATICLIB
771 STATIC_LDFLAGS
772 TEST1EXP
773 TEST1EXPORTS
774 TEST2EXP
775 TEST2EXPORTS
776 REGUTILEXP
777 REGUTILEXPORTS
778 USE_ABI
779 RANLIB_DYNAMIC
780 SHLPST
781 MODPST
782 O2TSAVE
783 O2TSO
784 STATICLD_SHO
785 mh_rpm_exists
786 RPMTOPDIR
787 MH_UNSIGNED_CHAR_SWITCH
788 LTLIBOBJS'
789 ac_subst_files=''
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
847 ac_prev=
848 ac_dashdash=
849 for ac_option
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
858 case $ac_option in
859 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *) ac_optarg=yes ;;
861 esac
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
867 ac_dashdash=yes ;;
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
886 --config-cache | -C)
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
905 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
906 { (exit 1); exit 1; }; }
907 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
908 eval enable_$ac_feature=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
927 eval enable_$ac_feature=\$ac_optarg ;;
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1117 -with-* | --with-*)
1118 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid package name: $ac_package" >&2
1131 { (exit 1); exit 1; }; }
1132 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1133 eval with_$ac_package=no ;;
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) { echo "$as_me: error: unrecognized option: $ac_option
1154 Try \`$0 --help' for more information." >&2
1155 { (exit 1); exit 1; }; }
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163 { (exit 1); exit 1; }; }
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 esac
1176 done
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 { echo "$as_me: error: missing argument to $ac_option" >&2
1181 { (exit 1); exit 1; }; }
1184 # Be sure to have absolute directory names.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1190 eval ac_val=\$$ac_var
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1196 { (exit 1); exit 1; }; }
1197 done
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used." >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 { echo "$as_me: error: Working directory cannot be determined" >&2
1227 { (exit 1); exit 1; }; }
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 { echo "$as_me: error: pwd does not report name of working directory" >&2
1230 { (exit 1); exit 1; }; }
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$0" ||
1238 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$0" : 'X\(//\)[^/]' \| \
1240 X"$0" : 'X\(//\)$' \| \
1241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1242 echo X"$0" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1251 /^X\(\/\/\)$/{
1252 s//\1/
1255 /^X\(\/\).*/{
1256 s//\1/
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1264 else
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1270 { (exit 1); exit 1; }; }
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1275 { (exit 1); exit 1; }; }
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures Regina REXX Interpreter "" to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/Regina-REXX]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1356 cat <<\_ACEOF
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 --target=TARGET configure for building compilers for TARGET [HOST]
1362 _ACEOF
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of Regina REXX Interpreter "":";;
1368 esac
1369 cat <<\_ACEOF
1371 Optional Features:
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-32bit specify if 32bit libraries are to be used
1375 --enable-64bit specify if 64bit libraries are to be used
1376 --enable-debug turn on debugging
1377 --enable-purify link with Purify (TM)
1378 --enable-efence link with Electric Fence
1379 --enable-hpux-portable make HP-UX binaries portable
1380 --enable-orexx-binary-compatible enable binary compatibility with ORexx
1381 --disable-posix-threads disable POSIX-style multi-threading
1382 --disable-gci disable General Call Interface
1383 --enable-tracemem enable memory tracing in debug mode
1384 --disable-flists disable memory management functions
1386 Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-dlfcnincdir location of dlfcn.h
1390 --with-dlfcnlibdir location of libdl.a(AIX) libdl.dylib(MacOSX)
1391 --with-socket=9999 socket to use for external queues (default 5757)
1392 --with-staticfunctions enable static linking of external function packages
1393 --with-testpackage enable static linking with Regina test external function packages
1394 --with-regutil enable static linking with RegUtil external function package
1395 --with-rexxcurses enable static linking with Rexx/Curses external function package
1396 --with-rexxtk enable static linking with Rexx/Tk external function package
1397 --with-rexxgd enable static linking with Rexx/Gd external function package
1398 --with-rexxcurl enable static linking with Rexx/CURL external function package
1399 --with-rexxsql enable static linking with Rexx/SQL external function package
1400 --with-rexxeec enable static linking with Rexx/EEC external function package
1401 --with-rexxisam enable static linking with Rexx/ISAM external function package
1402 --with-rxsock enable static linking with RxSock external function package
1403 --with-rexxdw enable static linking with Rexx/DW external function package
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CPP C preprocessor
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1418 Report bugs to <mark@rexx.org>.
1419 _ACEOF
1420 ac_status=$?
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" || continue
1427 ac_builddir=.
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 Regina REXX Interpreter configure ""
1480 generated by GNU Autoconf 2.61
1482 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1483 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by Regina REXX Interpreter $as_me "", which was
1494 generated by GNU Autoconf 2.61. Invocation command line was
1496 $ $0 $@
1498 _ACEOF
1499 exec 5>>config.log
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1523 _ASUNAME
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1534 } >&5
1536 cat >&5 <<_ACEOF
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1543 _ACEOF
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1557 for ac_arg
1559 case $ac_arg in
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1563 continue ;;
1564 *\'*)
1565 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566 esac
1567 case $ac_pass in
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1573 else
1574 case $ac_arg in
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581 esac
1583 -* ) ac_must_keep_next=true ;;
1584 esac
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 esac
1589 done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1602 echo
1604 cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609 echo
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in #(
1615 *${as_nl}*)
1616 case $ac_var in #(
1617 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1619 esac
1620 case $ac_var in #(
1621 _ | IFS | as_nl) ;; #(
1622 *) $as_unset $ac_var ;;
1623 esac ;;
1624 esac
1625 done
1626 (set) 2>&1 |
1627 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628 *${as_nl}ac_space=\ *)
1629 sed -n \
1630 "s/'\''/'\''\\\\'\'''\''/g;
1631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1632 ;; #(
1634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1636 esac |
1637 sort
1639 echo
1641 cat <<\_ASBOX
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1645 _ASBOX
1646 echo
1647 for ac_var in $ac_subst_vars
1649 eval ac_val=\$$ac_var
1650 case $ac_val in
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 esac
1653 echo "$ac_var='\''$ac_val'\''"
1654 done | sort
1655 echo
1657 if test -n "$ac_subst_files"; then
1658 cat <<\_ASBOX
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1662 _ASBOX
1663 echo
1664 for ac_var in $ac_subst_files
1666 eval ac_val=\$$ac_var
1667 case $ac_val in
1668 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 esac
1670 echo "$ac_var='\''$ac_val'\''"
1671 done | sort
1672 echo
1675 if test -s confdefs.h; then
1676 cat <<\_ASBOX
1677 ## ----------- ##
1678 ## confdefs.h. ##
1679 ## ----------- ##
1680 _ASBOX
1681 echo
1682 cat confdefs.h
1683 echo
1685 test "$ac_signal" != 0 &&
1686 echo "$as_me: caught signal $ac_signal"
1687 echo "$as_me: exit $exit_status"
1688 } >&5
1689 rm -f core *.core core.conftest.* &&
1690 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1691 exit $exit_status
1693 for ac_signal in 1 2 13 15; do
1694 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 done
1696 ac_signal=0
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1701 # Predefined preprocessor variables.
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 _ACEOF
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 _ACEOF
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 _ACEOF
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer explicitly selected file to automatically selected ones.
1730 if test -n "$CONFIG_SITE"; then
1731 set x "$CONFIG_SITE"
1732 elif test "x$prefix" != xNONE; then
1733 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1734 else
1735 set x "$ac_default_prefix/share/config.site" \
1736 "$ac_default_prefix/etc/config.site"
1738 shift
1739 for ac_site_file
1741 if test -r "$ac_site_file"; then
1742 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1745 . "$ac_site_file"
1747 done
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 echo "$as_me: loading cache $cache_file" >&6;}
1755 case $cache_file in
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1758 esac
1760 else
1761 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 echo "$as_me: creating cache $cache_file" >&6;}
1763 >$cache_file
1766 # Check that the precious variables saved in the cache have kept the same
1767 # value.
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1775 set,)
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1779 ,set)
1780 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1783 ,);;
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1787 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1788 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1789 echo "$as_me: former value: $ac_old_val" >&2;}
1790 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1791 echo "$as_me: current value: $ac_new_val" >&2;}
1792 ac_cache_corrupted=:
1793 fi;;
1794 esac
1795 # Pass precious variables to config.status.
1796 if test "$ac_new_set" = set; then
1797 case $ac_new_val in
1798 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 *) ac_arg=$ac_var=$ac_new_val ;;
1800 esac
1801 case " $ac_configure_args " in
1802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1803 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 esac
1806 done
1807 if $ac_cache_corrupted; then
1808 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1809 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1810 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1811 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1812 { (exit 1); exit 1; }; }
1839 ac_ext=c
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 . $srcdir/regina.ver
1849 VERSION_NODOT=\"$VER\"
1850 VERSION=\"$VER_DOT\"
1851 VER_DATE=\"$VER_DATE\"
1859 CC_LIST="xlC xlc gcc cc c89 acc"
1861 mh_sysv_incdir=""
1862 mh_sysv_libdir=""
1863 all_words="$CC_LIST"
1864 ac_dir=""
1865 { echo "$as_me:$LINENO: checking for one of the following C compilers: $all_words" >&5
1866 echo $ECHO_N "checking for one of the following C compilers: $all_words... $ECHO_C" >&6; }
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1875 for mh_cc in $all_words; do
1876 for ac_dir in $PATH; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$mh_cc; then
1879 ac_cv_prog_CC="$mh_cc"
1880 if test "$ac_dir" = "/usr/5bin"; then
1881 mh_sysv_incdir="/usr/5include"
1882 mh_sysv_libdir="/usr/5lib"
1884 break 2
1886 done
1887 done
1888 IFS="$ac_save_ifs"
1889 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
1891 CC="$ac_cv_prog_CC"
1896 if test "$ac_dir" = ""; then
1897 { echo "$as_me:$LINENO: result: using $ac_cv_prog_CC specified in CC env variable" >&5
1898 echo "${ECHO_T}using $ac_cv_prog_CC specified in CC env variable" >&6; }
1899 else
1900 { echo "$as_me:$LINENO: result: using $ac_dir/$ac_cv_prog_CC" >&5
1901 echo "${ECHO_T}using $ac_dir/$ac_cv_prog_CC" >&6; }
1905 ac_config_headers="$ac_config_headers config.h"
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1934 done
1935 done
1936 IFS=$as_save_IFS
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1944 else
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1974 done
1975 done
1976 IFS=$as_save_IFS
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1984 else
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1989 if test "x$ac_ct_CC" = x; then
1990 CC=""
1991 else
1992 case $cross_compiling:$ac_tool_warned in
1993 yes:)
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2001 esac
2002 CC=$ac_ct_CC
2004 else
2005 CC="$ac_cv_prog_CC"
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2031 done
2032 done
2033 IFS=$as_save_IFS
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2041 else
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 ac_prog_rejected=no
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2070 continue
2072 ac_cv_prog_CC="cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2076 done
2077 done
2078 IFS=$as_save_IFS
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2083 shift
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2088 shift
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2130 done
2131 done
2132 IFS=$as_save_IFS
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$CC" && break
2147 done
2149 if test -z "$CC"; then
2150 ac_ct_CC=$CC
2151 for ac_prog in cl.exe
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2176 IFS=$as_save_IFS
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2184 else
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2190 test -n "$ac_ct_CC" && break
2191 done
2193 if test "x$ac_ct_CC" = x; then
2194 CC=""
2195 else
2196 case $cross_compiling:$ac_tool_warned in
2197 yes:)
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2205 esac
2206 CC=$ac_ct_CC
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2261 main ()
2265 return 0;
2267 _ACEOF
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2272 # of exeext.
2273 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2285 ac_rmfiles=
2286 for ac_file in $ac_files
2288 case $ac_file in
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291 esac
2292 done
2293 rm -f $ac_rmfiles
2295 if { (ac_try="$ac_link_default"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2309 # Autoconf.
2310 for ac_file in $ac_files ''
2312 test -f "$ac_file" || continue
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322 then :; else
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2329 # actually working.
2330 break;;
2332 break;;
2333 esac
2334 done
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337 else
2338 ac_file=''
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2354 ac_exeext=$ac_cv_exeext
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='./$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 cross_compiling=no
2374 else
2375 if test "$cross_compiling" = maybe; then
2376 cross_compiling=yes
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2400 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 # `rm'.
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 break;;
2422 * ) break;;
2423 esac
2424 done
2425 else
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2453 main ()
2457 return 0;
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 break;;
2477 esac
2478 done
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2495 ac_objext=$OBJEXT
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2509 main ()
2511 #ifndef __GNUC__
2512 choke me
2513 #endif
2516 return 0;
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_compiler_gnu=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 ac_compiler_gnu=no
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 ac_save_c_werror_flag=$ac_c_werror_flag
2559 ac_c_werror_flag=yes
2560 ac_cv_prog_cc_g=no
2561 CFLAGS="-g"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 main ()
2574 return 0;
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 CFLAGS=""
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 main ()
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2638 CFLAGS="-g"
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 main ()
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2671 ac_cv_prog_cc_g=yes
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2694 CFLAGS="-g -O2"
2695 else
2696 CFLAGS="-g"
2698 else
2699 if test "$GCC" = yes; then
2700 CFLAGS="-O2"
2701 else
2702 CFLAGS=
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_cv_prog_cc_c89=no
2711 ac_save_CC=$CC
2712 cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdarg.h>
2719 #include <stdio.h>
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726 char **p;
2727 int i;
2729 return p[i];
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2752 #define FOO(x) 'x'
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2762 main ()
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 return 0;
2768 _ACEOF
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_c89=$ac_arg
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2800 done
2801 rm -f conftest.$ac_ext
2802 CC=$ac_save_CC
2805 # AC_CACHE_VAL
2806 case "x$ac_cv_prog_cc_c89" in
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2810 xno)
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2814 CC="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817 esac
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
2828 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2829 if test "${ac_cv_search_strerror+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 ac_func_search_save_LIBS=$LIBS
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2840 /* Override any GCC internal prototype to avoid an error.
2841 Use char because int might match the return type of a GCC
2842 builtin and then its argument prototype would still apply. */
2843 #ifdef __cplusplus
2844 extern "C"
2845 #endif
2846 char strerror ();
2848 main ()
2850 return strerror ();
2852 return 0;
2854 _ACEOF
2855 for ac_lib in '' cposix; do
2856 if test -z "$ac_lib"; then
2857 ac_res="none required"
2858 else
2859 ac_res=-l$ac_lib
2860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (ac_try="$ac_link"
2864 case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_link") 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext &&
2879 $as_test_x conftest$ac_exeext; then
2880 ac_cv_search_strerror=$ac_res
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2889 conftest$ac_exeext
2890 if test "${ac_cv_search_strerror+set}" = set; then
2891 break
2893 done
2894 if test "${ac_cv_search_strerror+set}" = set; then
2896 else
2897 ac_cv_search_strerror=no
2899 rm conftest.$ac_ext
2900 LIBS=$ac_func_search_save_LIBS
2902 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2903 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
2904 ac_res=$ac_cv_search_strerror
2905 if test "$ac_res" != no; then
2906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2911 ac_aux_dir=
2912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2913 if test -f "$ac_dir/install-sh"; then
2914 ac_aux_dir=$ac_dir
2915 ac_install_sh="$ac_aux_dir/install-sh -c"
2916 break
2917 elif test -f "$ac_dir/install.sh"; then
2918 ac_aux_dir=$ac_dir
2919 ac_install_sh="$ac_aux_dir/install.sh -c"
2920 break
2921 elif test -f "$ac_dir/shtool"; then
2922 ac_aux_dir=$ac_dir
2923 ac_install_sh="$ac_aux_dir/shtool install -c"
2924 break
2926 done
2927 if test -z "$ac_aux_dir"; then
2928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2929 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2930 { (exit 1); exit 1; }; }
2933 # These three variables are undocumented and unsupported,
2934 # and are intended to be withdrawn in a future Autoconf release.
2935 # They can cause serious problems if a builder's source tree is in a directory
2936 # whose full name contains unusual characters.
2937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2942 # Make sure we can run config.sub.
2943 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2944 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2945 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2946 { (exit 1); exit 1; }; }
2948 { echo "$as_me:$LINENO: checking build system type" >&5
2949 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2950 if test "${ac_cv_build+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 ac_build_alias=$build_alias
2954 test "x$ac_build_alias" = x &&
2955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2956 test "x$ac_build_alias" = x &&
2957 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2958 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2959 { (exit 1); exit 1; }; }
2960 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2961 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2963 { (exit 1); exit 1; }; }
2966 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2967 echo "${ECHO_T}$ac_cv_build" >&6; }
2968 case $ac_cv_build in
2969 *-*-*) ;;
2970 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2971 echo "$as_me: error: invalid value of canonical build" >&2;}
2972 { (exit 1); exit 1; }; };;
2973 esac
2974 build=$ac_cv_build
2975 ac_save_IFS=$IFS; IFS='-'
2976 set x $ac_cv_build
2977 shift
2978 build_cpu=$1
2979 build_vendor=$2
2980 shift; shift
2981 # Remember, the first character of IFS is used to create $*,
2982 # except with old shells:
2983 build_os=$*
2984 IFS=$ac_save_IFS
2985 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2988 { echo "$as_me:$LINENO: checking host system type" >&5
2989 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2990 if test "${ac_cv_host+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 if test "x$host_alias" = x; then
2994 ac_cv_host=$ac_cv_build
2995 else
2996 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2997 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2999 { (exit 1); exit 1; }; }
3003 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3004 echo "${ECHO_T}$ac_cv_host" >&6; }
3005 case $ac_cv_host in
3006 *-*-*) ;;
3007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3008 echo "$as_me: error: invalid value of canonical host" >&2;}
3009 { (exit 1); exit 1; }; };;
3010 esac
3011 host=$ac_cv_host
3012 ac_save_IFS=$IFS; IFS='-'
3013 set x $ac_cv_host
3014 shift
3015 host_cpu=$1
3016 host_vendor=$2
3017 shift; shift
3018 # Remember, the first character of IFS is used to create $*,
3019 # except with old shells:
3020 host_os=$*
3021 IFS=$ac_save_IFS
3022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3025 { echo "$as_me:$LINENO: checking target system type" >&5
3026 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3027 if test "${ac_cv_target+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test "x$target_alias" = x; then
3031 ac_cv_target=$ac_cv_host
3032 else
3033 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3036 { (exit 1); exit 1; }; }
3040 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3041 echo "${ECHO_T}$ac_cv_target" >&6; }
3042 case $ac_cv_target in
3043 *-*-*) ;;
3044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3045 echo "$as_me: error: invalid value of canonical target" >&2;}
3046 { (exit 1); exit 1; }; };;
3047 esac
3048 target=$ac_cv_target
3049 ac_save_IFS=$IFS; IFS='-'
3050 set x $ac_cv_target
3051 shift
3052 target_cpu=$1
3053 target_vendor=$2
3054 shift; shift
3055 # Remember, the first character of IFS is used to create $*,
3056 # except with old shells:
3057 target_os=$*
3058 IFS=$ac_save_IFS
3059 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3062 # The aliases save the names the user supplied, while $host etc.
3063 # will get canonicalized.
3064 test -n "$target_alias" &&
3065 test "$program_prefix$program_suffix$program_transform_name" = \
3066 NONENONEs,x,x, &&
3067 program_prefix=${target_alias}-
3069 mymakefile="Makefile"
3070 on_qnx4=no
3071 on_beos=no
3072 gci_available=no
3073 GCI_CONVERT_HEADER="gci_convert.unsupported"
3074 case "$target" in
3075 *hp-hpux*)
3076 SYS_DEFS="-D_HPUX_SOURCE"
3078 *ibm-aix*)
3079 SYS_DEFS="-D_ALL_SOURCE"
3080 # mymakefile="Makefile.aix"
3082 *apple-darwin*)
3083 { echo "$as_me:$LINENO: checking for which Mac OSX -arch flags are supported" >&5
3084 echo $ECHO_N "checking for which Mac OSX -arch flags are supported... $ECHO_C" >&6; }
3085 valid_arch_flags=""
3086 found_arch_flags=""
3087 arch_flags="ppc ppc64 x86_64 i386"
3088 for a in $arch_flags; do
3089 save_ldflags="$LDFLAGS"
3090 LDFLAGS="$LDFLAGS -arch $a"
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h. */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #include <stdio.h>
3099 main ()
3101 exit(0)
3103 return 0;
3105 _ACEOF
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_link") 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } && {
3120 test -z "$ac_c_werror_flag" ||
3121 test ! -s conftest.err
3122 } && test -s conftest$ac_exeext &&
3123 $as_test_x conftest$ac_exeext; then
3124 valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a"
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 a="$a"
3133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3134 conftest$ac_exeext conftest.$ac_ext
3135 LDFLAGS="$save_ldflags"
3136 done
3137 { echo "$as_me:$LINENO: result: $found_arch_flags" >&5
3138 echo "${ECHO_T}$found_arch_flags" >&6; }
3141 SYS_DEFS="$valid_arch_flags"
3142 EEXTRA="$valid_arch_flags"
3144 *dec-osf*)
3146 *sequent-dynix*)
3148 i*86*solaris*)
3149 GCI_CONVERT_HEADER="gci_convert.solaris.i86"
3150 gci_available=yes
3152 *solaris*)
3153 GCI_CONVERT_HEADER="gci_convert.solaris.sparc"
3154 gci_available=yes
3156 sparc*sunos*)
3158 i*86-*linux*)
3159 GCI_CONVERT_HEADER="gci_convert.linux.i86"
3160 gci_available=yes
3162 *86_64-*linux*)
3163 GCI_CONVERT_HEADER="gci_convert.linux.86_64"
3164 gci_available=yes
3166 alpha*-*linux*)
3167 GCI_CONVERT_HEADER="gci_convert.linux.alpha"
3168 gci_available=yes
3170 powerpc64-*linux*)
3171 GCI_CONVERT_HEADER="gci_convert.linux.powerpc64"
3172 gci_available=yes
3174 *cygwin*)
3175 GCI_CONVERT_HEADER="gci_convert.cygwin.i86"
3176 gci_available=yes
3178 *nto-qnx*)
3180 *qnx*)
3181 on_qnx4=yes
3182 SYS_DEFS="-Q"
3184 *beos*)
3185 on_beos=yes
3187 esac
3191 osis64bit=no
3192 bitflag=""
3193 case "$target" in
3194 *hp-hpux*)
3196 *ibm-aix*)
3197 rc=`lsconf -k | grep -c 64-bit`
3198 if test $rc -eq 1; then
3199 bitflag="64"
3200 osis64bit=yes
3203 *dec-osf4*)
3205 *dec-osf*)
3207 *sequent-dynix*)
3209 i*86*solaris*)
3211 *solaris*)
3212 rc=`isainfo -v | grep -c 64-bit`
3213 if test $rc -eq 1; then
3214 bitflag="64"
3215 osis64bit=yes
3218 sparc*sunos*)
3220 *linux*)
3221 mach="`uname -m`"
3222 if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o "$mach" = "ppc64"; then
3223 bitflag="64"
3224 osis64bit=yes
3227 *nto-qnx*)
3229 *qnx*)
3231 *beos*)
3233 *cygwin*)
3235 esac
3237 # Check whether --enable-32bit was given.
3238 if test "${enable_32bit+set}" = set; then
3239 enableval=$enable_32bit; bitflag32=yes
3240 else
3241 bitflag32=no
3244 # Check whether --enable-64bit was given.
3245 if test "${enable_64bit+set}" = set; then
3246 enableval=$enable_64bit; bitflag64=yes
3247 else
3248 bitflag64=no
3252 if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then
3253 { { echo "$as_me:$LINENO: error: --enable-32bit and --enable-64bit flags cannot both be specified." >&5
3254 echo "$as_me: error: --enable-32bit and --enable-64bit flags cannot both be specified." >&2;}
3255 { (exit 1); exit 1; }; }
3258 if test "x$bitflag64" = "xyes" -a "$osis64bit" = "no"; then
3259 { { echo "$as_me:$LINENO: error: --enable-64bit cannot be specified on non-64bit OS." >&5
3260 echo "$as_me: error: --enable-64bit cannot be specified on non-64bit OS." >&2;}
3261 { (exit 1); exit 1; }; }
3264 binarybitprefix=""
3265 if test "x$bitflag32" = "xyes"; then
3266 bitflag="32"
3267 if test "$osis64bit" = "yes"; then
3268 binarybitprefix="32"
3270 elif test "x$bitflag64" = "xyes"; then
3271 bitflag="64"
3275 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
3276 if test "$bitflag" = "32"; then
3277 CFLAGS="${CFLAGS} -m32"
3278 LDFLAGS="${LDFLAGS} -m32"
3279 elif test "$bitflag" = "64"; then
3280 CFLAGS="${CFLAGS} -m64"
3281 LDFLAGS="${LDFLAGS} -m64"
3282 else
3283 bitflag="32"
3285 elif test "$ac_cv_prog_CC" = "xlc" -o "$ac_cv_prog_CC" = "xlC"; then
3286 if test "$bitflag" = "32"; then
3287 CFLAGS="${CFLAGS} -q32"
3288 LDFLAGS="${LDFLAGS} -q32"
3289 elif test "$bitflag" = "64"; then
3290 CFLAGS="${CFLAGS} -q64"
3291 LDFLAGS="${LDFLAGS} -q64"
3292 else
3293 bitflag="32"
3297 if test "$libdir" = '${exec_prefix}/lib'; then
3298 if test "$osis64bit" = "yes"; then
3299 if test -d "/usr/lib64"; then
3300 libdir64='${exec_prefix}/lib64'
3301 libdir32='${exec_prefix}/lib'
3302 elif test -d "/usr/lib32"; then
3303 libdir32='${exec_prefix}/lib32'
3304 libdir64='${exec_prefix}/lib'
3305 else
3306 libdir64='${exec_prefix}/lib64'
3307 libdir32='${exec_prefix}/lib'
3309 else
3310 libdir64='${exec_prefix}/lib'
3311 libdir32='${exec_prefix}/lib'
3313 if test "$bitflag" = "64"; then
3314 libdir="$libdir64"
3315 else
3316 libdir="$libdir32"
3318 else
3319 libdir64="$libdir"
3320 libdir32="$libdir"
3329 MH_EXTRA_LIBS=""
3331 MH_EXTRA_LIBS=''
3332 for mh_lib in dld dl; do
3333 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" != "gcc"; then
3334 { echo "$as_me:$LINENO: checking for library -l${mh_lib}" >&5
3335 echo $ECHO_N "checking for library -l${mh_lib}... $ECHO_C" >&6; }
3336 if test -r /usr/lib/${mh_lib}3r.lib; then
3337 { echo "$as_me:$LINENO: result: found" >&5
3338 echo "${ECHO_T}found" >&6; }
3339 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3340 else
3341 { echo "$as_me:$LINENO: result: not found" >&5
3342 echo "${ECHO_T}not found" >&6; }
3344 else
3345 as_ac_Lib=`echo "ac_cv_lib_$mh_lib''_main" | $as_tr_sh`
3346 { echo "$as_me:$LINENO: checking for main in -l$mh_lib" >&5
3347 echo $ECHO_N "checking for main in -l$mh_lib... $ECHO_C" >&6; }
3348 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 ac_check_lib_save_LIBS=$LIBS
3352 LIBS="-l$mh_lib $LIBS"
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3362 main ()
3364 return main ();
3366 return 0;
3368 _ACEOF
3369 rm -f conftest.$ac_objext conftest$ac_exeext
3370 if { (ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_link") 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } && {
3383 test -z "$ac_c_werror_flag" ||
3384 test ! -s conftest.err
3385 } && test -s conftest$ac_exeext &&
3386 $as_test_x conftest$ac_exeext; then
3387 eval "$as_ac_Lib=yes"
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 eval "$as_ac_Lib=no"
3395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3396 conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_check_lib_save_LIBS
3399 ac_res=`eval echo '${'$as_ac_Lib'}'`
3400 { echo "$as_me:$LINENO: result: $ac_res" >&5
3401 echo "${ECHO_T}$ac_res" >&6; }
3402 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
3403 mh_lib_found=yes
3404 else
3405 mh_lib_found=no
3408 if test "$mh_lib_found" = yes; then
3409 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3412 done
3414 SHLIBS="${MH_EXTRA_LIBS}"
3416 MH_EXTRA_LIBS=""
3418 MH_EXTRA_LIBS=''
3419 for mh_lib in m nsl nsl_s socket net; do
3420 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" != "gcc"; then
3421 { echo "$as_me:$LINENO: checking for library -l${mh_lib}" >&5
3422 echo $ECHO_N "checking for library -l${mh_lib}... $ECHO_C" >&6; }
3423 if test -r /usr/lib/${mh_lib}3r.lib; then
3424 { echo "$as_me:$LINENO: result: found" >&5
3425 echo "${ECHO_T}found" >&6; }
3426 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3427 else
3428 { echo "$as_me:$LINENO: result: not found" >&5
3429 echo "${ECHO_T}not found" >&6; }
3431 else
3432 as_ac_Lib=`echo "ac_cv_lib_$mh_lib''_main" | $as_tr_sh`
3433 { echo "$as_me:$LINENO: checking for main in -l$mh_lib" >&5
3434 echo $ECHO_N "checking for main in -l$mh_lib... $ECHO_C" >&6; }
3435 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-l$mh_lib $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3449 main ()
3451 return main ();
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext conftest$ac_exeext
3457 if { (ac_try="$ac_link"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_link") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest$ac_exeext &&
3473 $as_test_x conftest$ac_exeext; then
3474 eval "$as_ac_Lib=yes"
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 eval "$as_ac_Lib=no"
3482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3483 conftest$ac_exeext conftest.$ac_ext
3484 LIBS=$ac_check_lib_save_LIBS
3486 ac_res=`eval echo '${'$as_ac_Lib'}'`
3487 { echo "$as_me:$LINENO: result: $ac_res" >&5
3488 echo "${ECHO_T}$ac_res" >&6; }
3489 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
3490 mh_lib_found=yes
3491 else
3492 mh_lib_found=no
3495 if test "$mh_lib_found" = yes; then
3496 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
3499 done
3502 mh_save_libs="$LIBS"
3504 if test "$on_qnx4" = no; then
3505 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
3506 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; }
3507 if test "${ac_cv_lib_crypt_main+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 ac_check_lib_save_LIBS=$LIBS
3511 LIBS="-lcrypt $LIBS"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3521 main ()
3523 return main ();
3525 return 0;
3527 _ACEOF
3528 rm -f conftest.$ac_objext conftest$ac_exeext
3529 if { (ac_try="$ac_link"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_link") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest$ac_exeext &&
3545 $as_test_x conftest$ac_exeext; then
3546 ac_cv_lib_crypt_main=yes
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 ac_cv_lib_crypt_main=no
3554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3555 conftest$ac_exeext conftest.$ac_ext
3556 LIBS=$ac_check_lib_save_LIBS
3558 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
3559 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; }
3560 if test $ac_cv_lib_crypt_main = yes; then
3561 mh_crypt_found=yes
3562 else
3563 mh_crypt_found=no
3566 if test "$mh_crypt_found" = yes; then
3567 LIBS="${LIBS} -lcrypt"
3571 { echo "$as_me:$LINENO: checking for crypt function" >&5
3572 echo $ECHO_N "checking for crypt function... $ECHO_C" >&6; }
3574 if test "${mh_cv_func_crypt+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h. */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 #include <unistd.h>
3586 main ()
3588 crypt("fred","aa")
3590 return 0;
3592 _ACEOF
3593 rm -f conftest.$ac_objext conftest$ac_exeext
3594 if { (ac_try="$ac_link"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_link") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest$ac_exeext &&
3610 $as_test_x conftest$ac_exeext; then
3611 mh_cv_func_crypt=yes
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 mh_cv_func_crypt=no
3620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3621 conftest$ac_exeext conftest.$ac_ext
3624 { echo "$as_me:$LINENO: result: $mh_cv_func_crypt" >&5
3625 echo "${ECHO_T}$mh_cv_func_crypt" >&6; }
3626 if test "$mh_cv_func_crypt" = yes ; then
3627 cat >>confdefs.h <<\_ACEOF
3628 #define HAVE_CRYPT 1
3629 _ACEOF
3631 if test "$mh_crypt_found" = yes; then
3632 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -lcrypt"
3636 LIBS="$mh_save_libs"
3639 if test "$on_qnx4" = "no"; then
3640 for ac_prog in flex lex
3642 # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3646 if test "${ac_cv_prog_LEX+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test -n "$LEX"; then
3650 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_LEX="$ac_prog"
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 LEX=$ac_cv_prog_LEX
3670 if test -n "$LEX"; then
3671 { echo "$as_me:$LINENO: result: $LEX" >&5
3672 echo "${ECHO_T}$LEX" >&6; }
3673 else
3674 { echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6; }
3679 test -n "$LEX" && break
3680 done
3681 test -n "$LEX" || LEX=":"
3683 if test "x$LEX" != "x:"; then
3684 cat >conftest.l <<_ACEOF
3686 a { ECHO; }
3687 b { REJECT; }
3688 c { yymore (); }
3689 d { yyless (1); }
3690 e { yyless (input () != 0); }
3691 f { unput (yytext[0]); }
3692 . { BEGIN INITIAL; }
3694 #ifdef YYTEXT_POINTER
3695 extern char *yytext;
3696 #endif
3698 main (void)
3700 return ! yylex () + ! yywrap ();
3702 _ACEOF
3703 { (ac_try="$LEX conftest.l"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$LEX conftest.l") 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }
3713 { echo "$as_me:$LINENO: checking lex output file root" >&5
3714 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3715 if test "${ac_cv_prog_lex_root+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3719 if test -f lex.yy.c; then
3720 ac_cv_prog_lex_root=lex.yy
3721 elif test -f lexyy.c; then
3722 ac_cv_prog_lex_root=lexyy
3723 else
3724 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3725 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3726 { (exit 1); exit 1; }; }
3729 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3730 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3731 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3733 if test -z "${LEXLIB+set}"; then
3734 { echo "$as_me:$LINENO: checking lex library" >&5
3735 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3736 if test "${ac_cv_lib_lex+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3740 ac_save_LIBS=$LIBS
3741 ac_cv_lib_lex='none needed'
3742 for ac_lib in '' -lfl -ll; do
3743 LIBS="$ac_lib $ac_save_LIBS"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 `cat $LEX_OUTPUT_ROOT.c`
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (ac_try="$ac_link"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_link") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest$ac_exeext &&
3764 $as_test_x conftest$ac_exeext; then
3765 ac_cv_lib_lex=$ac_lib
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3774 conftest$ac_exeext conftest.$ac_ext
3775 test "$ac_cv_lib_lex" != 'none needed' && break
3776 done
3777 LIBS=$ac_save_LIBS
3780 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3781 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3782 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3786 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3787 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3788 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 # POSIX says lex can declare yytext either as a pointer or an array; the
3792 # default is implementation-dependent. Figure out which it is, since
3793 # not all implementations provide the %pointer and %array declarations.
3794 ac_cv_prog_lex_yytext_pointer=no
3795 ac_save_LIBS=$LIBS
3796 LIBS="$LEXLIB $ac_save_LIBS"
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #define YYTEXT_POINTER 1
3799 `cat $LEX_OUTPUT_ROOT.c`
3800 _ACEOF
3801 rm -f conftest.$ac_objext conftest$ac_exeext
3802 if { (ac_try="$ac_link"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_link") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && {
3815 test -z "$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3817 } && test -s conftest$ac_exeext &&
3818 $as_test_x conftest$ac_exeext; then
3819 ac_cv_prog_lex_yytext_pointer=yes
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3828 conftest$ac_exeext conftest.$ac_ext
3829 LIBS=$ac_save_LIBS
3832 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3833 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3834 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3836 cat >>confdefs.h <<\_ACEOF
3837 #define YYTEXT_POINTER 1
3838 _ACEOF
3841 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3845 BOTHLIBS="${LEXLIB} ${MH_EXTRA_LIBS}"
3848 { echo "$as_me:$LINENO: checking if compiler supports ANSI prototypes" >&5
3849 echo $ECHO_N "checking if compiler supports ANSI prototypes... $ECHO_C" >&6; }
3850 ac_compile='$ac_cv_prog_CC conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <stdio.h>
3859 main ()
3861 extern int xxx(int, char *);
3863 return 0;
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 mh_have_proto=yes; cat >>confdefs.h <<\_ACEOF
3884 #define HAVE_PROTO 1
3885 _ACEOF
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 mh_have_proto=no
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: result: $mh_have_proto" >&5
3896 echo "${ECHO_T}$mh_have_proto" >&6; }
3898 if test "$mh_have_proto" = "no"; then
3899 { { echo "$as_me:$LINENO: error: Regina requires an ANSI compiler; cannot continue" >&5
3900 echo "$as_me: error: Regina requires an ANSI compiler; cannot continue" >&2;}
3901 { (exit 1); exit 1; }; }
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3909 if test "${ac_cv_prog_RANLIB+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 if test -n "$RANLIB"; then
3913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3926 done
3927 done
3928 IFS=$as_save_IFS
3932 RANLIB=$ac_cv_prog_RANLIB
3933 if test -n "$RANLIB"; then
3934 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3935 echo "${ECHO_T}$RANLIB" >&6; }
3936 else
3937 { echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6; }
3943 if test -z "$ac_cv_prog_RANLIB"; then
3944 ac_ct_RANLIB=$RANLIB
3945 # Extract the first word of "ranlib", so it can be a program name with args.
3946 set dummy ranlib; ac_word=$2
3947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 if test -n "$ac_ct_RANLIB"; then
3953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_ac_ct_RANLIB="ranlib"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3968 IFS=$as_save_IFS
3972 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3973 if test -n "$ac_ct_RANLIB"; then
3974 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3975 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3976 else
3977 { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3981 if test "x$ac_ct_RANLIB" = x; then
3982 RANLIB=":"
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985 yes:)
3986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3987 whose name does not start with the host triplet. If you think this
3988 configuration is useful to you, please write to autoconf@gnu.org." >&5
3989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3990 whose name does not start with the host triplet. If you think this
3991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3992 ac_tool_warned=yes ;;
3993 esac
3994 RANLIB=$ac_ct_RANLIB
3996 else
3997 RANLIB="$ac_cv_prog_RANLIB"
4001 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4002 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4003 LN_S=$as_ln_s
4004 if test "$LN_S" = "ln -s"; then
4005 { echo "$as_me:$LINENO: result: yes" >&5
4006 echo "${ECHO_T}yes" >&6; }
4007 else
4008 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4009 echo "${ECHO_T}no, using $LN_S" >&6; }
4012 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4013 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4014 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.make <<\_ACEOF
4019 SHELL = /bin/sh
4020 all:
4021 @echo '@@@%%%=$(MAKE)=@@@%%%'
4022 _ACEOF
4023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4025 *@@@%%%=?*=@@@%%%*)
4026 eval ac_cv_prog_make_${ac_make}_set=yes;;
4028 eval ac_cv_prog_make_${ac_make}_set=no;;
4029 esac
4030 rm -f conftest.make
4032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4033 { echo "$as_me:$LINENO: result: yes" >&5
4034 echo "${ECHO_T}yes" >&6; }
4035 SET_MAKE=
4036 else
4037 { echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6; }
4039 SET_MAKE="MAKE=${MAKE-make}"
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4050 # On Suns, sometimes $CPP names a directory.
4051 if test -n "$CPP" && test -d "$CPP"; then
4052 CPP=
4054 if test -z "$CPP"; then
4055 if test "${ac_cv_prog_CPP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 # Double quotes because CPP needs to be expanded
4059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 ac_preproc_ok=false
4062 for ac_c_preproc_warn_flag in '' yes
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h. */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081 Syntax error
4082 _ACEOF
4083 if { (ac_try="$ac_cpp conftest.$ac_ext"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } >/dev/null && {
4096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 }; then
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 # Broken: fails on valid input.
4105 continue
4108 rm -f conftest.err conftest.$ac_ext
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <ac_nonexistent.h>
4119 _ACEOF
4120 if { (ac_try="$ac_cpp conftest.$ac_ext"
4121 case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } >/dev/null && {
4133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 }; then
4136 # Broken: success on invalid input.
4137 continue
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 # Passes both tests.
4143 ac_preproc_ok=:
4144 break
4147 rm -f conftest.err conftest.$ac_ext
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4153 break
4156 done
4157 ac_cv_prog_CPP=$CPP
4160 CPP=$ac_cv_prog_CPP
4161 else
4162 ac_cv_prog_CPP=$CPP
4164 { echo "$as_me:$LINENO: result: $CPP" >&5
4165 echo "${ECHO_T}$CPP" >&6; }
4166 ac_preproc_ok=false
4167 for ac_c_preproc_warn_flag in '' yes
4169 # Use a header file that comes with gcc, so configuring glibc
4170 # with a fresh cross-compiler works.
4171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172 # <limits.h> exists even on freestanding compilers.
4173 # On the NeXT, cc -E runs the code through the compiler's parser,
4174 # not just through cpp. "Syntax error" is here to catch this case.
4175 cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h. */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #ifdef __STDC__
4182 # include <limits.h>
4183 #else
4184 # include <assert.h>
4185 #endif
4186 Syntax error
4187 _ACEOF
4188 if { (ac_try="$ac_cpp conftest.$ac_ext"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null && {
4201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 }; then
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Broken: fails on valid input.
4210 continue
4213 rm -f conftest.err conftest.$ac_ext
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null && {
4238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239 test ! -s conftest.err
4240 }; then
4241 # Broken: success on invalid input.
4242 continue
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 # Passes both tests.
4248 ac_preproc_ok=:
4249 break
4252 rm -f conftest.err conftest.$ac_ext
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then
4259 else
4260 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4261 See \`config.log' for more details." >&5
4262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4263 See \`config.log' for more details." >&2;}
4264 { (exit 1); exit 1; }; }
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4275 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4276 if test "${ac_cv_path_GREP+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 # Extract the first word of "grep ggrep" to use in msg output
4280 if test -z "$GREP"; then
4281 set dummy grep ggrep; ac_prog_name=$2
4282 if test "${ac_cv_path_GREP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 ac_path_GREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in grep ggrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4296 # Check for GNU ac_path_GREP and select it if it is found.
4297 # Check for GNU $ac_path_GREP
4298 case `"$ac_path_GREP" --version 2>&1` in
4299 *GNU*)
4300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4302 ac_count=0
4303 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4304 while :
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 echo 'GREP' >> "conftest.nl"
4310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 ac_count=`expr $ac_count + 1`
4313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_GREP="$ac_path_GREP"
4316 ac_path_GREP_max=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4325 $ac_path_GREP_found && break 3
4326 done
4327 done
4329 done
4330 IFS=$as_save_IFS
4335 GREP="$ac_cv_path_GREP"
4336 if test -z "$GREP"; then
4337 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4338 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4339 { (exit 1); exit 1; }; }
4342 else
4343 ac_cv_path_GREP=$GREP
4348 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4353 { echo "$as_me:$LINENO: checking for egrep" >&5
4354 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359 then ac_cv_path_EGREP="$GREP -E"
4360 else
4361 # Extract the first word of "egrep" to use in msg output
4362 if test -z "$EGREP"; then
4363 set dummy egrep; ac_prog_name=$2
4364 if test "${ac_cv_path_EGREP+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384 ac_count=0
4385 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4386 while :
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 ac_count=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4407 $ac_path_EGREP_found && break 3
4408 done
4409 done
4411 done
4412 IFS=$as_save_IFS
4417 EGREP="$ac_cv_path_EGREP"
4418 if test -z "$EGREP"; then
4419 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4424 else
4425 ac_cv_path_EGREP=$EGREP
4431 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4432 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4436 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4437 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4438 if test "${ac_cv_header_stdc+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 #include <stdlib.h>
4448 #include <stdarg.h>
4449 #include <string.h>
4450 #include <float.h>
4453 main ()
4457 return 0;
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.$ac_objext; then
4477 ac_cv_header_stdc=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_header_stdc=no
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 if test $ac_cv_header_stdc = yes; then
4488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <string.h>
4497 _ACEOF
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "memchr" >/dev/null 2>&1; then
4501 else
4502 ac_cv_header_stdc=no
4504 rm -f conftest*
4508 if test $ac_cv_header_stdc = yes; then
4509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #include <stdlib.h>
4518 _ACEOF
4519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4520 $EGREP "free" >/dev/null 2>&1; then
4522 else
4523 ac_cv_header_stdc=no
4525 rm -f conftest*
4529 if test $ac_cv_header_stdc = yes; then
4530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4531 if test "$cross_compiling" = yes; then
4533 else
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ctype.h>
4541 #include <stdlib.h>
4542 #if ((' ' & 0x0FF) == 0x020)
4543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545 #else
4546 # define ISLOWER(c) \
4547 (('a' <= (c) && (c) <= 'i') \
4548 || ('j' <= (c) && (c) <= 'r') \
4549 || ('s' <= (c) && (c) <= 'z'))
4550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4551 #endif
4553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4555 main ()
4557 int i;
4558 for (i = 0; i < 256; i++)
4559 if (XOR (islower (i), ISLOWER (i))
4560 || toupper (i) != TOUPPER (i))
4561 return 2;
4562 return 0;
4564 _ACEOF
4565 rm -f conftest$ac_exeext
4566 if { (ac_try="$ac_link"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4586 else
4587 echo "$as_me: program exited with status $ac_status" >&5
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ( exit $ac_status )
4592 ac_cv_header_stdc=no
4594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4600 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4601 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4602 if test $ac_cv_header_stdc = yes; then
4604 cat >>confdefs.h <<\_ACEOF
4605 #define STDC_HEADERS 1
4606 _ACEOF
4610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4621 inttypes.h stdint.h unistd.h
4623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 $ac_includes_default
4637 #include <$ac_header>
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4656 eval "$as_ac_Header=yes"
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 eval "$as_ac_Header=no"
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_res=`eval echo '${'$as_ac_Header'}'`
4667 { echo "$as_me:$LINENO: result: $ac_res" >&5
4668 echo "${ECHO_T}$ac_res" >&6; }
4669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4672 _ACEOF
4676 done
4725 for ac_header in \
4726 arpa/inet.h \
4727 assert.h \
4728 ctype.h \
4729 crypt.h \
4730 dl.h \
4731 errno.h \
4732 fcntl.h \
4733 fnmatch.h \
4734 grp.h \
4735 iconv.h \
4736 limits.h \
4737 malloc.h \
4738 math.h \
4739 ncurses.h \
4740 netdb.h \
4741 netinet/in.h \
4742 paths.h \
4743 poll.h \
4744 process.h \
4745 pwd.h \
4746 setjmp.h \
4747 share.h \
4748 signal.h \
4749 socket.h \
4750 stdarg.h \
4751 stdio.h \
4752 statvfs.h \
4753 stdlib.h \
4754 stdint.h \
4755 string.h \
4756 sys/mount.h \
4757 sys/poll.h \
4758 sys/resource.h \
4759 sys/select.h \
4760 sys/socket.h \
4761 sys/stat.h \
4762 sys/statfs.h \
4763 sys/statvfs.h \
4764 sys/mman.h \
4765 sys/time.h \
4766 sys/utsname.h \
4767 sys/wait.h \
4768 termcap.h \
4769 time.h \
4770 unistd.h \
4771 vfs.h
4774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 ac_res=`eval echo '${'$as_ac_Header'}'`
4782 { echo "$as_me:$LINENO: result: $ac_res" >&5
4783 echo "${ECHO_T}$ac_res" >&6; }
4784 else
4785 # Is the header compilable?
4786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4795 #include <$ac_header>
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (ac_try="$ac_compile"
4799 case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_compile") 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } && {
4811 test -z "$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4813 } && test -s conftest.$ac_objext; then
4814 ac_header_compiler=yes
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 ac_header_compiler=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4824 echo "${ECHO_T}$ac_header_compiler" >&6; }
4826 # Is the header present?
4827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #include <$ac_header>
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 ac_header_preproc=yes
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 ac_header_preproc=no
4861 rm -f conftest.err conftest.$ac_ext
4862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4863 echo "${ECHO_T}$ac_header_preproc" >&6; }
4865 # So? What about this header?
4866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4867 yes:no: )
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4872 ac_header_preproc=yes
4874 no:yes:* )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4887 ( cat <<\_ASBOX
4888 ## ---------------------------- ##
4889 ## Report this to mark@rexx.org ##
4890 ## ---------------------------- ##
4891 _ASBOX
4892 ) | sed "s/^/$as_me: WARNING: /" >&2
4894 esac
4895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 eval "$as_ac_Header=\$ac_header_preproc"
4902 ac_res=`eval echo '${'$as_ac_Header'}'`
4903 { echo "$as_me:$LINENO: result: $ac_res" >&5
4904 echo "${ECHO_T}$ac_res" >&6; }
4907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4908 cat >>confdefs.h <<_ACEOF
4909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 _ACEOF
4914 done
4952 for ac_func in sysconf div raise putenv usleep random ftruncate \
4953 memcpy memmove strerror strerror_r gettimeofday ftime poll \
4954 _fullpath vsprintf _splitpath2 _splitpath sigaction \
4955 lstat mkstemp inet_ntop gmtime_r localtime_r \
4956 getgrgid_r getpwuid_r gethostbyname_r \
4957 readlink realpath getbootfile tgetstr statfs mbstowcs mmap iconv
4959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973 #define $ac_func innocuous_$ac_func
4975 /* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char $ac_func (); below.
4977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 <limits.h> exists even on freestanding compilers. */
4980 #ifdef __STDC__
4981 # include <limits.h>
4982 #else
4983 # include <assert.h>
4984 #endif
4986 #undef $ac_func
4988 /* Override any GCC internal prototype to avoid an error.
4989 Use char because int might match the return type of a GCC
4990 builtin and then its argument prototype would still apply. */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 char $ac_func ();
4995 /* The GNU C library defines this for functions which it implements
4996 to always fail with ENOSYS. Some functions are actually named
4997 something starting with __ and the normal name is an alias. */
4998 #if defined __stub_$ac_func || defined __stub___$ac_func
4999 choke me
5000 #endif
5003 main ()
5005 return $ac_func ();
5007 return 0;
5009 _ACEOF
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_link") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest$ac_exeext &&
5027 $as_test_x conftest$ac_exeext; then
5028 eval "$as_ac_var=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 eval "$as_ac_var=no"
5036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5037 conftest$ac_exeext conftest.$ac_ext
5039 ac_res=`eval echo '${'$as_ac_var'}'`
5040 { echo "$as_me:$LINENO: result: $ac_res" >&5
5041 echo "${ECHO_T}$ac_res" >&6; }
5042 if test `eval echo '${'$as_ac_var'}'` = yes; then
5043 cat >>confdefs.h <<_ACEOF
5044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5045 _ACEOF
5048 done
5051 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5053 if test "${ac_cv_c_const+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5064 main ()
5066 /* FIXME: Include the comments suggested by Paul. */
5067 #ifndef __cplusplus
5068 /* Ultrix mips cc rejects this. */
5069 typedef int charset[2];
5070 const charset cs;
5071 /* SunOS 4.1.1 cc rejects this. */
5072 char const *const *pcpcc;
5073 char **ppc;
5074 /* NEC SVR4.0.2 mips cc rejects this. */
5075 struct point {int x, y;};
5076 static struct point const zero = {0,0};
5077 /* AIX XL C 1.02.0.0 rejects this.
5078 It does not let you subtract one const X* pointer from another in
5079 an arm of an if-expression whose if-part is not a constant
5080 expression */
5081 const char *g = "string";
5082 pcpcc = &g + (g ? g-g : 0);
5083 /* HPUX 7.0 cc rejects these. */
5084 ++pcpcc;
5085 ppc = (char**) pcpcc;
5086 pcpcc = (char const *const *) ppc;
5087 { /* SCO 3.2v4 cc rejects this. */
5088 char *t;
5089 char const *s = 0 ? (char *) 0 : (char const *) 0;
5091 *t++ = 0;
5092 if (s) return 0;
5094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5095 int x[] = {25, 17};
5096 const int *foo = &x[0];
5097 ++foo;
5099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5100 typedef const int *iptr;
5101 iptr p = 0;
5102 ++p;
5104 { /* AIX XL C 1.02.0.0 rejects this saying
5105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5106 struct s { int j; const int *ap[3]; };
5107 struct s *b; b->j = 5;
5109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5110 const int foo = 10;
5111 if (!foo) return 0;
5113 return !cs[0] && !zero.x;
5114 #endif
5117 return 0;
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
5137 ac_cv_c_const=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_cv_c_const=no
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5148 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5149 if test $ac_cv_c_const = no; then
5151 cat >>confdefs.h <<\_ACEOF
5152 #define const
5153 _ACEOF
5157 { echo "$as_me:$LINENO: checking for size_t" >&5
5158 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5159 if test "${ac_cv_type_size_t+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 $ac_includes_default
5169 typedef size_t ac__type_new_;
5171 main ()
5173 if ((ac__type_new_ *) 0)
5174 return 0;
5175 if (sizeof (ac__type_new_))
5176 return 0;
5178 return 0;
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5183 case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_compile") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && {
5195 test -z "$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5197 } && test -s conftest.$ac_objext; then
5198 ac_cv_type_size_t=yes
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ac_cv_type_size_t=no
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5209 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5210 if test $ac_cv_type_size_t = yes; then
5212 else
5214 cat >>confdefs.h <<_ACEOF
5215 #define size_t unsigned int
5216 _ACEOF
5220 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5222 if test "${ac_cv_header_time+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 #include <sys/time.h>
5233 #include <time.h>
5236 main ()
5238 if ((struct tm *) 0)
5239 return 0;
5241 return 0;
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (ac_try="$ac_compile"
5246 case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_compile") 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
5261 ac_cv_header_time=yes
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 ac_cv_header_time=no
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5272 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5273 if test $ac_cv_header_time = yes; then
5275 cat >>confdefs.h <<\_ACEOF
5276 #define TIME_WITH_SYS_TIME 1
5277 _ACEOF
5281 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5282 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5283 if test "${ac_cv_struct_tm+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <time.h>
5296 main ()
5298 struct tm tm;
5299 int *p = &tm.tm_sec;
5300 return !p;
5302 return 0;
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compile") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
5322 ac_cv_struct_tm=time.h
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_cv_struct_tm=sys/time.h
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5333 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5334 if test $ac_cv_struct_tm = sys/time.h; then
5336 cat >>confdefs.h <<\_ACEOF
5337 #define TM_IN_SYS_TIME 1
5338 _ACEOF
5343 { echo "$as_me:$LINENO: checking whether $CC understands -c and -o together" >&5
5344 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6; }
5345 set dummy $CC; ac_cc="`echo $2 |
5346 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
5347 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350 echo 'int foo(){}' > conftest.c
5351 # We do the test twice because some compilers refuse to overwrite an
5352 # existing .o file with -o, though they will create one.
5353 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5354 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
5355 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); };
5364 then
5365 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
5366 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && test -f conftest.ooo && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); };
5375 then
5376 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5379 rm -f conftest*
5382 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5383 O2SHO=""
5384 O2SAVE=""
5385 SAVE2O=""
5386 O2TSO=""
5387 O2TSAVE=""
5388 TSAVE2O=""
5389 CC2O="-o $"'@'
5390 { echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6; }
5392 else
5393 O2SHO="-mv \`basename "$'@'" .so.o\`.o "$'@'
5394 O2SAVE="-mv \`basename "$'@'" .so.o\`.o \`basename "$'@'" .so.o\`.o.save"
5395 SAVE2O="-mv \`basename "$'@'" .so.o\`.o.save \`basename "$'@'" .so.o\`.o"
5396 O2TSO="-mv \`basename "$'@'" .tso\`.o "$'@'
5397 O2TSAVE="-mv \`basename "$'@'" .tso\`.o \`basename "$'@'" .tso\`.tso.save"
5398 TSAVE2O="-mv \`basename "$'@'" .tso\`.tso.save \`basename "$'@'" .tso\`.o"
5399 CC2O=""
5400 { echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6; }
5405 { echo "$as_me:$LINENO: checking whether __sighandler_t is defined" >&5
5406 echo $ECHO_N "checking whether __sighandler_t is defined... $ECHO_C" >&6; }
5408 if test "${mh_cv__sighandler_t+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <signal.h>
5421 main ()
5423 __sighandler_t fred
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (ac_try="$ac_compile"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5445 mh_cv__sighandler_t=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 mh_cv__sighandler_t=no
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 { echo "$as_me:$LINENO: result: $mh_cv__sighandler_t" >&5
5459 echo "${ECHO_T}$mh_cv__sighandler_t" >&6; }
5460 if test "$mh_cv__sighandler_t" = yes ; then
5461 cat >>confdefs.h <<\_ACEOF
5462 #define HAVE__SIGHANDLER_T 1
5463 _ACEOF
5467 { echo "$as_me:$LINENO: checking for struct random_data" >&5
5468 echo $ECHO_N "checking for struct random_data... $ECHO_C" >&6; }
5469 if test "${mh_cv_struct_random_data+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include <stdlib.h>
5479 #include <stdio.h>
5481 main ()
5483 struct random_data s;
5485 return 0;
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 mh_cv_struct_random_data=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 mh_cv_struct_random_data=no
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 { echo "$as_me:$LINENO: result: $mh_cv_struct_random_data" >&5
5516 echo "${ECHO_T}$mh_cv_struct_random_data" >&6; }
5517 if test $mh_cv_struct_random_data = yes; then
5518 cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_RANDOM_DATA 1
5520 _ACEOF
5525 { echo "$as_me:$LINENO: checking whether compiler supports __builtin_return_address inline function" >&5
5526 echo $ECHO_N "checking whether compiler supports __builtin_return_address inline function... $ECHO_C" >&6; }
5527 if test "${mh_cv_builtin_return_address+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <stdio.h>
5539 main ()
5541 __builtin_return_address(0)
5543 return 0;
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (ac_try="$ac_link"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_link") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest$ac_exeext &&
5563 $as_test_x conftest$ac_exeext; then
5564 mh_cv_builtin_return_address=yes
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 mh_cv_builtin_return_address=no
5573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5574 conftest$ac_exeext conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $mh_cv_builtin_return_address" >&5
5579 echo "${ECHO_T}$mh_cv_builtin_return_address" >&6; }
5580 if test "$mh_cv_builtin_return_address" = yes; then
5581 cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_BUILTIN_RETURN_ADDRESS 1
5583 _ACEOF
5587 { echo "$as_me:$LINENO: checking for long long int" >&5
5588 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
5589 if test "${mh_cv_c_long_long+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
5593 mh_cv_c_long_long=yes
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5603 main ()
5605 long long int i;
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest.$ac_objext; then
5627 mh_cv_c_long_long=yes
5628 else
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 mh_cv_c_long_long=no
5635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 { echo "$as_me:$LINENO: result: $mh_cv_c_long_long" >&5
5639 echo "${ECHO_T}$mh_cv_c_long_long" >&6; }
5640 if test $mh_cv_c_long_long = yes; then
5642 cat >>confdefs.h <<\_ACEOF
5643 #define HAVE_LONG_LONG 1
5644 _ACEOF
5648 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5649 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5650 if test "${ac_cv_type_socklen_t+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <sys/types.h>
5661 #include <sys/socket.h>
5663 main ()
5665 socklen_t len = 42; return 0;
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_cv_type_socklen_t=yes
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_type_socklen_t=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5699 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5700 if test $ac_cv_type_socklen_t = yes; then
5702 cat >>confdefs.h <<\_ACEOF
5703 #define HAVE_SOCKLEN_T 1
5704 _ACEOF
5708 { echo "$as_me:$LINENO: checking for union semun" >&5
5709 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
5710 if test "${ac_cv_type_union_semun+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719 #include <sys/types.h>
5720 #include <sys/ipc.h>
5721 #include <sys/sem.h>
5723 typedef union semun ac__type_new_;
5725 main ()
5727 if ((ac__type_new_ *) 0)
5728 return 0;
5729 if (sizeof (ac__type_new_))
5730 return 0;
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (ac_try="$ac_compile"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 ac_cv_type_union_semun=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_type_union_semun=no
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
5763 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
5764 if test $ac_cv_type_union_semun = yes; then
5766 cat >>confdefs.h <<_ACEOF
5767 #define HAVE_UNION_SEMUN 1
5768 _ACEOF
5774 { echo "$as_me:$LINENO: checking if statvfs.f_mntfromname exists..." >&5
5775 echo "$as_me: checking if statvfs.f_mntfromname exists..." >&6;}
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 #include <sys/statvfs.h>
5787 main ()
5790 struct statvfs buf;
5791 char *p = buf.f_mntfromname;
5793 statvfs(".", &buf);
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5818 cat >>confdefs.h <<\_ACEOF
5819 #define HAVE_STATVFS_F_MNTFROMNAME
5820 _ACEOF
5822 { echo "$as_me:$LINENO: result: yes" >&5
5823 echo "${ECHO_T}yes" >&6; }
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5830 { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 { echo "$as_me:$LINENO: checking for working memcmp" >&5
5839 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
5840 if test "${ac_cv_func_memcmp_working+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 if test "$cross_compiling" = yes; then
5844 ac_cv_func_memcmp_working=no
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5854 main ()
5857 /* Some versions of memcmp are not 8-bit clean. */
5858 char c0 = '\100', c1 = '\200', c2 = '\201';
5859 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5860 return 1;
5862 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5863 or more and with at least one buffer not starting on a 4-byte boundary.
5864 William Lewis provided this test program. */
5866 char foo[21];
5867 char bar[21];
5868 int i;
5869 for (i = 0; i < 4; i++)
5871 char *a = foo + i;
5872 char *b = bar + i;
5873 strcpy (a, "--------01111111");
5874 strcpy (b, "--------10000000");
5875 if (memcmp (a, b, 16) >= 0)
5876 return 1;
5878 return 0;
5882 return 0;
5884 _ACEOF
5885 rm -f conftest$ac_exeext
5886 if { (ac_try="$ac_link"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_link") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_func_memcmp_working=yes
5906 else
5907 echo "$as_me: program exited with status $ac_status" >&5
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ( exit $ac_status )
5912 ac_cv_func_memcmp_working=no
5914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5919 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5920 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
5921 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5922 *" memcmp.$ac_objext "* ) ;;
5923 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5925 esac
5928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5929 # for constant arguments. Useless!
5930 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5931 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5932 if test "${ac_cv_working_alloca_h+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <alloca.h>
5943 main ()
5945 char *p = (char *) alloca (2 * sizeof (int));
5946 if (p) return 0;
5948 return 0;
5950 _ACEOF
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (ac_try="$ac_link"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_link") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest$ac_exeext &&
5968 $as_test_x conftest$ac_exeext; then
5969 ac_cv_working_alloca_h=yes
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5974 ac_cv_working_alloca_h=no
5977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5978 conftest$ac_exeext conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5981 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5982 if test $ac_cv_working_alloca_h = yes; then
5984 cat >>confdefs.h <<\_ACEOF
5985 #define HAVE_ALLOCA_H 1
5986 _ACEOF
5990 { echo "$as_me:$LINENO: checking for alloca" >&5
5991 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5992 if test "${ac_cv_func_alloca_works+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #ifdef __GNUC__
6002 # define alloca __builtin_alloca
6003 #else
6004 # ifdef _MSC_VER
6005 # include <malloc.h>
6006 # define alloca _alloca
6007 # else
6008 # ifdef HAVE_ALLOCA_H
6009 # include <alloca.h>
6010 # else
6011 # ifdef _AIX
6012 #pragma alloca
6013 # else
6014 # ifndef alloca /* predefined by HP cc +Olibcalls */
6015 char *alloca ();
6016 # endif
6017 # endif
6018 # endif
6019 # endif
6020 #endif
6023 main ()
6025 char *p = (char *) alloca (1);
6026 if (p) return 0;
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (ac_try="$ac_link"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_link") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } && {
6045 test -z "$ac_c_werror_flag" ||
6046 test ! -s conftest.err
6047 } && test -s conftest$ac_exeext &&
6048 $as_test_x conftest$ac_exeext; then
6049 ac_cv_func_alloca_works=yes
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_func_alloca_works=no
6057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6058 conftest$ac_exeext conftest.$ac_ext
6060 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6061 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6063 if test $ac_cv_func_alloca_works = yes; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_ALLOCA 1
6067 _ACEOF
6069 else
6070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6071 # that cause trouble. Some versions do not even contain alloca or
6072 # contain a buggy version. If you still want to use their alloca,
6073 # use ar to extract alloca.o from them instead of compiling alloca.c.
6075 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6077 cat >>confdefs.h <<\_ACEOF
6078 #define C_ALLOCA 1
6079 _ACEOF
6082 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6084 if test "${ac_cv_os_cray+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #if defined CRAY && ! defined CRAY2
6094 webecray
6095 #else
6096 wenotbecray
6097 #endif
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "webecray" >/dev/null 2>&1; then
6102 ac_cv_os_cray=yes
6103 else
6104 ac_cv_os_cray=no
6106 rm -f conftest*
6109 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6110 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6111 if test $ac_cv_os_cray = yes; then
6112 for ac_func in _getb67 GETB67 getb67; do
6113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6127 #define $ac_func innocuous_$ac_func
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func (); below.
6131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132 <limits.h> exists even on freestanding compilers. */
6134 #ifdef __STDC__
6135 # include <limits.h>
6136 #else
6137 # include <assert.h>
6138 #endif
6140 #undef $ac_func
6142 /* Override any GCC internal prototype to avoid an error.
6143 Use char because int might match the return type of a GCC
6144 builtin and then its argument prototype would still apply. */
6145 #ifdef __cplusplus
6146 extern "C"
6147 #endif
6148 char $ac_func ();
6149 /* The GNU C library defines this for functions which it implements
6150 to always fail with ENOSYS. Some functions are actually named
6151 something starting with __ and the normal name is an alias. */
6152 #if defined __stub_$ac_func || defined __stub___$ac_func
6153 choke me
6154 #endif
6157 main ()
6159 return $ac_func ();
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (ac_try="$ac_link"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_link") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest$ac_exeext &&
6181 $as_test_x conftest$ac_exeext; then
6182 eval "$as_ac_var=yes"
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 eval "$as_ac_var=no"
6190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6191 conftest$ac_exeext conftest.$ac_ext
6193 ac_res=`eval echo '${'$as_ac_var'}'`
6194 { echo "$as_me:$LINENO: result: $ac_res" >&5
6195 echo "${ECHO_T}$ac_res" >&6; }
6196 if test `eval echo '${'$as_ac_var'}'` = yes; then
6198 cat >>confdefs.h <<_ACEOF
6199 #define CRAY_STACKSEG_END $ac_func
6200 _ACEOF
6202 break
6205 done
6208 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6209 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6210 if test "${ac_cv_c_stack_direction+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 if test "$cross_compiling" = yes; then
6214 ac_cv_c_stack_direction=0
6215 else
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 $ac_includes_default
6224 find_stack_direction ()
6226 static char *addr = 0;
6227 auto char dummy;
6228 if (addr == 0)
6230 addr = &dummy;
6231 return find_stack_direction ();
6233 else
6234 return (&dummy > addr) ? 1 : -1;
6238 main ()
6240 return find_stack_direction () < 0;
6242 _ACEOF
6243 rm -f conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_cv_c_stack_direction=1
6264 else
6265 echo "$as_me: program exited with status $ac_status" >&5
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ( exit $ac_status )
6270 ac_cv_c_stack_direction=-1
6272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6277 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6278 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6280 cat >>confdefs.h <<_ACEOF
6281 #define STACK_DIRECTION $ac_cv_c_stack_direction
6282 _ACEOF
6287 if test $ac_cv_func_alloca_works = yes; then
6288 ALLOCA=""
6289 ALLOCA_SHO=""
6290 ALLOCA_TSO=""
6291 else
6292 ALLOCA="alloca.o"
6293 ALLOCA_SHO="alloca.so.o"
6294 ALLOCA_TSO="alloca.tso.o"
6299 if test $ac_cv_header_fnmatch_h = yes; then
6300 FNMATCH=""
6301 FNMATCH_SHO=""
6302 FNMATCH_TSO=""
6303 else
6304 FNMATCH="fnmatch.o"
6305 FNMATCH_SHO="fnmatch.so.o"
6306 FNMATCH_TSO="fnmatch.tso.o"
6311 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
6312 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
6313 if test "${ac_cv_search_tgetent+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 ac_func_search_save_LIBS=$LIBS
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 /* Override any GCC internal prototype to avoid an error.
6325 Use char because int might match the return type of a GCC
6326 builtin and then its argument prototype would still apply. */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 char tgetent ();
6332 main ()
6334 return tgetent ();
6336 return 0;
6338 _ACEOF
6339 for ac_lib in '' ncurses termcap curses termlib; do
6340 if test -z "$ac_lib"; then
6341 ac_res="none required"
6342 else
6343 ac_res=-l$ac_lib
6344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (ac_try="$ac_link"
6348 case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_link") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest$ac_exeext &&
6363 $as_test_x conftest$ac_exeext; then
6364 ac_cv_search_tgetent=$ac_res
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6373 conftest$ac_exeext
6374 if test "${ac_cv_search_tgetent+set}" = set; then
6375 break
6377 done
6378 if test "${ac_cv_search_tgetent+set}" = set; then
6380 else
6381 ac_cv_search_tgetent=no
6383 rm conftest.$ac_ext
6384 LIBS=$ac_func_search_save_LIBS
6386 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
6387 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
6388 ac_res=$ac_cv_search_tgetent
6389 if test "$ac_res" != no; then
6390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6391 REGUTIL_TERM_LIB="$ac_cv_search_tgetent"
6392 else
6393 REGUTIL_TERM_LIB=""
6399 # Check whether --enable-debug was given.
6400 if test "${enable_debug+set}" = set; then
6401 enableval=$enable_debug; with_debug=$enableval
6402 else
6403 with_debug=no
6406 DEBUG=""
6407 DEBUGGING=""
6408 cflags_g="`echo $CFLAGS | grep -c '\-g'`"
6409 cflags_O="`echo $CFLAGS | grep -c '\-O'`"
6411 if test "$with_debug" = yes; then
6412 DEBUG="-DDEBUG"
6413 DEBUGGING="-g"
6414 if test "$cflags_g" = "0"; then
6415 CFLAGS="${CFLAGS} -g"
6417 if test "$cflags_O" != "0"; then
6418 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
6420 else
6421 DEBUG="-DNDEBUG"
6422 if test "$cflags_O" = "0"; then
6423 CFLAGS="${CFLAGS} -O"
6425 if test "$cflags_g" != "0"; then
6426 CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`"
6429 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
6430 if test "$with_debug" = yes; then
6431 CFLAGS="${CFLAGS} -Wall"
6432 else
6433 CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts"
6436 if test "$on_qnx4" = yes; then
6437 if test "$ac_cv_prog_CC" = "gcc"; then
6438 QNX4_CFLAGS=""
6439 else
6440 QNX4_CFLAGS="-Wc,-r -b -j -Wc,-ei -N4096000 -zp4 -mf -DNO_REGEX -DQNX -DQNX4 -D__QNX__ -DSTRINGS_ALIGNED -Q"
6442 if test "$with_debug" = yes; then
6443 CFLAGS="-g $QNX4_CFLAGS"
6444 else
6445 CFLAGS="-Otax $QNX4_CFLAGS"
6448 if test "$on_beos" = yes; then
6449 if test "$with_debug" = yes; then
6450 CFLAGS="${CFLAGS} -Wall"
6451 else
6452 CFLAGS="${CFLAGS} -O2 -Wall"
6454 if test "$datadir" = "\${prefix}/share"; then
6455 datadir="/boot/home/config/add-ons"
6461 # Check whether --enable-purify was given.
6462 if test "${enable_purify+set}" = set; then
6463 enableval=$enable_purify; with_purify=$enableval
6464 else
6465 with_purify=no
6468 if test "$with_purify" = yes; then
6469 PURIFY="purify"
6470 else
6471 PURIFY=""
6475 # Check whether --enable-efence was given.
6476 if test "${enable_efence+set}" = set; then
6477 enableval=$enable_efence; with_efence=$enableval
6478 else
6479 with_efence=no
6482 if test "$with_efence" = yes; then
6483 EFENCE="-lefence"
6484 else
6485 EFENCE=""
6489 # Check whether --enable-hpux_portable was given.
6490 if test "${enable_hpux_portable+set}" = set; then
6491 enableval=$enable_hpux_portable; enable_hpux_portable=$enableval
6492 else
6493 enable_hpux_portable=no
6498 # Check whether --with-dlfcnincdir was given.
6499 if test "${with_dlfcnincdir+set}" = set; then
6500 withval=$with_dlfcnincdir; with_dlfcnincdir=$withval
6501 else
6502 with_dlfcnincdir=no
6505 if test "$with_dlfcnincdir" = no; then
6506 DLFCNINCDIR=""
6508 for ac_header in dlfcn.h
6510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 ac_res=`eval echo '${'$as_ac_Header'}'`
6518 { echo "$as_me:$LINENO: result: $ac_res" >&5
6519 echo "${ECHO_T}$ac_res" >&6; }
6520 else
6521 # Is the header compilable?
6522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6531 #include <$ac_header>
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_compile") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest.$ac_objext; then
6550 ac_header_compiler=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_header_compiler=no
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560 echo "${ECHO_T}$ac_header_compiler" >&6; }
6562 # Is the header present?
6563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (ac_try="$ac_cpp conftest.$ac_ext"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 ac_header_preproc=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_preproc=no
6597 rm -f conftest.err conftest.$ac_ext
6598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 echo "${ECHO_T}$ac_header_preproc" >&6; }
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6610 no:yes:* )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623 ( cat <<\_ASBOX
6624 ## ---------------------------- ##
6625 ## Report this to mark@rexx.org ##
6626 ## ---------------------------- ##
6627 _ASBOX
6628 ) | sed "s/^/$as_me: WARNING: /" >&2
6630 esac
6631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 eval "$as_ac_Header=\$ac_header_preproc"
6638 ac_res=`eval echo '${'$as_ac_Header'}'`
6639 { echo "$as_me:$LINENO: result: $ac_res" >&5
6640 echo "${ECHO_T}$ac_res" >&6; }
6643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6644 cat >>confdefs.h <<_ACEOF
6645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 _ACEOF
6650 done
6652 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
6653 HAVE_DLFCN_H="1"
6654 else
6656 # Ignore the warning messages for specified platforms
6658 case "$target" in
6659 *beos*)
6662 { echo "$as_me:$LINENO: WARNING: Could not find dlfcn.h in the standard header locations." >&5
6663 echo "$as_me: WARNING: Could not find dlfcn.h in the standard header locations." >&2;}
6664 { echo "$as_me:$LINENO: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&5
6665 echo "$as_me: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&2;}
6666 { echo "$as_me:$LINENO: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&5
6667 echo "$as_me: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&5
6669 echo "$as_me: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&2;}
6671 esac
6673 else
6674 if test -f "$with_dlfcnincdir/dlfcn.h"; then
6675 DLFCNINCDIR="-I$with_dlfcnincdir"
6676 HAVE_DLFCN_H="1"
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_DLFCN_H 1
6679 _ACEOF
6681 else
6682 { { echo "$as_me:$LINENO: error: dlfcn.h not found in \"$with_dlfcnincdir\" as specified in --with-dlfcnincdir switch; cannot continue" >&5
6683 echo "$as_me: error: dlfcn.h not found in \"$with_dlfcnincdir\" as specified in --with-dlfcnincdir switch; cannot continue" >&2;}
6684 { (exit 1); exit 1; }; }
6690 { echo "$as_me:$LINENO: checking shared library/external function extensions" >&5
6691 echo $ECHO_N "checking shared library/external function extensions... $ECHO_C" >&6; }
6692 SHLPST=".so"
6693 MODPST=".so"
6695 case "$target" in
6696 *hp-hpux*)
6697 SHLPST=".sl"
6698 MODPST=".sl"
6700 *ibm-aix5*)
6701 SHLPST=".a"
6702 MODPST=".a"
6704 *ibm-aix*)
6705 SHLPST=".a"
6706 MODPST=".a"
6708 *nto-qnx*)
6710 *qnx*)
6711 SHLPST=""
6712 MODPST=""
6714 *cygwin*)
6715 SHLPST=".dll"
6716 MODPST=".dll"
6718 *skyos*)
6719 SHLPST=".dll"
6720 MODPST=".dll"
6722 *darwin*)
6723 SHLPST=".dylib"
6724 MODPST=".dylib"
6725 # MH MODPST=".so"
6727 esac
6728 { echo "$as_me:$LINENO: result: $SHLPST/$MODPST" >&5
6729 echo "${ECHO_T}$SHLPST/$MODPST" >&6; }
6732 # Check whether --with-dlfcnlibdir was given.
6733 if test "${with_dlfcnlibdir+set}" = set; then
6734 withval=$with_dlfcnlibdir; with_dlfcnlibdir=$withval
6735 else
6736 with_dlfcnlibdir=no
6739 if test "$with_dlfcnlibdir" = no; then
6740 DLFCNLIBDIR=""
6741 else
6742 if test -f "$with_dlfcnlibdir/libdl$SHLPST"; then
6743 DLFCNLIBDIR="-L$with_dlfcnlibdir -ldl"
6744 else
6745 { { echo "$as_me:$LINENO: error: libdl$SHLPST not found in \"$with_dlfcnlibdir\" as specified in --with-dlfcnlibdir switch; cannot continue" >&5
6746 echo "$as_me: error: libdl$SHLPST not found in \"$with_dlfcnlibdir\" as specified in --with-dlfcnlibdir switch; cannot continue" >&2;}
6747 { (exit 1); exit 1; }; }
6753 # Check whether --enable-orexx-binary-compatible was given.
6754 if test "${enable_orexx_binary_compatible+set}" = set; then
6755 enableval=$enable_orexx_binary_compatible; with_orexx_bc=$enableval
6756 else
6757 with_orexx_bc=no
6760 if test "$with_orexx_bc" = yes; then
6761 OREXX_BINARY_COMPATIBLE="1"
6762 cat >>confdefs.h <<\_ACEOF
6763 #define OREXX_BINARY_COMPATIBLE 1
6764 _ACEOF
6768 # Check whether --enable-posix-threads was given.
6769 if test "${enable_posix_threads+set}" = set; then
6770 enableval=$enable_posix_threads; enable_posix_threads=no
6771 else
6772 enable_posix_threads=yes
6776 # Check whether --enable-gci was given.
6777 if test "${enable_gci+set}" = set; then
6778 enableval=$enable_gci; with_gci=no
6779 else
6780 with_gci=$gci_available
6783 if test "$with_gci" = yes; then
6784 GCI_SHO="gci_call.so.o gci_convert.so.o gci_execute.so.o gci_helper.so.o gci_prepare.so.o gci_reginabridge.so.o gci_rxfuncdefine.so.o gci_tree.so.o"
6785 HAVE_GCI="-DHAVE_GCI -I\$(gcidir)"
6786 else
6787 GCI_SHO=""
6788 HAVE_GCI=""
6793 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
6795 { echo "$as_me:$LINENO: checking whether gcc understands --version-script" >&5
6796 echo $ECHO_N "checking whether gcc understands --version-script... $ECHO_C" >&6; }
6797 if test "${mh_cv_version_script+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6801 echo "TEST {" > conftest.def
6802 echo "global:" >> conftest.def
6803 echo "Test;" >> conftest.def
6804 echo "};" >> conftest.def
6805 mh_save_libs="$LDFLAGS"
6806 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.def"
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 #include <stdio.h>
6815 main ()
6817 exit(0);
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (ac_try="$ac_link"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_link") 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest$ac_exeext &&
6839 $as_test_x conftest$ac_exeext; then
6840 mh_cv_version_script=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 mh_cv_version_script=no
6849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LDFLAGS="$mh_save_libs"
6852 rm -f conftest.def
6856 if test "$mh_cv_version_script" = yes; then
6857 SHL_SCRIPT="-Wl,--version-script=${srcdir}/regina_elf.def"
6858 else
6859 SHL_SCRIPT=""
6862 { echo "$as_me:$LINENO: result: $mh_cv_version_script" >&5
6863 echo "${ECHO_T}$mh_cv_version_script" >&6; }
6868 MH_MT_LIBS=""
6869 THREADING_COMPILE=""
6870 THREADING_LINK=""
6871 THREADSAFE_TARGET=""
6872 MT_FILE="mt_notmt"
6873 if test "$enable_posix_threads" = yes; then
6874 { echo "$as_me:$LINENO: checking for main in -lrt" >&5
6875 echo $ECHO_N "checking for main in -lrt... $ECHO_C" >&6; }
6876 if test "${ac_cv_lib_rt_main+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 ac_check_lib_save_LIBS=$LIBS
6880 LIBS="-lrt $LIBS"
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6890 main ()
6892 return main ();
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_link") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest$ac_exeext &&
6914 $as_test_x conftest$ac_exeext; then
6915 ac_cv_lib_rt_main=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_rt_main=no
6923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6924 conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_check_lib_save_LIBS
6927 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_main" >&5
6928 echo "${ECHO_T}$ac_cv_lib_rt_main" >&6; }
6929 if test $ac_cv_lib_rt_main = yes; then
6930 mh_rt_lib_found=yes
6931 else
6932 mh_rt_lib_found=no
6935 { echo "$as_me:$LINENO: checking whether Posix Threads are supported" >&5
6936 echo $ECHO_N "checking whether Posix Threads are supported... $ECHO_C" >&6; }
6937 tmpLIBS=$LIBS
6938 save_cflags="$CFLAGS"
6939 pthread_libs="pthreads pthread c_r"
6940 case "$target" in
6941 *freebsd*)
6942 CFLAGS="$CFLAGS -pthread"
6944 esac
6945 for mh_lib in $pthread_libs; do
6946 LIBS="$tmpLIBS -l${mh_lib}"
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <pthread.h>
6955 main ()
6957 pthread_create(NULL,NULL,NULL,NULL)
6959 return 0;
6961 _ACEOF
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (ac_try="$ac_link"
6964 case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_link") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest$ac_exeext &&
6979 $as_test_x conftest$ac_exeext; then
6980 mh_has_pthreads=yes
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 mh_has_pthreads=no
6989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6990 conftest$ac_exeext conftest.$ac_ext
6991 if test "$mh_has_pthreads" = yes; then
6992 MH_MT_LIBS="-l${mh_lib}"
6994 THREADING_COMPILE="-D_REENTRANT -DPOSIX"
6995 THREADING_LINK=""
6996 THREADSAFE_TARGET="threader${binarybitprefix}${EXEEXT}"
6997 MT_FILE="mt_posix"
6998 case "$target" in
6999 *solaris*)
7000 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
7001 THREADING_COMPILE="-D_REENTRANT -DPOSIX"
7002 if test "$mh_rt_lib_found" = "yes"; then
7003 THREADING_LINK="-lrt"
7005 else
7006 THREADING_COMPILE="-mt -D_REENTRANT -DREENTRANT -D_PTHREAD_SEMANTICS"
7007 THREADING_LINK="-mt"
7010 *hp-hpux1*)
7011 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
7012 THREADING_COMPILE="-D_REENTRANT -DPOSIX"
7014 if test "$mh_rt_lib_found" = "yes"; then
7015 THREADING_LINK="-lrt"
7018 *linux*)
7020 *freebsd*)
7021 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX"
7022 THREADING_LINK="-pthread"
7024 *cygwin*)
7025 THREADING_COMPILE="-D_REENTRANT -DPOSIX"
7026 THREADING_LINK=""
7029 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
7030 THREADING_COMPILE="-D_REENTRANT -DPOSIX"
7033 esac
7034 break
7036 done
7037 LIBS="$tmpLIBS"
7038 CFLAGS="$save_cflags"
7039 { echo "$as_me:$LINENO: result: $mh_has_pthreads" >&5
7040 echo "${ECHO_T}$mh_has_pthreads" >&6; }
7048 if test "$mh_has_pthreads" = yes; then
7049 save_cflags="$CFLAGS"
7050 CFLAGS="$CFLAGS $THREADING_COMPILE"
7052 # Where we know the format of getgrgid_r() function
7053 # only test for that case
7055 if test "$ac_cv_func_getgrgid_r" = yes; then
7056 { echo "$as_me:$LINENO: checking if getgrgid_r has 5 args and returns an int" >&5
7057 echo $ECHO_N "checking if getgrgid_r has 5 args and returns an int... $ECHO_C" >&6; }
7058 if test "${mh_cv_getgrgid_r_int5+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <sys/types.h>
7068 #include <grp.h>
7069 #include <pwd.h>
7071 main ()
7074 struct group *ptr,result;
7075 int rc;
7076 gid_t gid;
7077 char buf[100];
7078 rc = getgrgid_r(gid,&result,buf,sizeof(buf),&ptr);
7081 return 0;
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (ac_try="$ac_compile"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_compile") 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && {
7098 test -z "$ac_c_werror_flag" ||
7099 test ! -s conftest.err
7100 } && test -s conftest.$ac_objext; then
7101 mh_cv_getgrgid_r_int5=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7106 mh_cv_getgrgid_r_int5=no
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 { echo "$as_me:$LINENO: result: $mh_cv_getgrgid_r_int5" >&5
7112 echo "${ECHO_T}$mh_cv_getgrgid_r_int5" >&6; }
7113 if test $mh_cv_getgrgid_r_int5 = yes; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_GETGRGID_R_RETURNS_INT_5_PARAMS 1
7116 _ACEOF
7120 if test "$mh_cv_getgrgid_r_int5" = "no"; then
7121 { echo "$as_me:$LINENO: checking if getgrgid_r has 4 args and returns an int" >&5
7122 echo $ECHO_N "checking if getgrgid_r has 4 args and returns an int... $ECHO_C" >&6; }
7123 if test "${mh_cv_getgrgid_r_int4+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <grp.h>
7134 #include <pwd.h>
7136 main ()
7139 struct group *ptr,result;
7140 int rc;
7141 gid_t gid;
7142 char buf[100];
7143 rc = getgrgid_r(gid,&result,buf,sizeof(buf));
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (ac_try="$ac_compile"
7151 case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154 esac
7155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_compile") 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && {
7163 test -z "$ac_c_werror_flag" ||
7164 test ! -s conftest.err
7165 } && test -s conftest.$ac_objext; then
7166 mh_cv_getgrgid_r_int4=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 mh_cv_getgrgid_r_int4=no
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 { echo "$as_me:$LINENO: result: $mh_cv_getgrgid_r_int4" >&5
7177 echo "${ECHO_T}$mh_cv_getgrgid_r_int4" >&6; }
7178 if test $mh_cv_getgrgid_r_int4 = yes; then
7179 cat >>confdefs.h <<\_ACEOF
7180 #define HAVE_GETGRGID_R_RETURNS_INT_4_PARAMS 1
7181 _ACEOF
7185 if test "$mh_cv_getgrgid_r_int4" = "no"; then
7186 { echo "$as_me:$LINENO: checking if getgrgid_r returns a struct group *" >&5
7187 echo $ECHO_N "checking if getgrgid_r returns a struct group *... $ECHO_C" >&6; }
7188 if test "${mh_cv_getgrgid_r_struct+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <sys/types.h>
7198 #include <grp.h>
7199 #include <pwd.h>
7201 main ()
7204 struct group *ptr,result;
7205 int rc;
7206 gid_t gid;
7207 char buf[100];
7208 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
7211 return 0;
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (ac_try="$ac_compile"
7216 case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7219 esac
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_compile") 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest.$ac_objext; then
7231 mh_cv_getgrgid_r_struct=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 mh_cv_getgrgid_r_struct=no
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 { echo "$as_me:$LINENO: result: $mh_cv_getgrgid_r_struct" >&5
7242 echo "${ECHO_T}$mh_cv_getgrgid_r_struct" >&6; }
7243 if test $mh_cv_getgrgid_r_struct = yes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_GETGRGID_R_RETURNS_STRUCT 1
7246 _ACEOF
7250 if test "$mh_cv_getgrgid_r_int4" = "no"; then
7251 { echo "$as_me:$LINENO: checking if getgrgid_r returns a struct group *" >&5
7252 echo $ECHO_N "checking if getgrgid_r returns a struct group *... $ECHO_C" >&6; }
7253 if test "${mh_cv_getgrgid_r_struct+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 #include <sys/types.h>
7263 #include <grp.h>
7264 #include <pwd.h>
7266 main ()
7269 struct group *ptr,result;
7270 int rc;
7271 gid_t gid;
7272 char buf[100];
7273 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (ac_try="$ac_compile"
7281 case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_compile") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest.$ac_objext; then
7296 mh_cv_getgrgid_r_struct=yes
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 mh_cv_getgrgid_r_struct=no
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 { echo "$as_me:$LINENO: result: $mh_cv_getgrgid_r_struct" >&5
7307 echo "${ECHO_T}$mh_cv_getgrgid_r_struct" >&6; }
7308 if test $mh_cv_getgrgid_r_struct = yes; then
7309 cat >>confdefs.h <<\_ACEOF
7310 #define HAVE_GETGRGID_R_RETURNS_STRUCT 1
7311 _ACEOF
7319 if test "$ac_cv_func_getpwuid_r" = yes; then
7320 { echo "$as_me:$LINENO: checking if getpwuid_r returns an int" >&5
7321 echo $ECHO_N "checking if getpwuid_r returns an int... $ECHO_C" >&6; }
7322 if test "${mh_cv_getpwuid_r_int+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 #include <sys/types.h>
7332 #include <grp.h>
7333 #include <pwd.h>
7335 main ()
7338 struct passwd *ptr,*result;
7339 int rc;
7340 uid_t uid;
7341 char buf[100];
7342 rc = getpwuid_r(uid,&result,buf,sizeof(buf),&ptr);
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 mh_cv_getpwuid_r_int=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 mh_cv_getpwuid_r_int=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $mh_cv_getpwuid_r_int" >&5
7376 echo "${ECHO_T}$mh_cv_getpwuid_r_int" >&6; }
7377 if test $mh_cv_getpwuid_r_int = yes; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_GETPWUID_R_RETURNS_INT 1
7380 _ACEOF
7384 if test "$mh_cv_getpwuid_r_int" = "no"; then
7385 { echo "$as_me:$LINENO: checking if getpwuid_r returns a struct passwd *" >&5
7386 echo $ECHO_N "checking if getpwuid_r returns a struct passwd *... $ECHO_C" >&6; }
7387 if test "${mh_cv_getpwuid_r_struct+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7397 #include <grp.h>
7398 #include <pwd.h>
7400 main ()
7403 struct group *ptr,*result;
7404 int rc;
7405 uid_t uid;
7406 char buf[100];
7407 ptr = getpwuid_r(uid,&result,buf,sizeof(buf));
7410 return 0;
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 mh_cv_getpwuid_r_struct=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 mh_cv_getpwuid_r_struct=no
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $mh_cv_getpwuid_r_struct" >&5
7441 echo "${ECHO_T}$mh_cv_getpwuid_r_struct" >&6; }
7442 if test $mh_cv_getpwuid_r_struct = yes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_GETPWUID_R_RETURNS_STRUCT 1
7445 _ACEOF
7451 if test "$ac_cv_func_gethostbyname_r" = yes; then
7452 { echo "$as_me:$LINENO: checking if gethostbyname_r has 6 args and returns an int" >&5
7453 echo $ECHO_N "checking if gethostbyname_r has 6 args and returns an int... $ECHO_C" >&6; }
7454 if test "${mh_cv_gethostbyname_r_int6+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 cat >conftest.$ac_ext <<_ACEOF
7458 /* confdefs.h. */
7459 _ACEOF
7460 cat confdefs.h >>conftest.$ac_ext
7461 cat >>conftest.$ac_ext <<_ACEOF
7462 /* end confdefs.h. */
7463 #include <sys/types.h>
7464 #include <netdb.h>
7466 main ()
7469 int herr;
7470 struct hostent *he,*rc;
7471 char buf[8192];
7472 struct hostent retval;
7473 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&he,&herr);
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (ac_try="$ac_compile"
7481 case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_compile") 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest.$ac_objext; then
7496 mh_cv_gethostbyname_r_int6=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 mh_cv_gethostbyname_r_int6=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 { echo "$as_me:$LINENO: result: $mh_cv_gethostbyname_r_int6" >&5
7507 echo "${ECHO_T}$mh_cv_gethostbyname_r_int6" >&6; }
7508 if test $mh_cv_gethostbyname_r_int6 = yes; then
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_GETHOSTBYNAME_R_RETURNS_INT_6_PARAMS 1
7511 _ACEOF
7515 if test "$mh_cv_gethostbyname_r_int6" = "no"; then
7516 { echo "$as_me:$LINENO: checking if gethostbyname_r has 5 args and returns a struct" >&5
7517 echo $ECHO_N "checking if gethostbyname_r has 5 args and returns a struct... $ECHO_C" >&6; }
7518 if test "${mh_cv_gethostbyname_r_struct5+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <netdb.h>
7530 main ()
7533 int herr;
7534 struct hostent *he,*rc;
7535 char buf[8192];
7536 struct hostent retval;
7537 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&herr);
7540 return 0;
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 mh_cv_gethostbyname_r_struct5=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 mh_cv_gethostbyname_r_struct5=no
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 { echo "$as_me:$LINENO: result: $mh_cv_gethostbyname_r_struct5" >&5
7571 echo "${ECHO_T}$mh_cv_gethostbyname_r_struct5" >&6; }
7572 if test $mh_cv_gethostbyname_r_struct5 = yes; then
7573 cat >>confdefs.h <<\_ACEOF
7574 #define HAVE_GETHOSTBYNAME_R_RETURNS_STRUCT_5_PARAMS 1
7575 _ACEOF
7582 CFLAGS="$save_cflags"
7583 REGINAMULTITHREAD="yes"
7584 else
7585 REGINAMULTITHREAD="no"
7589 # Check whether --enable-tracemem was given.
7590 if test "${enable_tracemem+set}" = set; then
7591 enableval=$enable_tracemem; with_tracemem=$enableval
7592 else
7593 with_tracemem=no
7596 if test "$with_tracemem" = yes; then
7597 TRACEMEM="-DTRACEMEM"
7598 else
7599 TRACEMEM=""
7603 # Check whether --enable-flists was given.
7604 if test "${enable_flists+set}" = set; then
7605 enableval=$enable_flists; with_flists=$enableval
7606 else
7607 with_flists=yes
7610 if test "$with_flists" = no; then
7611 FLISTS="-DNOFLISTS"
7612 else
7613 FLISTS=""
7618 # Check whether --with-socket was given.
7619 if test "${with_socket+set}" = set; then
7620 withval=$with_socket; with_socket=$withval
7621 else
7622 with_socket=no
7625 if test "$with_socket" = no; then
7626 REXXSOCKET=""
7627 else
7628 REXXSOCKET="-DRXSOCKET=$with_socket"
7633 # Check whether --with-staticfunctions was given.
7634 if test "${with_staticfunctions+set}" = set; then
7635 withval=$with_staticfunctions; with_staticfunctions=$withval
7636 else
7637 with_staticfunctions=no
7640 if test "$with_staticfunctions" = "yes" -o "$on_qnx4" = "yes"; then
7641 STATICLD_SHO="staticld.so.o rxpack.so.o"
7642 if test "$with_staticfunctions" = "no"; then
7644 SHLPRE="lib"
7645 SHLPST=".a"
7646 MODPST=".a"
7647 LIBFILE="rexx"
7648 SHLFILE="regina"
7649 OSAVE=".o.save"
7650 OBJ="o"
7651 LIBPST=".a"
7652 LIBPRE="lib"
7653 LIBEXE="ar"
7654 GETOPT=""
7655 OBJECTS='$('OFILES')'
7656 STATIC_LDFLAGS=""
7657 AIX_DYN="no"
7658 BEOS_DYN="no"
7659 DYN_COMP="-DDYNAMIC"
7661 SHL_LD=""
7662 TEST1EXPORTS=""
7663 TEST2EXPORTS=""
7664 TEST1EXP=""
7665 TEST2EXP=""
7666 REGINAEXP=""
7667 REGUTILEXPORTS=""
7668 REGUTILEXP=""
7671 # OTHER_INSTALLS is set to install a non-version numbered shared library
7672 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7673 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7674 # are building a version numbered shared library.
7675 OTHER_INSTALLS="installlib"
7676 BASE_INSTALL="installbase"
7677 BASE_BINARY="binarybase"
7678 USE_ABI="no"
7679 BUNDLE=""
7680 EXTRATARGET=""
7682 case "$target" in
7683 *hp-hpux9*)
7684 SYS_DEFS="-D_HPUX_SOURCE"
7685 cat >>confdefs.h <<\_ACEOF
7686 #define SELECT_IN_TIME_H 1
7687 _ACEOF
7690 *hp-hpux*)
7691 SYS_DEFS="-D_HPUX_SOURCE"
7693 *ibm-aix*)
7694 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7695 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7697 *dec-osf*)
7698 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
7699 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7700 else
7701 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7704 sparc*sunos*)
7705 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7707 *atheos*)
7708 BASE_BINARY="atheosbinary"
7710 *beos*)
7711 BASE_INSTALL="beosinstall"
7712 BASE_BINARY="beosbinary"
7713 OTHER_INSTALLS=""
7715 *nto-qnx*)
7717 *qnx*)
7718 SHLPRE=""
7719 SHLPST=".lib"
7720 MODPST=".lib"
7721 # getting duplicate targets
7722 BUNDLE=".junk2"
7723 EEXTRA="-mf -N0x20000 -Q"
7724 LIBPRE=""
7725 LIBPST=".lib"
7727 *cygwin*)
7728 LIBPRE="lib"
7729 SHLPRE=""
7730 LIBPST=".a"
7731 BASE_INSTALL="cygwininstall"
7732 BASE_BINARY="cygwinbinary"
7733 OTHER_INSTALLS=""
7735 *apple-darwin*)
7736 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7738 # Link switches for building "bundles"
7740 OTHER_INSTALLS="installlib installmacosx"
7744 esac
7745 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7746 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7747 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7748 LD_RXLIB_B1=""
7749 LD_RXLIB_B2=""
7750 LD_RXLIB_UTILB=""
7751 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7753 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7755 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7756 LIBLINK="-L. -l${LIBFILE}"
7757 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7758 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7760 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7761 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7762 EXECISER_DEP="${STATICLIB}"
7763 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7764 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7766 # Check whether --with-testpackage was given.
7767 if test "${with_testpackage+set}" = set; then
7768 withval=$with_testpackage; with_test=$withval
7769 else
7770 with_testpackage=no
7773 MH_FUNC_LIBS=""
7774 if test "$with_testpackage" = "yes"; then
7775 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7776 cat >>confdefs.h <<\_ACEOF
7777 #define HAVE_TEST_PACKAGE 1
7778 _ACEOF
7780 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7783 # Check whether --with-regutil was given.
7784 if test "${with_regutil+set}" = set; then
7785 withval=$with_regutil; with_regutil=$withval
7786 else
7787 with_regutil=no
7790 if test "$with_regutil" = "yes" -o "xregutil" = "xregutil"; then
7791 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_REXXUTIL_PACKAGE 1
7794 _ACEOF
7798 # Check whether --with-rexxcurses was given.
7799 if test "${with_rexxcurses+set}" = set; then
7800 withval=$with_rexxcurses; with_rexxcurses=$withval
7801 else
7802 with_rexxcurses=no
7805 if test "$with_rexxcurses" = "yes"; then
7806 # Extract the first word of "rxcurses-config", so it can be a program name with args.
7807 set dummy rxcurses-config; ac_word=$2
7808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7810 if test "${ac_cv_prog_rxcurses_config+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 if test -n "$rxcurses_config"; then
7814 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_rxcurses_config="yes"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7831 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
7834 rxcurses_config=$ac_cv_prog_rxcurses_config
7835 if test -n "$rxcurses_config"; then
7836 { echo "$as_me:$LINENO: result: $rxcurses_config" >&5
7837 echo "${ECHO_T}$rxcurses_config" >&6; }
7838 else
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 if test "$ac_cv_prog_rxcurses_config" = yes; then
7845 EXTRA_LIB=`rxcurses-config --libs`
7846 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_REXXCURSES_PACKAGE 1
7849 _ACEOF
7851 else
7852 { { echo "$as_me:$LINENO: error: rxcurses-config not found. Cannot use --with-rexxcurses switch" >&5
7853 echo "$as_me: error: rxcurses-config not found. Cannot use --with-rexxcurses switch" >&2;}
7854 { (exit 1); exit 1; }; }
7858 # Check whether --with-rexxtk was given.
7859 if test "${with_rexxtk+set}" = set; then
7860 withval=$with_rexxtk; with_rexxtk=$withval
7861 else
7862 with_rexxtk=no
7865 if test "$with_rexxtk" = "yes"; then
7866 # Extract the first word of "rexxtk-config", so it can be a program name with args.
7867 set dummy rexxtk-config; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_prog_rexxtk_config+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 if test -n "$rexxtk_config"; then
7874 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_rexxtk_config="yes"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7887 done
7888 done
7889 IFS=$as_save_IFS
7891 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
7894 rexxtk_config=$ac_cv_prog_rexxtk_config
7895 if test -n "$rexxtk_config"; then
7896 { echo "$as_me:$LINENO: result: $rexxtk_config" >&5
7897 echo "${ECHO_T}$rexxtk_config" >&6; }
7898 else
7899 { echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6; }
7904 if test "$ac_cv_prog_rexxtk_config" = yes; then
7905 EXTRA_LIB=`rexxtk-config --libs`
7906 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_REXXTK_PACKAGE 1
7909 _ACEOF
7911 else
7912 { { echo "$as_me:$LINENO: error: rexxtk-config not found. Cannot use --with-rexxtk switch" >&5
7913 echo "$as_me: error: rexxtk-config not found. Cannot use --with-rexxtk switch" >&2;}
7914 { (exit 1); exit 1; }; }
7918 # Check whether --with-rexxgd was given.
7919 if test "${with_rexxgd+set}" = set; then
7920 withval=$with_rexxgd; with_rexxgd=$withval
7921 else
7922 with_rexxgd=no
7925 if test "$with_rexxgd" = "yes"; then
7926 # Extract the first word of "rexxgd-config", so it can be a program name with args.
7927 set dummy rexxgd-config; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_prog_rexxgd_config+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 if test -n "$rexxgd_config"; then
7934 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_prog_rexxgd_config="yes"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7947 done
7948 done
7949 IFS=$as_save_IFS
7951 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
7954 rexxgd_config=$ac_cv_prog_rexxgd_config
7955 if test -n "$rexxgd_config"; then
7956 { echo "$as_me:$LINENO: result: $rexxgd_config" >&5
7957 echo "${ECHO_T}$rexxgd_config" >&6; }
7958 else
7959 { echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6; }
7964 if test "$ac_cv_prog_rexxgd_config" = yes; then
7965 EXTRA_LIB=`rexxgd-config --libs`
7966 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_REXXGD_PACKAGE 1
7969 _ACEOF
7971 else
7972 { { echo "$as_me:$LINENO: error: rexxgd-config not found. Cannot use --with-rexxgd switch" >&5
7973 echo "$as_me: error: rexxgd-config not found. Cannot use --with-rexxgd switch" >&2;}
7974 { (exit 1); exit 1; }; }
7978 # Check whether --with-rexxcurl was given.
7979 if test "${with_rexxcurl+set}" = set; then
7980 withval=$with_rexxcurl; with_rexxcurl=$withval
7981 else
7982 with_rexxcurl=no
7985 if test "$with_rexxcurl" = "yes"; then
7986 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
7987 set dummy rexxcurl-config; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_prog_rexxcurl_config+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 if test -n "$rexxcurl_config"; then
7994 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_rexxcurl_config="yes"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8011 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
8014 rexxcurl_config=$ac_cv_prog_rexxcurl_config
8015 if test -n "$rexxcurl_config"; then
8016 { echo "$as_me:$LINENO: result: $rexxcurl_config" >&5
8017 echo "${ECHO_T}$rexxcurl_config" >&6; }
8018 else
8019 { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8024 if test "$ac_cv_prog_rexxcurl_config" = yes; then
8025 EXTRA_LIB=`rexxcurl-config --libs`
8026 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8027 cat >>confdefs.h <<\_ACEOF
8028 #define HAVE_REXXCURL_PACKAGE 1
8029 _ACEOF
8031 else
8032 { { echo "$as_me:$LINENO: error: rexxcurl-config not found. Cannot use --with-rexxcurl switch" >&5
8033 echo "$as_me: error: rexxcurl-config not found. Cannot use --with-rexxcurl switch" >&2;}
8034 { (exit 1); exit 1; }; }
8038 # Check whether --with-rexxsql was given.
8039 if test "${with_rexxsql+set}" = set; then
8040 withval=$with_rexxsql; with_rexxsql=$withval
8041 else
8042 with_rexxsql=no
8045 if test "$with_rexxsql" = "yes"; then
8046 # Extract the first word of "rexxsql-config", so it can be a program name with args.
8047 set dummy rexxsql-config; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_rexxsql_config+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 if test -n "$rexxsql_config"; then
8054 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_rexxsql_config="yes"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8069 IFS=$as_save_IFS
8071 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
8074 rexxsql_config=$ac_cv_prog_rexxsql_config
8075 if test -n "$rexxsql_config"; then
8076 { echo "$as_me:$LINENO: result: $rexxsql_config" >&5
8077 echo "${ECHO_T}$rexxsql_config" >&6; }
8078 else
8079 { echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6; }
8084 if test "$ac_cv_prog_rexxsql_config" = yes; then
8085 EXTRA_LIB=`rexxsql-config --libs`
8086 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8087 cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_REXXSQL_PACKAGE 1
8089 _ACEOF
8091 else
8092 { { echo "$as_me:$LINENO: error: rexxsql-config not found. Cannot use --with-rexxsql switch" >&5
8093 echo "$as_me: error: rexxsql-config not found. Cannot use --with-rexxsql switch" >&2;}
8094 { (exit 1); exit 1; }; }
8098 # Check whether --with-rexxeec was given.
8099 if test "${with_rexxeec+set}" = set; then
8100 withval=$with_rexxeec; with_rexxeec=$withval
8101 else
8102 with_rexxeec=no
8105 if test "$with_rexxeec" = "yes"; then
8106 # Extract the first word of "rexxeec-config", so it can be a program name with args.
8107 set dummy rexxeec-config; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_prog_rexxeec_config+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 if test -n "$rexxeec_config"; then
8114 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_rexxeec_config="yes"
8124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8131 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
8134 rexxeec_config=$ac_cv_prog_rexxeec_config
8135 if test -n "$rexxeec_config"; then
8136 { echo "$as_me:$LINENO: result: $rexxeec_config" >&5
8137 echo "${ECHO_T}$rexxeec_config" >&6; }
8138 else
8139 { echo "$as_me:$LINENO: result: no" >&5
8140 echo "${ECHO_T}no" >&6; }
8144 if test "$ac_cv_prog_rexxeec_config" = yes; then
8145 EXTRA_LIB=`rexxeec-config --libs`
8146 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8147 cat >>confdefs.h <<\_ACEOF
8148 #define HAVE_REXXEEC_PACKAGE 1
8149 _ACEOF
8151 else
8152 { { echo "$as_me:$LINENO: error: rexxeec-config not found. Cannot use --with-rexxeec switch" >&5
8153 echo "$as_me: error: rexxeec-config not found. Cannot use --with-rexxeec switch" >&2;}
8154 { (exit 1); exit 1; }; }
8158 # Check whether --with-rexxisam was given.
8159 if test "${with_rexxisam+set}" = set; then
8160 withval=$with_rexxisam; with_rexxisam=$withval
8161 else
8162 with_rexxisam=no
8165 if test "$with_rexxisam" = "yes"; then
8166 # Extract the first word of "rexxisam-config", so it can be a program name with args.
8167 set dummy rexxisam-config; ac_word=$2
8168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8170 if test "${ac_cv_prog_rexxisam_config+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173 if test -n "$rexxisam_config"; then
8174 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_rexxisam_config="yes"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8187 done
8188 done
8189 IFS=$as_save_IFS
8191 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
8194 rexxisam_config=$ac_cv_prog_rexxisam_config
8195 if test -n "$rexxisam_config"; then
8196 { echo "$as_me:$LINENO: result: $rexxisam_config" >&5
8197 echo "${ECHO_T}$rexxisam_config" >&6; }
8198 else
8199 { echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6; }
8204 if test "$ac_cv_prog_rexxisam_config" = yes; then
8205 EXTRA_LIB=`rexxisam-config --libs`
8206 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_REXXISAM_PACKAGE 1
8209 _ACEOF
8211 else
8212 { { echo "$as_me:$LINENO: error: rexxisam-config not found. Cannot use --with-rexxisam switch" >&5
8213 echo "$as_me: error: rexxisam-config not found. Cannot use --with-rexxisam switch" >&2;}
8214 { (exit 1); exit 1; }; }
8218 # Check whether --with-rxsock was given.
8219 if test "${with_rxsock+set}" = set; then
8220 withval=$with_rxsock; with_rxsock=$withval
8221 else
8222 with_rxsock=no
8225 if test "$with_rxsock" = "yes"; then
8226 # Extract the first word of "rxsock-config", so it can be a program name with args.
8227 set dummy rxsock-config; ac_word=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_prog_rxsock_config+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 if test -n "$rxsock_config"; then
8234 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_rxsock_config="yes"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8251 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
8254 rxsock_config=$ac_cv_prog_rxsock_config
8255 if test -n "$rxsock_config"; then
8256 { echo "$as_me:$LINENO: result: $rxsock_config" >&5
8257 echo "${ECHO_T}$rxsock_config" >&6; }
8258 else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8264 if test "$ac_cv_prog_rxsock_config" = yes; then
8265 EXTRA_LIB=`rxsock-config --libs`
8266 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8267 cat >>confdefs.h <<\_ACEOF
8268 #define HAVE_RXSOCK_PACKAGE 1
8269 _ACEOF
8271 else
8272 { { echo "$as_me:$LINENO: error: rxsock-config not found. Cannot use --with-rxsock switch" >&5
8273 echo "$as_me: error: rxsock-config not found. Cannot use --with-rxsock switch" >&2;}
8274 { (exit 1); exit 1; }; }
8278 # Check whether --with-rexxdw was given.
8279 if test "${with_rexxdw+set}" = set; then
8280 withval=$with_rexxdw; with_rexxdw=$withval
8281 else
8282 with_rexxdw=no
8285 if test "$with_rexxdw" = "yes"; then
8286 # Extract the first word of "rexxdw-config", so it can be a program name with args.
8287 set dummy rexxdw-config; ac_word=$2
8288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8290 if test "${ac_cv_prog_rexxdw_config+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 if test -n "$rexxdw_config"; then
8294 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_rexxdw_config="yes"
8304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8307 done
8308 done
8309 IFS=$as_save_IFS
8311 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
8314 rexxdw_config=$ac_cv_prog_rexxdw_config
8315 if test -n "$rexxdw_config"; then
8316 { echo "$as_me:$LINENO: result: $rexxdw_config" >&5
8317 echo "${ECHO_T}$rexxdw_config" >&6; }
8318 else
8319 { echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6; }
8324 if test "$ac_cv_prog_rexxdw_config" = yes; then
8325 EXTRA_LIB=`rexxdw-config --libs`
8326 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_REXXDW_PACKAGE 1
8329 _ACEOF
8331 else
8332 { { echo "$as_me:$LINENO: error: rexxdw-config not found. Cannot use --with-rexxdw switch" >&5
8333 echo "$as_me: error: rexxdw-config not found. Cannot use --with-rexxdw switch" >&2;}
8334 { (exit 1); exit 1; }; }
8338 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
8391 else
8393 SHLPRE="lib"
8394 SHLPST=".a"
8395 MODPST=".a"
8396 LIBFILE="rexx"
8397 SHLFILE="regina"
8398 OSAVE=".o.save"
8399 OBJ="o"
8400 LIBPST=".a"
8401 LIBPRE="lib"
8402 LIBEXE="ar"
8403 GETOPT=""
8404 OBJECTS='$('OFILES')'
8405 STATIC_LDFLAGS=""
8406 AIX_DYN="no"
8407 BEOS_DYN="no"
8408 DYN_COMP="-DDYNAMIC"
8410 SHL_LD=""
8411 TEST1EXPORTS=""
8412 TEST2EXPORTS=""
8413 TEST1EXP=""
8414 TEST2EXP=""
8415 REGINAEXP=""
8416 REGUTILEXPORTS=""
8417 REGUTILEXP=""
8420 # OTHER_INSTALLS is set to install a non-version numbered shared library
8421 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
8422 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
8423 # are building a version numbered shared library.
8424 OTHER_INSTALLS="installlib"
8425 BASE_INSTALL="installbase"
8426 BASE_BINARY="binarybase"
8427 USE_ABI="no"
8428 BUNDLE=""
8429 EXTRATARGET=""
8431 case "$target" in
8432 *hp-hpux9*)
8433 SYS_DEFS="-D_HPUX_SOURCE"
8434 cat >>confdefs.h <<\_ACEOF
8435 #define SELECT_IN_TIME_H 1
8436 _ACEOF
8439 *hp-hpux*)
8440 SYS_DEFS="-D_HPUX_SOURCE"
8442 *ibm-aix*)
8443 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8444 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8446 *dec-osf*)
8447 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
8448 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
8449 else
8450 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
8453 sparc*sunos*)
8454 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
8456 *atheos*)
8457 BASE_BINARY="atheosbinary"
8459 *beos*)
8460 BASE_INSTALL="beosinstall"
8461 BASE_BINARY="beosbinary"
8462 OTHER_INSTALLS=""
8464 *nto-qnx*)
8466 *qnx*)
8467 SHLPRE=""
8468 SHLPST=".lib"
8469 MODPST=".lib"
8470 # getting duplicate targets
8471 BUNDLE=".junk2"
8472 EEXTRA="-mf -N0x20000 -Q"
8473 LIBPRE=""
8474 LIBPST=".lib"
8476 *cygwin*)
8477 LIBPRE="lib"
8478 SHLPRE=""
8479 LIBPST=".a"
8480 BASE_INSTALL="cygwininstall"
8481 BASE_BINARY="cygwinbinary"
8482 OTHER_INSTALLS=""
8484 *apple-darwin*)
8485 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
8487 # Link switches for building "bundles"
8489 OTHER_INSTALLS="installlib installmacosx"
8493 esac
8494 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
8495 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
8496 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
8497 LD_RXLIB_B1=""
8498 LD_RXLIB_B2=""
8499 LD_RXLIB_UTILB=""
8500 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
8502 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
8504 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
8505 LIBLINK="-L. -l${LIBFILE}"
8506 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
8507 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
8509 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
8510 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
8511 EXECISER_DEP="${STATICLIB}"
8512 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
8513 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
8515 # Check whether --with-testpackage was given.
8516 if test "${with_testpackage+set}" = set; then
8517 withval=$with_testpackage; with_test=$withval
8518 else
8519 with_testpackage=no
8522 MH_FUNC_LIBS=""
8523 if test "$with_testpackage" = "yes"; then
8524 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_TEST_PACKAGE 1
8527 _ACEOF
8529 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8532 # Check whether --with-regutil was given.
8533 if test "${with_regutil+set}" = set; then
8534 withval=$with_regutil; with_regutil=$withval
8535 else
8536 with_regutil=no
8539 if test "$with_regutil" = "yes" -o "x" = "xregutil"; then
8540 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_REXXUTIL_PACKAGE 1
8543 _ACEOF
8547 # Check whether --with-rexxcurses was given.
8548 if test "${with_rexxcurses+set}" = set; then
8549 withval=$with_rexxcurses; with_rexxcurses=$withval
8550 else
8551 with_rexxcurses=no
8554 if test "$with_rexxcurses" = "yes"; then
8555 # Extract the first word of "rxcurses-config", so it can be a program name with args.
8556 set dummy rxcurses-config; ac_word=$2
8557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8559 if test "${ac_cv_prog_rxcurses_config+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 if test -n "$rxcurses_config"; then
8563 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_prog_rxcurses_config="yes"
8573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8576 done
8577 done
8578 IFS=$as_save_IFS
8580 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
8583 rxcurses_config=$ac_cv_prog_rxcurses_config
8584 if test -n "$rxcurses_config"; then
8585 { echo "$as_me:$LINENO: result: $rxcurses_config" >&5
8586 echo "${ECHO_T}$rxcurses_config" >&6; }
8587 else
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8593 if test "$ac_cv_prog_rxcurses_config" = yes; then
8594 EXTRA_LIB=`rxcurses-config --libs`
8595 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8596 cat >>confdefs.h <<\_ACEOF
8597 #define HAVE_REXXCURSES_PACKAGE 1
8598 _ACEOF
8600 else
8601 { { echo "$as_me:$LINENO: error: rxcurses-config not found. Cannot use --with-rexxcurses switch" >&5
8602 echo "$as_me: error: rxcurses-config not found. Cannot use --with-rexxcurses switch" >&2;}
8603 { (exit 1); exit 1; }; }
8607 # Check whether --with-rexxtk was given.
8608 if test "${with_rexxtk+set}" = set; then
8609 withval=$with_rexxtk; with_rexxtk=$withval
8610 else
8611 with_rexxtk=no
8614 if test "$with_rexxtk" = "yes"; then
8615 # Extract the first word of "rexxtk-config", so it can be a program name with args.
8616 set dummy rexxtk-config; ac_word=$2
8617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8619 if test "${ac_cv_prog_rexxtk_config+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 if test -n "$rexxtk_config"; then
8623 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_rexxtk_config="yes"
8633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8636 done
8637 done
8638 IFS=$as_save_IFS
8640 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
8643 rexxtk_config=$ac_cv_prog_rexxtk_config
8644 if test -n "$rexxtk_config"; then
8645 { echo "$as_me:$LINENO: result: $rexxtk_config" >&5
8646 echo "${ECHO_T}$rexxtk_config" >&6; }
8647 else
8648 { echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6; }
8653 if test "$ac_cv_prog_rexxtk_config" = yes; then
8654 EXTRA_LIB=`rexxtk-config --libs`
8655 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8656 cat >>confdefs.h <<\_ACEOF
8657 #define HAVE_REXXTK_PACKAGE 1
8658 _ACEOF
8660 else
8661 { { echo "$as_me:$LINENO: error: rexxtk-config not found. Cannot use --with-rexxtk switch" >&5
8662 echo "$as_me: error: rexxtk-config not found. Cannot use --with-rexxtk switch" >&2;}
8663 { (exit 1); exit 1; }; }
8667 # Check whether --with-rexxgd was given.
8668 if test "${with_rexxgd+set}" = set; then
8669 withval=$with_rexxgd; with_rexxgd=$withval
8670 else
8671 with_rexxgd=no
8674 if test "$with_rexxgd" = "yes"; then
8675 # Extract the first word of "rexxgd-config", so it can be a program name with args.
8676 set dummy rexxgd-config; ac_word=$2
8677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8679 if test "${ac_cv_prog_rexxgd_config+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682 if test -n "$rexxgd_config"; then
8683 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_rexxgd_config="yes"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8696 done
8697 done
8698 IFS=$as_save_IFS
8700 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
8703 rexxgd_config=$ac_cv_prog_rexxgd_config
8704 if test -n "$rexxgd_config"; then
8705 { echo "$as_me:$LINENO: result: $rexxgd_config" >&5
8706 echo "${ECHO_T}$rexxgd_config" >&6; }
8707 else
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8713 if test "$ac_cv_prog_rexxgd_config" = yes; then
8714 EXTRA_LIB=`rexxgd-config --libs`
8715 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_REXXGD_PACKAGE 1
8718 _ACEOF
8720 else
8721 { { echo "$as_me:$LINENO: error: rexxgd-config not found. Cannot use --with-rexxgd switch" >&5
8722 echo "$as_me: error: rexxgd-config not found. Cannot use --with-rexxgd switch" >&2;}
8723 { (exit 1); exit 1; }; }
8727 # Check whether --with-rexxcurl was given.
8728 if test "${with_rexxcurl+set}" = set; then
8729 withval=$with_rexxcurl; with_rexxcurl=$withval
8730 else
8731 with_rexxcurl=no
8734 if test "$with_rexxcurl" = "yes"; then
8735 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
8736 set dummy rexxcurl-config; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_prog_rexxcurl_config+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 if test -n "$rexxcurl_config"; then
8743 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_rexxcurl_config="yes"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8760 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
8763 rexxcurl_config=$ac_cv_prog_rexxcurl_config
8764 if test -n "$rexxcurl_config"; then
8765 { echo "$as_me:$LINENO: result: $rexxcurl_config" >&5
8766 echo "${ECHO_T}$rexxcurl_config" >&6; }
8767 else
8768 { echo "$as_me:$LINENO: result: no" >&5
8769 echo "${ECHO_T}no" >&6; }
8773 if test "$ac_cv_prog_rexxcurl_config" = yes; then
8774 EXTRA_LIB=`rexxcurl-config --libs`
8775 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_REXXCURL_PACKAGE 1
8778 _ACEOF
8780 else
8781 { { echo "$as_me:$LINENO: error: rexxcurl-config not found. Cannot use --with-rexxcurl switch" >&5
8782 echo "$as_me: error: rexxcurl-config not found. Cannot use --with-rexxcurl switch" >&2;}
8783 { (exit 1); exit 1; }; }
8787 # Check whether --with-rexxsql was given.
8788 if test "${with_rexxsql+set}" = set; then
8789 withval=$with_rexxsql; with_rexxsql=$withval
8790 else
8791 with_rexxsql=no
8794 if test "$with_rexxsql" = "yes"; then
8795 # Extract the first word of "rexxsql-config", so it can be a program name with args.
8796 set dummy rexxsql-config; ac_word=$2
8797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8799 if test "${ac_cv_prog_rexxsql_config+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test -n "$rexxsql_config"; then
8803 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_rexxsql_config="yes"
8813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8818 IFS=$as_save_IFS
8820 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
8823 rexxsql_config=$ac_cv_prog_rexxsql_config
8824 if test -n "$rexxsql_config"; then
8825 { echo "$as_me:$LINENO: result: $rexxsql_config" >&5
8826 echo "${ECHO_T}$rexxsql_config" >&6; }
8827 else
8828 { echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6; }
8833 if test "$ac_cv_prog_rexxsql_config" = yes; then
8834 EXTRA_LIB=`rexxsql-config --libs`
8835 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_REXXSQL_PACKAGE 1
8838 _ACEOF
8840 else
8841 { { echo "$as_me:$LINENO: error: rexxsql-config not found. Cannot use --with-rexxsql switch" >&5
8842 echo "$as_me: error: rexxsql-config not found. Cannot use --with-rexxsql switch" >&2;}
8843 { (exit 1); exit 1; }; }
8847 # Check whether --with-rexxeec was given.
8848 if test "${with_rexxeec+set}" = set; then
8849 withval=$with_rexxeec; with_rexxeec=$withval
8850 else
8851 with_rexxeec=no
8854 if test "$with_rexxeec" = "yes"; then
8855 # Extract the first word of "rexxeec-config", so it can be a program name with args.
8856 set dummy rexxeec-config; ac_word=$2
8857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8859 if test "${ac_cv_prog_rexxeec_config+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 if test -n "$rexxeec_config"; then
8863 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
8864 else
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872 ac_cv_prog_rexxeec_config="yes"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8880 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
8883 rexxeec_config=$ac_cv_prog_rexxeec_config
8884 if test -n "$rexxeec_config"; then
8885 { echo "$as_me:$LINENO: result: $rexxeec_config" >&5
8886 echo "${ECHO_T}$rexxeec_config" >&6; }
8887 else
8888 { echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6; }
8893 if test "$ac_cv_prog_rexxeec_config" = yes; then
8894 EXTRA_LIB=`rexxeec-config --libs`
8895 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8896 cat >>confdefs.h <<\_ACEOF
8897 #define HAVE_REXXEEC_PACKAGE 1
8898 _ACEOF
8900 else
8901 { { echo "$as_me:$LINENO: error: rexxeec-config not found. Cannot use --with-rexxeec switch" >&5
8902 echo "$as_me: error: rexxeec-config not found. Cannot use --with-rexxeec switch" >&2;}
8903 { (exit 1); exit 1; }; }
8907 # Check whether --with-rexxisam was given.
8908 if test "${with_rexxisam+set}" = set; then
8909 withval=$with_rexxisam; with_rexxisam=$withval
8910 else
8911 with_rexxisam=no
8914 if test "$with_rexxisam" = "yes"; then
8915 # Extract the first word of "rexxisam-config", so it can be a program name with args.
8916 set dummy rexxisam-config; ac_word=$2
8917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8919 if test "${ac_cv_prog_rexxisam_config+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 if test -n "$rexxisam_config"; then
8923 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_prog_rexxisam_config="yes"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8936 done
8937 done
8938 IFS=$as_save_IFS
8940 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
8943 rexxisam_config=$ac_cv_prog_rexxisam_config
8944 if test -n "$rexxisam_config"; then
8945 { echo "$as_me:$LINENO: result: $rexxisam_config" >&5
8946 echo "${ECHO_T}$rexxisam_config" >&6; }
8947 else
8948 { echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6; }
8953 if test "$ac_cv_prog_rexxisam_config" = yes; then
8954 EXTRA_LIB=`rexxisam-config --libs`
8955 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8956 cat >>confdefs.h <<\_ACEOF
8957 #define HAVE_REXXISAM_PACKAGE 1
8958 _ACEOF
8960 else
8961 { { echo "$as_me:$LINENO: error: rexxisam-config not found. Cannot use --with-rexxisam switch" >&5
8962 echo "$as_me: error: rexxisam-config not found. Cannot use --with-rexxisam switch" >&2;}
8963 { (exit 1); exit 1; }; }
8967 # Check whether --with-rxsock was given.
8968 if test "${with_rxsock+set}" = set; then
8969 withval=$with_rxsock; with_rxsock=$withval
8970 else
8971 with_rxsock=no
8974 if test "$with_rxsock" = "yes"; then
8975 # Extract the first word of "rxsock-config", so it can be a program name with args.
8976 set dummy rxsock-config; ac_word=$2
8977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8979 if test "${ac_cv_prog_rxsock_config+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 if test -n "$rxsock_config"; then
8983 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_rxsock_config="yes"
8993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9000 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
9003 rxsock_config=$ac_cv_prog_rxsock_config
9004 if test -n "$rxsock_config"; then
9005 { echo "$as_me:$LINENO: result: $rxsock_config" >&5
9006 echo "${ECHO_T}$rxsock_config" >&6; }
9007 else
9008 { echo "$as_me:$LINENO: result: no" >&5
9009 echo "${ECHO_T}no" >&6; }
9013 if test "$ac_cv_prog_rxsock_config" = yes; then
9014 EXTRA_LIB=`rxsock-config --libs`
9015 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_RXSOCK_PACKAGE 1
9018 _ACEOF
9020 else
9021 { { echo "$as_me:$LINENO: error: rxsock-config not found. Cannot use --with-rxsock switch" >&5
9022 echo "$as_me: error: rxsock-config not found. Cannot use --with-rxsock switch" >&2;}
9023 { (exit 1); exit 1; }; }
9027 # Check whether --with-rexxdw was given.
9028 if test "${with_rexxdw+set}" = set; then
9029 withval=$with_rexxdw; with_rexxdw=$withval
9030 else
9031 with_rexxdw=no
9034 if test "$with_rexxdw" = "yes"; then
9035 # Extract the first word of "rexxdw-config", so it can be a program name with args.
9036 set dummy rexxdw-config; ac_word=$2
9037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9039 if test "${ac_cv_prog_rexxdw_config+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042 if test -n "$rexxdw_config"; then
9043 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_rexxdw_config="yes"
9053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9056 done
9057 done
9058 IFS=$as_save_IFS
9060 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
9063 rexxdw_config=$ac_cv_prog_rexxdw_config
9064 if test -n "$rexxdw_config"; then
9065 { echo "$as_me:$LINENO: result: $rexxdw_config" >&5
9066 echo "${ECHO_T}$rexxdw_config" >&6; }
9067 else
9068 { echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6; }
9073 if test "$ac_cv_prog_rexxdw_config" = yes; then
9074 EXTRA_LIB=`rexxdw-config --libs`
9075 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_REXXDW_PACKAGE 1
9078 _ACEOF
9080 else
9081 { { echo "$as_me:$LINENO: error: rexxdw-config not found. Cannot use --with-rexxdw switch" >&5
9082 echo "$as_me: error: rexxdw-config not found. Cannot use --with-rexxdw switch" >&2;}
9083 { (exit 1); exit 1; }; }
9087 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
9141 else
9142 STATICLD_SHO=""
9149 SHLPRE="lib"
9150 LIBFILE="regina"
9151 SHLFILE="regina"
9152 OSAVE=".o.save"
9153 OBJ="o"
9154 LIBPST=".a"
9155 LIBPRE="lib"
9156 LIBEXE="ar"
9157 GETOPT=""
9158 OBJECTS='$('OFILES')'
9159 STATIC_LDFLAGS=""
9160 AIX_DYN="no"
9161 BEOS_DYN="no"
9164 case "$target" in
9165 *hp-hpux9*)
9166 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
9167 cat >>confdefs.h <<\_ACEOF
9168 #define SELECT_IN_TIME_H 1
9169 _ACEOF
9172 *hp-hpux*)
9173 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
9174 SYS_DEFS="-D_HPUX_SOURCE"
9175 else
9176 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
9179 *ibm-aix3*|*ibm-aix4.1*)
9180 SYS_DEFS="-D_ALL_SOURCE -DAIX"
9182 *ibm-aix*)
9183 SYS_DEFS="-D_ALL_SOURCE -DAIX"
9184 DYN_COMP="-DDYNAMIC"
9186 *dec-osf*)
9187 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
9188 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
9189 else
9190 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
9193 sparc*sunos*)
9194 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
9196 *nto-qnx*)
9198 *skyos*)
9199 DYN_COMP="-DDYNAMIC"
9201 *qnx*)
9202 LIBPRE=""
9203 LIBPST=".lib"
9204 SHLPRE=""
9205 SHLPST=".lib"
9206 SHLFILE="rexx"
9208 *cygwin*)
9209 LIBPRE="lib"
9210 SHLPRE=""
9211 DYN_COMP="-DDYNAMIC"
9212 LIBPST=".a"
9214 *darwin*)
9215 DYN_COMP="-fno-common"
9217 esac
9219 if test "$DYN_COMP" = ""; then
9220 { echo "$as_me:$LINENO: checking compiler flags for a dynamic object" >&5
9221 echo $ECHO_N "checking compiler flags for a dynamic object... $ECHO_C" >&6; }
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9224 "configure"
9225 int a=0
9228 DYN_COMP=""
9229 mh_cv_stop=no
9230 save_cflags="$CFLAGS"
9231 mh_cv_flags="-fPIC -KPIC +Z"
9232 for a in $mh_cv_flags; do
9233 CFLAGS="-c $a"
9235 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
9236 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5
9237 (eval $mh_compile) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; then
9241 DYN_COMP=""
9242 else
9243 slash="\\"
9244 mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
9245 if test "$mh_dyncomp" = "0"; then
9246 DYN_COMP="$a -DDYNAMIC"
9247 { echo "$as_me:$LINENO: result: $a" >&5
9248 echo "${ECHO_T}$a" >&6; }
9249 break
9250 else
9251 DYN_COMP=""
9254 done
9255 if test "$DYN_COMP" = ""; then
9256 { echo "$as_me:$LINENO: result: none of $mh_cv_flags supported" >&5
9257 echo "${ECHO_T}none of $mh_cv_flags supported" >&6; }
9259 CFLAGS="$save_cflags"
9260 rm -f conftest.*
9263 SHL_LD=""
9264 TEST1EXPORTS=""
9265 TEST2EXPORTS=""
9266 TEST1EXP=""
9267 TEST2EXP=""
9268 REGINAEXP=""
9269 REGUTILEXP=""
9271 # If the build OS can handle version numbers in the shared library name,
9272 # then set SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9273 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9275 # OTHER_INSTALLS is set to install a non-version numbered shared library
9276 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
9277 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
9278 # are building a version numbered shared library.
9279 OTHER_INSTALLS="installlib"
9280 BASE_INSTALL="installbase"
9281 BASE_BINARY="binarybase"
9282 USE_ABI="no"
9283 BUNDLE=""
9284 EXTRATARGET=""
9285 case "$target" in
9286 *hp-hpux*)
9287 SHLPRE="lib"
9288 if test "$ac_cv_prog_CC" = "gcc"; then
9289 LD_RXLIB_A1="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
9290 LD_RXLIB_A2="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
9291 LD_RXLIB_UTILA="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
9292 LD_RXLIB_B1="-L. -l${SHLFILE}"
9293 LD_RXLIB_B2="-L. -l${SHLFILE}"
9294 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9295 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -fPIC -shared ${LDFLAGS} \$(SHOFILES)"
9296 else
9297 EEXTRA="-Wl,-E"
9298 LD_RXLIB_A1="ld -b -q -n -o \$(@)"
9299 LD_RXLIB_A2="ld -b -q -n -o \$(@)"
9300 LD_RXLIB_UTILA="ld -b -q -n -o \$(@)"
9301 LD_RXLIB_B1=""
9302 LD_RXLIB_B2=""
9303 LD_RXLIB_UTILB=""
9304 DYNAMIC_LDFLAGS="-Wl,+s"
9305 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9308 *ibm-aix3*)
9309 STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
9310 LD_RXLIB_A1="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
9311 LD_RXLIB_A2="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
9312 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
9313 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9314 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9315 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9316 SHLPRE="lib"
9317 TEST1EXPORTS="-bE:test1.exp"
9318 TEST2EXPORTS="-bE:test2.exp"
9319 TEST1EXP="test1.exp"
9320 TEST2EXP="test2.exp"
9321 REGINAEXP="regina.exp"
9322 REGUTILEXP="regutil.exp"
9323 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9324 AIX_DYN="yes"
9325 DYN_COMP="-DDYNAMIC"
9326 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE -bT:512 -bH:512 "'$('SHOFILES')'" -lc"
9327 else
9328 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
9329 DYN_COMP=""
9332 *ibm-aix*)
9333 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
9334 SHLPRE="lib"
9335 if test "$ac_cv_prog_CC" = "gcc"; then
9336 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9337 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9338 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9339 LD_RXLIB_B1="-L. -l${SHLFILE}"
9340 LD_RXLIB_B2="-L. -l${SHLFILE}"
9341 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9342 else
9343 LD_RXLIB_A1="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
9344 LD_RXLIB_A2="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
9345 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
9346 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9347 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9348 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
9349 TEST1EXPORTS="-bE:test1.exp"
9350 TEST2EXPORTS="-bE:test2.exp"
9351 TEST1EXP="test1.exp"
9352 TEST2EXP="test2.exp"
9353 REGUTILEXPORTS="-bE:regutil.exp"
9354 REGUTILEXP="regutil.exp"
9356 REGINAEXP="regina.exp"
9357 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9358 AIX_DYN="yes"
9359 DYN_COMP="-DDYNAMIC"
9360 if test "$ac_cv_prog_CC" = "gcc"; then
9361 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-bnoentry -Wl,-bE:regina.exp -Wl,-bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
9362 else
9363 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
9365 else
9366 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
9367 DYN_COMP=""
9370 *dec-osf*)
9371 LD_RXLIB_A1="ld -shared -o \$(@)"
9372 LD_RXLIB_A2="ld -shared -o \$(@)"
9373 LD_RXLIB_UTILA="ld -shared -o \$(@)"
9374 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
9375 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
9376 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
9377 SHLPRE="lib"
9378 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
9380 *esix*)
9381 LD_RXLIB_A1="ld -G -o \$(@)"
9382 LD_RXLIB_A2="ld -G -o \$(@)"
9383 LD_RXLIB_UTILA="ld -G -o \$(@)"
9384 LD_RXLIB_B1=""
9385 LD_RXLIB_B2=""
9386 LD_RXLIB_UTILB=""
9387 DYNAMIC_LDFLAGS=""
9388 SHLPRE="lib"
9389 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9391 *dgux*)
9392 LD_RXLIB_A1="ld -G -o \$(@)"
9393 LD_RXLIB_A2="ld -G -o \$(@)"
9394 LD_RXLIB_UTILA="ld -G -o \$(@)"
9395 LD_RXLIB_B1=""
9396 LD_RXLIB_B2=""
9397 LD_RXLIB_UTILB=""
9398 DYNAMIC_LDFLAGS=""
9399 SHLPRE="lib"
9400 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9402 *pc-sco*)
9403 LD_RXLIB_A1="ld -dy -G -o \$(@)"
9404 LD_RXLIB_A2="ld -dy -G -o \$(@)"
9405 LD_RXLIB_UTILA="ld -dy -G -o \$(@)"
9406 LD_RXLIB_B1=""
9407 LD_RXLIB_B2=""
9408 LD_RXLIB_UTILB=""
9409 DYNAMIC_LDFLAGS=""
9410 SHLPRE="lib"
9411 SHL_LD="ld -dy -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9413 *solaris*)
9414 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
9415 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9416 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9417 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9418 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9419 else
9420 LD_RXLIB_A1="ld -G ${LDFLAGS} -o \$(@)"
9421 LD_RXLIB_A2="ld -G ${LDFLAGS} -o \$(@)"
9422 LD_RXLIB_UTILA="ld -G ${LDFLAGS} -o \$(@)"
9423 SHL_LD="ld -G ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9425 LD_RXLIB_B1=""
9426 LD_RXLIB_B2=""
9427 LD_RXLIB_UTILB=""
9428 DYNAMIC_LDFLAGS=""
9429 SHLPRE="lib"
9431 sparc*sunos*)
9432 LD_RXLIB_A1="ld -o \$(@)"
9433 LD_RXLIB_A2="ld -o \$(@)"
9434 LD_RXLIB_UTILA="ld -o \$(@)"
9435 LD_RXLIB_B1=""
9436 LD_RXLIB_B2=""
9437 LD_RXLIB_UTILB=""
9438 SHLPRE="lib"
9439 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9441 *freebsd*)
9442 LD_RXLIB_A1="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9443 LD_RXLIB_A2="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9444 LD_RXLIB_UTILA="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9445 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
9446 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
9447 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
9448 SHLPRE="lib"
9449 SHL_LD="ld -Bdynamic -Bshareable ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9451 *linux*)
9452 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9453 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9454 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9455 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9456 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9457 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9458 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9459 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9460 SHLPRE="lib"
9461 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} \$(SHOFILES) -lc"
9462 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9463 OTHER_INSTALLS="installabilib"
9464 USE_ABI="yes"
9466 *hurd*)
9467 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9468 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9469 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9470 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9471 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9472 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9473 SHLPRE="lib"
9474 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES) -lc"
9475 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9476 OTHER_INSTALLS="installabilib"
9477 USE_ABI="yes"
9479 *atheos*)
9480 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9481 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9482 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9483 LD_RXLIB_B1="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9484 LD_RXLIB_B2="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9485 LD_RXLIB_UTILB="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9486 SHLPRE="lib"
9487 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared ${LDFLAGS} \$(SHOFILES) "'$('BOTHLIBS')'
9488 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9489 BASE_BINARY="atheosbinary"
9491 *beos*)
9492 LD_RXLIB_A1="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9493 LD_RXLIB_A2="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9494 LD_RXLIB_UTILA="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9495 LD_RXLIB_B1="-L. -l${SHLFILE}"
9496 LD_RXLIB_B2="-L. -l${SHLFILE}"
9497 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9498 SHLPRE="lib"
9499 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared -nostart -Xlinker \$(SHOFILES)"
9500 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9501 BEOS_DYN="yes"
9502 BASE_INSTALL="beosinstall"
9503 BASE_BINARY="beosbinary"
9504 OTHER_INSTALLS=""
9506 *nto-qnx*)
9507 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9508 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9509 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9510 LD_RXLIB_B1="-L. -l${SHLFILE}"
9511 LD_RXLIB_B2="-L. -l${SHLFILE}"
9512 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9513 SHLPRE="lib"
9514 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9515 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9517 *skyos*)
9518 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9519 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9520 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9521 LD_RXLIB_B1="-L. -l${SHLFILE}"
9522 LD_RXLIB_B2="-L. -l${SHLFILE}"
9523 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9524 SHLPRE="lib"
9525 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9526 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9528 *qnx*)
9529 LD_RXLIB_A1=""
9530 LD_RXLIB_A2=""
9531 LD_RXLIB_UTILA=""
9532 LD_RXLIB_B1=""
9533 LD_RXLIB_B2=""
9534 LD_RXLIB_UTILB=""
9535 SHLPRE=""
9536 # set BUNDLE to unique junk names to stop the Makefile
9537 # getting duplicate targets
9538 BUNDLE=".junk2"
9539 SHLPST=".junk"
9540 SHL_LD=""
9541 EEXTRA="-mf -N0x20000 -Q"
9542 LIBPRE=""
9543 LIBPST=".lib"
9544 LIBFILE="rexx"
9546 *cygwin*)
9547 LD_RXLIB_A1="dllwrap --target i386-cygwin32 --def ${srcdir}/test1_w32_dll.def --dllname rxtest1.dll -o \$(@)"
9548 LD_RXLIB_A2="dllwrap --target i386-cygwin32 --def ${srcdir}/test2_w32_dll.def --dllname rxtest2.dll -o \$(@)"
9549 LD_RXLIB_UTILA="dllwrap --target i386-cygwin32 --def ${srcdir}/regutil/regutil.def --dllname regutil.dll -o \$(@)"
9550 LD_RXLIB_B1="-L. -lregina"
9551 LD_RXLIB_B2="-L. -lregina"
9552 LD_RXLIB_UTILB="-L. -lregina"
9553 SHLPRE=""
9554 SHL_LD="dllwrap --def ${srcdir}/regina_w32_dll.def --output-lib libregina.a --target i386-cygwin32 --dllname regina.dll -o regina.dll \$(SHOFILES)"
9555 EEXTRA=""
9556 LIBPRE="lib"
9557 LIBPST=".a"
9558 LIBFILE="rexx"
9559 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9560 TEST1EXPORTS=""
9561 TEST2EXPORTS=""
9562 REGUTILEXPORTS=""
9563 TEST1EXP="${srcdir}/test1_w32_dll.def"
9564 TEST2EXP="${srcdir}/test2_w32_dll.def"
9565 REGINAEXP="${srcdir}/regina_w32_dll.def"
9566 REGUTILEXP="${srcdir}/regutil/regutil.def"
9567 BASE_INSTALL="cygwininstall"
9568 OTHER_INSTALLS=""
9570 *apple-darwin*)
9571 # to test on platform other than real Mac OSX use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
9573 # Link switches for building "bundles"
9575 # MH LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9576 # MH LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9577 EEXTRA="$valid_arch_flags"
9578 LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -o \$(@)"
9579 LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -o \$(@)"
9580 LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -o \$(@)"
9581 LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9582 LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9583 LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9584 DYN_COMP="-DDYNAMIC -fno-common"
9585 SHLPRE="lib"
9586 # MH BUNDLE=".so"
9587 BUNDLE=".junk"
9588 SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -install_name ${SHLPRE}${SHLFILE}${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9589 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9590 # MH EXTRATARGET="libregina$BUNDLE"
9591 OTHER_INSTALLS="installlib"
9595 { echo "$as_me:$LINENO: checking how to create a shared library" >&5
9596 echo $ECHO_N "checking how to create a shared library... $ECHO_C" >&6; }
9597 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9599 "configure"
9600 int foo()
9602 return(0);
9605 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5
9606 (eval $mh_compile) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && test -s conftest.o; then
9610 mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9611 # mh_dyn_link='${CC} -Wl,-shared -o conftest.so.1.0 conftest.o -lc 1>&AC_FD_CC'
9612 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9613 (eval $mh_dyn_link) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && test -s conftest.so.1.0; then
9617 SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9618 # SHL_LD="${CC} -Wl,-shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9619 else
9620 mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5'
9621 # mh_dyn_link='${CC} -Wl,-G -o conftest.so.1.0 conftest.o 1>&AC_FD_CC'
9622 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9623 (eval $mh_dyn_link) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && test -s conftest.so.1.0; then
9627 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9628 # SHL_LD="${CC} -Wl,-G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9629 else
9630 mh_dyn_link='ld -o conftest.so.1.0 -shared -no_archive conftest.o -lc 1>&5'
9631 # mh_dyn_link='${CC} -o conftest.so.1.0 -Wl,-shared,-no_archive conftest.o -lc 1>&AC_FD_CC'
9632 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9633 (eval $mh_dyn_link) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && test -s conftest.so.1.0; then
9637 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
9638 # SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared,-no_archive "'$('SHOFILES')'" -lc"
9639 else
9640 mh_dyn_link='ld -b -o conftest.so.1.0 conftest.o 1>&5'
9641 # mh_dyn_link='${CC} -Wl,-b -o conftest.so.1.0 conftest.o 1>&AC_FD_CC'
9642 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9643 (eval $mh_dyn_link) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && test -s conftest.so.1.0; then
9647 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9648 # SHL_LD="${CC} -Wl,-b -o ${SHLPRE}${SHLFILE}.${SHLPST} "'$('SHOFILES')'
9649 else
9650 mh_dyn_link='ld -Bshareable -o conftest.so.1.0 conftest.o 1>&5'
9651 # mh_dyn_link='${CC} -Wl,-Bshareable -o conftest.so.1.0 conftest.o 1>&AC_FD_CC'
9652 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9653 (eval $mh_dyn_link) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && test -s conftest.so.1.0; then
9657 SHL_LD="ld -Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9658 # SHL_LD="${CC} -Wl,-Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9659 else
9660 mh_dyn_link='ld -assert pure-text -o conftest.so.1.0 conftest.o 1>&5'
9661 # mh_dyn_link='${CC} -Wl,-assert pure-text -o conftest.so.1.0 conftest.o 1>&AC_FD_CC'
9662 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9663 (eval $mh_dyn_link) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s conftest.so.1.0; then
9667 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9668 # SHL_LD="${CC} -Wl,-assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9669 else
9670 SHL_LD=""
9678 if test "$SHL_LD" = ""; then
9679 { echo "$as_me:$LINENO: result: unknown" >&5
9680 echo "${ECHO_T}unknown" >&6; }
9681 else
9682 { echo "$as_me:$LINENO: result: found" >&5
9683 echo "${ECHO_T}found" >&6; }
9685 rm -f conftest*
9688 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9690 "configure"
9691 int foo()
9693 return(0);
9696 if { (eval echo "$as_me:$LINENO: \"$mh_compile\"") >&5
9697 (eval $mh_compile) 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && test -s conftest.o; then
9701 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
9702 # mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC'
9703 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9704 (eval $mh_dyn_link) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && test -s conftest.rxlib; then
9708 LD_RXLIB_A1="ld -shared -o \$(@)"
9709 LD_RXLIB_A2="ld -shared -o \$(@)"
9710 LD_RXLIB_UTILA="ld -shared -o \$(@)"
9711 # LD_RXLIB1="${CC} -Wl,-shared"
9712 LD_RXLIB_B1="-L. -l${SHLFILE}"
9713 LD_RXLIB_B2="-L. -l${SHLFILE}"
9714 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9715 SHLPRE="lib"
9716 SHLPST=".so"
9717 else
9718 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
9719 # mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC'
9720 if { (eval echo "$as_me:$LINENO: \"$mh_dyn_link\"") >&5
9721 (eval $mh_dyn_link) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && test -s conftest.rxlib; then
9725 LD_RXLIB_A1="ld -G -o \$(@)"
9726 LD_RXLIB_A2="ld -G -o \$(@)"
9727 LD_RXLIB_UTILA="ld -G -o \$(@)"
9728 # LD_RXLIB1="${CC} -Wl,-G"
9729 LD_RXLIB_B1="-L. -l${SHLFILE}"
9730 LD_RXLIB_B2="-L. -l${SHLFILE}"
9731 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9732 SHLPRE="lib"
9733 SHLPST=".so"
9734 else
9735 LD_RXLIB_A1=""
9736 LD_RXLIB_A2=""
9737 LD_RXLIB_UTILA=""
9738 LD_RXLIB_B1=""
9739 LD_RXLIB_B2=""
9740 LD_RXLIB_UTILB=""
9741 SHLPRE=""
9742 SHLPST=""
9746 rm -f conftest*
9749 esac
9751 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
9752 LIBLINK="-L. -l${LIBFILE}"
9753 LINKSHL="-L. -l${SHLFILE}"
9755 case "$target" in
9756 *hp-hpux*)
9758 # For HPUX, we must link the "regina" executable with -lregina
9759 # otherwise you can't move the shared library anywhere other
9760 # than where it was built. Fix by PJM
9762 LINKREG="${LINKSHL}"
9764 *cygwin*)
9766 # For CygWin, we must link with the import library
9767 # not the actual DLL
9769 LINKREG="${LINKSHL}"
9771 *skyos*)
9773 # SkyOS requires linking with -L. -lregina format
9775 LINKREG="${LINKSHL}"
9777 *linux*)
9778 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9779 LINKREG="${LINKSHL}"
9782 LINKREG="${SHLPRE}${SHLFILE}${SHLPST}"
9784 esac
9786 if test "$SHL_LD" != ""; then
9787 SHL_LD="$SHL_LD \$(BOTHLIBS) \$(MH_MT_LIBS)"
9790 { echo "$as_me:$LINENO: checking if dynamic loading of external functions is supported" >&5
9791 echo $ECHO_N "checking if dynamic loading of external functions is supported... $ECHO_C" >&6; }
9792 if test "$HAVE_DLFCN_H" = "1" -o "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes"; then
9793 SHL_TARGETS="${SHL_BASE} regina${binarybitprefix}${EXEEXT} ${SHLPRE}regutil${MODPST} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
9794 EXECISER_DEP="${SHL_BASE}"
9795 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
9796 { echo "$as_me:$LINENO: result: \"yes\"" >&5
9797 echo "${ECHO_T}\"yes\"" >&6; }
9798 else
9799 SHL_TARGETS=""
9800 EXECISER_DEP="${STATICLIB}"
9801 OTHER_INSTALLS=""
9802 { echo "$as_me:$LINENO: result: \"no\"" >&5
9803 echo "${ECHO_T}\"no\"" >&6; }
9806 if test "$AIX_DYN" = "yes"; then
9807 STATICLIB=""
9808 LIBPST=".junk"
9809 else
9810 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
9813 RANLIB_DYNAMIC=""
9867 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9868 { echo "$as_me:$LINENO: checking if symbols need underscore prepended in loadable modules" >&5
9869 echo $ECHO_N "checking if symbols need underscore prepended in loadable modules... $ECHO_C" >&6; }
9870 tmpLIBS="$LIBS"
9871 save_cflags="$CFLAGS"
9872 LIBS="$LIBS $DLFCNLIBDIR"
9873 CFLAGS="$CFLAGS $DLFCNINCDIR"
9874 if test "${mh_cv_uscore+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9878 if test "$cross_compiling" = yes; then
9879 mh_cv_uscore=no
9881 else
9882 cat >conftest.$ac_ext <<_ACEOF
9884 #include <dlfcn.h>
9885 int mh_underscore_test (void) { return 42; }
9886 int main() {
9887 void *f1 = (void*)0, *f2 = (void*)0, *handle;
9888 handle = dlopen ((void*)0, 0);
9889 if (handle) {
9890 f1 = dlsym (handle, "mh_underscore_test");
9891 f2 = dlsym (handle, "_mh_underscore_test");
9892 } return (!f2 || f1);
9894 _ACEOF
9895 rm -f conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 mh_cv_uscore=yes
9916 else
9917 echo "$as_me: program exited with status $ac_status" >&5
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ( exit $ac_status )
9922 mh_cv_uscore=no
9924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $mh_cv_uscore" >&5
9932 echo "${ECHO_T}$mh_cv_uscore" >&6; }
9933 if test "x$mh_cv_uscore" = "xyes"; then
9934 cat >>confdefs.h <<\_ACEOF
9935 #define MODULES_NEED_USCORE 1
9936 _ACEOF
9939 LIBS="$tmpLIBS"
9940 CFLAGS="$save_cflags"
9950 # Extract the first word of "rpm", so it can be a program name with args.
9951 set dummy rpm; ac_word=$2
9952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9954 if test "${ac_cv_prog_mh_rpm_exists+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 if test -n "$mh_rpm_exists"; then
9958 ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test.
9959 else
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
9966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9967 ac_cv_prog_mh_rpm_exists="yes"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9971 done
9972 done
9973 IFS=$as_save_IFS
9975 test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no "
9978 mh_rpm_exists=$ac_cv_prog_mh_rpm_exists
9979 if test -n "$mh_rpm_exists"; then
9980 { echo "$as_me:$LINENO: result: $mh_rpm_exists" >&5
9981 echo "${ECHO_T}$mh_rpm_exists" >&6; }
9982 else
9983 { echo "$as_me:$LINENO: result: no" >&5
9984 echo "${ECHO_T}no" >&6; }
9988 if test "$mh_rpm_exists" = yes; then
9989 { echo "$as_me:$LINENO: checking where rpms are built" >&5
9990 echo $ECHO_N "checking where rpms are built... $ECHO_C" >&6; }
9991 RPMTOPDIR=`rpm --eval "%{_topdir}"`
9992 { echo "$as_me:$LINENO: result: $RPMTOPDIR" >&5
9993 echo "${ECHO_T}$RPMTOPDIR" >&6; }
9998 cat >>confdefs.h <<\_ACEOF
9999 #define UNIX 1
10000 _ACEOF
10005 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
10006 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
10007 if test "${ac_cv_c_char_unsigned+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 $ac_includes_default
10018 main ()
10020 static int test_array [1 - 2 * !(((char) -1) < 0)];
10021 test_array [0] = 0
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (ac_try="$ac_compile"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10044 ac_cv_c_char_unsigned=no
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_c_char_unsigned=yes
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
10055 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
10056 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10057 cat >>confdefs.h <<\_ACEOF
10058 #define __CHAR_UNSIGNED__ 1
10059 _ACEOF
10063 { echo "$as_me:$LINENO: checking compiler switch for unsigned char" >&5
10064 echo $ECHO_N "checking compiler switch for unsigned char... $ECHO_C" >&6; }
10066 # QNX4 Watcom compiler is unsigned char by default
10068 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" = "cc" ; then
10069 qnx4_char_unsigned="yes"
10072 if test "$ac_cv_c_char_unsigned" = yes -o "$qnx4_char_unsigned" = yes; then
10073 MH_UNSIGNED_CHAR_SWITCH=""
10074 msg="not needed - char is unsigned by default"
10075 else
10076 case "$ac_cv_prog_CC" in
10077 gcc)
10078 MH_UNSIGNED_CHAR_SWITCH="-funsigned-char"
10079 msg="$MH_UNSIGNED_CHAR_SWITCH"
10081 xlC)
10082 MH_UNSIGNED_CHAR_SWITCH="-qchars=unsigned"
10083 msg="$MH_UNSIGNED_CHAR_SWITCH"
10086 save_cflags="$CFLAGS"
10087 mh_have_unsigned_char_switch=no
10088 mh_unsigned_flags="-funsigned-char -xchar=unsigned"
10089 for mh_flag in $mh_unsigned_flags; do
10090 CFLAGS="$CFLAGS $mh_flag"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 #include <stdio.h>
10099 main ()
10101 char x;
10103 return 0;
10105 _ACEOF
10106 rm -f conftest.$ac_objext
10107 if { (ac_try="$ac_compile"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_compile") 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } && {
10120 test -z "$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10122 } && test -s conftest.$ac_objext; then
10123 MH_UNSIGNED_CHAR_SWITCH="$mh_flag"; msg="$MH_UNSIGNED_CHAR_SWITCH"; mh_have_unsigned_char_switch=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 CFLAGS="$save_cflags"
10133 if test "$mh_have_unsigned_char_switch" = yes; then
10134 break
10136 done
10137 if test "$mh_have_unsigned_char_switch" = no; then
10138 msg="unknown - assuming unsigned by default but running execiser will confirm"
10141 esac
10143 { echo "$as_me:$LINENO: result: \"$msg\"" >&5
10144 echo "${ECHO_T}\"$msg\"" >&6; }
10149 ac_config_files="$ac_config_files $mymakefile regina-config rxstack.init.d"
10151 cat >confcache <<\_ACEOF
10152 # This file is a shell script that caches the results of configure
10153 # tests run on this system so they can be shared between configure
10154 # scripts and configure runs, see configure's option --config-cache.
10155 # It is not useful on other systems. If it contains results you don't
10156 # want to keep, you may remove or edit it.
10158 # config.status only pays attention to the cache file if you give it
10159 # the --recheck option to rerun configure.
10161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10163 # following values.
10165 _ACEOF
10167 # The following way of writing the cache mishandles newlines in values,
10168 # but we know of no workaround that is simple, portable, and efficient.
10169 # So, we kill variables containing newlines.
10170 # Ultrix sh set writes to stderr and can't be redirected directly,
10171 # and sets the high bit in the cache file unless we assign to the vars.
10173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10174 eval ac_val=\$$ac_var
10175 case $ac_val in #(
10176 *${as_nl}*)
10177 case $ac_var in #(
10178 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10179 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10180 esac
10181 case $ac_var in #(
10182 _ | IFS | as_nl) ;; #(
10183 *) $as_unset $ac_var ;;
10184 esac ;;
10185 esac
10186 done
10188 (set) 2>&1 |
10189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10190 *${as_nl}ac_space=\ *)
10191 # `set' does not quote correctly, so add quotes (double-quote
10192 # substitution turns \\\\ into \\, and sed turns \\ into \).
10193 sed -n \
10194 "s/'/'\\\\''/g;
10195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10196 ;; #(
10198 # `set' quotes correctly as required by POSIX, so do not add quotes.
10199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10201 esac |
10202 sort
10204 sed '
10205 /^ac_cv_env_/b end
10206 t clear
10207 :clear
10208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10209 t end
10210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10211 :end' >>confcache
10212 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10213 if test -w "$cache_file"; then
10214 test "x$cache_file" != "x/dev/null" &&
10215 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10216 echo "$as_me: updating cache $cache_file" >&6;}
10217 cat confcache >$cache_file
10218 else
10219 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10220 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10223 rm -f confcache
10225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10226 # Let make expand exec_prefix.
10227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10229 DEFS=-DHAVE_CONFIG_H
10231 ac_libobjs=
10232 ac_ltlibobjs=
10233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10234 # 1. Remove the extension, and $U if already installed.
10235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10236 ac_i=`echo "$ac_i" | sed "$ac_script"`
10237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10238 # will be set to the directory where LIBOBJS objects are built.
10239 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10240 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10241 done
10242 LIBOBJS=$ac_libobjs
10244 LTLIBOBJS=$ac_ltlibobjs
10248 : ${CONFIG_STATUS=./config.status}
10249 ac_clean_files_save=$ac_clean_files
10250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10253 cat >$CONFIG_STATUS <<_ACEOF
10254 #! $SHELL
10255 # Generated by $as_me.
10256 # Run this file to recreate the current configuration.
10257 # Compiler output produced by configure, useful for debugging
10258 # configure, is in config.log if it exists.
10260 debug=false
10261 ac_cs_recheck=false
10262 ac_cs_silent=false
10263 SHELL=\${CONFIG_SHELL-$SHELL}
10264 _ACEOF
10266 cat >>$CONFIG_STATUS <<\_ACEOF
10267 ## --------------------- ##
10268 ## M4sh Initialization. ##
10269 ## --------------------- ##
10271 # Be more Bourne compatible
10272 DUALCASE=1; export DUALCASE # for MKS sh
10273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10274 emulate sh
10275 NULLCMD=:
10276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10277 # is contrary to our usage. Disable this feature.
10278 alias -g '${1+"$@"}'='"$@"'
10279 setopt NO_GLOB_SUBST
10280 else
10281 case `(set -o) 2>/dev/null` in
10282 *posix*) set -o posix ;;
10283 esac
10290 # PATH needs CR
10291 # Avoid depending upon Character Ranges.
10292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10295 as_cr_digits='0123456789'
10296 as_cr_alnum=$as_cr_Letters$as_cr_digits
10298 # The user is always right.
10299 if test "${PATH_SEPARATOR+set}" != set; then
10300 echo "#! /bin/sh" >conf$$.sh
10301 echo "exit 0" >>conf$$.sh
10302 chmod +x conf$$.sh
10303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10304 PATH_SEPARATOR=';'
10305 else
10306 PATH_SEPARATOR=:
10308 rm -f conf$$.sh
10311 # Support unset when possible.
10312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10313 as_unset=unset
10314 else
10315 as_unset=false
10319 # IFS
10320 # We need space, tab and new line, in precisely that order. Quoting is
10321 # there to prevent editors from complaining about space-tab.
10322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10323 # splitting by setting IFS to empty value.)
10324 as_nl='
10326 IFS=" "" $as_nl"
10328 # Find who we are. Look in the path if we contain no directory separator.
10329 case $0 in
10330 *[\\/]* ) as_myself=$0 ;;
10331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10337 done
10338 IFS=$as_save_IFS
10341 esac
10342 # We did not find ourselves, most probably we were run as `sh COMMAND'
10343 # in which case we are not to be found in the path.
10344 if test "x$as_myself" = x; then
10345 as_myself=$0
10347 if test ! -f "$as_myself"; then
10348 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10349 { (exit 1); exit 1; }
10352 # Work around bugs in pre-3.0 UWIN ksh.
10353 for as_var in ENV MAIL MAILPATH
10354 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10355 done
10356 PS1='$ '
10357 PS2='> '
10358 PS4='+ '
10360 # NLS nuisances.
10361 for as_var in \
10362 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10363 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10364 LC_TELEPHONE LC_TIME
10366 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10367 eval $as_var=C; export $as_var
10368 else
10369 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10371 done
10373 # Required to use basename.
10374 if expr a : '\(a\)' >/dev/null 2>&1 &&
10375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10376 as_expr=expr
10377 else
10378 as_expr=false
10381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10382 as_basename=basename
10383 else
10384 as_basename=false
10388 # Name of the executable.
10389 as_me=`$as_basename -- "$0" ||
10390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10391 X"$0" : 'X\(//\)$' \| \
10392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10393 echo X/"$0" |
10394 sed '/^.*\/\([^/][^/]*\)\/*$/{
10395 s//\1/
10398 /^X\/\(\/\/\)$/{
10399 s//\1/
10402 /^X\/\(\/\).*/{
10403 s//\1/
10406 s/.*/./; q'`
10408 # CDPATH.
10409 $as_unset CDPATH
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 test "x$as_lineno_1" != "x$as_lineno_2" &&
10416 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10418 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10419 # uniformly replaced by the line number. The first 'sed' inserts a
10420 # line-number line after each line using $LINENO; the second 'sed'
10421 # does the real work. The second script uses 'N' to pair each
10422 # line-number line with the line containing $LINENO, and appends
10423 # trailing '-' during substitution so that $LINENO is not a special
10424 # case at line end.
10425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10426 # scripts with optimization help from Paolo Bonzini. Blame Lee
10427 # E. McMahon (1931-1989) for sed's syntax. :-)
10428 sed -n '
10430 /[$]LINENO/=
10431 ' <$as_myself |
10432 sed '
10433 s/[$]LINENO.*/&-/
10434 t lineno
10436 :lineno
10438 :loop
10439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10440 t loop
10441 s/-\n.*//
10442 ' >$as_me.lineno &&
10443 chmod +x "$as_me.lineno" ||
10444 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10445 { (exit 1); exit 1; }; }
10447 # Don't try to exec as it changes $[0], causing all sort of problems
10448 # (the dirname of $[0] is not the place where we might find the
10449 # original and so on. Autoconf is especially sensitive to this).
10450 . "./$as_me.lineno"
10451 # Exit status is that of the last command.
10452 exit
10456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10457 as_dirname=dirname
10458 else
10459 as_dirname=false
10462 ECHO_C= ECHO_N= ECHO_T=
10463 case `echo -n x` in
10464 -n*)
10465 case `echo 'x\c'` in
10466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10467 *) ECHO_C='\c';;
10468 esac;;
10470 ECHO_N='-n';;
10471 esac
10473 if expr a : '\(a\)' >/dev/null 2>&1 &&
10474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10475 as_expr=expr
10476 else
10477 as_expr=false
10480 rm -f conf$$ conf$$.exe conf$$.file
10481 if test -d conf$$.dir; then
10482 rm -f conf$$.dir/conf$$.file
10483 else
10484 rm -f conf$$.dir
10485 mkdir conf$$.dir
10487 echo >conf$$.file
10488 if ln -s conf$$.file conf$$ 2>/dev/null; then
10489 as_ln_s='ln -s'
10490 # ... but there are two gotchas:
10491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10493 # In both cases, we have to default to `cp -p'.
10494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10495 as_ln_s='cp -p'
10496 elif ln conf$$.file conf$$ 2>/dev/null; then
10497 as_ln_s=ln
10498 else
10499 as_ln_s='cp -p'
10501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10502 rmdir conf$$.dir 2>/dev/null
10504 if mkdir -p . 2>/dev/null; then
10505 as_mkdir_p=:
10506 else
10507 test -d ./-p && rmdir ./-p
10508 as_mkdir_p=false
10511 if test -x / >/dev/null 2>&1; then
10512 as_test_x='test -x'
10513 else
10514 if ls -dL / >/dev/null 2>&1; then
10515 as_ls_L_option=L
10516 else
10517 as_ls_L_option=
10519 as_test_x='
10520 eval sh -c '\''
10521 if test -d "$1"; then
10522 test -d "$1/.";
10523 else
10524 case $1 in
10525 -*)set "./$1";;
10526 esac;
10527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10528 ???[sx]*):;;*)false;;esac;fi
10529 '\'' sh
10532 as_executable_p=$as_test_x
10534 # Sed expression to map a string onto a valid CPP name.
10535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10537 # Sed expression to map a string onto a valid variable name.
10538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10541 exec 6>&1
10543 # Save the log message, to keep $[0] and so on meaningful, and to
10544 # report actual input values of CONFIG_FILES etc. instead of their
10545 # values after options handling.
10546 ac_log="
10547 This file was extended by Regina REXX Interpreter $as_me "", which was
10548 generated by GNU Autoconf 2.61. Invocation command line was
10550 CONFIG_FILES = $CONFIG_FILES
10551 CONFIG_HEADERS = $CONFIG_HEADERS
10552 CONFIG_LINKS = $CONFIG_LINKS
10553 CONFIG_COMMANDS = $CONFIG_COMMANDS
10554 $ $0 $@
10556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10559 _ACEOF
10561 cat >>$CONFIG_STATUS <<_ACEOF
10562 # Files that config.status was made for.
10563 config_files="$ac_config_files"
10564 config_headers="$ac_config_headers"
10566 _ACEOF
10568 cat >>$CONFIG_STATUS <<\_ACEOF
10569 ac_cs_usage="\
10570 \`$as_me' instantiates files from templates according to the
10571 current configuration.
10573 Usage: $0 [OPTIONS] [FILE]...
10575 -h, --help print this help, then exit
10576 -V, --version print version number and configuration settings, then exit
10577 -q, --quiet do not print progress messages
10578 -d, --debug don't remove temporary files
10579 --recheck update $as_me by reconfiguring in the same conditions
10580 --file=FILE[:TEMPLATE]
10581 instantiate the configuration file FILE
10582 --header=FILE[:TEMPLATE]
10583 instantiate the configuration header FILE
10585 Configuration files:
10586 $config_files
10588 Configuration headers:
10589 $config_headers
10591 Report bugs to <bug-autoconf@gnu.org>."
10593 _ACEOF
10594 cat >>$CONFIG_STATUS <<_ACEOF
10595 ac_cs_version="\\
10596 Regina REXX Interpreter config.status ""
10597 configured by $0, generated by GNU Autoconf 2.61,
10598 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10600 Copyright (C) 2006 Free Software Foundation, Inc.
10601 This config.status script is free software; the Free Software Foundation
10602 gives unlimited permission to copy, distribute and modify it."
10604 ac_pwd='$ac_pwd'
10605 srcdir='$srcdir'
10606 _ACEOF
10608 cat >>$CONFIG_STATUS <<\_ACEOF
10609 # If no file are specified by the user, then we need to provide default
10610 # value. By we need to know if files were specified by the user.
10611 ac_need_defaults=:
10612 while test $# != 0
10614 case $1 in
10615 --*=*)
10616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10618 ac_shift=:
10621 ac_option=$1
10622 ac_optarg=$2
10623 ac_shift=shift
10625 esac
10627 case $ac_option in
10628 # Handling of the options.
10629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10630 ac_cs_recheck=: ;;
10631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10632 echo "$ac_cs_version"; exit ;;
10633 --debug | --debu | --deb | --de | --d | -d )
10634 debug=: ;;
10635 --file | --fil | --fi | --f )
10636 $ac_shift
10637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10638 ac_need_defaults=false;;
10639 --header | --heade | --head | --hea )
10640 $ac_shift
10641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10642 ac_need_defaults=false;;
10643 --he | --h)
10644 # Conflict between --help and --header
10645 { echo "$as_me: error: ambiguous option: $1
10646 Try \`$0 --help' for more information." >&2
10647 { (exit 1); exit 1; }; };;
10648 --help | --hel | -h )
10649 echo "$ac_cs_usage"; exit ;;
10650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10652 ac_cs_silent=: ;;
10654 # This is an error.
10655 -*) { echo "$as_me: error: unrecognized option: $1
10656 Try \`$0 --help' for more information." >&2
10657 { (exit 1); exit 1; }; } ;;
10659 *) ac_config_targets="$ac_config_targets $1"
10660 ac_need_defaults=false ;;
10662 esac
10663 shift
10664 done
10666 ac_configure_extra_args=
10668 if $ac_cs_silent; then
10669 exec 6>/dev/null
10670 ac_configure_extra_args="$ac_configure_extra_args --silent"
10673 _ACEOF
10674 cat >>$CONFIG_STATUS <<_ACEOF
10675 if \$ac_cs_recheck; then
10676 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10677 CONFIG_SHELL=$SHELL
10678 export CONFIG_SHELL
10679 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<\_ACEOF
10684 exec 5>>config.log
10686 echo
10687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10688 ## Running $as_me. ##
10689 _ASBOX
10690 echo "$ac_log"
10691 } >&5
10693 _ACEOF
10694 cat >>$CONFIG_STATUS <<_ACEOF
10695 _ACEOF
10697 cat >>$CONFIG_STATUS <<\_ACEOF
10699 # Handling of arguments.
10700 for ac_config_target in $ac_config_targets
10702 case $ac_config_target in
10703 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10704 "$mymakefile") CONFIG_FILES="$CONFIG_FILES $mymakefile" ;;
10705 "regina-config") CONFIG_FILES="$CONFIG_FILES regina-config" ;;
10706 "rxstack.init.d") CONFIG_FILES="$CONFIG_FILES rxstack.init.d" ;;
10708 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10709 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10710 { (exit 1); exit 1; }; };;
10711 esac
10712 done
10715 # If the user did not use the arguments to specify the items to instantiate,
10716 # then the envvar interface is used. Set only those that are not.
10717 # We use the long form for the default assignment because of an extremely
10718 # bizarre bug on SunOS 4.1.3.
10719 if $ac_need_defaults; then
10720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10721 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10724 # Have a temporary directory for convenience. Make it in the build tree
10725 # simply because there is no reason against having it here, and in addition,
10726 # creating and moving files from /tmp can sometimes cause problems.
10727 # Hook for its removal unless debugging.
10728 # Note that there is a small window in which the directory will not be cleaned:
10729 # after its creation but before its name has been assigned to `$tmp'.
10730 $debug ||
10732 tmp=
10733 trap 'exit_status=$?
10734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10736 trap '{ (exit 1); exit 1; }' 1 2 13 15
10738 # Create a (secure) tmp directory for tmp files.
10741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10742 test -n "$tmp" && test -d "$tmp"
10743 } ||
10745 tmp=./conf$$-$RANDOM
10746 (umask 077 && mkdir "$tmp")
10747 } ||
10749 echo "$me: cannot create a temporary directory in ." >&2
10750 { (exit 1); exit 1; }
10754 # Set up the sed scripts for CONFIG_FILES section.
10757 # No need to generate the scripts if there are no CONFIG_FILES.
10758 # This happens for instance when ./config.status config.h
10759 if test -n "$CONFIG_FILES"; then
10761 _ACEOF
10765 ac_delim='%!_!# '
10766 for ac_last_try in false false false false false :; do
10767 cat >conf$$subs.sed <<_ACEOF
10768 SHELL!$SHELL$ac_delim
10769 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10770 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10771 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10772 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10773 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10774 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10775 exec_prefix!$exec_prefix$ac_delim
10776 prefix!$prefix$ac_delim
10777 program_transform_name!$program_transform_name$ac_delim
10778 bindir!$bindir$ac_delim
10779 sbindir!$sbindir$ac_delim
10780 libexecdir!$libexecdir$ac_delim
10781 datarootdir!$datarootdir$ac_delim
10782 datadir!$datadir$ac_delim
10783 sysconfdir!$sysconfdir$ac_delim
10784 sharedstatedir!$sharedstatedir$ac_delim
10785 localstatedir!$localstatedir$ac_delim
10786 includedir!$includedir$ac_delim
10787 oldincludedir!$oldincludedir$ac_delim
10788 docdir!$docdir$ac_delim
10789 infodir!$infodir$ac_delim
10790 htmldir!$htmldir$ac_delim
10791 dvidir!$dvidir$ac_delim
10792 pdfdir!$pdfdir$ac_delim
10793 psdir!$psdir$ac_delim
10794 libdir!$libdir$ac_delim
10795 localedir!$localedir$ac_delim
10796 mandir!$mandir$ac_delim
10797 DEFS!$DEFS$ac_delim
10798 ECHO_C!$ECHO_C$ac_delim
10799 ECHO_N!$ECHO_N$ac_delim
10800 ECHO_T!$ECHO_T$ac_delim
10801 LIBS!$LIBS$ac_delim
10802 build_alias!$build_alias$ac_delim
10803 host_alias!$host_alias$ac_delim
10804 target_alias!$target_alias$ac_delim
10805 VERSION!$VERSION$ac_delim
10806 VERSION_NODOT!$VERSION_NODOT$ac_delim
10807 VER_DATE!$VER_DATE$ac_delim
10808 VER_MAJOR!$VER_MAJOR$ac_delim
10809 VER_MINOR!$VER_MINOR$ac_delim
10810 VER_SUPP!$VER_SUPP$ac_delim
10811 CC!$CC$ac_delim
10812 CFLAGS!$CFLAGS$ac_delim
10813 LDFLAGS!$LDFLAGS$ac_delim
10814 CPPFLAGS!$CPPFLAGS$ac_delim
10815 ac_ct_CC!$ac_ct_CC$ac_delim
10816 EXEEXT!$EXEEXT$ac_delim
10817 OBJEXT!$OBJEXT$ac_delim
10818 build!$build$ac_delim
10819 build_cpu!$build_cpu$ac_delim
10820 build_vendor!$build_vendor$ac_delim
10821 build_os!$build_os$ac_delim
10822 host!$host$ac_delim
10823 host_cpu!$host_cpu$ac_delim
10824 host_vendor!$host_vendor$ac_delim
10825 host_os!$host_os$ac_delim
10826 target!$target$ac_delim
10827 target_cpu!$target_cpu$ac_delim
10828 target_vendor!$target_vendor$ac_delim
10829 target_os!$target_os$ac_delim
10830 valid_arch_flags!$valid_arch_flags$ac_delim
10831 SYS_DEFS!$SYS_DEFS$ac_delim
10832 binarybitprefix!$binarybitprefix$ac_delim
10833 libdir64!$libdir64$ac_delim
10834 libdir32!$libdir32$ac_delim
10835 bitflag!$bitflag$ac_delim
10836 GCI_CONVERT_HEADER!$GCI_CONVERT_HEADER$ac_delim
10837 LEX!$LEX$ac_delim
10838 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
10839 LEXLIB!$LEXLIB$ac_delim
10840 RANLIB!$RANLIB$ac_delim
10841 LN_S!$LN_S$ac_delim
10842 SET_MAKE!$SET_MAKE$ac_delim
10843 CPP!$CPP$ac_delim
10844 GREP!$GREP$ac_delim
10845 EGREP!$EGREP$ac_delim
10846 LIBOBJS!$LIBOBJS$ac_delim
10847 ALLOCA!$ALLOCA$ac_delim
10848 ALLOCA_SHO!$ALLOCA_SHO$ac_delim
10849 ALLOCA_TSO!$ALLOCA_TSO$ac_delim
10850 FNMATCH!$FNMATCH$ac_delim
10851 FNMATCH_SHO!$FNMATCH_SHO$ac_delim
10852 FNMATCH_TSO!$FNMATCH_TSO$ac_delim
10853 REGUTIL_TERM_LIB!$REGUTIL_TERM_LIB$ac_delim
10854 DEBUG!$DEBUG$ac_delim
10855 DEBUGGING!$DEBUGGING$ac_delim
10856 PURIFY!$PURIFY$ac_delim
10857 EFENCE!$EFENCE$ac_delim
10858 DLFCNINCDIR!$DLFCNINCDIR$ac_delim
10859 DLFCNLIBDIR!$DLFCNLIBDIR$ac_delim
10860 GCI_SHO!$GCI_SHO$ac_delim
10861 HAVE_GCI!$HAVE_GCI$ac_delim
10862 SHL_SCRIPT!$SHL_SCRIPT$ac_delim
10863 THREADING_COMPILE!$THREADING_COMPILE$ac_delim
10864 THREADING_LINK!$THREADING_LINK$ac_delim
10865 _ACEOF
10867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10868 break
10869 elif $ac_last_try; then
10870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10871 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10872 { (exit 1); exit 1; }; }
10873 else
10874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10876 done
10878 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10879 if test -n "$ac_eof"; then
10880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10881 ac_eof=`expr $ac_eof + 1`
10884 cat >>$CONFIG_STATUS <<_ACEOF
10885 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10887 _ACEOF
10888 sed '
10889 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10890 s/^/s,@/; s/!/@,|#_!!_#|/
10893 s/'"$ac_delim"'$/,g/; t
10894 s/$/\\/; p
10895 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10896 ' >>$CONFIG_STATUS <conf$$subs.sed
10897 rm -f conf$$subs.sed
10898 cat >>$CONFIG_STATUS <<_ACEOF
10899 CEOF$ac_eof
10900 _ACEOF
10903 ac_delim='%!_!# '
10904 for ac_last_try in false false false false false :; do
10905 cat >conf$$subs.sed <<_ACEOF
10906 THREADSAFE_TARGET!$THREADSAFE_TARGET$ac_delim
10907 MH_MT_LIBS!$MH_MT_LIBS$ac_delim
10908 MT_FILE!$MT_FILE$ac_delim
10909 REGINAMULTITHREAD!$REGINAMULTITHREAD$ac_delim
10910 TRACEMEM!$TRACEMEM$ac_delim
10911 FLISTS!$FLISTS$ac_delim
10912 REXXSOCKET!$REXXSOCKET$ac_delim
10913 rxcurses_config!$rxcurses_config$ac_delim
10914 rexxtk_config!$rexxtk_config$ac_delim
10915 rexxgd_config!$rexxgd_config$ac_delim
10916 rexxcurl_config!$rexxcurl_config$ac_delim
10917 rexxsql_config!$rexxsql_config$ac_delim
10918 rexxeec_config!$rexxeec_config$ac_delim
10919 rexxisam_config!$rexxisam_config$ac_delim
10920 rxsock_config!$rxsock_config$ac_delim
10921 rexxdw_config!$rexxdw_config$ac_delim
10922 MH_FUNC_LIBS!$MH_FUNC_LIBS$ac_delim
10923 BASE_BINARY!$BASE_BINARY$ac_delim
10924 BASE_INSTALL!$BASE_INSTALL$ac_delim
10925 BOTHLIBS!$BOTHLIBS$ac_delim
10926 CC2O!$CC2O$ac_delim
10927 CEXTRA!$CEXTRA$ac_delim
10928 DYNAMIC_LDFLAGS!$DYNAMIC_LDFLAGS$ac_delim
10929 DYN_COMP!$DYN_COMP$ac_delim
10930 EEXTRA!$EEXTRA$ac_delim
10931 EXECISER_DEP!$EXECISER_DEP$ac_delim
10932 GETOPT!$GETOPT$ac_delim
10933 LD_RXLIB_A1!$LD_RXLIB_A1$ac_delim
10934 LD_RXLIB_A2!$LD_RXLIB_A2$ac_delim
10935 LD_RXLIB_UTILA!$LD_RXLIB_UTILA$ac_delim
10936 LD_RXLIB_B1!$LD_RXLIB_B1$ac_delim
10937 LD_RXLIB_B2!$LD_RXLIB_B2$ac_delim
10938 LD_RXLIB_UTILB!$LD_RXLIB_UTILB$ac_delim
10939 LIBEXE!$LIBEXE$ac_delim
10940 LIBFILE!$LIBFILE$ac_delim
10941 LIBFLAGS!$LIBFLAGS$ac_delim
10942 LIBLINK!$LIBLINK$ac_delim
10943 LINKSHL!$LINKSHL$ac_delim
10944 LIBPRE!$LIBPRE$ac_delim
10945 LIBPST!$LIBPST$ac_delim
10946 LINKREG!$LINKREG$ac_delim
10947 O2SAVE!$O2SAVE$ac_delim
10948 O2SHO!$O2SHO$ac_delim
10949 OBJ!$OBJ$ac_delim
10950 OBJECTS!$OBJECTS$ac_delim
10951 OSAVE!$OSAVE$ac_delim
10952 OTHER_INSTALLS!$OTHER_INSTALLS$ac_delim
10953 REGINAEXP!$REGINAEXP$ac_delim
10954 SAVE2O!$SAVE2O$ac_delim
10955 SHLFILE!$SHLFILE$ac_delim
10956 SHLIBS!$SHLIBS$ac_delim
10957 SHLPRE!$SHLPRE$ac_delim
10958 BUNDLE!$BUNDLE$ac_delim
10959 SHL_LD!$SHL_LD$ac_delim
10960 SHL_TARGETS!$SHL_TARGETS$ac_delim
10961 STATICLIB!$STATICLIB$ac_delim
10962 STATIC_LDFLAGS!$STATIC_LDFLAGS$ac_delim
10963 TEST1EXP!$TEST1EXP$ac_delim
10964 TEST1EXPORTS!$TEST1EXPORTS$ac_delim
10965 TEST2EXP!$TEST2EXP$ac_delim
10966 TEST2EXPORTS!$TEST2EXPORTS$ac_delim
10967 REGUTILEXP!$REGUTILEXP$ac_delim
10968 REGUTILEXPORTS!$REGUTILEXPORTS$ac_delim
10969 USE_ABI!$USE_ABI$ac_delim
10970 RANLIB_DYNAMIC!$RANLIB_DYNAMIC$ac_delim
10971 SHLPST!$SHLPST$ac_delim
10972 MODPST!$MODPST$ac_delim
10973 O2TSAVE!$O2TSAVE$ac_delim
10974 O2TSO!$O2TSO$ac_delim
10975 STATICLD_SHO!$STATICLD_SHO$ac_delim
10976 mh_rpm_exists!$mh_rpm_exists$ac_delim
10977 RPMTOPDIR!$RPMTOPDIR$ac_delim
10978 MH_UNSIGNED_CHAR_SWITCH!$MH_UNSIGNED_CHAR_SWITCH$ac_delim
10979 LTLIBOBJS!$LTLIBOBJS$ac_delim
10980 _ACEOF
10982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
10983 break
10984 elif $ac_last_try; then
10985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10986 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10987 { (exit 1); exit 1; }; }
10988 else
10989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10991 done
10993 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10994 if test -n "$ac_eof"; then
10995 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10996 ac_eof=`expr $ac_eof + 1`
10999 cat >>$CONFIG_STATUS <<_ACEOF
11000 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11002 _ACEOF
11003 sed '
11004 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11005 s/^/s,@/; s/!/@,|#_!!_#|/
11008 s/'"$ac_delim"'$/,g/; t
11009 s/$/\\/; p
11010 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11011 ' >>$CONFIG_STATUS <conf$$subs.sed
11012 rm -f conf$$subs.sed
11013 cat >>$CONFIG_STATUS <<_ACEOF
11014 :end
11015 s/|#_!!_#|//g
11016 CEOF$ac_eof
11017 _ACEOF
11020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11022 # trailing colons and then remove the whole line if VPATH becomes empty
11023 # (actually we leave an empty line to preserve line numbers).
11024 if test "x$srcdir" = x.; then
11025 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11026 s/:*\$(srcdir):*/:/
11027 s/:*\${srcdir}:*/:/
11028 s/:*@srcdir@:*/:/
11029 s/^\([^=]*=[ ]*\):*/\1/
11030 s/:*$//
11031 s/^[^=]*=[ ]*$//
11035 cat >>$CONFIG_STATUS <<\_ACEOF
11036 fi # test -n "$CONFIG_FILES"
11039 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11041 case $ac_tag in
11042 :[FHLC]) ac_mode=$ac_tag; continue;;
11043 esac
11044 case $ac_mode$ac_tag in
11045 :[FHL]*:*);;
11046 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11047 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11048 { (exit 1); exit 1; }; };;
11049 :[FH]-) ac_tag=-:-;;
11050 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11051 esac
11052 ac_save_IFS=$IFS
11053 IFS=:
11054 set x $ac_tag
11055 IFS=$ac_save_IFS
11056 shift
11057 ac_file=$1
11058 shift
11060 case $ac_mode in
11061 :L) ac_source=$1;;
11062 :[FH])
11063 ac_file_inputs=
11064 for ac_f
11066 case $ac_f in
11067 -) ac_f="$tmp/stdin";;
11068 *) # Look for the file first in the build tree, then in the source tree
11069 # (if the path is not absolute). The absolute path cannot be DOS-style,
11070 # because $ac_f cannot contain `:'.
11071 test -f "$ac_f" ||
11072 case $ac_f in
11073 [\\/$]*) false;;
11074 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11075 esac ||
11076 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11077 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11078 { (exit 1); exit 1; }; };;
11079 esac
11080 ac_file_inputs="$ac_file_inputs $ac_f"
11081 done
11083 # Let's still pretend it is `configure' which instantiates (i.e., don't
11084 # use $as_me), people would be surprised to read:
11085 # /* config.h. Generated by config.status. */
11086 configure_input="Generated from "`IFS=:
11087 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11088 if test x"$ac_file" != x-; then
11089 configure_input="$ac_file. $configure_input"
11090 { echo "$as_me:$LINENO: creating $ac_file" >&5
11091 echo "$as_me: creating $ac_file" >&6;}
11094 case $ac_tag in
11095 *:-:* | *:-) cat >"$tmp/stdin";;
11096 esac
11098 esac
11100 ac_dir=`$as_dirname -- "$ac_file" ||
11101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11102 X"$ac_file" : 'X\(//\)[^/]' \| \
11103 X"$ac_file" : 'X\(//\)$' \| \
11104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11105 echo X"$ac_file" |
11106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11107 s//\1/
11110 /^X\(\/\/\)[^/].*/{
11111 s//\1/
11114 /^X\(\/\/\)$/{
11115 s//\1/
11118 /^X\(\/\).*/{
11119 s//\1/
11122 s/.*/./; q'`
11123 { as_dir="$ac_dir"
11124 case $as_dir in #(
11125 -*) as_dir=./$as_dir;;
11126 esac
11127 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11128 as_dirs=
11129 while :; do
11130 case $as_dir in #(
11131 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11132 *) as_qdir=$as_dir;;
11133 esac
11134 as_dirs="'$as_qdir' $as_dirs"
11135 as_dir=`$as_dirname -- "$as_dir" ||
11136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11137 X"$as_dir" : 'X\(//\)[^/]' \| \
11138 X"$as_dir" : 'X\(//\)$' \| \
11139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11140 echo X"$as_dir" |
11141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11142 s//\1/
11145 /^X\(\/\/\)[^/].*/{
11146 s//\1/
11149 /^X\(\/\/\)$/{
11150 s//\1/
11153 /^X\(\/\).*/{
11154 s//\1/
11157 s/.*/./; q'`
11158 test -d "$as_dir" && break
11159 done
11160 test -z "$as_dirs" || eval "mkdir $as_dirs"
11161 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11162 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11163 { (exit 1); exit 1; }; }; }
11164 ac_builddir=.
11166 case "$ac_dir" in
11167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11169 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11170 # A ".." for each directory in $ac_dir_suffix.
11171 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11172 case $ac_top_builddir_sub in
11173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11175 esac ;;
11176 esac
11177 ac_abs_top_builddir=$ac_pwd
11178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11179 # for backward compatibility:
11180 ac_top_builddir=$ac_top_build_prefix
11182 case $srcdir in
11183 .) # We are building in place.
11184 ac_srcdir=.
11185 ac_top_srcdir=$ac_top_builddir_sub
11186 ac_abs_top_srcdir=$ac_pwd ;;
11187 [\\/]* | ?:[\\/]* ) # Absolute name.
11188 ac_srcdir=$srcdir$ac_dir_suffix;
11189 ac_top_srcdir=$srcdir
11190 ac_abs_top_srcdir=$srcdir ;;
11191 *) # Relative name.
11192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11193 ac_top_srcdir=$ac_top_build_prefix$srcdir
11194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11195 esac
11196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11199 case $ac_mode in
11202 # CONFIG_FILE
11205 _ACEOF
11207 cat >>$CONFIG_STATUS <<\_ACEOF
11208 # If the template does not know about datarootdir, expand it.
11209 # FIXME: This hack should be removed a few years after 2.60.
11210 ac_datarootdir_hack=; ac_datarootdir_seen=
11212 case `sed -n '/datarootdir/ {
11216 /@datadir@/p
11217 /@docdir@/p
11218 /@infodir@/p
11219 /@localedir@/p
11220 /@mandir@/p
11221 ' $ac_file_inputs` in
11222 *datarootdir*) ac_datarootdir_seen=yes;;
11223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11224 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11225 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11226 _ACEOF
11227 cat >>$CONFIG_STATUS <<_ACEOF
11228 ac_datarootdir_hack='
11229 s&@datadir@&$datadir&g
11230 s&@docdir@&$docdir&g
11231 s&@infodir@&$infodir&g
11232 s&@localedir@&$localedir&g
11233 s&@mandir@&$mandir&g
11234 s&\\\${datarootdir}&$datarootdir&g' ;;
11235 esac
11236 _ACEOF
11238 # Neutralize VPATH when `$srcdir' = `.'.
11239 # Shell code in configure.ac might set extrasub.
11240 # FIXME: do we really want to maintain this feature?
11241 cat >>$CONFIG_STATUS <<_ACEOF
11242 sed "$ac_vpsub
11243 $extrasub
11244 _ACEOF
11245 cat >>$CONFIG_STATUS <<\_ACEOF
11247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11248 s&@configure_input@&$configure_input&;t t
11249 s&@top_builddir@&$ac_top_builddir_sub&;t t
11250 s&@srcdir@&$ac_srcdir&;t t
11251 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11252 s&@top_srcdir@&$ac_top_srcdir&;t t
11253 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11254 s&@builddir@&$ac_builddir&;t t
11255 s&@abs_builddir@&$ac_abs_builddir&;t t
11256 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11257 $ac_datarootdir_hack
11258 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11260 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11261 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11262 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11263 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11264 which seems to be undefined. Please make sure it is defined." >&5
11265 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11266 which seems to be undefined. Please make sure it is defined." >&2;}
11268 rm -f "$tmp/stdin"
11269 case $ac_file in
11270 -) cat "$tmp/out"; rm -f "$tmp/out";;
11271 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11272 esac
11276 # CONFIG_HEADER
11278 _ACEOF
11280 # Transform confdefs.h into a sed script `conftest.defines', that
11281 # substitutes the proper values into config.h.in to produce config.h.
11282 rm -f conftest.defines conftest.tail
11283 # First, append a space to every undef/define line, to ease matching.
11284 echo 's/$/ /' >conftest.defines
11285 # Then, protect against being on the right side of a sed subst, or in
11286 # an unquoted here document, in config.status. If some macros were
11287 # called several times there might be several #defines for the same
11288 # symbol, which is useless. But do not sort them, since the last
11289 # AC_DEFINE must be honored.
11290 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11291 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11292 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11293 # PARAMS is the parameter list in the macro definition--in most cases, it's
11294 # just an empty string.
11295 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11296 ac_dB='\\)[ (].*,\\1define\\2'
11297 ac_dC=' '
11298 ac_dD=' ,'
11300 uniq confdefs.h |
11301 sed -n '
11302 t rset
11303 :rset
11304 s/^[ ]*#[ ]*define[ ][ ]*//
11305 t ok
11308 s/[\\&,]/\\&/g
11309 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11310 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11311 ' >>conftest.defines
11313 # Remove the space that was appended to ease matching.
11314 # Then replace #undef with comments. This is necessary, for
11315 # example, in the case of _POSIX_SOURCE, which is predefined and required
11316 # on some systems where configure will not decide to define it.
11317 # (The regexp can be short, since the line contains either #define or #undef.)
11318 echo 's/ $//
11319 s,^[ #]*u.*,/* & */,' >>conftest.defines
11321 # Break up conftest.defines:
11322 ac_max_sed_lines=50
11324 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11325 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11326 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11327 # et cetera.
11328 ac_in='$ac_file_inputs'
11329 ac_out='"$tmp/out1"'
11330 ac_nxt='"$tmp/out2"'
11332 while :
11334 # Write a here document:
11335 cat >>$CONFIG_STATUS <<_ACEOF
11336 # First, check the format of the line:
11337 cat >"\$tmp/defines.sed" <<\\CEOF
11338 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11339 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11341 :def
11342 _ACEOF
11343 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11344 echo 'CEOF
11345 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11346 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11347 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11348 grep . conftest.tail >/dev/null || break
11349 rm -f conftest.defines
11350 mv conftest.tail conftest.defines
11351 done
11352 rm -f conftest.defines conftest.tail
11354 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11355 cat >>$CONFIG_STATUS <<\_ACEOF
11356 if test x"$ac_file" != x-; then
11357 echo "/* $configure_input */" >"$tmp/config.h"
11358 cat "$ac_result" >>"$tmp/config.h"
11359 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11360 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11361 echo "$as_me: $ac_file is unchanged" >&6;}
11362 else
11363 rm -f $ac_file
11364 mv "$tmp/config.h" $ac_file
11366 else
11367 echo "/* $configure_input */"
11368 cat "$ac_result"
11370 rm -f "$tmp/out12"
11374 esac
11376 done # for ac_tag
11379 { (exit 0); exit 0; }
11380 _ACEOF
11381 chmod +x $CONFIG_STATUS
11382 ac_clean_files=$ac_clean_files_save
11385 # configure is writing to config.log, and then calls config.status.
11386 # config.status does its own redirection, appending to config.log.
11387 # Unfortunately, on DOS this fails, as config.log is still kept open
11388 # by configure, so config.status won't be able to write to it; its
11389 # output is simply discarded. So we exec the FD to /dev/null,
11390 # effectively closing config.log, so it can be properly (re)opened and
11391 # appended to by config.status. When coming back to configure, we
11392 # need to make the FD available again.
11393 if test "$no_create" != yes; then
11394 ac_cs_success=:
11395 ac_config_status_args=
11396 test "$silent" = yes &&
11397 ac_config_status_args="$ac_config_status_args --quiet"
11398 exec 5>/dev/null
11399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11400 exec 5>>config.log
11401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11402 # would make configure fail if this is the last instruction.
11403 $ac_cs_success || { (exit 1); exit 1; }
11406 chmod 755 regina-config
11407 echo
11408 echo "Regina has now been configured with the following options:"
11409 echo
11410 if test "x$SHL_TARGETS" = "x"; then
11411 echo " Dynamic Loading Support: none"
11412 else
11413 echo " Dynamic Loading Support: supported. Extra components: $SHL_TARGETS"
11415 if test "$with_dlfcnincdir" != no ; then
11416 echo " dlfcn headers in: $with_dlfcnincdir"
11418 if test "$with_dlfcnlibdir" != no ; then
11419 echo " dlfcn libraries in: $with_dlfcnlibdir"
11422 myopts="${bitflag}BIT"
11423 if test "$with_debug" = yes ; then
11424 myopts="$myopts DEBUG"
11426 if test "$with_purify" = yes ; then
11427 myopts="$myopts PURIFY"
11429 if test "$with_efence" = yes; then
11430 myopts="$myopts EFENCE"
11432 if test "$with_orexx_bc" = yes; then
11433 myopts="$myopts OREXX_BINARY"
11435 if test "$with_gci" = yes; then
11436 myopts="$myopts GCI"
11438 if test "$with_flists" = no; then
11439 myopts="$myopts NO_FLISTS"
11441 if test "$with_socket" = no; then
11442 myopts="$myopts"
11443 else
11444 myopts="$myopts SOCKET=$with_socket"
11447 if test "$with_staticfunctions" = "yes"; then
11448 myfuncs=""
11449 if test "$with_testpackage" = "yes"; then
11450 myfuncs="$myfuncs test"
11452 if test "$with_regutil" = "yes"; then
11453 myfuncs="$myfuncs regutil"
11455 if test "$with_rexxcurses" = "yes"; then
11456 myfuncs="$myfuncs rexxcurses"
11458 if test "$with_rexxtk" = "yes"; then
11459 myfuncs="$myfuncs rexxtk"
11461 if test "$with_rexxgd" = "yes"; then
11462 myfuncs="$myfuncs rexxgd"
11464 if test "$with_rexxcurl" = "yes"; then
11465 myfuncs="$myfuncs rexxcurl"
11467 if test "$with_rexxsql" = "yes"; then
11468 myfuncs="$myfuncs rexxsql"
11470 if test "$with_rexxeec" = "yes"; then
11471 myfuncs="$myfuncs rexxeec"
11473 if test "$with_rexxisam" = "yes"; then
11474 myfuncs="$myfuncs rexxisam"
11476 if test "$with_rxsock" = "yes"; then
11477 myfuncs="$myfuncs rxsock"
11479 if test "$with_rexxdw" = "yes"; then
11480 myfuncs="$myfuncs rexxdw"
11482 echo " Static Loaded Packages: $myfuncs"
11485 if test "$on_beos" = yes; then
11486 bindir="/boot/home/config/bin"
11487 libdir="/boot/home/config/lib"
11490 echo " Build options: $myopts"
11491 echo " binaries will be installed in: $bindir"
11492 if test "x$binarybitprefix" = "x32"; then
11493 echo " binaries will have '32' appended to them. eg rexx32, regina32"
11495 echo " libraries will be installed in: $libdir"
11496 echo " {prefix}: $prefix"
11497 echo " {exec_prefix}: $exec_prefix"
11498 echo " RPM topdir: $RPMTOPDIR"
11499 echo
11500 echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'"
11501 echo "To install Regina in the above directories, type 'make install'"
11502 echo