Debian Codegraph @

configure

raw ◀ ▶
4 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Regina Rexx Interpreter 3.9.5.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Regina Rexx Interpreter'
582 PACKAGE_TARNAME='regina-rexx'
583 PACKAGE_VERSION='3.9.5'
584 PACKAGE_STRING='Regina Rexx Interpreter 3.9.5'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_default_prefix=/usr/local
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 MH_UNSIGNED_CHAR_SWITCH
627 systemdinstallpath
628 initinstaller
629 MYDISTRO
630 lsb_release
631 PACKAGE_RELEASE
632 apktopdir
633 mh_apk_exists
634 debtopdir
635 mh_dpkg_exists
636 rpmtopdir
637 mh_rpm_exists
638 packagesdir
639 brewaddonsdir
640 addonsdir
641 HAVE_REGINA_ADDON_DIR
642 REXXSOCKET
643 FLISTS
644 TRACEMEM
645 REGINA_CONFIG_LIBS
646 EXECISER_BINARY_LIBS
647 THREADER_BINARY_LIBS
648 REGINA_BINARY_LIBS
649 LIBREGUTIL_BINARY_LIBS
650 LIBREGINA_BINARY_LIBS
651 REXX_BINARY_LIBS
652 STACK_BINARY_LIBS
653 LARGE_FILE_SUPPORT
654 getconf
655 STATICLD_SHO
656 SHL_NAME_RXTEST2
657 SHL_NAME_RXTEST1
658 SHL_NAME_REGUTIL
659 SHL_NAME_REGINA
660 O2TSO
661 O2TSAVE
662 RANLIB_DYNAMIC
663 USE_ABI
664 REGUTILEXPORTS
665 REGUTILEXP
666 TEST2EXPORTS
667 TEST2EXP
668 TEST1EXPORTS
669 TEST1EXP
670 STATIC_LDFLAGS
671 STATICLIB
672 SHL_TARGETS
673 SHL_LD
674 BUNDLE
675 SHLPRE
676 SHLIBS
677 SHLFILE
678 SAVE2O
679 REGINAEXP
680 OTHER_INSTALLS
681 OSAVE
682 OBJECTS
683 OBJ
684 O2SHO
685 O2SAVE
686 LINKREG
687 LIBPST
688 LIBPRE
689 LINKSHL
690 LIBLINK
691 LIBFLAGS
692 LIBFILE
693 LIBEXE
694 LD_RXLIB_UTILB
695 LD_RXLIB_B2
696 LD_RXLIB_B1
697 LD_RXLIB_UTILA
698 LD_RXLIB_A2
699 LD_RXLIB_A1
700 GETOPT
701 EXECISER_DEP
702 EEXTRA
703 DYN_COMP
704 DYNAMIC_LDFLAGS
705 CEXTRA
706 CC2O
707 BOTHLIBS
708 BASE_INSTALL
709 BASE_BINARY
710 MH_FUNC_LIBS
711 rexxws_config
712 rexxpdf_config
713 rexxcsv_config
714 rexxdw_config
715 rxsock_config
716 rexxisam_config
717 rexxeec_config
718 rexxsql_config
719 rexxcurl_config
720 rexxgd_config
721 rexxtk_config
722 rxcurses_config
723 REGINAMULTITHREAD
724 MT_FILE
725 MH_MT_LIBS
726 THREADSAFE_TARGET
727 THREADING_LINK
728 THREADING_COMPILE
729 SHL_SCRIPT
730 MY_GETOPT_SO_O
731 MY_GETOPT_O
732 HAVE_GCI
733 GCI_SHO
734 DLFCNLIBDIR
735 MODPST
736 SHLPST
737 DLFCNINCDIR
738 EFENCE
739 PURIFY
740 DEBUGGING
741 DEBUG
742 REGUTIL_MATH_LIB
743 REGUTIL_TERM_LIB
744 REGSCREENUX
745 SCREEN_FUNCS
746 FNMATCH_TSO
747 FNMATCH_SHO
748 FNMATCH
749 ALLOCA_TSO
750 ALLOCA_SHO
751 ALLOCA
752 LIBOBJS
753 EGREP
754 GREP
755 CPP
756 SET_MAKE
757 LN_S
758 RANLIB
759 LEXLIB
760 LEX_OUTPUT_ROOT
761 LEX
762 STATIC_BINARY_LIBS
763 GCI_CONVERT_HEADER
764 SYS_DEFS
765 bitflag
766 libdir32
767 libdir64
768 MY_PREFIX
769 valid_arch_flags
770 binarybitprefix
771 MACH_ARCH
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 FULL_PACKAGE_NAME
792 REGINA_PACKAGE_NAME
793 VER_SOMINOR
794 VER_SOMAJOR
795 VER_SUPP
796 VER_RELEASE
797 VER_MINOR
798 VER_MAJOR
799 VER_DATE
800 VERSION_NODOT
801 VERSION_UNQUOTED
802 VERSION
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 runstatedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_32bit
846 enable_64bit
847 with_arch
848 enable_libdir_change
849 enable_screen
850 enable_debug
851 enable_purify
852 enable_efence
853 enable_hpux_portable
854 with_dlfcnincdir
855 with_dlfcnlibdir
856 with_staticfunctions
857 enable_orexx_binary_compatible
858 enable_posix_threads
859 enable_gci
860 with_testpackage
861 with_regutil
862 with_rexxcurses
863 with_rexxtk
864 with_rexxgd
865 with_rexxcurl
866 with_rexxsql
867 with_rexxeec
868 with_rexxisam
869 with_rxsock
870 with_rexxdw
871 with_rexxcsv
872 with_rexxpdf
873 with_rexxws
874 enable_tracemem
875 enable_flists
876 with_socket
877 with_addon_dir
878 with_brew_addon_dir
879 '
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 runstatedir='${localstatedir}/run'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -runstatedir | --runstatedir | --runstatedi | --runstated \
1181 | --runstate | --runstat | --runsta | --runst | --runs \
1182 | --run | --ru | --r)
1183 ac_prev=runstatedir ;;
1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1186 | --run=* | --ru=* | --r=*)
1187 runstatedir=$ac_optarg ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir runstatedir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures Regina Rexx Interpreter 3.9.5 to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/regina-rexx]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1494
1495 cat <<\_ACEOF
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505 case $ac_init_help in
1506 short | recursive ) echo "Configuration of Regina Rexx Interpreter 3.9.5:";;
1507 esac
1508 cat <<\_ACEOF
1509
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-32bit specify if 32bit libraries are to be used
1515 --enable-64bit specify if 64bit libraries are to be used
1516 --enable-libdir-change specify --disable-libdir-change if building a .deb
1517 --disable-screen disable terminal functions
1518 --enable-debug turn on debugging
1519 --enable-purify link with Purify (TM)
1520 --enable-efence link with Electric Fence
1521 --enable-hpux-portable make HP-UX binaries portable
1522 --enable-orexx-binary-compatible enable binary compatibility with ORexx
1523 --disable-posix-threads disable POSIX-style multi-threading
1524 --disable-gci disable General Call Interface
1525 --enable-tracemem enable memory tracing in debug mode
1526 --disable-flists disable memory management functions
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-arch=option build universal binaries on MacOS, option: one of "all 32bit 64bit intel apple-silicon ppc ppc64 x86_64 i386 arm64"
1532 --with-dlfcnincdir location of dlfcn.h
1533 --with-dlfcnlibdir location of libdl.a(AIX) libdl.dylib(MacOSX)
1534 --with-staticfunctions enable static linking of external function packages
1535 --with-testpackage enable static linking with Regina test external function packages
1536 --with-regutil enable static linking with RegUtil external function package
1537 --with-rexxcurses enable static linking with Rexx/Curses external function package
1538 --with-rexxtk enable static linking with Rexx/Tk external function package
1539 --with-rexxgd enable static linking with Rexx/Gd external function package
1540 --with-rexxcurl enable static linking with Rexx/CURL external function package
1541 --with-rexxsql enable static linking with Rexx/SQL external function package
1542 --with-rexxeec enable static linking with Rexx/EEC external function package
1543 --with-rexxisam enable static linking with Rexx/ISAM external function package
1544 --with-rxsock enable static linking with RxSock external function package
1545 --with-rexxdw enable static linking with Rexx/DW external function package
1546 --with-rexxcsv enable static linking with Rexx/CSV external function package
1547 --with-rexxpdf enable static linking with Rexx/PDF external function package
1548 --with-rexxws enable static linking with Rexx/WS external function package
1549 --with-socket=9999 socket to use for external queues (default 5757)
1550 --with-addon-dir=dir location of external function packages (default libdir/regina-rexx/addons)
1551 --with-brew-addon-dir=dir location of HomeBrew internal addons dir (default blank)
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to <[email protected]>.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 Regina Rexx Interpreter configure 3.9.5
1630 generated by GNU Autoconf 2.69
1631
1632 Copyright (C) 2012 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 test -x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_cpp
1763
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1768 ac_fn_c_try_run ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=$ac_status
1799 fi
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_run
1805
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1810 # accordingly.
1811 ac_fn_c_check_header_mongrel ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if eval \${$3+:} false; then :
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 else
1824 # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 ac_header_compiler=yes
1834 else
1835 ac_header_compiler=no
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1840
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849 ac_header_preproc=yes
1850 else
1851 ac_header_preproc=no
1852 fi
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1856
1857 # So? What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1859 yes:no: )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865 no:yes:* )
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------- ##
1877 ## Report this to [email protected] ##
1878 ## ---------------------------- ##"
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1880 ;;
1881 esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_header_compile
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_func
1994
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=no"
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 int
2012 main ()
2013 {
2014 if (sizeof ($2))
2015 return 0;
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof (($2)))
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034
2035 else
2036 eval "$3=yes"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_c_check_type
2048 cat >config.log <<_ACEOF
2049 This file contains any messages produced by compilers while
2050 running configure, to aid debugging if configure makes a mistake.
2051
2052 It was created by Regina Rexx Interpreter $as_me 3.9.5, which was
2053 generated by GNU Autoconf 2.69. Invocation command line was
2054
2055 $ $0 $@
2056
2057 _ACEOF
2058 exec 5>>config.log
2059 {
2060 cat <<_ASUNAME
2061 ## --------- ##
2062 ## Platform. ##
2063 ## --------- ##
2064
2065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2070
2071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2072 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2073
2074 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2075 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2077 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2078 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2079 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2080 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2081
2082 _ASUNAME
2083
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 $as_echo "PATH: $as_dir"
2090 done
2091 IFS=$as_save_IFS
2092
2093 } >&5
2094
2095 cat >&5 <<_ACEOF
2096
2097
2098 ## ----------- ##
2099 ## Core tests. ##
2100 ## ----------- ##
2101
2102 _ACEOF
2103
2104
2105 # Keep a trace of the command line.
2106 # Strip out --no-create and --no-recursion so they do not pile up.
2107 # Strip out --silent because we don't want to record it for future runs.
2108 # Also quote any args containing shell meta-characters.
2109 # Make two passes to allow for proper duplicate-argument suppression.
2110 ac_configure_args=
2111 ac_configure_args0=
2112 ac_configure_args1=
2113 ac_must_keep_next=false
2114 for ac_pass in 1 2
2115 do
2116 for ac_arg
2117 do
2118 case $ac_arg in
2119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2121 | -silent | --silent | --silen | --sile | --sil)
2122 continue ;;
2123 *\'*)
2124 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2125 esac
2126 case $ac_pass in
2127 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2128 2)
2129 as_fn_append ac_configure_args1 " '$ac_arg'"
2130 if test $ac_must_keep_next = true; then
2131 ac_must_keep_next=false # Got value, back to normal.
2132 else
2133 case $ac_arg in
2134 *=* | --config-cache | -C | -disable-* | --disable-* \
2135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2137 | -with-* | --with-* | -without-* | --without-* | --x)
2138 case "$ac_configure_args0 " in
2139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2140 esac
2141 ;;
2142 -* ) ac_must_keep_next=true ;;
2143 esac
2144 fi
2145 as_fn_append ac_configure_args " '$ac_arg'"
2146 ;;
2147 esac
2148 done
2149 done
2150 { ac_configure_args0=; unset ac_configure_args0;}
2151 { ac_configure_args1=; unset ac_configure_args1;}
2152
2153 # When interrupted or exit'd, cleanup temporary files, and complete
2154 # config.log. We remove comments because anyway the quotes in there
2155 # would cause problems or look ugly.
2156 # WARNING: Use '\'' to represent an apostrophe within the trap.
2157 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2158 trap 'exit_status=$?
2159 # Save into config.log some information that might help in debugging.
2160 {
2161 echo
2162
2163 $as_echo "## ---------------- ##
2164 ## Cache variables. ##
2165 ## ---------------- ##"
2166 echo
2167 # The following way of writing the cache mishandles newlines in values,
2168 (
2169 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in #(
2172 *${as_nl}*)
2173 case $ac_var in #(
2174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2176 esac
2177 case $ac_var in #(
2178 _ | IFS | as_nl) ;; #(
2179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2180 *) { eval $ac_var=; unset $ac_var;} ;;
2181 esac ;;
2182 esac
2183 done
2184 (set) 2>&1 |
2185 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2186 *${as_nl}ac_space=\ *)
2187 sed -n \
2188 "s/'\''/'\''\\\\'\'''\''/g;
2189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2190 ;; #(
2191 *)
2192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 ;;
2194 esac |
2195 sort
2196 )
2197 echo
2198
2199 $as_echo "## ----------------- ##
2200 ## Output variables. ##
2201 ## ----------------- ##"
2202 echo
2203 for ac_var in $ac_subst_vars
2204 do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2212
2213 if test -n "$ac_subst_files"; then
2214 $as_echo "## ------------------- ##
2215 ## File substitutions. ##
2216 ## ------------------- ##"
2217 echo
2218 for ac_var in $ac_subst_files
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 $as_echo "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227 fi
2228
2229 if test -s confdefs.h; then
2230 $as_echo "## ----------- ##
2231 ## confdefs.h. ##
2232 ## ----------- ##"
2233 echo
2234 cat confdefs.h
2235 echo
2236 fi
2237 test "$ac_signal" != 0 &&
2238 $as_echo "$as_me: caught signal $ac_signal"
2239 $as_echo "$as_me: exit $exit_status"
2240 } >&5
2241 rm -f core *.core core.conftest.* &&
2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2243 exit $exit_status
2244 ' 0
2245 for ac_signal in 1 2 13 15; do
2246 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2247 done
2248 ac_signal=0
2249
2250 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2251 rm -f -r conftest* confdefs.h
2252
2253 $as_echo "/* confdefs.h */" > confdefs.h
2254
2255 # Predefined preprocessor variables.
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_NAME "$PACKAGE_NAME"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_STRING "$PACKAGE_STRING"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_URL "$PACKAGE_URL"
2279 _ACEOF
2280
2281
2282 # Let the site file select an alternate cache file if it wants to.
2283 # Prefer an explicitly selected file to automatically selected ones.
2284 ac_site_file1=NONE
2285 ac_site_file2=NONE
2286 if test -n "$CONFIG_SITE"; then
2287 # We do not want a PATH search for config.site.
2288 case $CONFIG_SITE in #((
2289 -*) ac_site_file1=./$CONFIG_SITE;;
2290 */*) ac_site_file1=$CONFIG_SITE;;
2291 *) ac_site_file1=./$CONFIG_SITE;;
2292 esac
2293 elif test "x$prefix" != xNONE; then
2294 ac_site_file1=$prefix/share/config.site
2295 ac_site_file2=$prefix/etc/config.site
2296 else
2297 ac_site_file1=$ac_default_prefix/share/config.site
2298 ac_site_file2=$ac_default_prefix/etc/config.site
2299 fi
2300 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2301 do
2302 test "x$ac_site_file" = xNONE && continue
2303 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2305 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2306 sed 's/^/| /' "$ac_site_file" >&5
2307 . "$ac_site_file" \
2308 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error $? "failed to load site script $ac_site_file
2311 See \`config.log' for more details" "$LINENO" 5; }
2312 fi
2313 done
2314
2315 if test -r "$cache_file"; then
2316 # Some versions of bash will fail to source /dev/null (special files
2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320 $as_echo "$as_me: loading cache $cache_file" >&6;}
2321 case $cache_file in
2322 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323 *) . "./$cache_file";;
2324 esac
2325 fi
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328 $as_echo "$as_me: creating cache $cache_file" >&6;}
2329 >$cache_file
2330 fi
2331
2332 # Check that the precious variables saved in the cache have kept the same
2333 # value.
2334 ac_cache_corrupted=false
2335 for ac_var in $ac_precious_vars; do
2336 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2337 eval ac_new_set=\$ac_env_${ac_var}_set
2338 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2339 eval ac_new_val=\$ac_env_${ac_var}_value
2340 case $ac_old_set,$ac_new_set in
2341 set,)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,set)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2349 ,);;
2350 *)
2351 if test "x$ac_old_val" != "x$ac_new_val"; then
2352 # differences in whitespace do not lead to failure.
2353 ac_old_val_w=`echo x $ac_old_val`
2354 ac_new_val_w=`echo x $ac_new_val`
2355 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2358 ac_cache_corrupted=:
2359 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2362 eval $ac_var=\$ac_old_val
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2365 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2367 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2368 fi;;
2369 esac
2370 # Pass precious variables to config.status.
2371 if test "$ac_new_set" = set; then
2372 case $ac_new_val in
2373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 *) ac_arg=$ac_var=$ac_new_val ;;
2375 esac
2376 case " $ac_configure_args " in
2377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2378 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2379 esac
2380 fi
2381 done
2382 if $ac_cache_corrupted; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2388 fi
2389 ## -------------------- ##
2390 ## Main body of script. ##
2391 ## -------------------- ##
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399
2400
2401
2402 . $srcdir/regina.ver
2403 VERSION_NODOT=\"$VER\"
2404 VERSION=\"$VER_DOT\"
2405 VERSION_UNQUOTED=$VER_DOT
2406 VER_DATE=\"$VER_DATE\"
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417 REGINA_PACKAGE_NAME="regina-rexx"
2418
2419
2420 FULL_PACKAGE_NAME=$REGINA_PACKAGE_NAME-$VER_DOT
2421
2422
2423 cp $srcdir/common/config.guess $srcdir
2424 cp $srcdir/common/config.sub $srcdir
2425
2426
2427 mh_sysv_incdir=""
2428 mh_sysv_libdir=""
2429 all_words="clang gcc xlc c99 c89 acc cc"
2430 ac_dir=""
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for one of the following C compilers: $all_words" >&5
2432 $as_echo_n "checking for one of the following C compilers: $all_words... " >&6; }
2433 if ${ac_cv_prog_CC+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2441 for mh_cc in $all_words; do
2442 for ac_dir in $PATH; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$mh_cc; then
2445 ac_cv_prog_CC="$mh_cc"
2446 if test "$ac_dir" = "/usr/5bin"; then
2447 mh_sysv_incdir="/usr/5include"
2448 mh_sysv_libdir="/usr/5lib"
2449 fi
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS="$ac_save_ifs"
2455 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
2456 fi
2457 CC="$ac_cv_prog_CC"
2458
2459 fi
2460
2461
2462 if test "$ac_dir" = ""; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_cv_prog_CC specified in CC env variable" >&5
2464 $as_echo "using $ac_cv_prog_CC specified in CC env variable" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_dir/$ac_cv_prog_CC" >&5
2467 $as_echo "using $ac_dir/$ac_cv_prog_CC" >&6; }
2468 fi
2469
2470
2471 ac_config_headers="$ac_config_headers config.h"
2472
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_CC+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2509 $as_echo "$CC" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_CC"; then
2518 ac_ct_CC=$CC
2519 # Extract the first word of "gcc", so it can be a program name with args.
2520 set dummy gcc; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_CC="gcc"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2549 $as_echo "$ac_ct_CC" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 CC=$ac_ct_CC
2565 fi
2566 else
2567 CC="$ac_cv_prog_CC"
2568 fi
2569
2570 if test -z "$CC"; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}cc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CC="${ac_tool_prefix}cc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 fi
2611 if test -z "$CC"; then
2612 # Extract the first word of "cc", so it can be a program name with args.
2613 set dummy cc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 ac_prog_rejected=no
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2631 ac_prog_rejected=yes
2632 continue
2633 fi
2634 ac_cv_prog_CC="cc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 if test $ac_prog_rejected = yes; then
2643 # We found a bogon in the path, so make sure we never use it.
2644 set dummy $ac_cv_prog_CC
2645 shift
2646 if test $# != 0; then
2647 # We chose a different compiler from the bogus one.
2648 # However, it has the same basename, so the bogon will be chosen
2649 # first if we set CC to just the basename; use the full file name.
2650 shift
2651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2652 fi
2653 fi
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 for ac_prog in cl.exe
2670 do
2671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 test -n "$CC" && break
2709 done
2710 fi
2711 if test -z "$CC"; then
2712 ac_ct_CC=$CC
2713 for ac_prog in cl.exe
2714 do
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_CC="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 $as_echo "$ac_ct_CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 test -n "$ac_ct_CC" && break
2753 done
2754
2755 if test "x$ac_ct_CC" = x; then
2756 CC=""
2757 else
2758 case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764 CC=$ac_ct_CC
2765 fi
2766 fi
2767
2768 fi
2769
2770
2771 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 as_fn_error $? "no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details" "$LINENO" 5; }
2775
2776 # Provide some information about the compiler.
2777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2778 set X $ac_compile
2779 ac_compiler=$2
2780 for ac_option in --version -v -V -qversion; do
2781 { { ac_try="$ac_compiler $ac_option >&5"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2789 ac_status=$?
2790 if test -s conftest.err; then
2791 sed '10a\
2792 ... rest of stderr output deleted ...
2793 10q' conftest.err >conftest.er1
2794 cat conftest.er1 >&5
2795 fi
2796 rm -f conftest.er1 conftest.err
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; }
2799 done
2800
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803
2804 int
2805 main ()
2806 {
2807
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2816 # of exeext.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2818 $as_echo_n "checking whether the C compiler works... " >&6; }
2819 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2820
2821 # The possible output files:
2822 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2823
2824 ac_rmfiles=
2825 for ac_file in $ac_files
2826 do
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2829 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2830 esac
2831 done
2832 rm -f $ac_rmfiles
2833
2834 if { { ac_try="$ac_link_default"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_link_default") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; then :
2845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2846 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2847 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2848 # so that the user can short-circuit this test for compilers unknown to
2849 # Autoconf.
2850 for ac_file in $ac_files ''
2851 do
2852 test -f "$ac_file" || continue
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2855 ;;
2856 [ab].out )
2857 # We found the default executable, but exeext='' is most
2858 # certainly right.
2859 break;;
2860 *.* )
2861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2862 then :; else
2863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 fi
2865 # We set ac_cv_exeext here because the later test for it is not
2866 # safe: cross compilers may not add the suffix if given an `-o'
2867 # argument, so we may need to know it at that point already.
2868 # Even if this section looks crufty: it has the advantage of
2869 # actually working.
2870 break;;
2871 * )
2872 break;;
2873 esac
2874 done
2875 test "$ac_cv_exeext" = no && ac_cv_exeext=
2876
2877 else
2878 ac_file=''
2879 fi
2880 if test -z "$ac_file"; then :
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 $as_echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error 77 "C compiler cannot create executables
2889 See \`config.log' for more details" "$LINENO" 5; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2897 $as_echo "$ac_file" >&6; }
2898 ac_exeext=$ac_cv_exeext
2899
2900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2903 $as_echo_n "checking for suffix of executables... " >&6; }
2904 if { { ac_try="$ac_link"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; then :
2915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2917 # work properly (i.e., refer to `conftest.exe'), while it won't with
2918 # `rm'.
2919 for ac_file in conftest.exe conftest conftest.*; do
2920 test -f "$ac_file" || continue
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 break;;
2925 * ) break;;
2926 esac
2927 done
2928 else
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details" "$LINENO" 5; }
2933 fi
2934 rm -f conftest conftest$ac_cv_exeext
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2936 $as_echo "$ac_cv_exeext" >&6; }
2937
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2940 ac_exeext=$EXEEXT
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2943 #include <stdio.h>
2944 int
2945 main ()
2946 {
2947 FILE *f = fopen ("conftest.out", "w");
2948 return ferror (f) || fclose (f) != 0;
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 ac_clean_files="$ac_clean_files conftest.out"
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2958 $as_echo_n "checking whether we are cross compiling... " >&6; }
2959 if test "$cross_compiling" != yes; then
2960 { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_link") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 if { ac_try='./conftest$ac_cv_exeext'
2972 { { case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; }; then
2982 cross_compiling=no
2983 else
2984 if test "$cross_compiling" = maybe; then
2985 cross_compiling=yes
2986 else
2987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $? "cannot run C compiled programs.
2990 If you meant to cross compile, use \`--host'.
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 fi
2993 fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2996 $as_echo "$cross_compiling" >&6; }
2997
2998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if ${ac_cv_objext+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035 done
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "cannot compute suffix of object files: cannot compile
3043 See \`config.log' for more details" "$LINENO" 5; }
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if ${ac_cv_c_compiler_gnu+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 if ac_fn_c_try_compile "$LINENO"; then :
3071 ac_compiler_gnu=yes
3072 else
3073 ac_compiler_gnu=no
3074 fi
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3082 GCC=yes
3083 else
3084 GCC=
3085 fi
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if ${ac_cv_prog_cc_g+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110 else
3111 CFLAGS=""
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124
3125 else
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 CFLAGS="-g"
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_g=yes
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3155 CFLAGS="-g -O2"
3156 else
3157 CFLAGS="-g"
3158 fi
3159 else
3160 if test "$GCC" = yes; then
3161 CFLAGS="-O2"
3162 else
3163 CFLAGS=
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if ${ac_cv_prog_cc_c89+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_cv_prog_cc_c89=no
3172 ac_save_CC=$CC
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 struct stat;
3178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179 struct buf { int x; };
3180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181 static char *e (p, i)
3182 char **p;
3183 int i;
3184 {
3185 return p[i];
3186 }
3187 static char *f (char * (*g) (char **, int), char **p, ...)
3188 {
3189 char *s;
3190 va_list v;
3191 va_start (v,p);
3192 s = g (p, va_arg (v,int));
3193 va_end (v);
3194 return s;
3195 }
3196
3197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205
3206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3208 #define FOO(x) 'x'
3209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210
3211 int test (int i, double x);
3212 struct s1 {int (*f) (int a);};
3213 struct s2 {int (*f) (double a);};
3214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3215 int argc;
3216 char **argv;
3217 int
3218 main ()
3219 {
3220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 do
3228 CC="$ac_save_CC $ac_arg"
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_c89=$ac_arg
3231 fi
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3234 done
3235 rm -f conftest.$ac_ext
3236 CC=$ac_save_CC
3237
3238 fi
3239 # AC_CACHE_VAL
3240 case "x$ac_cv_prog_cc_c89" in
3241 x)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243 $as_echo "none needed" >&6; } ;;
3244 xno)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3246 $as_echo "unsupported" >&6; } ;;
3247 *)
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3251 esac
3252 if test "x$ac_cv_prog_cc_c89" != xno; then :
3253
3254 fi
3255
3256 ac_ext=c
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3264 $as_echo_n "checking for library containing strerror... " >&6; }
3265 if ${ac_cv_search_strerror+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 ac_func_search_save_LIBS=$LIBS
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271
3272 /* Override any GCC internal prototype to avoid an error.
3273 Use char because int might match the return type of a GCC
3274 builtin and then its argument prototype would still apply. */
3275 #ifdef __cplusplus
3276 extern "C"
3277 #endif
3278 char strerror ();
3279 int
3280 main ()
3281 {
3282 return strerror ();
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 for ac_lib in '' cposix; do
3288 if test -z "$ac_lib"; then
3289 ac_res="none required"
3290 else
3291 ac_res=-l$ac_lib
3292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3293 fi
3294 if ac_fn_c_try_link "$LINENO"; then :
3295 ac_cv_search_strerror=$ac_res
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext \
3298 conftest$ac_exeext
3299 if ${ac_cv_search_strerror+:} false; then :
3300 break
3301 fi
3302 done
3303 if ${ac_cv_search_strerror+:} false; then :
3304
3305 else
3306 ac_cv_search_strerror=no
3307 fi
3308 rm conftest.$ac_ext
3309 LIBS=$ac_func_search_save_LIBS
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3312 $as_echo "$ac_cv_search_strerror" >&6; }
3313 ac_res=$ac_cv_search_strerror
3314 if test "$ac_res" != no; then :
3315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3316
3317 fi
3318
3319
3320 ac_aux_dir=
3321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3322 if test -f "$ac_dir/install-sh"; then
3323 ac_aux_dir=$ac_dir
3324 ac_install_sh="$ac_aux_dir/install-sh -c"
3325 break
3326 elif test -f "$ac_dir/install.sh"; then
3327 ac_aux_dir=$ac_dir
3328 ac_install_sh="$ac_aux_dir/install.sh -c"
3329 break
3330 elif test -f "$ac_dir/shtool"; then
3331 ac_aux_dir=$ac_dir
3332 ac_install_sh="$ac_aux_dir/shtool install -c"
3333 break
3334 fi
3335 done
3336 if test -z "$ac_aux_dir"; then
3337 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3338 fi
3339
3340 # These three variables are undocumented and unsupported,
3341 # and are intended to be withdrawn in a future Autoconf release.
3342 # They can cause serious problems if a builder's source tree is in a directory
3343 # whose full name contains unusual characters.
3344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3347
3348
3349 # Make sure we can run config.sub.
3350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3351 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3354 $as_echo_n "checking build system type... " >&6; }
3355 if ${ac_cv_build+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_build_alias=$build_alias
3359 test "x$ac_build_alias" = x &&
3360 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3361 test "x$ac_build_alias" = x &&
3362 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3363 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3364 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3365
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3368 $as_echo "$ac_cv_build" >&6; }
3369 case $ac_cv_build in
3370 *-*-*) ;;
3371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3372 esac
3373 build=$ac_cv_build
3374 ac_save_IFS=$IFS; IFS='-'
3375 set x $ac_cv_build
3376 shift
3377 build_cpu=$1
3378 build_vendor=$2
3379 shift; shift
3380 # Remember, the first character of IFS is used to create $*,
3381 # except with old shells:
3382 build_os=$*
3383 IFS=$ac_save_IFS
3384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3388 $as_echo_n "checking host system type... " >&6; }
3389 if ${ac_cv_host+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test "x$host_alias" = x; then
3393 ac_cv_host=$ac_cv_build
3394 else
3395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3397 fi
3398
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3401 $as_echo "$ac_cv_host" >&6; }
3402 case $ac_cv_host in
3403 *-*-*) ;;
3404 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3405 esac
3406 host=$ac_cv_host
3407 ac_save_IFS=$IFS; IFS='-'
3408 set x $ac_cv_host
3409 shift
3410 host_cpu=$1
3411 host_vendor=$2
3412 shift; shift
3413 # Remember, the first character of IFS is used to create $*,
3414 # except with old shells:
3415 host_os=$*
3416 IFS=$ac_save_IFS
3417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3418
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3421 $as_echo_n "checking target system type... " >&6; }
3422 if ${ac_cv_target+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test "x$target_alias" = x; then
3426 ac_cv_target=$ac_cv_host
3427 else
3428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3429 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3430 fi
3431
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3434 $as_echo "$ac_cv_target" >&6; }
3435 case $ac_cv_target in
3436 *-*-*) ;;
3437 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3438 esac
3439 target=$ac_cv_target
3440 ac_save_IFS=$IFS; IFS='-'
3441 set x $ac_cv_target
3442 shift
3443 target_cpu=$1
3444 target_vendor=$2
3445 shift; shift
3446 # Remember, the first character of IFS is used to create $*,
3447 # except with old shells:
3448 target_os=$*
3449 IFS=$ac_save_IFS
3450 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3451
3452
3453 # The aliases save the names the user supplied, while $host etc.
3454 # will get canonicalized.
3455 test -n "$target_alias" &&
3456 test "$program_prefix$program_suffix$program_transform_name" = \
3457 NONENONEs,x,x, &&
3458 program_prefix=${target_alias}-
3459
3460
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ANSI prototypes" >&5
3463 $as_echo_n "checking if compiler supports ANSI prototypes... " >&6; }
3464 ac_compile='$ac_cv_prog_CC conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #include <stdio.h>
3468 int
3469 main ()
3470 {
3471 extern int xxx(int, char *);
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 mh_have_proto=yes; $as_echo "#define HAVE_PROTO 1" >>confdefs.h
3478
3479 else
3480 mh_have_proto=no
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_have_proto" >&5
3484 $as_echo "$mh_have_proto" >&6; }
3485
3486 if test "$mh_have_proto" = "no"; then
3487 as_fn_error $? "Regina requires an ANSI compiler; cannot continue" "$LINENO" 5
3488 fi
3489
3490
3491
3492 # Check whether --enable-32bit was given.
3493 if test "${enable_32bit+set}" = set; then :
3494 enableval=$enable_32bit; bitflag32=yes
3495 else
3496 bitflag32=no
3497 fi
3498
3499 # Check whether --enable-64bit was given.
3500 if test "${enable_64bit+set}" = set; then :
3501 enableval=$enable_64bit; bitflag64=yes
3502 else
3503 bitflag64=no
3504 fi
3505
3506
3507 #
3508 # Now do platform specific tests
3509 #
3510 gcc_64bit="-m64"
3511 gcc_32bit="-m32"
3512 on_osx="no"
3513 osis64bit=no
3514 bitflag="32"
3515 MACH_ARCH=`$ac_config_guess | cut -f1 -d-`
3516 case "$target" in
3517 *hp-hpux*)
3518 ;;
3519 *ibm-aix*)
3520 rc=`lsconf -k | grep -c 64-bit`
3521 if test $rc -eq 1; then
3522 bitflag="64"
3523 osis64bit=yes
3524 fi
3525 #
3526 # AIX gcc has its own special bit switches :-(
3527 #
3528 gcc_64bit="-maix64"
3529 gcc_32bit="-maix32"
3530 ;;
3531 powerpc-ibm-os400)
3532 bitflag="64"
3533 osis64bit=yes
3534 gcc_64bit=""
3535 ;;
3536 *dec-osf4*)
3537 ;;
3538 *dec-osf*)
3539 ;;
3540 *sequent-dynix*)
3541 ;;
3542 i*86*solaris*)
3543 ;;
3544 *solaris*)
3545 rc=`isainfo -v | grep -c 64-bit`
3546 if test $rc -eq 1; then
3547 bitflag="64"
3548 osis64bit=yes
3549 fi
3550 ;;
3551 sparc*sunos*)
3552 ;;
3553 *linux* | *kfreebsd*-gnu*)
3554 mach="`uname -m`"
•3555 if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "ppc64" -o "$mach" = "s390x"; then
3556 bitflag="64"
3557 osis64bit=yes
3558 fi
3559 # if test -f "/etc/os-release"; then
3560 # get Linux ID...
3561 # fi
3562 if test -f "/etc/apk/arch"; then
3563 # get Alpine Linux architecture for APK
3564 MACH_ARCH="`cat /etc/apk/arch`"
3565 fi
3566 ;;
3567 *-freebsd* | *-openbsd*)
3568 mach="`uname -m`"
3569 if test "$mach" = "amd64"; then
3570 bitflag="64"
3571 osis64bit=yes
3572 fi
3573 ;;
3574 *nto-qnx*)
3575 ;;
3576 *qnx*)
3577 ;;
3578 *beos*)
3579 ;;
3580 *haiku*)
3581 mach="`uname -m`"
3582 if test "$mach" = "x86_64"; then
3583 bitflag="64"
3584 osis64bit=yes
3585 fi
3586 ;;
3587 *cygwin*)
3588 mach="`uname -m`"
3589 if test "$mach" = "x86_64"; then
3590 bitflag="64"
3591 osis64bit=yes
3592 fi
3593 ;;
3594 *apple-darwin*)
3595 on_osx="yes"
3596 osx_64bit=`sysctl hw.cpu64bit_capable | cut -f2 -d' '`
3597 if test $osx_64bit -eq 1; then
3598 bitflag="64"
3599 osis64bit=yes
3600 fi
3601 ;;
3602 esac
3603
3604 if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then
3605 as_fn_error $? "--enable-32bit and --enable-64bit flags cannot both be specified." "$LINENO" 5
3606 fi
3607
3608 if test "x$bitflag64" = "xyes" -a "$osis64bit" = "no"; then
3609 as_fn_error $? "--enable-64bit cannot be specified on non-64bit OS." "$LINENO" 5
3610 fi
3611
3612 binarybitprefix=""
3613 if test "x$bitflag32" = "xyes"; then
3614 bitflag="32"
3615 if test "$osis64bit" = "yes"; then
3616 binarybitprefix="32"
3617 fi
3618 elif test "x$bitflag64" = "xyes"; then
3619 bitflag="64"
3620 fi
3621
3622
3623
3624 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
3625 save_CPPFLAGS="$CPPFLAGS"
3626 CPPFLAGS="$CPPFLAGS $gcc_32bit"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <stdlib.h>
3630 int
3631 main ()
3632 {
3633 int a=2
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639
3640 else
3641 gcc_32bit=""
3642
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 CPPFLAGS="$save_CPPFLAGS"
3646 save_CPPFLAGS="$CPPFLAGS"
3647 CPPFLAGS="$CPPFLAGS $gcc_64bit"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdlib.h>
3651 int
3652 main ()
3653 {
3654 int a=2
3655 ;
3656 return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660
3661 else
3662 gcc_64bit=""
3663
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 CPPFLAGS="$save_CPPFLAGS"
3667 fi
3668
3669 if test "$on_osx" = "yes"; then
3670
3671 valid_arch_flags=""
3672 found_arch_flags=""
3673
3674 # Check whether --with-arch was given.
3675 if test "${with_arch+set}" = set; then :
3676 withval=$with_arch; with_arch=$withval
3677 else
3678 with_arch=none
3679 fi
3680
3681 case "$with_arch" in
3682 none)
3683 arch_flags=""
3684 ;;
3685 all)
3686 arch_flags="-arch ppc -arch ppc64 -arch x86_64 -arch i386 -arch arm64"
3687 ;;
3688 32bit)
3689 arch_flags="-arch ppc -arch i386"
3690 ;;
3691 64bit)
3692 arch_flags="-arch ppc64 -arch x86_64 -arch arm64"
3693 ;;
3694 apple-silicon)
3695 arch_flags="-arch x86_64 -arch arm64"
3696 ;;
3697 intel)
3698 arch_flags="-arch i386 -arch x86_64"
3699 ;;
3700 apple-silicon)
3701 arch_flags="-arch x86_64 -arch arm64"
3702 ;;
3703 *)
3704 arch_flags="-arch $with_arch"
3705 ;;
3706 esac
3707
3708 valid_arch_flags=""
3709 found_arch_flags=""
3710 if test $on_osx = "yes"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which MacOS -arch flags are supported for universal binaries" >&5
3712 $as_echo_n "checking for which MacOS -arch flags are supported for universal binaries... " >&6; }
3713 for a in $arch_flags; do
3714 if test $a != "-arch"; then
3715 save_ldflags="$LDFLAGS"
3716 LDFLAGS="$LDFLAGS -arch $a"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #include <stdio.h>
3720 #include <stdlib.h>
3721 int
3722 main ()
3723 {
3724 exit(0)
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_link "$LINENO"; then :
3730 valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a"
3731 else
3732 a="$a"
3733
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3737 LDFLAGS="$save_ldflags"
3738 fi
3739 done
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_arch_flags" >&5
3741 $as_echo "$found_arch_flags" >&6; }
3742
3743 fi
3744
3745 else
3746 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
3747 if test "$bitflag" = "32"; then
3748 CFLAGS="${CFLAGS} $gcc_32bit"
3749 LDFLAGS="${LDFLAGS} $gcc_32bit"
3750 elif test "$bitflag" = "64"; then
3751 CFLAGS="${CFLAGS} $gcc_64bit"
3752 LDFLAGS="${LDFLAGS} $gcc_64bit"
3753 else
3754 bitflag="32"
3755 fi
3756 elif test "$ac_cv_prog_CC" = "xlc" -o "$ac_cv_prog_CC" = "xlC"; then
3757 if test "$bitflag" = "32"; then
3758 CFLAGS="${CFLAGS} -q32"
3759 LDFLAGS="${LDFLAGS} -q32"
3760 elif test "$bitflag" = "64"; then
3761 CFLAGS="${CFLAGS} -q64"
3762 LDFLAGS="${LDFLAGS} -q64"
3763 else
3764 bitflag="32"
3765 fi
3766 fi
3767 fi
3768
3769 #libdir_change=yes
3770 # Check whether --enable-libdir-change was given.
3771 if test "${enable_libdir_change+set}" = set; then :
3772 enableval=$enable_libdir_change; libdir_change=$enableval
3773 else
3774 libdir_change=yes
3775 fi
3776
3777 if test "$libdir_change" = yes; then
3778 if test "${libdir}" = '${exec_prefix}/lib'; then
3779 myprefix=$prefix
3780
3781 prefix_NONE=
3782 exec_prefix_NONE=
3783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
3784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
3785 eval ac_define_dir="\""$myprefix"\""
3786 eval ac_define_dir="\"$ac_define_dir\""
3787 MY_PREFIX="$ac_define_dir"
3788
3789 cat >>confdefs.h <<_ACEOF
3790 #define MY_PREFIX "$ac_define_dir"
3791 _ACEOF
3792
3793 test "$prefix_NONE" && prefix=NONE
3794 test "$exec_prefix_NONE" && exec_prefix=NONE
3795
3796 if test "${myprefix}" = "NONE"; then
3797 myprefix="$ac_default_prefix"
3798 fi
3799 if test -d "${myprefix}/lib/x86_64-linux-gnu"; then
3800 libdir64="${myprefix}/lib/x86_64-linux-gnu"
3801 elif test -d "${myprefix}/lib64"; then
3802 libdir64="${myprefix}/lib64"
3803 else
3804 libdir64="${myprefix}/lib"
3805 fi
3806 if test -d "${myprefix}/lib/i386-linux-gnu"; then
3807 libdir32="${myprefix}/lib/i386-linux-gnu"
3808 elif test -d "${myprefix}/lib32"; then
3809 libdir32="${myprefix}/lib32"
3810 else
3811 libdir32="${myprefix}/lib"
3812 fi
3813 if test "$bitflag" = "64"; then
3814 libdir="$libdir64"
3815 else
3816 libdir="$libdir32"
3817 fi
3818 else
3819 libdir64="$libdir"
3820 libdir32="$libdir"
3821 fi
3822 else
3823 libdir64="$libdir"
3824 libdir32="$libdir"
3825 fi
3826
3827
3828
3829
3830
3831 mymakefile="Makefile"
3832 on_qnx4=no
3833 on_beos=no
3834 on_haiku=no
3835 gci_available=no
3836 GCI_CONVERT_HEADER="gci_convert.unsupported"
3837 case "$target" in
3838 *hp-hpux*)
3839 SYS_DEFS="-D_HPUX_SOURCE"
3840 ;;
3841 *ibm-aix*)
3842 SYS_DEFS="-D_ALL_SOURCE"
3843 # mymakefile="Makefile.aix"
3844 ;;
3845 *apple-darwin*)
3846 SYS_DEFS="$valid_arch_flags"
3847 EEXTRA="$valid_arch_flags"
3848 ;;
3849 *dec-osf*)
3850 ;;
3851 *sequent-dynix*)
3852 ;;
3853 i*86*solaris*)
3854 GCI_CONVERT_HEADER="gci_convert.solaris.i86"
3855 gci_available=yes
3856 ;;
3857 *solaris*)
3858 GCI_CONVERT_HEADER="gci_convert.solaris.sparc"
3859 gci_available=yes
3860 ;;
3861 sparc*sunos*)
3862 ;;
3863 *86_64-*linux*)
3864 GCI_CONVERT_HEADER="gci_convert.linux.86_64"
3865 gci_available=yes
3866 ;;
3867 i*86-*linux*|*-k*bsd-gnu*|*-gnu*)
3868 GCI_CONVERT_HEADER="gci_convert.linux.i86"
3869 gci_available=yes
3870 ;;
3871 alpha*-*linux*)
3872 GCI_CONVERT_HEADER="gci_convert.linux.alpha"
3873 gci_available=yes
3874 ;;
3875 powerpc64-*linux*)
3876 GCI_CONVERT_HEADER="gci_convert.linux.powerpc64"
3877 gci_available=yes
3878 ;;
3879 *cygwin*)
3880 GCI_CONVERT_HEADER="gci_convert.cygwin.i86"
3881 gci_available=yes
3882 ;;
3883 *apple-darwin*)
3884 GCI_CONVERT_HEADER="gci_convert.macX.all"
3885 gci_available=yes
3886 ;;
3887 *nto-qnx*)
3888 ;;
3889 *qnx*)
3890 on_qnx4=yes
3891 SYS_DEFS="-Q"
3892 ;;
3893 *beos*)
3894 on_beos=yes
3895 ;;
3896 *haiku*)
3897 on_haiku=yes
3898 ;;
3899 *minix*)
3900 SYS_DEFS="-D__MINIX__"
3901 ;;
3902 esac
3903
3904
3905
3906
3907 #MH_EXTRA_LIBS=""
3908 #MH_CHECK_LIB(dld dl)
3909 #SHLIBS="${MH_EXTRA_LIBS}"
3910
3911 #MH_EXTRA_LIBS=""
3912 #MH_CHECK_LIB(m nsl nsl_s socket net network)
3913
3914 mh_save_libs="$LIBS"
3915
3916 if test "$on_qnx4" = no; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
3918 $as_echo_n "checking for main in -lcrypt... " >&6; }
3919 if ${ac_cv_lib_crypt_main+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 ac_check_lib_save_LIBS=$LIBS
3923 LIBS="-lcrypt $LIBS"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927
3928 int
3929 main ()
3930 {
3931 return main ();
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_link "$LINENO"; then :
3937 ac_cv_lib_crypt_main=yes
3938 else
3939 ac_cv_lib_crypt_main=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
3946 $as_echo "$ac_cv_lib_crypt_main" >&6; }
3947 if test "x$ac_cv_lib_crypt_main" = xyes; then :
3948 mh_crypt_found=yes
3949 else
3950 mh_crypt_found=no
3951 fi
3952
3953 if test "$mh_crypt_found" = yes; then
3954 LIBS="${LIBS} -lcrypt"
3955 fi
3956 fi
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt function" >&5
3959 $as_echo_n "checking for crypt function... " >&6; }
3960
3961 if ${mh_cv_func_crypt+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <unistd.h>
3968 int
3969 main ()
3970 {
3971 crypt("fred","aa")
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_link "$LINENO"; then :
3977 mh_cv_func_crypt=yes
3978 else
3979 mh_cv_func_crypt=no
3980
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext \
3983 conftest$ac_exeext conftest.$ac_ext
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_func_crypt" >&5
3987 $as_echo "$mh_cv_func_crypt" >&6; }
3988 STATIC_BINARY_LIBS=""
3989 if test "$mh_cv_func_crypt" = yes ; then
3990 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
3991
3992 if test "$mh_crypt_found" = yes; then
3993 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -lcrypt"
3994 STATIC_BINARY_LIBS="-lcrypt"
3995 fi
3996 fi
3997
3998 LIBS="$mh_save_libs"
3999
4000
4001 if test "$on_qnx4" = "no"; then
4002 for ac_prog in flex lex
4003 do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005 set dummy $ac_prog; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_LEX+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$LEX"; then
4012 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_LEX="$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 LEX=$ac_cv_prog_LEX
4032 if test -n "$LEX"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4034 $as_echo "$LEX" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 test -n "$LEX" && break
4042 done
4043 test -n "$LEX" || LEX=":"
4044
4045 if test "x$LEX" != "x:"; then
4046 cat >conftest.l <<_ACEOF
4047 %%
4048 a { ECHO; }
4049 b { REJECT; }
4050 c { yymore (); }
4051 d { yyless (1); }
4052 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4053 yyless ((input () != 0)); }
4054 f { unput (yytext[0]); }
4055 . { BEGIN INITIAL; }
4056 %%
4057 #ifdef YYTEXT_POINTER
4058 extern char *yytext;
4059 #endif
4060 int
4061 main (void)
4062 {
4063 return ! yylex () + ! yywrap ();
4064 }
4065 _ACEOF
4066 { { ac_try="$LEX conftest.l"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$LEX conftest.l") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4078 $as_echo_n "checking lex output file root... " >&6; }
4079 if ${ac_cv_prog_lex_root+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082
4083 if test -f lex.yy.c; then
4084 ac_cv_prog_lex_root=lex.yy
4085 elif test -f lexyy.c; then
4086 ac_cv_prog_lex_root=lexyy
4087 else
4088 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4089 fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4092 $as_echo "$ac_cv_prog_lex_root" >&6; }
4093 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4094
4095 if test -z "${LEXLIB+set}"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4097 $as_echo_n "checking lex library... " >&6; }
4098 if ${ac_cv_lib_lex+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101
4102 ac_save_LIBS=$LIBS
4103 ac_cv_lib_lex='none needed'
4104 for ac_lib in '' -lfl -ll; do
4105 LIBS="$ac_lib $ac_save_LIBS"
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 `cat $LEX_OUTPUT_ROOT.c`
4109 _ACEOF
4110 if ac_fn_c_try_link "$LINENO"; then :
4111 ac_cv_lib_lex=$ac_lib
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext \
4114 conftest$ac_exeext conftest.$ac_ext
4115 test "$ac_cv_lib_lex" != 'none needed' && break
4116 done
4117 LIBS=$ac_save_LIBS
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4121 $as_echo "$ac_cv_lib_lex" >&6; }
4122 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4123 fi
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4127 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4128 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 # POSIX says lex can declare yytext either as a pointer or an array; the
4132 # default is implementation-dependent. Figure out which it is, since
4133 # not all implementations provide the %pointer and %array declarations.
4134 ac_cv_prog_lex_yytext_pointer=no
4135 ac_save_LIBS=$LIBS
4136 LIBS="$LEXLIB $ac_save_LIBS"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 #define YYTEXT_POINTER 1
4141 `cat $LEX_OUTPUT_ROOT.c`
4142 _ACEOF
4143 if ac_fn_c_try_link "$LINENO"; then :
4144 ac_cv_prog_lex_yytext_pointer=yes
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext \
4147 conftest$ac_exeext conftest.$ac_ext
4148 LIBS=$ac_save_LIBS
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4152 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4153 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4154
4155 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4156
4157 fi
4158 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4159
4160 fi
4161 fi
4162 #BOTHLIBS="${LEXLIB} ${MH_EXTRA_LIBS}"
4163
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_RANLIB+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$RANLIB"; then
4173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4195 $as_echo "$RANLIB" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_RANLIB"; then
4204 ac_ct_RANLIB=$RANLIB
4205 # Extract the first word of "ranlib", so it can be a program name with args.
4206 set dummy ranlib; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$ac_ct_RANLIB"; then
4213 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_RANLIB="ranlib"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4233 if test -n "$ac_ct_RANLIB"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4235 $as_echo "$ac_ct_RANLIB" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241 if test "x$ac_ct_RANLIB" = x; then
4242 RANLIB=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 RANLIB=$ac_ct_RANLIB
4251 fi
4252 else
4253 RANLIB="$ac_cv_prog_RANLIB"
4254 fi
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4258 $as_echo_n "checking whether ln -s works... " >&6; }
4259 LN_S=$as_ln_s
4260 if test "$LN_S" = "ln -s"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4262 $as_echo "yes" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4265 $as_echo "no, using $LN_S" >&6; }
4266 fi
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4270 set x ${MAKE-make}
4271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat >conftest.make <<\_ACEOF
4276 SHELL = /bin/sh
4277 all:
4278 @echo '@@@%%%=$(MAKE)=@@@%%%'
4279 _ACEOF
4280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4282 *@@@%%%=?*=@@@%%%*)
4283 eval ac_cv_prog_make_${ac_make}_set=yes;;
4284 *)
4285 eval ac_cv_prog_make_${ac_make}_set=no;;
4286 esac
4287 rm -f conftest.make
4288 fi
4289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4292 SET_MAKE=
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 SET_MAKE="MAKE=${MAKE-make}"
4297 fi
4298
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4309 CPP=
4310 fi
4311 if test -z "$CPP"; then
4312 if ${ac_cv_prog_CPP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 # Double quotes because CPP needs to be expanded
4316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 do
4318 ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334 Syntax error
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337
4338 else
4339 # Broken: fails on valid input.
4340 continue
4341 fi
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4343
4344 # OK, works on sane cases. Now check whether nonexistent headers
4345 # can be detected and how.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4349 _ACEOF
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4351 # Broken: success on invalid input.
4352 continue
4353 else
4354 # Passes both tests.
4355 ac_preproc_ok=:
4356 break
4357 fi
4358 rm -f conftest.err conftest.i conftest.$ac_ext
4359
4360 done
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.i conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then :
4364 break
4365 fi
4366
4367 done
4368 ac_cv_prog_CPP=$CPP
4369
4370 fi
4371 CPP=$ac_cv_prog_CPP
4372 else
4373 ac_cv_prog_CPP=$CPP
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4376 $as_echo "$CPP" >&6; }
4377 ac_preproc_ok=false
4378 for ac_c_preproc_warn_flag in '' yes
4379 do
4380 # Use a header file that comes with gcc, so configuring glibc
4381 # with a fresh cross-compiler works.
4382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4383 # <limits.h> exists even on freestanding compilers.
4384 # On the NeXT, cc -E runs the code through the compiler's parser,
4385 # not just through cpp. "Syntax error" is here to catch this case.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #ifdef __STDC__
4389 # include <limits.h>
4390 #else
4391 # include <assert.h>
4392 #endif
4393 Syntax error
4394 _ACEOF
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396
4397 else
4398 # Broken: fails on valid input.
4399 continue
4400 fi
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4402
4403 # OK, works on sane cases. Now check whether nonexistent headers
4404 # can be detected and how.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4408 _ACEOF
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4410 # Broken: success on invalid input.
4411 continue
4412 else
4413 # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4416 fi
4417 rm -f conftest.err conftest.i conftest.$ac_ext
4418
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.i conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then :
4423
4424 else
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4429 fi
4430
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if ${ac_cv_path_GREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 as_fn_executable_p "$ac_path_GREP" || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460 *)
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4464 do
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4476 fi
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4482
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 fi
4491 else
4492 ac_cv_path_GREP=$GREP
4493 fi
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if ${ac_cv_path_EGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_EGREP" || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4524 *GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526 *)
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4530 do
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4542 fi
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 esac
4548
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553 IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 fi
4557 else
4558 ac_cv_path_EGREP=$EGREP
4559 fi
4560
4561 fi
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4569 $as_echo_n "checking for ANSI C header files... " >&6; }
4570 if ${ac_cv_header_stdc+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdlib.h>
4576 #include <stdarg.h>
4577 #include <string.h>
4578 #include <float.h>
4579
4580 int
4581 main ()
4582 {
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_header_stdc=yes
4590 else
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
4595 if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <string.h>
4600
4601 _ACEOF
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then :
4604
4605 else
4606 ac_cv_header_stdc=no
4607 fi
4608 rm -f conftest*
4609
4610 fi
4611
4612 if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <stdlib.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then :
4621
4622 else
4623 ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then :
4632 :
4633 else
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <ctype.h>
4637 #include <stdlib.h>
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 #else
4642 # define ISLOWER(c) \
4643 (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647 #endif
4648
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650 int
4651 main ()
4652 {
4653 int i;
4654 for (i = 0; i < 256; i++)
4655 if (XOR (islower (i), ISLOWER (i))
4656 || toupper (i) != TOUPPER (i))
4657 return 2;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_run "$LINENO"; then :
4662
4663 else
4664 ac_cv_header_stdc=no
4665 fi
4666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4667 conftest.$ac_objext conftest.beam conftest.$ac_ext
4668 fi
4669
4670 fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4673 $as_echo "$ac_cv_header_stdc" >&6; }
4674 if test $ac_cv_header_stdc = yes; then
4675
4676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677
4678 fi
4679
4680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682 inttypes.h stdint.h unistd.h
4683 do :
4684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4686 "
4687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690 _ACEOF
4691
4692 fi
4693
4694 done
4695
4696
4697 for ac_header in \
4698 arpa/inet.h \
4699 assert.h \
4700 ctype.h \
4701 crypt.h \
4702 dl.h \
4703 dlfcn.h \
4704 errno.h \
4705 fcntl.h \
4706 fnmatch.h \
4707 grp.h \
4708 readline/history.h \
4709 iconv.h \
4710 inttypes.h \
4711 limits.h \
4712 malloc.h \
4713 math.h \
4714 memory.h \
4715 ncurses.h \
4716 netdb.h \
4717 netinet/in.h \
4718 paths.h \
4719 poll.h \
4720 process.h \
4721 pwd.h \
4722 readline/readline.h \
4723 setjmp.h \
4724 share.h \
4725 signal.h \
4726 socket.h \
4727 stdarg.h \
•4728 stdbool.h \
4729 stdio.h \
4730 statvfs.h \
4731 stdlib.h \
4732 stdint.h \
4733 string.h \
4734 sys/ioctl.h \
4735 sys/mount.h \
4736 sys/poll.h \
4737 sys/resource.h \
4738 sys/select.h \
4739 sys/socket.h \
4740 sys/stat.h \
4741 sys/statfs.h \
4742 sys/statvfs.h \
4743 sys/mman.h \
4744 sys/time.h \
4745 sys/utsname.h \
4746 sys/wait.h \
4747 term.h \
4748 termcap.h \
4749 time.h \
4750 unistd.h \
4751 vfs.h
4752
4753 do :
4754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4755 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4757 cat >>confdefs.h <<_ACEOF
4758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4759 _ACEOF
4760
4761 fi
4762
4763 done
4764
4765
4766 for ac_func in sysconf div raise putenv usleep random ftruncate \
4767 memcpy memmove strerror strerror_r gettimeofday ftime poll \
4768 _fullpath vsprintf _splitpath2 _splitpath sigaction strtof \
4769 lstat mkstemp inet_ntop gmtime_r localtime_r \
4770 getgrgid_r getpwuid_r gethostbyname_r \
4771 atoll fseeko ftello getopt_long \
4772 readlink realpath getbootfile tgetstr statfs mbstowcs mmap iconv
4773 do :
4774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4777 cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782 done
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4786 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4787 if ${ac_cv_c_const+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 #ifndef __cplusplus
4798 /* Ultrix mips cc rejects this sort of thing. */
4799 typedef int charset[2];
4800 const charset cs = { 0, 0 };
4801 /* SunOS 4.1.1 cc rejects this. */
4802 char const *const *pcpcc;
4803 char **ppc;
4804 /* NEC SVR4.0.2 mips cc rejects this. */
4805 struct point {int x, y;};
4806 static struct point const zero = {0,0};
4807 /* AIX XL C 1.02.0.0 rejects this.
4808 It does not let you subtract one const X* pointer from another in
4809 an arm of an if-expression whose if-part is not a constant
4810 expression */
4811 const char *g = "string";
4812 pcpcc = &g + (g ? g-g : 0);
4813 /* HPUX 7.0 cc rejects these. */
4814 ++pcpcc;
4815 ppc = (char**) pcpcc;
4816 pcpcc = (char const *const *) ppc;
4817 { /* SCO 3.2v4 cc rejects this sort of thing. */
4818 char tx;
4819 char *t = &tx;
4820 char const *s = 0 ? (char *) 0 : (char const *) 0;
4821
4822 *t++ = 0;
4823 if (s) return 0;
4824 }
4825 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4826 int x[] = {25, 17};
4827 const int *foo = &x[0];
4828 ++foo;
4829 }
4830 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4831 typedef const int *iptr;
4832 iptr p = 0;
4833 ++p;
4834 }
4835 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4836 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4837 struct s { int j; const int *ap[3]; } bx;
4838 struct s *b = &bx; b->j = 5;
4839 }
4840 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4841 const int foo = 10;
4842 if (!foo) return 0;
4843 }
4844 return !cs[0] && !zero.x;
4845 #endif
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_c_const=yes
4853 else
4854 ac_cv_c_const=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4859 $as_echo "$ac_cv_c_const" >&6; }
4860 if test $ac_cv_c_const = no; then
4861
4862 $as_echo "#define const /**/" >>confdefs.h
4863
4864 fi
4865
4866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4867 if test "x$ac_cv_type_size_t" = xyes; then :
4868
4869 else
4870
4871 cat >>confdefs.h <<_ACEOF
4872 #define size_t unsigned int
4873 _ACEOF
4874
4875 fi
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4878 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4879 if ${ac_cv_header_time+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #include <sys/types.h>
4885 #include <sys/time.h>
4886 #include <time.h>
4887
4888 int
4889 main ()
4890 {
4891 if ((struct tm *) 0)
4892 return 0;
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898 ac_cv_header_time=yes
4899 else
4900 ac_cv_header_time=no
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4905 $as_echo "$ac_cv_header_time" >&6; }
4906 if test $ac_cv_header_time = yes; then
4907
4908 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4909
4910 fi
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4913 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4914 if ${ac_cv_struct_tm+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 #include <time.h>
4921
4922 int
4923 main ()
4924 {
4925 struct tm tm;
4926 int *p = &tm.tm_sec;
4927 return !p;
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_struct_tm=time.h
4934 else
4935 ac_cv_struct_tm=sys/time.h
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4940 $as_echo "$ac_cv_struct_tm" >&6; }
4941 if test $ac_cv_struct_tm = sys/time.h; then
4942
4943 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4944
4945 fi
4946
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4949 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4950 set dummy $CC; ac_cc="`echo $2 |
4951 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
4952 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 echo 'int foo(){}' > conftest.c
4956 # We do the test twice because some compilers refuse to overwrite an
4957 # existing .o file with -o, though they will create one.
4958 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4959 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; };
4969 then
4970 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; };
4980 then
4981 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4982 fi
4983 fi
4984 rm -f conftest*
4985
4986 fi
4987 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4988 O2SHO=""
4989 O2SAVE=""
4990 SAVE2O=""
4991 O2TSO=""
4992 O2TSAVE=""
4993 TSAVE2O=""
4994 CC2O="-o $"'@'
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4996 $as_echo "yes" >&6; }
4997 else
4998 O2SHO="-mv \`basename "$'@'" .so.o\`.o "$'@'
4999 O2SAVE="-mv \`basename "$'@'" .so.o\`.o \`basename "$'@'" .so.o\`.o.save"
5000 SAVE2O="-mv \`basename "$'@'" .so.o\`.o.save \`basename "$'@'" .so.o\`.o"
5001 O2TSO="-mv \`basename "$'@'" .tso\`.o "$'@'
5002 O2TSAVE="-mv \`basename "$'@'" .tso\`.o \`basename "$'@'" .tso\`.tso.save"
5003 TSAVE2O="-mv \`basename "$'@'" .tso\`.tso.save \`basename "$'@'" .tso\`.o"
5004 CC2O=""
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __sighandler_t is defined" >&5
5011 $as_echo_n "checking whether __sighandler_t is defined... " >&6; }
5012
5013 if ${mh_cv__sighandler_t+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <sys/types.h>
5020 #include <signal.h>
5021 int
5022 main ()
5023 {
5024 __sighandler_t fred
5025 ;
5026 return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"; then :
5030 mh_cv__sighandler_t=yes
5031 else
5032 mh_cv__sighandler_t=no
5033
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036
5037 fi
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv__sighandler_t" >&5
5040 $as_echo "$mh_cv__sighandler_t" >&6; }
5041 if test "$mh_cv__sighandler_t" = yes ; then
5042 $as_echo "#define HAVE__SIGHANDLER_T 1" >>confdefs.h
5043
5044 fi
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct random_data" >&5
5047 $as_echo_n "checking for struct random_data... " >&6; }
5048 if ${mh_cv_struct_random_data+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <stdlib.h>
5054 #include <stdio.h>
5055 int
5056 main ()
5057 {
5058 struct random_data s;
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 mh_cv_struct_random_data=yes
5065 else
5066 mh_cv_struct_random_data=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_struct_random_data" >&5
5071 $as_echo "$mh_cv_struct_random_data" >&6; }
5072 if test $mh_cv_struct_random_data = yes; then
5073 $as_echo "#define HAVE_RANDOM_DATA 1" >>confdefs.h
5074
5075 fi
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __builtin_return_address inline function" >&5
5079 $as_echo_n "checking whether compiler supports __builtin_return_address inline function... " >&6; }
5080 if ${mh_cv_builtin_return_address+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 #include <stdio.h>
5087 int
5088 main ()
5089 {
5090 __builtin_return_address(0)
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_link "$LINENO"; then :
5096 mh_cv_builtin_return_address=yes
5097 else
5098 mh_cv_builtin_return_address=no
5099
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5103
5104 fi
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_builtin_return_address" >&5
5107 $as_echo "$mh_cv_builtin_return_address" >&6; }
5108 if test "$mh_cv_builtin_return_address" = yes; then
5109 $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h
5110
5111 fi
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5114 $as_echo_n "checking for long long int... " >&6; }
5115 if ${mh_cv_c_long_long+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
5119 mh_cv_c_long_long=yes
5120 else
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123
5124 int
5125 main ()
5126 {
5127 long long int i;
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 mh_cv_c_long_long=yes
5134 else
5135 mh_cv_c_long_long=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_c_long_long" >&5
5141 $as_echo "$mh_cv_c_long_long" >&6; }
5142 if test $mh_cv_c_long_long = yes; then
5143
5144 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5145
5146 fi
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5149 $as_echo_n "checking for socklen_t... " >&6; }
5150 if ${ac_cv_type_socklen_t+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #include <sys/types.h>
5157 #include <sys/socket.h>
5158 int
5159 main ()
5160 {
5161 socklen_t len = 42; return 0;
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 ac_cv_type_socklen_t=yes
5168 else
5169 ac_cv_type_socklen_t=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
5175 $as_echo "$ac_cv_type_socklen_t" >&6; }
5176 if test $ac_cv_type_socklen_t = yes; then
5177
5178 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
5179
5180 fi
5181
5182 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
5183 #include <sys/ipc.h>
5184 #include <sys/sem.h>
5185 "
5186 if test "x$ac_cv_type_union_semun" = xyes; then :
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define HAVE_UNION_SEMUN 1
5190 _ACEOF
5191
5192
5193 fi
5194
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statvfs.f_mntfromname exists..." >&5
5197 $as_echo "$as_me: checking if statvfs.f_mntfromname exists..." >&6;}
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200
5201 #include <sys/types.h>
5202 #include <sys/statvfs.h>
5203
5204 int
5205 main ()
5206 {
5207
5208 struct statvfs buf;
5209 char *p = buf.f_mntfromname;
5210
5211 statvfs(".", &buf);
5212
5213 ;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218
5219
5220 $as_echo "#define HAVE_STATVFS_F_MNTFROMNAME /**/" >>confdefs.h
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5224
5225 else
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5235 $as_echo_n "checking for working memcmp... " >&6; }
5236 if ${ac_cv_func_memcmp_working+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test "$cross_compiling" = yes; then :
5240 ac_cv_func_memcmp_working=no
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 int
5246 main ()
5247 {
5248
5249 /* Some versions of memcmp are not 8-bit clean. */
5250 char c0 = '\100', c1 = '\200', c2 = '\201';
5251 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5252 return 1;
5253
5254 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5255 or more and with at least one buffer not starting on a 4-byte boundary.
5256 William Lewis provided this test program. */
5257 {
5258 char foo[21];
5259 char bar[21];
5260 int i;
5261 for (i = 0; i < 4; i++)
5262 {
5263 char *a = foo + i;
5264 char *b = bar + i;
5265 strcpy (a, "--------01111111");
5266 strcpy (b, "--------10000000");
5267 if (memcmp (a, b, 16) >= 0)
5268 return 1;
5269 }
5270 return 0;
5271 }
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_run "$LINENO"; then :
5278 ac_cv_func_memcmp_working=yes
5279 else
5280 ac_cv_func_memcmp_working=no
5281 fi
5282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5283 conftest.$ac_objext conftest.beam conftest.$ac_ext
5284 fi
5285
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5288 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5289 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5290 *" memcmp.$ac_objext "* ) ;;
5291 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5292 ;;
5293 esac
5294
5295
5296 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5297 # for constant arguments. Useless!
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5299 $as_echo_n "checking for working alloca.h... " >&6; }
5300 if ${ac_cv_working_alloca_h+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <alloca.h>
5306 int
5307 main ()
5308 {
5309 char *p = (char *) alloca (2 * sizeof (int));
5310 if (p) return 0;
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_c_try_link "$LINENO"; then :
5316 ac_cv_working_alloca_h=yes
5317 else
5318 ac_cv_working_alloca_h=no
5319 fi
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5324 $as_echo "$ac_cv_working_alloca_h" >&6; }
5325 if test $ac_cv_working_alloca_h = yes; then
5326
5327 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5328
5329 fi
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5332 $as_echo_n "checking for alloca... " >&6; }
5333 if ${ac_cv_func_alloca_works+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #ifdef __GNUC__
5339 # define alloca __builtin_alloca
5340 #else
5341 # ifdef _MSC_VER
5342 # include <malloc.h>
5343 # define alloca _alloca
5344 # else
5345 # ifdef HAVE_ALLOCA_H
5346 # include <alloca.h>
5347 # else
5348 # ifdef _AIX
5349 #pragma alloca
5350 # else
5351 # ifndef alloca /* predefined by HP cc +Olibcalls */
5352 void *alloca (size_t);
5353 # endif
5354 # endif
5355 # endif
5356 # endif
5357 #endif
5358
5359 int
5360 main ()
5361 {
5362 char *p = (char *) alloca (1);
5363 if (p) return 0;
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_link "$LINENO"; then :
5369 ac_cv_func_alloca_works=yes
5370 else
5371 ac_cv_func_alloca_works=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext \
5374 conftest$ac_exeext conftest.$ac_ext
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5377 $as_echo "$ac_cv_func_alloca_works" >&6; }
5378
5379 if test $ac_cv_func_alloca_works = yes; then
5380
5381 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5382
5383 else
5384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5385 # that cause trouble. Some versions do not even contain alloca or
5386 # contain a buggy version. If you still want to use their alloca,
5387 # use ar to extract alloca.o from them instead of compiling alloca.c.
5388
5389 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5390
5391 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5392
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5395 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5396 if ${ac_cv_os_cray+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #if defined CRAY && ! defined CRAY2
5402 webecray
5403 #else
5404 wenotbecray
5405 #endif
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "webecray" >/dev/null 2>&1; then :
5410 ac_cv_os_cray=yes
5411 else
5412 ac_cv_os_cray=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5418 $as_echo "$ac_cv_os_cray" >&6; }
5419 if test $ac_cv_os_cray = yes; then
5420 for ac_func in _getb67 GETB67 getb67; do
5421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5424
5425 cat >>confdefs.h <<_ACEOF
5426 #define CRAY_STACKSEG_END $ac_func
5427 _ACEOF
5428
5429 break
5430 fi
5431
5432 done
5433 fi
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5436 $as_echo_n "checking stack direction for C alloca... " >&6; }
5437 if ${ac_cv_c_stack_direction+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test "$cross_compiling" = yes; then :
5441 ac_cv_c_stack_direction=0
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 $ac_includes_default
5446 int
5447 find_stack_direction (int *addr, int depth)
5448 {
5449 int dir, dummy = 0;
5450 if (! addr)
5451 addr = &dummy;
5452 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5453 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5454 return dir + dummy;
5455 }
5456
5457 int
5458 main (int argc, char **argv)
5459 {
5460 return find_stack_direction (0, argc + !argv + 20) < 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_run "$LINENO"; then :
5464 ac_cv_c_stack_direction=1
5465 else
5466 ac_cv_c_stack_direction=-1
5467 fi
5468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5469 conftest.$ac_objext conftest.beam conftest.$ac_ext
5470 fi
5471
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5474 $as_echo "$ac_cv_c_stack_direction" >&6; }
5475 cat >>confdefs.h <<_ACEOF
5476 #define STACK_DIRECTION $ac_cv_c_stack_direction
5477 _ACEOF
5478
5479
5480 fi
5481
5482 if test $ac_cv_func_alloca_works = yes; then
5483 ALLOCA=""
5484 ALLOCA_SHO=""
5485 ALLOCA_TSO=""
5486 else
5487 ALLOCA="alloca.o"
5488 ALLOCA_SHO="alloca.so.o"
5489 ALLOCA_TSO="alloca.tso.o"
5490 fi
5491
5492
5493
5494 if test $ac_cv_header_fnmatch_h = yes; then
5495 FNMATCH=""
5496 FNMATCH_SHO=""
5497 FNMATCH_TSO=""
5498 else
5499 FNMATCH="fnmatch.o"
5500 FNMATCH_SHO="fnmatch.so.o"
5501 FNMATCH_TSO="fnmatch.tso.o"
5502 fi
5503
5504
5505
5506
5507 # Check whether --enable-screen was given.
5508 if test "${enable_screen+set}" = set; then :
5509 enableval=$enable_screen; with_screen=$enableval
5510 else
5511 with_screen=yes
5512 fi
5513
5514 if test "$with_screen" = no; then
5515 SCREEN_FUNCS="-DNOSCREEN_FUNCS"
5516 REGSCREENUX=""
5517 else
5518 SCREEN_FUNCS=""
5519 REGSCREENUX="regscreenux.\$(OBJ)"
5520 fi
5521
5522
5523
5524 REGUTIL_TERM_LIB=""
5525 #if test "$on_qnx4" = "no"; then
5526 save_LIBS="$LIBS"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5528 $as_echo_n "checking for library containing tgetent... " >&6; }
5529 if ${ac_cv_search_tgetent+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 ac_func_search_save_LIBS=$LIBS
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535
5536 /* Override any GCC internal prototype to avoid an error.
5537 Use char because int might match the return type of a GCC
5538 builtin and then its argument prototype would still apply. */
5539 #ifdef __cplusplus
5540 extern "C"
5541 #endif
5542 char tgetent ();
5543 int
5544 main ()
5545 {
5546 return tgetent ();
5547 ;
5548 return 0;
5549 }
5550 _ACEOF
5551 for ac_lib in '' ncurses termcap curses termlib; do
5552 if test -z "$ac_lib"; then
5553 ac_res="none required"
5554 else
5555 ac_res=-l$ac_lib
5556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5557 fi
5558 if ac_fn_c_try_link "$LINENO"; then :
5559 ac_cv_search_tgetent=$ac_res
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext
5563 if ${ac_cv_search_tgetent+:} false; then :
5564 break
5565 fi
5566 done
5567 if ${ac_cv_search_tgetent+:} false; then :
5568
5569 else
5570 ac_cv_search_tgetent=no
5571 fi
5572 rm conftest.$ac_ext
5573 LIBS=$ac_func_search_save_LIBS
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5576 $as_echo "$ac_cv_search_tgetent" >&6; }
5577 ac_res=$ac_cv_search_tgetent
5578 if test "$ac_res" != no; then :
5579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5580 REGUTIL_TERM_LIB="$ac_cv_search_tgetent"
5581 else
5582 REGUTIL_TERM_LIB=""
5583 fi
5584
5585 if test "$REGUTIL_TERM_LIB" = "none required" -o "$REGUTIL_TERM_LIB" = "no" -o "$with_screen" = "no"; then
5586 REGUTIL_TERM_LIB=""
5587 fi
5588 LIBS="$save_LIBS"
5589 #fi
5590 REGUTIL_MATH_LIB=""
5591 #if test "$on_qnx4" = "no"; then
5592 save_LIBS="$LIBS"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10" >&5
5594 $as_echo_n "checking for library containing log10... " >&6; }
5595 if ${ac_cv_search_log10+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 ac_func_search_save_LIBS=$LIBS
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5605 #ifdef __cplusplus
5606 extern "C"
5607 #endif
5608 char log10 ();
5609 int
5610 main ()
5611 {
5612 return log10 ();
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 for ac_lib in '' m c; do
5618 if test -z "$ac_lib"; then
5619 ac_res="none required"
5620 else
5621 ac_res=-l$ac_lib
5622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5623 fi
5624 if ac_fn_c_try_link "$LINENO"; then :
5625 ac_cv_search_log10=$ac_res
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext \
5628 conftest$ac_exeext
5629 if ${ac_cv_search_log10+:} false; then :
5630 break
5631 fi
5632 done
5633 if ${ac_cv_search_log10+:} false; then :
5634
5635 else
5636 ac_cv_search_log10=no
5637 fi
5638 rm conftest.$ac_ext
5639 LIBS=$ac_func_search_save_LIBS
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10" >&5
5642 $as_echo "$ac_cv_search_log10" >&6; }
5643 ac_res=$ac_cv_search_log10
5644 if test "$ac_res" != no; then :
5645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5646 REGUTIL_MATH_LIB="$ac_cv_search_log10"
5647 else
5648 REGUTIL_MATH_LIB=""
5649 fi
5650
5651 if test "$REGUTIL_MATH_LIB" = "none required" -o "$REGUTIL_MATH_LIB" = "no"; then
5652 REGUTIL_MATH_LIB=""
5653 fi
5654 LIBS="$save_LIBS"
5655 #fi
5656
5657 REGUTIL_READLINE_LIB=""
5658 #if test "$on_qnx4" = "no"; then
5659 save_LIBS="$LIBS"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing add_history" >&5
5661 $as_echo_n "checking for library containing add_history... " >&6; }
5662 if ${ac_cv_search_add_history+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 ac_func_search_save_LIBS=$LIBS
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668
5669 /* Override any GCC internal prototype to avoid an error.
5670 Use char because int might match the return type of a GCC
5671 builtin and then its argument prototype would still apply. */
5672 #ifdef __cplusplus
5673 extern "C"
5674 #endif
5675 char add_history ();
5676 int
5677 main ()
5678 {
5679 return add_history ();
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 for ac_lib in '' readline; do
5685 if test -z "$ac_lib"; then
5686 ac_res="none required"
5687 else
5688 ac_res=-l$ac_lib
5689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5690 fi
5691 if ac_fn_c_try_link "$LINENO"; then :
5692 ac_cv_search_add_history=$ac_res
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext \
5695 conftest$ac_exeext
5696 if ${ac_cv_search_add_history+:} false; then :
5697 break
5698 fi
5699 done
5700 if ${ac_cv_search_add_history+:} false; then :
5701
5702 else
5703 ac_cv_search_add_history=no
5704 fi
5705 rm conftest.$ac_ext
5706 LIBS=$ac_func_search_save_LIBS
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_add_history" >&5
5709 $as_echo "$ac_cv_search_add_history" >&6; }
5710 ac_res=$ac_cv_search_add_history
5711 if test "$ac_res" != no; then :
5712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5713 REGUTIL_READLINE_LIB="$ac_cv_search_add_history"
5714 else
5715 REGUTIL_READLINE_LIB=""
5716 fi
5717
5718 if test "$REGUTIL_READLINE_LIB" = "none required" -o "$REGUTIL_READLINE_LIB" = "no"; then
5719 REGUTIL_READLINE_LIB=""
5720 fi
5721 LIBS="$save_LIBS"
5722 #fi
5723
5724 save_LIBS="$LIBS"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5726 $as_echo_n "checking for library containing crypt... " >&6; }
5727 if ${ac_cv_search_crypt+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_func_search_save_LIBS=$LIBS
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733
5734 /* Override any GCC internal prototype to avoid an error.
5735 Use char because int might match the return type of a GCC
5736 builtin and then its argument prototype would still apply. */
5737 #ifdef __cplusplus
5738 extern "C"
5739 #endif
5740 char crypt ();
5741 int
5742 main ()
5743 {
5744 return crypt ();
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 for ac_lib in '' crypt; do
5750 if test -z "$ac_lib"; then
5751 ac_res="none required"
5752 else
5753 ac_res=-l$ac_lib
5754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5755 fi
5756 if ac_fn_c_try_link "$LINENO"; then :
5757 ac_cv_search_crypt=$ac_res
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext
5761 if ${ac_cv_search_crypt+:} false; then :
5762 break
5763 fi
5764 done
5765 if ${ac_cv_search_crypt+:} false; then :
5766
5767 else
5768 ac_cv_search_crypt=no
5769 fi
5770 rm conftest.$ac_ext
5771 LIBS=$ac_func_search_save_LIBS
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5774 $as_echo "$ac_cv_search_crypt" >&6; }
5775 ac_res=$ac_cv_search_crypt
5776 if test "$ac_res" != no; then :
5777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5778 REGINA_CRYPT_LIB="$ac_cv_search_crypt"
5779 else
5780 REGINA_CRYPT_LIB=""
5781 fi
5782
5783 if test "$REGINA_CRYPT_LIB" = "none required" -o "$REGINA_CRYPT_LIB" = "no"; then
5784 REGINA_CRYPT_LIB=""
5785 fi
5786 LIBS="$save_LIBS"
5787
5788 save_LIBS="$LIBS"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5790 $as_echo_n "checking for library containing dlopen... " >&6; }
5791 if ${ac_cv_search_dlopen+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_func_search_save_LIBS=$LIBS
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 char dlopen ();
5805 int
5806 main ()
5807 {
5808 return dlopen ();
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 for ac_lib in '' dl; do
5814 if test -z "$ac_lib"; then
5815 ac_res="none required"
5816 else
5817 ac_res=-l$ac_lib
5818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5819 fi
5820 if ac_fn_c_try_link "$LINENO"; then :
5821 ac_cv_search_dlopen=$ac_res
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext
5825 if ${ac_cv_search_dlopen+:} false; then :
5826 break
5827 fi
5828 done
5829 if ${ac_cv_search_dlopen+:} false; then :
5830
5831 else
5832 ac_cv_search_dlopen=no
5833 fi
5834 rm conftest.$ac_ext
5835 LIBS=$ac_func_search_save_LIBS
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5838 $as_echo "$ac_cv_search_dlopen" >&6; }
5839 ac_res=$ac_cv_search_dlopen
5840 if test "$ac_res" != no; then :
5841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5842 REGINA_DLOPEN_LIB="$ac_cv_search_dlopen"
5843 else
5844 REGINA_DLOPEN_LIB=""
5845 fi
5846
5847 if test "$REGINA_DLOPEN_LIB" = "none required" -o "$REGINA_DLOPEN_LIB" = "no"; then
5848 REGINA_DLOPEN_LIB=""
5849 fi
5850 LIBS="$save_LIBS"
5851
5852 save_LIBS="$LIBS"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
5854 $as_echo_n "checking for library containing shl_load... " >&6; }
5855 if ${ac_cv_search_shl_load+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 ac_func_search_save_LIBS=$LIBS
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861
5862 /* Override any GCC internal prototype to avoid an error.
5863 Use char because int might match the return type of a GCC
5864 builtin and then its argument prototype would still apply. */
5865 #ifdef __cplusplus
5866 extern "C"
5867 #endif
5868 char shl_load ();
5869 int
5870 main ()
5871 {
5872 return shl_load ();
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 for ac_lib in '' dld; do
5878 if test -z "$ac_lib"; then
5879 ac_res="none required"
5880 else
5881 ac_res=-l$ac_lib
5882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5883 fi
5884 if ac_fn_c_try_link "$LINENO"; then :
5885 ac_cv_search_shl_load=$ac_res
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext
5889 if ${ac_cv_search_shl_load+:} false; then :
5890 break
5891 fi
5892 done
5893 if ${ac_cv_search_shl_load+:} false; then :
5894
5895 else
5896 ac_cv_search_shl_load=no
5897 fi
5898 rm conftest.$ac_ext
5899 LIBS=$ac_func_search_save_LIBS
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
5902 $as_echo "$ac_cv_search_shl_load" >&6; }
5903 ac_res=$ac_cv_search_shl_load
5904 if test "$ac_res" != no; then :
5905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5906 REGINA_SHL_LOAD_LIB="$ac_cv_search_shl_load"
5907 else
5908 REGINA_SHL_LOAD_LIB=""
5909 fi
5910
5911 if test "$REGINA_SHL_LOAD_LIB" = "none required" -o "$REGINA_SHL_LOAD_LIB" = "no"; then
5912 REGINA_SHL_LOAD_LIB=""
5913 fi
5914 LIBS="$save_LIBS"
5915
5916 save_LIBS="$LIBS"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5918 $as_echo_n "checking for library containing socket... " >&6; }
5919 if ${ac_cv_search_socket+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 ac_func_search_save_LIBS=$LIBS
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925
5926 /* Override any GCC internal prototype to avoid an error.
5927 Use char because int might match the return type of a GCC
5928 builtin and then its argument prototype would still apply. */
5929 #ifdef __cplusplus
5930 extern "C"
5931 #endif
5932 char socket ();
5933 int
5934 main ()
5935 {
5936 return socket ();
5937 ;
5938 return 0;
5939 }
5940 _ACEOF
5941 for ac_lib in '' socket network; do
5942 if test -z "$ac_lib"; then
5943 ac_res="none required"
5944 else
5945 ac_res=-l$ac_lib
5946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5947 fi
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 ac_cv_search_socket=$ac_res
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext
5953 if ${ac_cv_search_socket+:} false; then :
5954 break
5955 fi
5956 done
5957 if ${ac_cv_search_socket+:} false; then :
5958
5959 else
5960 ac_cv_search_socket=no
5961 fi
5962 rm conftest.$ac_ext
5963 LIBS=$ac_func_search_save_LIBS
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5966 $as_echo "$ac_cv_search_socket" >&6; }
5967 ac_res=$ac_cv_search_socket
5968 if test "$ac_res" != no; then :
5969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5970 REGINA_SOCKET_LIB="$ac_cv_search_socket"
5971 else
5972 REGINA_SOCKET_LIB=""
5973 fi
5974
5975 if test "$REGINA_SOCKET_LIB" = "none required" -o "$REGINA_SOCKET_LIB" = "no"; then
5976 REGINA_SOCKET_LIB=""
5977 fi
5978 LIBS="$save_LIBS"
5979
5980 save_LIBS="$LIBS"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5982 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5983 if ${ac_cv_search_gethostbyname+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 ac_func_search_save_LIBS=$LIBS
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5993 #ifdef __cplusplus
5994 extern "C"
5995 #endif
5996 char gethostbyname ();
5997 int
5998 main ()
5999 {
6000 return gethostbyname ();
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 for ac_lib in '' nsl socket network; do
6006 if test -z "$ac_lib"; then
6007 ac_res="none required"
6008 else
6009 ac_res=-l$ac_lib
6010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6011 fi
6012 if ac_fn_c_try_link "$LINENO"; then :
6013 ac_cv_search_gethostbyname=$ac_res
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext
6017 if ${ac_cv_search_gethostbyname+:} false; then :
6018 break
6019 fi
6020 done
6021 if ${ac_cv_search_gethostbyname+:} false; then :
6022
6023 else
6024 ac_cv_search_gethostbyname=no
6025 fi
6026 rm conftest.$ac_ext
6027 LIBS=$ac_func_search_save_LIBS
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6030 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6031 ac_res=$ac_cv_search_gethostbyname
6032 if test "$ac_res" != no; then :
6033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6034 REGINA_GETHOSTBYNAME_LIB="$ac_cv_search_gethostbyname"
6035 else
6036 REGINA_GETHOSTBYNAME_LIB=""
6037 fi
6038
6039 if test "$REGINA_GETHOSTBYNAME_LIB" = "none required" -o "$REGINA_GETHOSTBYNAME_LIB" = "no"; then
6040 REGINA_GETHOSTBYNAME_LIB=""
6041 fi
6042 LIBS="$save_LIBS"
6043
6044
6045
6046 #MH_CHECK_LIB(m nsl nsl_s socket net network)
6047
6048 # Check whether --enable-debug was given.
6049 if test "${enable_debug+set}" = set; then :
6050 enableval=$enable_debug; with_debug=$enableval
6051 else
6052 with_debug=no
6053 fi
6054
6055 DEBUG=""
6056 DEBUGGING=""
6057 cflags_g="`echo $CFLAGS | grep -c '\-g'`"
6058 cflags_O="`echo $CFLAGS | grep -c '\-O'`"
6059
6060 if test "$with_debug" = yes; then
6061 DEBUG="-DDEBUG"
6062 DEBUGGING="-g"
6063 if test "$cflags_g" = "0"; then
6064 CFLAGS="${CFLAGS} -g"
6065 fi
6066 if test "$cflags_O" != "0"; then
6067 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
6068 fi
6069 else
6070 DEBUG="-DNDEBUG"
6071 if test "$cflags_O" = "0"; then
6072 CFLAGS="${CFLAGS} -O"
6073 fi
6074 if test "$cflags_g" = "0"; then
6075 CFLAGS="${CFLAGS} -g"
6076 fi
6077 fi
6078 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6079 if test "$with_debug" = yes; then
6080 CFLAGS="${CFLAGS} -Wall"
6081 else
6082 CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts"
6083 fi
6084 fi
6085 if test "$on_qnx4" = yes; then
6086 if test "$ac_cv_prog_CC" = "gcc"; then
6087 QNX4_CFLAGS=""
6088 else
6089 if test "$SIMPLE_CFLAGS" = "yes"; then
6090 QNX4_CFLAGS="-O"
6091 else
6092 QNX4_CFLAGS="-Wc,-r -b -j -Wc,-ei -N4096000 -mf -DNO_REGEX -DQNX -DQNX4 -D__QNX__ -DSTRINGS_ALIGNED -Q"
6093 fi
6094 fi
6095 if test "$with_debug" = yes; then
6096 CFLAGS="-g $QNX4_CFLAGS"
6097 else
6098 CFLAGS="-Otax $QNX4_CFLAGS"
6099 fi
6100 fi
6101 if test "$on_beos" = yes; then
6102 if test "$with_debug" = yes; then
6103 CFLAGS="${CFLAGS} -Wall"
6104 else
6105 CFLAGS="${CFLAGS} -O2 -Wall"
6106 fi
6107 if test "$datadir" = "\${prefix}/share"; then
6108 datadir="/boot/home/config/add-ons"
6109 fi
6110 fi
6111 if test "$on_haiku" = yes; then
6112 if test "$with_debug" = yes; then
6113 CFLAGS="${CFLAGS} -Wall"
6114 else
6115 CFLAGS="${CFLAGS} -O2 -Wall"
6116 fi
6117 if test "$datadir" = "\${prefix}/share"; then
6118 datadir="/boot/home/config/non-packaged/add-ons"
6119 fi
6120 fi
6121
6122
6123
6124 # Check whether --enable-purify was given.
6125 if test "${enable_purify+set}" = set; then :
6126 enableval=$enable_purify; with_purify=$enableval
6127 else
6128 with_purify=no
6129 fi
6130
6131 if test "$with_purify" = yes; then
6132 PURIFY="purify"
6133 else
6134 PURIFY=""
6135 fi
6136
6137
6138 # Check whether --enable-efence was given.
6139 if test "${enable_efence+set}" = set; then :
6140 enableval=$enable_efence; with_efence=$enableval
6141 else
6142 with_efence=no
6143 fi
6144
6145 if test "$with_efence" = yes; then
6146 EFENCE="-lefence"
6147 else
6148 EFENCE=""
6149 fi
6150
6151
6152 # Check whether --enable-hpux_portable was given.
6153 if test "${enable_hpux_portable+set}" = set; then :
6154 enableval=$enable_hpux_portable; enable_hpux_portable=$enableval
6155 else
6156 enable_hpux_portable=no
6157 fi
6158
6159
6160
6161 # Check whether --with-dlfcnincdir was given.
6162 if test "${with_dlfcnincdir+set}" = set; then :
6163 withval=$with_dlfcnincdir; with_dlfcnincdir=$withval
6164 else
6165 with_dlfcnincdir=no
6166 fi
6167
6168 if test "$with_dlfcnincdir" = no; then
6169 DLFCNINCDIR=""
6170 for ac_header in dlfcn.h
6171 do :
6172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6173 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6174 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6177 _ACEOF
6178
6179 fi
6180
6181 done
6182
6183 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
6184 HAVE_DLFCN_H="1"
6185 else
6186 #
6187 # Ignore the warning messages for specified platforms
6188 #
6189 case "$target" in
6190 *beos*)
6191 ;;
6192 *qnx*)
6193 ;;
6194 *)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find dlfcn.h in the standard header locations." >&5
6196 $as_echo "$as_me: WARNING: Could not find dlfcn.h in the standard header locations." >&2;}
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&5
6198 $as_echo "$as_me: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&2;}
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&5
6200 $as_echo "$as_me: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&2;}
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&5
6202 $as_echo "$as_me: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&2;}
6203 ;;
6204 esac
6205 fi
6206 else
6207 if test -f "$with_dlfcnincdir/dlfcn.h"; then
6208 DLFCNINCDIR="-I$with_dlfcnincdir"
6209 HAVE_DLFCN_H="1"
6210 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6211
6212 else
6213 as_fn_error $? "dlfcn.h not found in \"$with_dlfcnincdir\" as specified in --with-dlfcnincdir switch; cannot continue" "$LINENO" 5
6214 fi
6215 fi
6216
6217
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared library/external function extensions" >&5
6220 $as_echo_n "checking shared library/external function extensions... " >&6; }
6221 SHLPST=".so"
6222 MODPST=".so"
6223
6224 case "$target" in
6225 *hp-hpux*)
6226 SHLPST=".sl"
6227 MODPST=".sl"
6228 ;;
6229 *ibm-aix5*)
6230 SHLPST=".a"
6231 MODPST=".a"
6232 ;;
6233 *ibm-aix*)
6234 SHLPST=".a"
6235 MODPST=".a"
6236 ;;
6237 *nto-qnx*)
6238 ;;
6239 *qnx*)
6240 SHLPST=".junk"
6241 MODPST=""
6242 ;;
6243 *cygwin*)
6244 SHLPST=".dll"
6245 MODPST=".dll"
6246 ;;
6247 *skyos*)
6248 SHLPST=".dll"
6249 MODPST=".dll"
6250 ;;
6251 *darwin*)
6252 SHLPST=".dylib"
6253 MODPST=".dylib"
6254 ;;
6255 esac
6256
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLPST/$MODPST" >&5
6259 $as_echo "$SHLPST/$MODPST" >&6; }
6260
6261
6262 # Check whether --with-dlfcnlibdir was given.
6263 if test "${with_dlfcnlibdir+set}" = set; then :
6264 withval=$with_dlfcnlibdir; with_dlfcnlibdir=$withval
6265 else
6266 with_dlfcnlibdir=no
6267 fi
6268
6269 if test "$with_dlfcnlibdir" = no; then
6270 DLFCNLIBDIR=""
6271 else
6272 if test -f "$with_dlfcnlibdir/libdl$SHLPST"; then
6273 DLFCNLIBDIR="-L$with_dlfcnlibdir -ldl"
6274 else
6275 as_fn_error $? "libdl$SHLPST not found in \"$with_dlfcnlibdir\" as specified in --with-dlfcnlibdir switch; cannot continue" "$LINENO" 5
6276 fi
6277 fi
6278
6279
6280
6281
6282 # Check whether --with-staticfunctions was given.
6283 if test "${with_staticfunctions+set}" = set; then :
6284 withval=$with_staticfunctions; with_staticfunctions=$withval
6285 else
6286 with_staticfunctions=no
6287 fi
6288
6289 if test "$with_staticfunctions" = "yes" -o "$on_qnx4" = "yes"; then
6290 build_static="yes"
6291 else
6292 build_static="no"
6293 fi
6294
6295 # Check whether --enable-orexx-binary-compatible was given.
6296 if test "${enable_orexx_binary_compatible+set}" = set; then :
6297 enableval=$enable_orexx_binary_compatible; with_orexx_bc=$enableval
6298 else
6299 with_orexx_bc=no
6300 fi
6301
6302 if test "$with_orexx_bc" = yes; then
6303 OREXX_BINARY_COMPATIBLE="1"
6304 $as_echo "#define OREXX_BINARY_COMPATIBLE 1" >>confdefs.h
6305
6306 fi
6307
6308 # Check whether --enable-posix-threads was given.
6309 if test "${enable_posix_threads+set}" = set; then :
6310 enableval=$enable_posix_threads; enable_posix_threads=no
6311 else
6312 enable_posix_threads=yes
6313 fi
6314
6315 if test "$build_static" = "yes"; then
6316 enable_posix_threads="no"
6317 fi
6318
6319 # Check whether --enable-gci was given.
6320 if test "${enable_gci+set}" = set; then :
6321 enableval=$enable_gci; with_gci=no
6322 else
6323 with_gci=$gci_available
6324 fi
6325
6326 if test "$with_gci" = yes; then
6327 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"
6328 HAVE_GCI="-DHAVE_GCI -I\$(gcidir)"
6329 else
6330 GCI_SHO=""
6331 HAVE_GCI=""
6332 fi
6333
6334
6335
6336 if test "$ac_cv_func_getopt_long" = yes; then
6337 MY_GETOPT_O=
6338 MY_GETOPT_SO_O=
6339 else
6340 MY_GETOPT_O="mygetopt.\$(OBJ)"
6341 MY_GETOPT_SO_O="mygetopt.so.\$(OBJ)"
6342 fi
6343
6344
6345
•6346 case "$ac_cv_prog_CC" in
6347 *gcc*|*g++*)
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5
6350 $as_echo_n "checking whether gcc understands --version-script... " >&6; }
6351 if ${mh_cv_version_script+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354
6355 echo "TEST {" > conftest.def
6356 echo "global:" >> conftest.def
6357 echo "Test;" >> conftest.def
6358 echo "};" >> conftest.def
6359 mh_save_libs="$LDFLAGS"
6360 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.def"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <stdio.h>
6364 #include <stdlib.h>
6365 int
6366 main ()
6367 {
6368 exit(0);
6369 ;
6370 return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"; then :
6374 mh_cv_version_script=yes
6375 else
6376 mh_cv_version_script=no
6377
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext \
6380 conftest$ac_exeext conftest.$ac_ext
6381 LDFLAGS="$mh_save_libs"
6382 rm -f conftest.def
6383
6384 fi
6385
6386 if test "$mh_cv_version_script" = yes; then
6387 SHL_SCRIPT="-Wl,--version-script=${srcdir}/regina_elf.def"
6388 else
6389 SHL_SCRIPT=""
6390 fi
6391
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5
6393 $as_echo "$mh_cv_version_script" >&6; }
6394
•6395 ;;
6396 esac
6397
6398
6399 MH_MT_LIBS=""
6400 THREADING_COMPILE=""
6401 THREADING_LINK=""
6402 THREADSAFE_TARGET=""
6403 MT_FILE="mt_notmt"
6404 if test "$enable_posix_threads" = yes; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
6406 $as_echo_n "checking for main in -lrt... " >&6; }
6407 if ${ac_cv_lib_rt_main+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 ac_check_lib_save_LIBS=$LIBS
6411 LIBS="-lrt $LIBS"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414
6415
6416 int
6417 main ()
6418 {
6419 return main ();
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_link "$LINENO"; then :
6425 ac_cv_lib_rt_main=yes
6426 else
6427 ac_cv_lib_rt_main=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6431 LIBS=$ac_check_lib_save_LIBS
6432 fi
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
6434 $as_echo "$ac_cv_lib_rt_main" >&6; }
6435 if test "x$ac_cv_lib_rt_main" = xyes; then :
6436 mh_rt_lib_found=yes
6437 else
6438 mh_rt_lib_found=no
6439 fi
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Posix Threads are supported" >&5
6442 $as_echo_n "checking whether Posix Threads are supported... " >&6; }
6443 tmpLIBS=$LIBS
6444 save_cflags="$CFLAGS"
6445 pthread_libs="pthreads pthread c_r c"
6446 case "$target" in
6447 *freebsd*)
6448 CFLAGS="$CFLAGS -pthread"
6449 ;;
6450 esac
6451 for mh_lib in $pthread_libs; do
6452 LIBS="$tmpLIBS -l${mh_lib}"
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 #include <pthread.h>
6456 int
6457 main ()
6458 {
6459 pthread_create(NULL,NULL,NULL,NULL)
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_link "$LINENO"; then :
6465 mh_has_pthreads=yes
6466 else
6467 mh_has_pthreads=no
6468
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 if test "$mh_has_pthreads" = yes; then
6473 MH_MT_LIBS="-l${mh_lib}"
6474
6475 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6476 THREADING_LINK=""
6477 THREADSAFE_TARGET="threader${binarybitprefix}${EXEEXT}"
6478 MT_FILE="mt_posix"
6479 case "$target" in
6480 *solaris*)
6481 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6482 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6483 if test "$mh_rt_lib_found" = "yes"; then
6484 THREADING_LINK="-lrt"
6485 fi
6486 else
6487 THREADING_COMPILE="-mt -D_REENTRANT -DREENTRANT -D_PTHREAD_SEMANTICS -DREGINA_REENTRANT"
6488 THREADING_LINK="-mt"
6489 fi
6490 ;;
6491 *hp-hpux1*)
6492 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6493 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6494 fi
6495 if test "$mh_rt_lib_found" = "yes"; then
6496 THREADING_LINK="-lrt"
6497 fi
6498 ;;
6499 *linux*)
6500 ;;
6501 *freebsd*)
6502 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6503 THREADING_LINK="-pthread"
6504 ;;
6505 *cygwin*)
6506 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6507 THREADING_LINK=""
6508 ;;
6509 *)
6510 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6511 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6512 fi
6513 ;;
6514 esac
6515 break
6516 fi
6517 done
6518 LIBS="$tmpLIBS"
6519 CFLAGS="$save_cflags"
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_has_pthreads" >&5
6521 $as_echo "$mh_has_pthreads" >&6; }
6522 fi
6523
6524
6525
6526
6527
6528
6529 if test "$mh_has_pthreads" = yes; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_exit" >&5
6531 $as_echo_n "checking for library containing pthread_exit... " >&6; }
6532 if ${ac_cv_search_pthread_exit+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 ac_func_search_save_LIBS=$LIBS
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 /* Override any GCC internal prototype to avoid an error.
6540 Use char because int might match the return type of a GCC
6541 builtin and then its argument prototype would still apply. */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 char pthread_exit ();
6546 int
6547 main ()
6548 {
6549 return pthread_exit ();
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 for ac_lib in '' pthread pthreads c_r; do
6555 if test -z "$ac_lib"; then
6556 ac_res="none required"
6557 else
6558 ac_res=-l$ac_lib
6559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6560 fi
6561 if ac_fn_c_try_link "$LINENO"; then :
6562 ac_cv_search_pthread_exit=$ac_res
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext
6566 if ${ac_cv_search_pthread_exit+:} false; then :
6567 break
6568 fi
6569 done
6570 if ${ac_cv_search_pthread_exit+:} false; then :
6571
6572 else
6573 ac_cv_search_pthread_exit=no
6574 fi
6575 rm conftest.$ac_ext
6576 LIBS=$ac_func_search_save_LIBS
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_exit" >&5
6579 $as_echo "$ac_cv_search_pthread_exit" >&6; }
6580 ac_res=$ac_cv_search_pthread_exit
6581 if test "$ac_res" != no; then :
6582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6583 REGINA_PTHREAD_LIB="$ac_cv_search_pthread_exit"
6584 else
6585 REGINA_PTHREAD_LIB=""
6586 fi
6587
6588 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6590 $as_echo_n "checking for library containing sem_init... " >&6; }
6591 if ${ac_cv_search_sem_init+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 ac_func_search_save_LIBS=$LIBS
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597
6598 /* Override any GCC internal prototype to avoid an error.
6599 Use char because int might match the return type of a GCC
6600 builtin and then its argument prototype would still apply. */
6601 #ifdef __cplusplus
6602 extern "C"
6603 #endif
6604 char sem_init ();
6605 int
6606 main ()
6607 {
6608 return sem_init ();
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 for ac_lib in '' pthread pthreads c_r; do
6614 if test -z "$ac_lib"; then
6615 ac_res="none required"
6616 else
6617 ac_res=-l$ac_lib
6618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 fi
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_search_sem_init=$ac_res
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext
6625 if ${ac_cv_search_sem_init+:} false; then :
6626 break
6627 fi
6628 done
6629 if ${ac_cv_search_sem_init+:} false; then :
6630
6631 else
6632 ac_cv_search_sem_init=no
6633 fi
6634 rm conftest.$ac_ext
6635 LIBS=$ac_func_search_save_LIBS
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6638 $as_echo "$ac_cv_search_sem_init" >&6; }
6639 ac_res=$ac_cv_search_sem_init
6640 if test "$ac_res" != no; then :
6641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6642 REGINA_PTHREAD_LIB="$ac_cv_search_sem_init"
6643 else
6644 REGINA_PTHREAD_LIB=""
6645 fi
6646
6647 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6648 REGINA_PTHREAD_LIB=""
6649 fi
6650 fi
6651 save_cflags="$CFLAGS"
6652 CFLAGS="$CFLAGS $THREADING_COMPILE"
6653 #
6654 # Where we know the format of getgrgid_r() function
6655 # only test for that case
6656 #
6657 if test "$ac_cv_func_getgrgid_r" = yes; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 5 args and returns an int" >&5
6659 $as_echo_n "checking if getgrgid_r has 5 args and returns an int... " >&6; }
6660 if ${mh_cv_getgrgid_r_int5+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 #include <sys/types.h>
6666 #include <grp.h>
6667 #include <pwd.h>
6668 int
6669 main ()
6670 {
6671
6672 struct group *ptr,result;
6673 int rc;
6674 gid_t gid;
6675 char buf[100];
6676 rc = getgrgid_r(gid,&result,buf,sizeof(buf),&ptr);
6677
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 mh_cv_getgrgid_r_int5=yes
6684 else
6685 mh_cv_getgrgid_r_int5=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int5" >&5
6690 $as_echo "$mh_cv_getgrgid_r_int5" >&6; }
6691 if test $mh_cv_getgrgid_r_int5 = yes; then
6692 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_5_PARAMS 1" >>confdefs.h
6693
6694 fi
6695
6696 if test "$mh_cv_getgrgid_r_int5" = "no"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 4 args and returns an int" >&5
6698 $as_echo_n "checking if getgrgid_r has 4 args and returns an int... " >&6; }
6699 if ${mh_cv_getgrgid_r_int4+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <sys/types.h>
6705 #include <grp.h>
6706 #include <pwd.h>
6707 int
6708 main ()
6709 {
6710
6711 struct group *ptr,result;
6712 int rc;
6713 gid_t gid;
6714 char buf[100];
6715 rc = getgrgid_r(gid,&result,buf,sizeof(buf));
6716
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 if ac_fn_c_try_compile "$LINENO"; then :
6722 mh_cv_getgrgid_r_int4=yes
6723 else
6724 mh_cv_getgrgid_r_int4=no
6725 fi
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int4" >&5
6729 $as_echo "$mh_cv_getgrgid_r_int4" >&6; }
6730 if test $mh_cv_getgrgid_r_int4 = yes; then
6731 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_4_PARAMS 1" >>confdefs.h
6732
6733 fi
6734
6735 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6737 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6738 if ${mh_cv_getgrgid_r_struct+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 #include <grp.h>
6745 #include <pwd.h>
6746 int
6747 main ()
6748 {
6749
6750 struct group *ptr,result;
6751 int rc;
6752 gid_t gid;
6753 char buf[100];
6754 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6755
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 mh_cv_getgrgid_r_struct=yes
6762 else
6763 mh_cv_getgrgid_r_struct=no
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6768 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6769 if test $mh_cv_getgrgid_r_struct = yes; then
6770 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6771
6772 fi
6773
6774 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6776 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6777 if ${mh_cv_getgrgid_r_struct+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <grp.h>
6784 #include <pwd.h>
6785 int
6786 main ()
6787 {
6788
6789 struct group *ptr,result;
6790 int rc;
6791 gid_t gid;
6792 char buf[100];
6793 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 if ac_fn_c_try_compile "$LINENO"; then :
6800 mh_cv_getgrgid_r_struct=yes
6801 else
6802 mh_cv_getgrgid_r_struct=no
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6807 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6808 if test $mh_cv_getgrgid_r_struct = yes; then
6809 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6810
6811 fi
6812
6813 fi
6814 fi
6815 fi
6816 fi
6817 if test "$ac_cv_func_getpwuid_r" = yes; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns an int" >&5
6819 $as_echo_n "checking if getpwuid_r returns an int... " >&6; }
6820 if ${mh_cv_getpwuid_r_int+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 #include <grp.h>
6827 #include <pwd.h>
6828 int
6829 main ()
6830 {
6831
6832 struct passwd *ptr,*result;
6833 int rc;
6834 uid_t uid;
6835 char buf[100];
6836 rc = getpwuid_r(uid,&result,buf,sizeof(buf),&ptr);
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 mh_cv_getpwuid_r_int=yes
6844 else
6845 mh_cv_getpwuid_r_int=no
6846 fi
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_int" >&5
6850 $as_echo "$mh_cv_getpwuid_r_int" >&6; }
6851 if test $mh_cv_getpwuid_r_int = yes; then
6852 $as_echo "#define HAVE_GETPWUID_R_RETURNS_INT 1" >>confdefs.h
6853
6854 fi
6855
6856 if test "$mh_cv_getpwuid_r_int" = "no"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns a struct passwd *" >&5
6858 $as_echo_n "checking if getpwuid_r returns a struct passwd *... " >&6; }
6859 if ${mh_cv_getpwuid_r_struct+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6865 #include <grp.h>
6866 #include <pwd.h>
6867 int
6868 main ()
6869 {
6870
6871 struct group *ptr,*result;
6872 int rc;
6873 uid_t uid;
6874 char buf[100];
6875 ptr = getpwuid_r(uid,&result,buf,sizeof(buf));
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882 mh_cv_getpwuid_r_struct=yes
6883 else
6884 mh_cv_getpwuid_r_struct=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_struct" >&5
6889 $as_echo "$mh_cv_getpwuid_r_struct" >&6; }
6890 if test $mh_cv_getpwuid_r_struct = yes; then
6891 $as_echo "#define HAVE_GETPWUID_R_RETURNS_STRUCT 1" >>confdefs.h
6892
6893 fi
6894
6895 fi
6896 fi
6897 if test "$ac_cv_func_gethostbyname_r" = yes; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 6 args and returns an int" >&5
6899 $as_echo_n "checking if gethostbyname_r has 6 args and returns an int... " >&6; }
6900 if ${mh_cv_gethostbyname_r_int6+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 #include <netdb.h>
6907 int
6908 main ()
6909 {
6910
6911 int herr;
6912 struct hostent *he,*rc;
6913 char buf[8192];
6914 struct hostent retval;
6915 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&he,&herr);
6916
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 mh_cv_gethostbyname_r_int6=yes
6923 else
6924 mh_cv_gethostbyname_r_int6=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_int6" >&5
6929 $as_echo "$mh_cv_gethostbyname_r_int6" >&6; }
6930 if test $mh_cv_gethostbyname_r_int6 = yes; then
6931 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_INT_6_PARAMS 1" >>confdefs.h
6932
6933 fi
6934
6935 if test "$mh_cv_gethostbyname_r_int6" = "no"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 5 args and returns a struct" >&5
6937 $as_echo_n "checking if gethostbyname_r has 5 args and returns a struct... " >&6; }
6938 if ${mh_cv_gethostbyname_r_struct5+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943 #include <sys/types.h>
6944 #include <netdb.h>
6945 int
6946 main ()
6947 {
6948
6949 int herr;
6950 struct hostent *he,*rc;
6951 char buf[8192];
6952 struct hostent retval;
6953 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&herr);
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 mh_cv_gethostbyname_r_struct5=yes
6961 else
6962 mh_cv_gethostbyname_r_struct5=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_struct5" >&5
6967 $as_echo "$mh_cv_gethostbyname_r_struct5" >&6; }
6968 if test $mh_cv_gethostbyname_r_struct5 = yes; then
6969 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_STRUCT_5_PARAMS 1" >>confdefs.h
6970
6971 fi
6972
6973 fi
6974 fi
6975
6976 CFLAGS="$save_cflags"
6977 REGINAMULTITHREAD="yes"
6978 else
6979 REGINAMULTITHREAD="no"
6980 fi
6981
6982 if test "$build_static" = "yes"; then
6983 STATICLD_SHO="staticld.so.o rxpack.so.o"
6984 if test "$on_qnx4" = "yes"; then
6985 with_regutil="yes"
6986
6987 SHLPRE="lib"
6988 SHLPST=".a"
6989 MODPST=".a"
6990 LIBFILE="rexx"
6991 SHLFILE="regina"
6992 OSAVE=".o.save"
6993 OBJ="o"
6994 LIBPST=".a"
6995 LIBPRE="lib"
6996 LIBEXE="ar"
6997 GETOPT=""
6998 OBJECTS='$('OFILES')'
6999 STATIC_LDFLAGS=""
7000 AIX_DYN="no"
7001 BEOS_DYN="no"
7002 DYN_COMP="-DDYNAMIC"
7003
7004 SHL_LD=""
7005 TEST1EXPORTS=""
7006 TEST2EXPORTS=""
7007 TEST1EXP=""
7008 TEST2EXP=""
7009 REGINAEXP=""
7010 REGUTILEXPORTS=""
7011 REGUTILEXP=""
7012
7013
7014 # OTHER_INSTALLS is set to install a non-version numbered shared library
7015 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7016 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7017 # are building a version numbered shared library.
7018 OTHER_INSTALLS="installlib"
7019 BASE_INSTALL="installbase"
7020 BASE_BINARY="binarybase"
7021 USE_ABI="no"
7022 BUNDLE=""
7023 EXTRATARGET=""
7024
7025 case "$target" in
7026 *hp-hpux9*)
7027 SYS_DEFS="-D_HPUX_SOURCE"
7028 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7029
7030 ;;
7031 *hp-hpux*)
7032 SYS_DEFS="-D_HPUX_SOURCE"
7033 ;;
7034 *ibm-aix*)
7035 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7036 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7037 ;;
7038 *dec-osf*)
7039 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7040 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7041 else
7042 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7043 fi
7044 ;;
7045 sparc*sunos*)
7046 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7047 ;;
7048 *atheos* | *syllable*)
7049 BASE_BINARY="atheosbinary"
7050 ;;
7051 *beos*)
7052 BASE_INSTALL="beosinstall"
7053 BASE_BINARY="beosbinary"
7054 OTHER_INSTALLS=""
7055 ;;
7056 *haiku*)
7057 BASE_INSTALL="haikuinstall"
7058 BASE_BINARY="beosbinary"
7059 OTHER_INSTALLS=""
7060 ;;
7061 *nto-qnx*)
7062 ;;
7063 *qnx*)
7064 SHLPRE=""
7065 SHLPST=".lib"
7066 MODPST=".lib"
7067 # getting duplicate targets
7068 BUNDLE=".junk2"
7069 EEXTRA="-mf -N0x20000 -Q"
7070 LIBPRE=""
7071 LIBPST=".lib"
7072 ;;
7073 *cygwin*)
7074 LIBPRE="lib"
7075 SHLPRE="lib"
7076 LIBPST=".a"
7077 BASE_INSTALL="cygwininstall"
7078 BASE_BINARY="cygwinbinary"
7079 OTHER_INSTALLS=""
7080 ;;
7081 *apple-darwin*)
7082 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7083 #
7084 # Link switches for building "bundles"
7085 #
7086 OTHER_INSTALLS="installlib installmacosx"
7087 ;;
7088 *)
7089 ;;
7090 esac
7091 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7092 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7093 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7094 LD_RXLIB_B1=""
7095 LD_RXLIB_B2=""
7096 LD_RXLIB_UTILB=""
7097 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7098
7099 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7100
7101 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7102 LIBLINK="-L. -l${LIBFILE}"
7103 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7104 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7105
7106 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7107 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7108 EXECISER_DEP="${STATICLIB}"
7109 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7110 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7111
7112 # Check whether --with-testpackage was given.
7113 if test "${with_testpackage+set}" = set; then :
7114 withval=$with_testpackage; with_test=$withval
7115 else
7116 with_testpackage=no
7117 fi
7118
7119 MH_FUNC_LIBS=""
7120 if test "$with_testpackage" = "yes"; then
7121 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7122 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
7123
7124 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7125 fi
7126
7127 # Check whether --with-regutil was given.
7128 if test "${with_regutil+set}" = set; then :
7129 withval=$with_regutil; with_regutil=$withval
7130 else
7131 with_regutil=no
7132 fi
7133
7134 if test "$with_regutil" = "yes" -o "xregutil" = "xregutil"; then
7135 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
7136 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
7137
7138 fi
7139
7140 # Check whether --with-rexxcurses was given.
7141 if test "${with_rexxcurses+set}" = set; then :
7142 withval=$with_rexxcurses; with_rexxcurses=$withval
7143 else
7144 with_rexxcurses=no
7145 fi
7146
7147 if test "$with_rexxcurses" = "yes"; then
7148 # Extract the first word of "rxcurses-config", so it can be a program name with args.
7149 set dummy rxcurses-config; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_rxcurses_config+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$rxcurses_config"; then
7156 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_rxcurses_config="yes"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
7174 fi
7175 fi
7176 rxcurses_config=$ac_cv_prog_rxcurses_config
7177 if test -n "$rxcurses_config"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
7179 $as_echo "$rxcurses_config" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185
7186 if test "$ac_cv_prog_rxcurses_config" = yes; then
7187 EXTRA_LIB=`rxcurses-config --libs-static`
7188 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7189 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
7190
7191 else
7192 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
7193 fi
7194 fi
7195
7196 # Check whether --with-rexxtk was given.
7197 if test "${with_rexxtk+set}" = set; then :
7198 withval=$with_rexxtk; with_rexxtk=$withval
7199 else
7200 with_rexxtk=no
7201 fi
7202
7203 if test "$with_rexxtk" = "yes"; then
7204 # Extract the first word of "rexxtk-config", so it can be a program name with args.
7205 set dummy rexxtk-config; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_rexxtk_config+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if test -n "$rexxtk_config"; then
7212 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_rexxtk_config="yes"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
7230 fi
7231 fi
7232 rexxtk_config=$ac_cv_prog_rexxtk_config
7233 if test -n "$rexxtk_config"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
7235 $as_echo "$rexxtk_config" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 if test "$ac_cv_prog_rexxtk_config" = yes; then
7243 EXTRA_LIB=`rexxtk-config --libs-static`
7244 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7245 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
7246
7247 else
7248 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
7249 fi
7250 fi
7251
7252 # Check whether --with-rexxgd was given.
7253 if test "${with_rexxgd+set}" = set; then :
7254 withval=$with_rexxgd; with_rexxgd=$withval
7255 else
7256 with_rexxgd=no
7257 fi
7258
7259 if test "$with_rexxgd" = "yes"; then
7260 # Extract the first word of "rexxgd-config", so it can be a program name with args.
7261 set dummy rexxgd-config; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_rexxgd_config+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$rexxgd_config"; then
7268 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_rexxgd_config="yes"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
7286 fi
7287 fi
7288 rexxgd_config=$ac_cv_prog_rexxgd_config
7289 if test -n "$rexxgd_config"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
7291 $as_echo "$rexxgd_config" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 if test "$ac_cv_prog_rexxgd_config" = yes; then
7299 EXTRA_LIB=`rexxgd-config --libs-static`
7300 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7301 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
7302
7303 else
7304 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
7305 fi
7306 fi
7307
7308 # Check whether --with-rexxcurl was given.
7309 if test "${with_rexxcurl+set}" = set; then :
7310 withval=$with_rexxcurl; with_rexxcurl=$withval
7311 else
7312 with_rexxcurl=no
7313 fi
7314
7315 if test "$with_rexxcurl" = "yes"; then
7316 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
7317 set dummy rexxcurl-config; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_rexxcurl_config+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 if test -n "$rexxcurl_config"; then
7324 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_rexxcurl_config="yes"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
7342 fi
7343 fi
7344 rexxcurl_config=$ac_cv_prog_rexxcurl_config
7345 if test -n "$rexxcurl_config"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
7347 $as_echo "$rexxcurl_config" >&6; }
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353
7354 if test "$ac_cv_prog_rexxcurl_config" = yes; then
7355 EXTRA_LIB=`rexxcurl-config --libs-static`
7356 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7357 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
7358
7359 else
7360 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
7361 fi
7362 fi
7363
7364 # Check whether --with-rexxsql was given.
7365 if test "${with_rexxsql+set}" = set; then :
7366 withval=$with_rexxsql; with_rexxsql=$withval
7367 else
7368 with_rexxsql=no
7369 fi
7370
7371 if test "$with_rexxsql" = "yes"; then
7372 # Extract the first word of "rexxsql-config", so it can be a program name with args.
7373 set dummy rexxsql-config; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_rexxsql_config+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$rexxsql_config"; then
7380 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_rexxsql_config="yes"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
7398 fi
7399 fi
7400 rexxsql_config=$ac_cv_prog_rexxsql_config
7401 if test -n "$rexxsql_config"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
7403 $as_echo "$rexxsql_config" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 if test "$ac_cv_prog_rexxsql_config" = yes; then
7411 EXTRA_LIB=`rexxsql-config --libs-static`
7412 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7413 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
7414
7415 else
7416 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
7417 fi
7418 fi
7419
7420 # Check whether --with-rexxeec was given.
7421 if test "${with_rexxeec+set}" = set; then :
7422 withval=$with_rexxeec; with_rexxeec=$withval
7423 else
7424 with_rexxeec=no
7425 fi
7426
7427 if test "$with_rexxeec" = "yes"; then
7428 # Extract the first word of "rexxeec-config", so it can be a program name with args.
7429 set dummy rexxeec-config; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_rexxeec_config+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$rexxeec_config"; then
7436 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_rexxeec_config="yes"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
7454 fi
7455 fi
7456 rexxeec_config=$ac_cv_prog_rexxeec_config
7457 if test -n "$rexxeec_config"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
7459 $as_echo "$rexxeec_config" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 if test "$ac_cv_prog_rexxeec_config" = yes; then
7467 EXTRA_LIB=`rexxeec-config --libs-static`
7468 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7469 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
7470
7471 else
7472 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
7473 fi
7474 fi
7475
7476 # Check whether --with-rexxisam was given.
7477 if test "${with_rexxisam+set}" = set; then :
7478 withval=$with_rexxisam; with_rexxisam=$withval
7479 else
7480 with_rexxisam=no
7481 fi
7482
7483 if test "$with_rexxisam" = "yes"; then
7484 # Extract the first word of "rexxisam-config", so it can be a program name with args.
7485 set dummy rexxisam-config; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_rexxisam_config+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$rexxisam_config"; then
7492 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_rexxisam_config="yes"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505 done
7506 done
7507 IFS=$as_save_IFS
7508
7509 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
7510 fi
7511 fi
7512 rexxisam_config=$ac_cv_prog_rexxisam_config
7513 if test -n "$rexxisam_config"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
7515 $as_echo "$rexxisam_config" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522 if test "$ac_cv_prog_rexxisam_config" = yes; then
7523 EXTRA_LIB=`rexxisam-config --libs-static`
7524 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7525 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
7526
7527 else
7528 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
7529 fi
7530 fi
7531
7532 # Check whether --with-rxsock was given.
7533 if test "${with_rxsock+set}" = set; then :
7534 withval=$with_rxsock; with_rxsock=$withval
7535 else
7536 with_rxsock=no
7537 fi
7538
7539 if test "$with_rxsock" = "yes"; then
7540 # Extract the first word of "rxsock-config", so it can be a program name with args.
7541 set dummy rxsock-config; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_rxsock_config+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$rxsock_config"; then
7548 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_rxsock_config="yes"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
7566 fi
7567 fi
7568 rxsock_config=$ac_cv_prog_rxsock_config
7569 if test -n "$rxsock_config"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
7571 $as_echo "$rxsock_config" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 if test "$ac_cv_prog_rxsock_config" = yes; then
7579 EXTRA_LIB=`rxsock-config --libs-static`
7580 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7581 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
7582
7583 else
7584 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
7585 fi
7586 fi
7587
7588 # Check whether --with-rexxdw was given.
7589 if test "${with_rexxdw+set}" = set; then :
7590 withval=$with_rexxdw; with_rexxdw=$withval
7591 else
7592 with_rexxdw=no
7593 fi
7594
7595 if test "$with_rexxdw" = "yes"; then
7596 # Extract the first word of "rexxdw-config", so it can be a program name with args.
7597 set dummy rexxdw-config; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_rexxdw_config+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$rexxdw_config"; then
7604 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_rexxdw_config="yes"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
7622 fi
7623 fi
7624 rexxdw_config=$ac_cv_prog_rexxdw_config
7625 if test -n "$rexxdw_config"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
7627 $as_echo "$rexxdw_config" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634 if test "$ac_cv_prog_rexxdw_config" = yes; then
7635 EXTRA_LIB=`rexxdw-config --libs-static`
7636 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7637 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
7638
7639 else
7640 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
7641 fi
7642 fi
7643
7644 # Check whether --with-rexxcsv was given.
7645 if test "${with_rexxcsv+set}" = set; then :
7646 withval=$with_rexxcsv; with_rexxcsv=$withval
7647 else
7648 with_rexxcsv=no
7649 fi
7650
7651 if test "$with_rexxcsv" = "yes"; then
7652 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
7653 set dummy rexxcsv-config; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_rexxcsv_config+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 if test -n "$rexxcsv_config"; then
7660 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_rexxcsv_config="yes"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
7678 fi
7679 fi
7680 rexxcsv_config=$ac_cv_prog_rexxcsv_config
7681 if test -n "$rexxcsv_config"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
7683 $as_echo "$rexxcsv_config" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689
7690 if test "$ac_cv_prog_rexxcsv_config" = yes; then
7691 EXTRA_LIB=`rexxcsv-config --libs-static`
7692 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7693 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
7694
7695 else
7696 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
7697 fi
7698 fi
7699
7700 # Check whether --with-rexxpdf was given.
7701 if test "${with_rexxpdf+set}" = set; then :
7702 withval=$with_rexxpdf; with_rexxpdf=$withval
7703 else
7704 with_rexxpdf=no
7705 fi
7706
7707 if test "$with_rexxpdf" = "yes"; then
7708 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
7709 set dummy rexxpdf-config; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_rexxpdf_config+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 if test -n "$rexxpdf_config"; then
7716 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_rexxpdf_config="yes"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729 done
7730 done
7731 IFS=$as_save_IFS
7732
7733 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
7734 fi
7735 fi
7736 rexxpdf_config=$ac_cv_prog_rexxpdf_config
7737 if test -n "$rexxpdf_config"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
7739 $as_echo "$rexxpdf_config" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 if test "$ac_cv_prog_rexxpdf_config" = yes; then
7747 EXTRA_LIB=`rexxpdf-config --libs-static`
7748 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7749 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7750
7751 else
7752 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
7753 fi
7754 fi
7755
7756 # Check whether --with-rexxws was given.
7757 if test "${with_rexxws+set}" = set; then :
7758 withval=$with_rexxws; with_rexxws=$withval
7759 else
7760 with_rexxws=no
7761 fi
7762
7763 if test "$with_rexxws" = "yes"; then
7764 # Extract the first word of "rexxws-config", so it can be a program name with args.
7765 set dummy rexxws-config; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_rexxws_config+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$rexxws_config"; then
7772 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_rexxws_config="yes"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
7790 fi
7791 fi
7792 rexxws_config=$ac_cv_prog_rexxws_config
7793 if test -n "$rexxws_config"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
7795 $as_echo "$rexxws_config" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802 if test "$ac_cv_prog_rexxws_config" = yes; then
7803 EXTRA_LIB=`rexxws-config --libs-static`
7804 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7805 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7806
7807 else
7808 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
7809 fi
7810 fi
7811
7812 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 else
7866
7867 SHLPRE="lib"
7868 SHLPST=".a"
7869 MODPST=".a"
7870 LIBFILE="rexx"
7871 SHLFILE="regina"
7872 OSAVE=".o.save"
7873 OBJ="o"
7874 LIBPST=".a"
7875 LIBPRE="lib"
7876 LIBEXE="ar"
7877 GETOPT=""
7878 OBJECTS='$('OFILES')'
7879 STATIC_LDFLAGS=""
7880 AIX_DYN="no"
7881 BEOS_DYN="no"
7882 DYN_COMP="-DDYNAMIC"
7883
7884 SHL_LD=""
7885 TEST1EXPORTS=""
7886 TEST2EXPORTS=""
7887 TEST1EXP=""
7888 TEST2EXP=""
7889 REGINAEXP=""
7890 REGUTILEXPORTS=""
7891 REGUTILEXP=""
7892
7893
7894 # OTHER_INSTALLS is set to install a non-version numbered shared library
7895 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7896 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7897 # are building a version numbered shared library.
7898 OTHER_INSTALLS="installlib"
7899 BASE_INSTALL="installbase"
7900 BASE_BINARY="binarybase"
7901 USE_ABI="no"
7902 BUNDLE=""
7903 EXTRATARGET=""
7904
7905 case "$target" in
7906 *hp-hpux9*)
7907 SYS_DEFS="-D_HPUX_SOURCE"
7908 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7909
7910 ;;
7911 *hp-hpux*)
7912 SYS_DEFS="-D_HPUX_SOURCE"
7913 ;;
7914 *ibm-aix*)
7915 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7916 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7917 ;;
7918 *dec-osf*)
7919 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7920 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7921 else
7922 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7923 fi
7924 ;;
7925 sparc*sunos*)
7926 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7927 ;;
7928 *atheos* | *syllable*)
7929 BASE_BINARY="atheosbinary"
7930 ;;
7931 *beos*)
7932 BASE_INSTALL="beosinstall"
7933 BASE_BINARY="beosbinary"
7934 OTHER_INSTALLS=""
7935 ;;
7936 *haiku*)
7937 BASE_INSTALL="haikuinstall"
7938 BASE_BINARY="beosbinary"
7939 OTHER_INSTALLS=""
7940 ;;
7941 *nto-qnx*)
7942 ;;
7943 *qnx*)
7944 SHLPRE=""
7945 SHLPST=".lib"
7946 MODPST=".lib"
7947 # getting duplicate targets
7948 BUNDLE=".junk2"
7949 EEXTRA="-mf -N0x20000 -Q"
7950 LIBPRE=""
7951 LIBPST=".lib"
7952 ;;
7953 *cygwin*)
7954 LIBPRE="lib"
7955 SHLPRE="lib"
7956 LIBPST=".a"
7957 BASE_INSTALL="cygwininstall"
7958 BASE_BINARY="cygwinbinary"
7959 OTHER_INSTALLS=""
7960 ;;
7961 *apple-darwin*)
7962 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7963 #
7964 # Link switches for building "bundles"
7965 #
7966 OTHER_INSTALLS="installlib installmacosx"
7967 ;;
7968 *)
7969 ;;
7970 esac
7971 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7972 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7973 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7974 LD_RXLIB_B1=""
7975 LD_RXLIB_B2=""
7976 LD_RXLIB_UTILB=""
7977 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7978
7979 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7980
7981 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7982 LIBLINK="-L. -l${LIBFILE}"
7983 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7984 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7985
7986 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7987 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7988 EXECISER_DEP="${STATICLIB}"
7989 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7990 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7991
7992 # Check whether --with-testpackage was given.
7993 if test "${with_testpackage+set}" = set; then :
7994 withval=$with_testpackage; with_test=$withval
7995 else
7996 with_testpackage=no
7997 fi
7998
7999 MH_FUNC_LIBS=""
8000 if test "$with_testpackage" = "yes"; then
8001 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8002 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
8003
8004 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8005 fi
8006
8007 # Check whether --with-regutil was given.
8008 if test "${with_regutil+set}" = set; then :
8009 withval=$with_regutil; with_regutil=$withval
8010 else
8011 with_regutil=no
8012 fi
8013
8014 if test "$with_regutil" = "yes" -o "x" = "xregutil"; then
8015 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
8016 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
8017
8018 fi
8019
8020 # Check whether --with-rexxcurses was given.
8021 if test "${with_rexxcurses+set}" = set; then :
8022 withval=$with_rexxcurses; with_rexxcurses=$withval
8023 else
8024 with_rexxcurses=no
8025 fi
8026
8027 if test "$with_rexxcurses" = "yes"; then
8028 # Extract the first word of "rxcurses-config", so it can be a program name with args.
8029 set dummy rxcurses-config; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if ${ac_cv_prog_rxcurses_config+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$rxcurses_config"; then
8036 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_rxcurses_config="yes"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
8054 fi
8055 fi
8056 rxcurses_config=$ac_cv_prog_rxcurses_config
8057 if test -n "$rxcurses_config"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
8059 $as_echo "$rxcurses_config" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065
8066 if test "$ac_cv_prog_rxcurses_config" = yes; then
8067 EXTRA_LIB=`rxcurses-config --libs-static`
8068 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8069 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
8070
8071 else
8072 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
8073 fi
8074 fi
8075
8076 # Check whether --with-rexxtk was given.
8077 if test "${with_rexxtk+set}" = set; then :
8078 withval=$with_rexxtk; with_rexxtk=$withval
8079 else
8080 with_rexxtk=no
8081 fi
8082
8083 if test "$with_rexxtk" = "yes"; then
8084 # Extract the first word of "rexxtk-config", so it can be a program name with args.
8085 set dummy rexxtk-config; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_rexxtk_config+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$rexxtk_config"; then
8092 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_rexxtk_config="yes"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
8110 fi
8111 fi
8112 rexxtk_config=$ac_cv_prog_rexxtk_config
8113 if test -n "$rexxtk_config"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
8115 $as_echo "$rexxtk_config" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 if test "$ac_cv_prog_rexxtk_config" = yes; then
8123 EXTRA_LIB=`rexxtk-config --libs-static`
8124 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8125 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
8126
8127 else
8128 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
8129 fi
8130 fi
8131
8132 # Check whether --with-rexxgd was given.
8133 if test "${with_rexxgd+set}" = set; then :
8134 withval=$with_rexxgd; with_rexxgd=$withval
8135 else
8136 with_rexxgd=no
8137 fi
8138
8139 if test "$with_rexxgd" = "yes"; then
8140 # Extract the first word of "rexxgd-config", so it can be a program name with args.
8141 set dummy rexxgd-config; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_prog_rexxgd_config+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 if test -n "$rexxgd_config"; then
8148 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_rexxgd_config="yes"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
8166 fi
8167 fi
8168 rexxgd_config=$ac_cv_prog_rexxgd_config
8169 if test -n "$rexxgd_config"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
8171 $as_echo "$rexxgd_config" >&6; }
8172 else
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175 fi
8176
8177
8178 if test "$ac_cv_prog_rexxgd_config" = yes; then
8179 EXTRA_LIB=`rexxgd-config --libs-static`
8180 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8181 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
8182
8183 else
8184 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
8185 fi
8186 fi
8187
8188 # Check whether --with-rexxcurl was given.
8189 if test "${with_rexxcurl+set}" = set; then :
8190 withval=$with_rexxcurl; with_rexxcurl=$withval
8191 else
8192 with_rexxcurl=no
8193 fi
8194
8195 if test "$with_rexxcurl" = "yes"; then
8196 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
8197 set dummy rexxcurl-config; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if ${ac_cv_prog_rexxcurl_config+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$rexxcurl_config"; then
8204 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_rexxcurl_config="yes"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
8222 fi
8223 fi
8224 rexxcurl_config=$ac_cv_prog_rexxcurl_config
8225 if test -n "$rexxcurl_config"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
8227 $as_echo "$rexxcurl_config" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234 if test "$ac_cv_prog_rexxcurl_config" = yes; then
8235 EXTRA_LIB=`rexxcurl-config --libs-static`
8236 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8237 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
8238
8239 else
8240 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
8241 fi
8242 fi
8243
8244 # Check whether --with-rexxsql was given.
8245 if test "${with_rexxsql+set}" = set; then :
8246 withval=$with_rexxsql; with_rexxsql=$withval
8247 else
8248 with_rexxsql=no
8249 fi
8250
8251 if test "$with_rexxsql" = "yes"; then
8252 # Extract the first word of "rexxsql-config", so it can be a program name with args.
8253 set dummy rexxsql-config; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if ${ac_cv_prog_rexxsql_config+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$rexxsql_config"; then
8260 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_rexxsql_config="yes"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
8278 fi
8279 fi
8280 rexxsql_config=$ac_cv_prog_rexxsql_config
8281 if test -n "$rexxsql_config"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
8283 $as_echo "$rexxsql_config" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290 if test "$ac_cv_prog_rexxsql_config" = yes; then
8291 EXTRA_LIB=`rexxsql-config --libs-static`
8292 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8293 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
8294
8295 else
8296 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
8297 fi
8298 fi
8299
8300 # Check whether --with-rexxeec was given.
8301 if test "${with_rexxeec+set}" = set; then :
8302 withval=$with_rexxeec; with_rexxeec=$withval
8303 else
8304 with_rexxeec=no
8305 fi
8306
8307 if test "$with_rexxeec" = "yes"; then
8308 # Extract the first word of "rexxeec-config", so it can be a program name with args.
8309 set dummy rexxeec-config; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_rexxeec_config+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$rexxeec_config"; then
8316 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_rexxeec_config="yes"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
8334 fi
8335 fi
8336 rexxeec_config=$ac_cv_prog_rexxeec_config
8337 if test -n "$rexxeec_config"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
8339 $as_echo "$rexxeec_config" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346 if test "$ac_cv_prog_rexxeec_config" = yes; then
8347 EXTRA_LIB=`rexxeec-config --libs-static`
8348 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8349 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
8350
8351 else
8352 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
8353 fi
8354 fi
8355
8356 # Check whether --with-rexxisam was given.
8357 if test "${with_rexxisam+set}" = set; then :
8358 withval=$with_rexxisam; with_rexxisam=$withval
8359 else
8360 with_rexxisam=no
8361 fi
8362
8363 if test "$with_rexxisam" = "yes"; then
8364 # Extract the first word of "rexxisam-config", so it can be a program name with args.
8365 set dummy rexxisam-config; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_rexxisam_config+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 if test -n "$rexxisam_config"; then
8372 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_rexxisam_config="yes"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
8390 fi
8391 fi
8392 rexxisam_config=$ac_cv_prog_rexxisam_config
8393 if test -n "$rexxisam_config"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
8395 $as_echo "$rexxisam_config" >&6; }
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401
8402 if test "$ac_cv_prog_rexxisam_config" = yes; then
8403 EXTRA_LIB=`rexxisam-config --libs-static`
8404 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8405 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
8406
8407 else
8408 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
8409 fi
8410 fi
8411
8412 # Check whether --with-rxsock was given.
8413 if test "${with_rxsock+set}" = set; then :
8414 withval=$with_rxsock; with_rxsock=$withval
8415 else
8416 with_rxsock=no
8417 fi
8418
8419 if test "$with_rxsock" = "yes"; then
8420 # Extract the first word of "rxsock-config", so it can be a program name with args.
8421 set dummy rxsock-config; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_rxsock_config+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$rxsock_config"; then
8428 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_rxsock_config="yes"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8440 fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
8446 fi
8447 fi
8448 rxsock_config=$ac_cv_prog_rxsock_config
8449 if test -n "$rxsock_config"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
8451 $as_echo "$rxsock_config" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458 if test "$ac_cv_prog_rxsock_config" = yes; then
8459 EXTRA_LIB=`rxsock-config --libs-static`
8460 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8461 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
8462
8463 else
8464 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
8465 fi
8466 fi
8467
8468 # Check whether --with-rexxdw was given.
8469 if test "${with_rexxdw+set}" = set; then :
8470 withval=$with_rexxdw; with_rexxdw=$withval
8471 else
8472 with_rexxdw=no
8473 fi
8474
8475 if test "$with_rexxdw" = "yes"; then
8476 # Extract the first word of "rexxdw-config", so it can be a program name with args.
8477 set dummy rexxdw-config; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_rexxdw_config+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test -n "$rexxdw_config"; then
8484 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_rexxdw_config="yes"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497 done
8498 done
8499 IFS=$as_save_IFS
8500
8501 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
8502 fi
8503 fi
8504 rexxdw_config=$ac_cv_prog_rexxdw_config
8505 if test -n "$rexxdw_config"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
8507 $as_echo "$rexxdw_config" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514 if test "$ac_cv_prog_rexxdw_config" = yes; then
8515 EXTRA_LIB=`rexxdw-config --libs-static`
8516 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8517 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
8518
8519 else
8520 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
8521 fi
8522 fi
8523
8524 # Check whether --with-rexxcsv was given.
8525 if test "${with_rexxcsv+set}" = set; then :
8526 withval=$with_rexxcsv; with_rexxcsv=$withval
8527 else
8528 with_rexxcsv=no
8529 fi
8530
8531 if test "$with_rexxcsv" = "yes"; then
8532 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
8533 set dummy rexxcsv-config; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_prog_rexxcsv_config+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$rexxcsv_config"; then
8540 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_rexxcsv_config="yes"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
8558 fi
8559 fi
8560 rexxcsv_config=$ac_cv_prog_rexxcsv_config
8561 if test -n "$rexxcsv_config"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
8563 $as_echo "$rexxcsv_config" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 fi
8568
8569
8570 if test "$ac_cv_prog_rexxcsv_config" = yes; then
8571 EXTRA_LIB=`rexxcsv-config --libs-static`
8572 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8573 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
8574
8575 else
8576 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
8577 fi
8578 fi
8579
8580 # Check whether --with-rexxpdf was given.
8581 if test "${with_rexxpdf+set}" = set; then :
8582 withval=$with_rexxpdf; with_rexxpdf=$withval
8583 else
8584 with_rexxpdf=no
8585 fi
8586
8587 if test "$with_rexxpdf" = "yes"; then
8588 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
8589 set dummy rexxpdf-config; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_rexxpdf_config+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 if test -n "$rexxpdf_config"; then
8596 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605 ac_cv_prog_rexxpdf_config="yes"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609 done
8610 done
8611 IFS=$as_save_IFS
8612
8613 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
8614 fi
8615 fi
8616 rexxpdf_config=$ac_cv_prog_rexxpdf_config
8617 if test -n "$rexxpdf_config"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
8619 $as_echo "$rexxpdf_config" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625
8626 if test "$ac_cv_prog_rexxpdf_config" = yes; then
8627 EXTRA_LIB=`rexxpdf-config --libs-static`
8628 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8629 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8630
8631 else
8632 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
8633 fi
8634 fi
8635
8636 # Check whether --with-rexxws was given.
8637 if test "${with_rexxws+set}" = set; then :
8638 withval=$with_rexxws; with_rexxws=$withval
8639 else
8640 with_rexxws=no
8641 fi
8642
8643 if test "$with_rexxws" = "yes"; then
8644 # Extract the first word of "rexxws-config", so it can be a program name with args.
8645 set dummy rexxws-config; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_rexxws_config+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$rexxws_config"; then
8652 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_rexxws_config="yes"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
8670 fi
8671 fi
8672 rexxws_config=$ac_cv_prog_rexxws_config
8673 if test -n "$rexxws_config"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
8675 $as_echo "$rexxws_config" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681
8682 if test "$ac_cv_prog_rexxws_config" = yes; then
8683 EXTRA_LIB=`rexxws-config --libs-static`
8684 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8685 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8686
8687 else
8688 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
8689 fi
8690 fi
8691
8692 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745 fi
8746 else
8747 STATICLD_SHO=""
8748
8749
8750
8751
8752
8753
8754 SHLPRE="lib"
8755 LIBFILE="regina"
8756 SHLFILE="regina"
8757 OSAVE=".o.save"
8758 OBJ="o"
8759 LIBPST=".a"
8760 LIBPRE="lib"
8761 LIBEXE="ar"
8762 GETOPT=""
8763 OBJECTS='$('OFILES')'
8764 STATIC_LDFLAGS=""
8765 AIX_DYN="no"
8766 BEOS_DYN="no"
8767
8768
8769 case "$target" in
8770 *hp-hpux9*)
8771 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8772 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
8773
8774 ;;
8775 *hp-hpux*)
8776 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8777 SYS_DEFS="-D_HPUX_SOURCE"
8778 else
8779 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8780 fi
8781 ;;
8782 *ibm-aix3*|*ibm-aix4.1*)
8783 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8784 ;;
8785 *ibm-aix*)
8786 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8787 DYN_COMP="-DDYNAMIC"
8788 ;;
8789 *dec-osf*)
8790 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8791 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
8792 else
8793 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
8794 fi
8795 ;;
8796 sparc*sunos*)
8797 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
8798 ;;
8799 *nto-qnx*)
8800 ;;
8801 *skyos*)
8802 DYN_COMP="-DDYNAMIC"
8803 ;;
8804 *qnx*)
8805 LIBPRE=""
8806 LIBPST=".lib"
8807 SHLPRE=""
8808 SHLPST=".lib"
8809 SHLFILE="rexx"
8810 ;;
8811 *cygwin*)
8812 LIBPRE="lib"
8813 SHLPRE="cyg"
8814 DYN_COMP="-DDYNAMIC"
8815 LIBPST=".a"
8816 ;;
8817 *darwin*)
8818 DYN_COMP="-fno-common"
8819 ;;
8820 esac
8821
8822 if test "$DYN_COMP" = ""; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for a dynamic object" >&5
8824 $as_echo_n "checking compiler flags for a dynamic object... " >&6; }
8825
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8824 "configure"
8828 int a=0
8829 EOF
8830
8831 DYN_COMP=""
8832 mh_cv_stop=no
8833 save_cflags="$CFLAGS"
8834 mh_cv_flags="-fPIC -KPIC +Z"
8835 for a in $mh_cv_flags; do
8836 CFLAGS="-c $a"
8837
8838 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
8839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
8840 (eval $mh_compile) 2>&5
8841 ac_status=$?
8842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8843 test $ac_status = 0; }; then
8844 DYN_COMP=""
8845 else
8846 slash="\\"
8847 mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
8848 if test "$mh_dyncomp" = "0"; then
8849 DYN_COMP="$a -DDYNAMIC"
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a" >&5
8851 $as_echo "$a" >&6; }
8852 break
8853 else
8854 DYN_COMP=""
8855 fi
8856 fi
8857 done
8858 if test "$DYN_COMP" = ""; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none of $mh_cv_flags supported" >&5
8860 $as_echo "none of $mh_cv_flags supported" >&6; }
8861 fi
8862 CFLAGS="$save_cflags"
8863 rm -f conftest.*
8864 fi
8865
8866 SHL_LD=""
8867 TEST1EXPORTS=""
8868 TEST2EXPORTS=""
8869 TEST1EXP=""
8870 TEST2EXP=""
8871 REGINAEXP=""
8872 REGUTILEXP=""
8873
8874 # If the build OS can handle version numbers in the shared library name,
8875 # then set SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
8876 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
8877
8878 # OTHER_INSTALLS is set to install a non-version numbered shared library
8879 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
8880 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
8881 # are building a version numbered shared library.
8882 #RXSTACK_INSTALL="installrxstack"
8883 RXSTACK_INSTALL=""
8884 OTHER_INSTALLS="installlib"
8885 BASE_INSTALL="installbase"
8886 BASE_BINARY="binarybase"
8887 USE_ABI="no"
8888 BUNDLE=""
8889 EXTRATARGET=""
8890 case "$target" in
8891 *hp-hpux*)
8892 SHLPRE="lib"
8893 if test "$ac_cv_prog_CC" = "gcc"; then
8894 LD_RXLIB_A1="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8895 LD_RXLIB_A2="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8896 LD_RXLIB_UTILA="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8897 LD_RXLIB_B1="-L. -l${SHLFILE}"
8898 LD_RXLIB_B2="-L. -l${SHLFILE}"
8899 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8900 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -fPIC -shared ${LDFLAGS} \$(SHOFILES)"
8901 else
8902 EEXTRA="-Wl,-E"
8903 LD_RXLIB_A1="ld -b -q -n -o \$(@)"
8904 LD_RXLIB_A2="ld -b -q -n -o \$(@)"
8905 LD_RXLIB_UTILA="ld -b -q -n -o \$(@)"
8906 LD_RXLIB_B1=""
8907 LD_RXLIB_B2=""
8908 LD_RXLIB_UTILB=""
8909 DYNAMIC_LDFLAGS="-Wl,+s"
8910 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8911 fi
8912 ;;
8913 *ibm-aix3*)
8914 STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8915 LD_RXLIB_A1="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8916 LD_RXLIB_A2="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8917 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8918 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8919 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8920 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8921 SHLPRE="lib"
8922 TEST1EXPORTS="-bE:test1.exp"
8923 TEST2EXPORTS="-bE:test2.exp"
8924 TEST1EXP="test1.exp"
8925 TEST2EXP="test2.exp"
8926 REGINAEXP="regina.exp"
8927 REGUTILEXP="regutil.exp"
8928 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8929 AIX_DYN="yes"
8930 DYN_COMP="-DDYNAMIC"
8931 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE -bT:512 -bH:512 "'$('SHOFILES')'" -lc"
8932 else
8933 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8934 DYN_COMP=""
8935 fi
8936 ;;
8937 *ibm-aix*)
8938 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8939 SHLPRE="lib"
8940 if test "$ac_cv_prog_CC" = "gcc"; then
8941 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
8942 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
8943 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
8944 LD_RXLIB_B1="-L. -l${SHLFILE}"
8945 LD_RXLIB_B2="-L. -l${SHLFILE}"
8946 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8947 else
8948 LD_RXLIB_A1="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8949 LD_RXLIB_A2="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8950 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8951 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8952 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8953 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8954 TEST1EXPORTS="-bE:test1.exp"
8955 TEST2EXPORTS="-bE:test2.exp"
8956 TEST1EXP="test1.exp"
8957 TEST2EXP="test2.exp"
8958 REGUTILEXPORTS="-bE:regutil.exp"
8959 REGUTILEXP="regutil.exp"
8960 fi
8961 REGINAEXP="regina.exp"
8962 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8963 AIX_DYN="yes"
8964 DYN_COMP="-DDYNAMIC"
8965 if test "$ac_cv_prog_CC" = "gcc"; then
8966 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-bnoentry -Wl,-bE:regina.exp -Wl,-bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8967 else
8968 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8969 fi
8970 else
8971 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8972 DYN_COMP=""
8973 fi
8974 ;;
8975 *dec-osf*)
8976 LD_RXLIB_A1="ld -shared -o \$(@)"
8977 LD_RXLIB_A2="ld -shared -o \$(@)"
8978 LD_RXLIB_UTILA="ld -shared -o \$(@)"
8979 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
8980 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
8981 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
8982 SHLPRE="lib"
8983 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
8984 ;;
8985 *esix*)
8986 LD_RXLIB_A1="ld -G -o \$(@)"
8987 LD_RXLIB_A2="ld -G -o \$(@)"
8988 LD_RXLIB_UTILA="ld -G -o \$(@)"
8989 LD_RXLIB_B1=""
8990 LD_RXLIB_B2=""
8991 LD_RXLIB_UTILB=""
8992 DYNAMIC_LDFLAGS=""
8993 SHLPRE="lib"
8994 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8995 ;;
8996 *dgux*)
8997 LD_RXLIB_A1="ld -G -o \$(@)"
8998 LD_RXLIB_A2="ld -G -o \$(@)"
8999 LD_RXLIB_UTILA="ld -G -o \$(@)"
9000 LD_RXLIB_B1=""
9001 LD_RXLIB_B2=""
9002 LD_RXLIB_UTILB=""
9003 DYNAMIC_LDFLAGS=""
9004 SHLPRE="lib"
9005 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9006 ;;
9007 *pc-sco*)
9008 LD_RXLIB_A1="ld -dy -G -o \$(@)"
9009 LD_RXLIB_A2="ld -dy -G -o \$(@)"
9010 LD_RXLIB_UTILA="ld -dy -G -o \$(@)"
9011 LD_RXLIB_B1=""
9012 LD_RXLIB_B2=""
9013 LD_RXLIB_UTILB=""
9014 DYNAMIC_LDFLAGS=""
9015 SHLPRE="lib"
9016 SHL_LD="ld -dy -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9017 ;;
9018 *solaris*)
9019 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9020 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9021 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9022 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9023 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9024 else
9025 LD_RXLIB_A1="ld -G ${LDFLAGS} -o \$(@)"
9026 LD_RXLIB_A2="ld -G ${LDFLAGS} -o \$(@)"
9027 LD_RXLIB_UTILA="ld -G ${LDFLAGS} -o \$(@)"
9028 SHL_LD="ld -G ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9029 fi
9030 LD_RXLIB_B1=""
9031 LD_RXLIB_B2=""
9032 LD_RXLIB_UTILB=""
9033 DYNAMIC_LDFLAGS=""
9034 SHLPRE="lib"
9035 ;;
9036 sparc*sunos*)
9037 LD_RXLIB_A1="ld -o \$(@)"
9038 LD_RXLIB_A2="ld -o \$(@)"
9039 LD_RXLIB_UTILA="ld -o \$(@)"
9040 LD_RXLIB_B1=""
9041 LD_RXLIB_B2=""
9042 LD_RXLIB_UTILB=""
9043 SHLPRE="lib"
9044 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9045 ;;
9046 *-freebsd* | *openbsd*)
9047 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9048 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9049 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9050 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9051 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9052 else
9053 LD_RXLIB_A1="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9054 LD_RXLIB_A2="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9055 LD_RXLIB_UTILA="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9056 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
9057 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
9058 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
9059 SHL_LD="ld -Bdynamic -Bshareable ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9060 fi
9061 STATIC_LDFLAGS="-static"
9062 SHLPRE="lib"
9063 ;;
9064 *linux*|*kfreebsd*-gnu*)
9065 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9066 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9067 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9068 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9069 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9070 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9071 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9072 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9073 SHLPRE="lib"
9074 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9075 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9076 OTHER_INSTALLS="installabilib"
9077 USE_ABI="yes"
9078 ;;
9079 powerpc-ibm-os400)
9080 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9081 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9082 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9083 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9084 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9085 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9086 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9087 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9088 SHLPRE="lib"
9089 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} \$(SHOFILES)"
9090 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9091 OTHER_INSTALLS="installabilib"
9092 USE_ABI="yes"
9093 ;;
9094 *gnu*)
9095 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9096 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9097 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9098 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9099 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9100 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9101 SHLPRE="lib"
9102 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES) -lc"
9103 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9104 OTHER_INSTALLS="installabilib"
9105 USE_ABI="yes"
9106 ;;
9107 *atheos* | *syllable*)
9108 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9109 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9110 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9111 LD_RXLIB_B1="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9112 LD_RXLIB_B2="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9113 LD_RXLIB_UTILB="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9114 SHLPRE="lib"
9115 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared ${LDFLAGS} \$(SHOFILES) "'$('BOTHLIBS')'
9116 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9117 BASE_BINARY="atheosbinary"
9118 ;;
9119 *beos*)
9120 LD_RXLIB_A1="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9121 LD_RXLIB_A2="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9122 LD_RXLIB_UTILA="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9123 LD_RXLIB_B1="-L. -l${SHLFILE}"
9124 LD_RXLIB_B2="-L. -l${SHLFILE}"
9125 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9126 SHLPRE="lib"
9127 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared -nostart -Xlinker \$(SHOFILES)"
9128 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9129 BEOS_DYN="yes"
9130 BASE_INSTALL="beosinstall"
9131 BASE_BINARY="beosbinary"
9132 OTHER_INSTALLS=""
9133 ;;
9134 *haiku*)
9135 BEOS_DYN="no"
9136 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9137 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9138 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9139 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9140 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9141 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9142 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9143 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9144 SHLPRE="lib"
9145 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9146 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9147 BASE_INSTALL="haikuinstall"
9148 BASE_BINARY="beosbinary"
9149 OTHER_INSTALLS="installabilib"
9150 USE_ABI="yes"
9151 ;;
9152 *nto-qnx*)
9153 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9154 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9155 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9156 LD_RXLIB_B1="-L. -l${SHLFILE}"
9157 LD_RXLIB_B2="-L. -l${SHLFILE}"
9158 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9159 SHLPRE="lib"
9160 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9161 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9162 ;;
9163 *skyos*)
9164 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9165 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9166 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9167 LD_RXLIB_B1="-L. -l${SHLFILE}"
9168 LD_RXLIB_B2="-L. -l${SHLFILE}"
9169 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9170 SHLPRE="lib"
9171 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9172 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9173 ;;
9174 *qnx*)
9175 LD_RXLIB_A1=""
9176 LD_RXLIB_A2=""
9177 LD_RXLIB_UTILA=""
9178 LD_RXLIB_B1=""
9179 LD_RXLIB_B2=""
9180 LD_RXLIB_UTILB=""
9181 SHLPRE=""
9182 # set BUNDLE to unique junk names to stop the Makefile
9183 # getting duplicate targets
9184 BUNDLE=".junk2"
9185 SHLPST=".junk"
9186 SHL_LD=""
9187 EEXTRA="-mf -N0x20000 -Q"
9188 LIBPRE=""
9189 LIBPST=".lib"
9190 LIBFILE="rexx"
9191 ;;
9192 *cygwin*)
9193 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9194 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9195 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9196 LD_RXLIB_B1="-L. -lregina"
9197 LD_RXLIB_B2="-L. -lregina"
9198 LD_RXLIB_UTILB="-L. -lregina"
9199 SHLPRE="lib"
9200 SHL_LD="${CC} -shared -o \$(@) \$(SHOFILES)"
9201 EEXTRA=""
9202 LIBPRE="lib"
9203 LIBPST=".a"
9204 LIBFILE="rexx"
9205 SHL_BASE="cyg${SHLFILE}${SHLPST}"
9206 TEST1EXPORTS=""
9207 TEST2EXPORTS=""
9208 REGUTILEXPORTS=""
9209 TEST1EXP="${srcdir}/test1_w32_dll.def"
9210 TEST2EXP="${srcdir}/test2_w32_dll.def"
9211 REGINAEXP="${srcdir}/regina_w32_dll.def"
9212 REGUTILEXP="${srcdir}/regutil/regutil.def"
9213 BASE_INSTALL="cygwininstall"
9214 OTHER_INSTALLS=""
9215 RXSTACK_INSTALL=""
9216 ;;
9217 *apple-darwin*)
9218 # to test on platform other than real Mac OSX use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
9219 #
9220 # Link switches for building "bundles"
9221 #
9222 # MH LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9223 # MH LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9224 LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9225 LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9226 LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9227 LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9228 LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9229 LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS) $REGUTIL_TERM_LIB"
9230 DYN_COMP="-DDYNAMIC -fno-common"
9231 SHLPRE="lib"
9232 BUNDLE=".junk"
9233 SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9234 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9235 if test "$brewaddonsdir" = ""; then
9236 OTHER_INSTALLS="installmaclib"
9237 else
9238 OTHER_INSTALLS="installbrewlib"
9239 fi
9240 ;;
9241 *)
9242
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a shared library" >&5
9244 $as_echo_n "checking how to create a shared library... " >&6; }
9245 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9244 "configure"
9248 int foo()
9249 {
9250 return(0);
9251 }
9252 EOF
9253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9254 (eval $mh_compile) 2>&5
9255 ac_status=$?
9256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9257 test $ac_status = 0; } && test -s conftest.o; then
9258 mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9260 (eval $mh_dyn_link) 2>&5
9261 ac_status=$?
9262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9263 test $ac_status = 0; } && test -s conftest.so.1.0; then
9264 SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9265 else
9266 mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5'
9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9268 (eval $mh_dyn_link) 2>&5
9269 ac_status=$?
9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271 test $ac_status = 0; } && test -s conftest.so.1.0; then
9272 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9273 else
9274 mh_dyn_link='ld -o conftest.so.1.0 -shared -no_archive conftest.o -lc 1>&5'
9275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9276 (eval $mh_dyn_link) 2>&5
9277 ac_status=$?
9278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9279 test $ac_status = 0; } && test -s conftest.so.1.0; then
9280 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
9281 else
9282 mh_dyn_link='ld -b -o conftest.so.1.0 conftest.o 1>&5'
9283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9284 (eval $mh_dyn_link) 2>&5
9285 ac_status=$?
9286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9287 test $ac_status = 0; } && test -s conftest.so.1.0; then
9288 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9289 else
9290 mh_dyn_link='ld -Bshareable -o conftest.so.1.0 conftest.o 1>&5'
9291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9292 (eval $mh_dyn_link) 2>&5
9293 ac_status=$?
9294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9295 test $ac_status = 0; } && test -s conftest.so.1.0; then
9296 SHL_LD="ld -Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9297 else
9298 mh_dyn_link='ld -assert pure-text -o conftest.so.1.0 conftest.o 1>&5'
9299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9300 (eval $mh_dyn_link) 2>&5
9301 ac_status=$?
9302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9303 test $ac_status = 0; } && test -s conftest.so.1.0; then
9304 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9305 else
9306 mh_dyn_link='${CC} -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9308 (eval $mh_dyn_link) 2>&5
9309 ac_status=$?
9310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9311 test $ac_status = 0; } && test -s conftest.so.1.0; then
9312 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9313 else
9314 SHL_LD=""
9315 fi
9316 fi
9317 fi
9318 fi
9319 fi
9320 fi
9321 fi
9322 fi
9323 if test "$SHL_LD" = ""; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
9325 $as_echo "unknown" >&6; }
9326 else
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
9328 $as_echo "found" >&6; }
9329 fi
9330 rm -f conftest*
9331
9332
9333 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9332 "configure"
9336 int foo()
9337 {
9338 return(0);
9339 }
9340 EOF
9341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9342 (eval $mh_compile) 2>&5
9343 ac_status=$?
9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9345 test $ac_status = 0; } && test -s conftest.o; then
9346 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
9347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9348 (eval $mh_dyn_link) 2>&5
9349 ac_status=$?
9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351 test $ac_status = 0; } && test -s conftest.rxlib; then
9352 LD_RXLIB_A1="ld -shared -o \$(@)"
9353 LD_RXLIB_A2="ld -shared -o \$(@)"
9354 LD_RXLIB_UTILA="ld -shared -o \$(@)"
9355 LD_RXLIB_B1="-L. -l${SHLFILE}"
9356 LD_RXLIB_B2="-L. -l${SHLFILE}"
9357 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9358 SHLPRE="lib"
9359 SHLPST=".so"
9360 else
9361 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
9362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9363 (eval $mh_dyn_link) 2>&5
9364 ac_status=$?
9365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9366 test $ac_status = 0; } && test -s conftest.rxlib; then
9367 LD_RXLIB_A1="ld -G -o \$(@)"
9368 LD_RXLIB_A2="ld -G -o \$(@)"
9369 LD_RXLIB_UTILA="ld -G -o \$(@)"
9370 LD_RXLIB_B1="-L. -l${SHLFILE}"
9371 LD_RXLIB_B2="-L. -l${SHLFILE}"
9372 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9373 SHLPRE="lib"
9374 SHLPST=".so"
9375 else
9376 mh_dyn_link='${CC} -shared -o conftest.rxlib conftest.o 1>&5'
9377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9378 (eval $mh_dyn_link) 2>&5
9379 ac_status=$?
9380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9381 test $ac_status = 0; } && test -s conftest.rxlib; then
9382 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9383 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9384 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9385 LD_RXLIB_B1="-L. -l${SHLFILE}"
9386 LD_RXLIB_B2="-L. -l${SHLFILE}"
9387 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9388 SHLPRE="lib"
9389 SHLPST=".so"
9390 else
9391 LD_RXLIB_A1=""
9392 LD_RXLIB_A2=""
9393 LD_RXLIB_UTILA=""
9394 LD_RXLIB_B1=""
9395 LD_RXLIB_B2=""
9396 LD_RXLIB_UTILB=""
9397 SHLPRE=""
9398 SHLPST=""
9399 fi
9400 fi
9401 fi
9402 fi
9403 rm -f conftest*
9404
9405 ;;
9406 esac
9407
9408 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
9409 LIBLINK="-L. -l${LIBFILE}"
9410 LINKSHL="-L. -l${SHLFILE}"
9411
9412 SHL_NAME_REGINA="${SHLPRE}${SHLFILE}${SHLPST}"
9413 SHL_NAME_REGUTIL="${SHLPRE}regutil${SHLPST}"
9414 SHL_NAME_RXTEST1="${SHLPRE}rxtest1${SHLPST}"
9415 SHL_NAME_RXTEST2="${SHLPRE}rxtest2${SHLPST}"
9416 RANLIB_DYNAMIC=""
9417
9418 case "$target" in
9419 *hp-hpux*)
9420 #
9421 # For HPUX, we must link the "regina" executable with -lregina
9422 # otherwise you can't move the shared library anywhere other
9423 # than where it was built. Fix by PJM
9424 #
9425 LINKREG="${LINKSHL}"
9426 ;;
9427 *cygwin*)
9428 #
9429 # For CygWin, we must link with the import library
9430 # not the actual DLL
9431 #
9432 LINKREG="${LINKSHL}"
9433 SHL_NAME_REGINA="cygregina.dll"
9434 SHL_NAME_REGUTIL="regutil.dll"
9435 SHL_NAME_RXTEST1="rxtest1.dll"
9436 SHL_NAME_RXTEST2="rxtest2.dll"
9437 ;;
9438 *skyos*)
9439 #
9440 # SkyOS requires linking with -L. -lregina format
9441 #
9442 LINKREG="${LINKSHL}"
9443 ;;
9444 *linux*|*kfreebsd*-gnu*)
9445 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9446 LINKREG="${LINKSHL}"
9447 ;;
9448 *)
9449 LINKREG="${SHLPRE}${SHLFILE}${SHLPST}"
9450 ;;
9451 esac
9452
9453 if test "$SHL_LD" != ""; then
9454 SHL_LD="$SHL_LD \$(BOTHLIBS) \$(MH_MT_LIBS)"
9455 fi
9456
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic loading of external functions is supported" >&5
9458 $as_echo_n "checking if dynamic loading of external functions is supported... " >&6; }
9459 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
9460 SHL_TARGETS="${SHL_NAME_REGINA} regina${binarybitprefix}${EXEEXT} ${SHL_NAME_REGUTIL} ${SHL_NAME_RXTEST1} ${SHL_NAME_RXTEST2} $EXTRATARGET"
9461 EXECISER_DEP="${SHL_BASE}"
9462 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
9464 $as_echo "\"yes\"" >&6; }
9465 else
9466 SHL_TARGETS=""
9467 EXECISER_DEP="${STATICLIB}"
9468 OTHER_INSTALLS=""
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
9470 $as_echo "\"no\"" >&6; }
9471 fi
9472 #
9473 # Add $RXSTACK_INSTALL
9474 #
9475 OTHER_INSTALLS="$OTHER_INSTALLS $RXSTACK_INSTALL"
9476
9477 if test "$AIX_DYN" = "yes"; then
9478 STATICLIB=""
9479 LIBPST=".junk"
9480 else
9481 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
9482 fi
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if symbols need underscore prepended in loadable modules" >&5
9543 $as_echo_n "checking if symbols need underscore prepended in loadable modules... " >&6; }
9544 tmpLIBS="$LIBS"
9545 save_cflags="$CFLAGS"
9546 LIBS="$LIBS $DLFCNLIBDIR"
9547 CFLAGS="$CFLAGS $DLFCNINCDIR"
9548 if ${mh_cv_uscore+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551
9552 if test "$cross_compiling" = yes; then :
9553 mh_cv_uscore=no
9554 else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 #include <dlfcn.h>
9559 int mh_underscore_test (void) { return 42; }
9560 int main() {
9561 void *f1 = (void*)0, *f2 = (void*)0, *handle;
9562 handle = dlopen ((void*)0, 0);
9563 if (handle) {
9564 f1 = dlsym (handle, "mh_underscore_test");
9565 f2 = dlsym (handle, "_mh_underscore_test");
9566 } return (!f2 || f1);
9567 }
9568
9569 _ACEOF
9570 if ac_fn_c_try_run "$LINENO"; then :
9571 mh_cv_uscore=yes
9572 else
9573 mh_cv_uscore=no
9574 fi
9575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9576 conftest.$ac_objext conftest.beam conftest.$ac_ext
9577 fi
9578
9579
9580 fi
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_uscore" >&5
9583 $as_echo "$mh_cv_uscore" >&6; }
9584 if test "x$mh_cv_uscore" = "xyes"; then
9585 $as_echo "#define MODULES_NEED_USCORE 1" >>confdefs.h
9586
9587 fi
9588 LIBS="$tmpLIBS"
9589 CFLAGS="$save_cflags"
9590 fi
9591
9592 fi
9593
9594
9595
9596
9597
9598
9599
9600 LARGE_FILE_SUPPORT=""
9601 # Extract the first word of "getconf", so it can be a program name with args.
9602 set dummy getconf; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_prog_getconf+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607 else
9608 if test -n "$getconf"; then
9609 ac_cv_prog_getconf="$getconf" # Let the user override the test.
9610 else
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in $PATH
9613 do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9618 ac_cv_prog_getconf="yes"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622 done
9623 done
9624 IFS=$as_save_IFS
9625
9626 test -z "$ac_cv_prog_getconf" && ac_cv_prog_getconf="no"
9627 fi
9628 fi
9629 getconf=$ac_cv_prog_getconf
9630 if test -n "$getconf"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $getconf" >&5
9632 $as_echo "$getconf" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9636 fi
9637
9638
9639 if test "$ac_cv_prog_getconf" = yes; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking large file support flags" >&5
9641 $as_echo_n "checking large file support flags... " >&6; }
9642 LARGE_FILE_SUPPORT=`getconf LFS_CFLAGS`
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGE_FILE_SUPPORT" >&5
9644 $as_echo "$LARGE_FILE_SUPPORT" >&6; }
9645 fi
9646 if test "$LARGE_FILE_SUPPORT" = "undefined"; then
9647 LARGE_FILE_SUPPORT=""
9648 fi
9649
9650
9651 #if test "$with_staticfunctions" = "yes"; then
9652 # DYNAMIC_LIBRARY_LIBS=""
9653 #else
9654 # DYNAMIC_LIBRARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9655 # DYNAMIC_REGUTIL_TERM_LIB="$REGUTIL_TERM_LIB"
9656 # AC_SUBST(DYNAMIC_REGUTIL_TERM_LIB)
9657 #fi
9658 #AC_SUBST(DYNAMIC_LIBRARY_LIBS)
9659 #DYNAMIC_BINARY_LIBS="-L. -lregina"
9660 #AC_SUBST(DYNAMIC_BINARY_LIBS)
9661
9662
9663 STACK_BINARY_LIBS="$REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9664
9665 REXX_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB $REGUTIL_READLINE_LIB $REGINA_PTHREAD_LIB"
9666
9667 #STATIC_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGINA_PTHREAD_LIB"
9668 #AC_SUBST(STATIC_BINARY_LIBS)
9669 if test "$build_static" = "yes"; then
9670 REGINA_CONFIG_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9671 LIBREGINA_BINARY_LIBS=""
9672 LIBREGUTIL_BINARY_LIBS=""
9673 REGINA_BINARY_LIBS="${MH_FUNC_LIBS} -L. -lregina $REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9674 THREADER_BINARY_LIBS="-L. -lrexx $REGINA_PTHREAD_LIB"
9675 EXECISER_BINARY_LIBS="-L. -lrexx $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9676 else
9677 REGINA_CONFIG_LIBS=""
9678 LIBREGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9679 LIBREGUTIL_BINARY_LIBS="$REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9680 REGINA_BINARY_LIBS="-L. -lregina"
9681 THREADER_BINARY_LIBS="-L. -lregina $REGINA_PTHREAD_LIB"
9682 EXECISER_BINARY_LIBS="-L. -lregina"
9683 fi
9684
9685
9686
9687
9688
9689
9690
9691 # Check whether --enable-tracemem was given.
9692 if test "${enable_tracemem+set}" = set; then :
9693 enableval=$enable_tracemem; with_tracemem=$enableval
9694 else
9695 with_tracemem=no
9696 fi
9697
9698 if test "$with_tracemem" = yes; then
9699 TRACEMEM="-DTRACEMEM"
9700 else
9701 TRACEMEM=""
9702 fi
9703
9704
9705 # Check whether --enable-flists was given.
9706 if test "${enable_flists+set}" = set; then :
9707 enableval=$enable_flists; with_flists=$enableval
9708 else
9709 with_flists=yes
9710 fi
9711
9712 if test "$with_flists" = no; then
9713 FLISTS="-DNOFLISTS"
9714 else
9715 FLISTS=""
9716 fi
9717
9718
9719
9720 # Check whether --with-socket was given.
9721 if test "${with_socket+set}" = set; then :
9722 withval=$with_socket; with_socket=$withval
9723 else
9724 with_socket=no
9725 fi
9726
9727 if test "$with_socket" = no; then
9728 REXXSOCKET=""
9729 else
9730 REXXSOCKET="-DRXSOCKET=$with_socket"
9731 fi
9732
9733
9734
9735 # Check whether --with-addon-dir was given.
9736 if test "${with_addon_dir+set}" = set; then :
9737 withval=$with_addon_dir; addonsdir=$withval
9738 else
9739 addonsdir=$libdir/regina-rexx/addons
9740 fi
9741
9742
9743 prefix_NONE=
9744 exec_prefix_NONE=
9745 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
9746 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
9747 eval ac_define_dir="\""$addonsdir"\""
9748 eval ac_define_dir="\"$ac_define_dir\""
9749 HAVE_REGINA_ADDON_DIR="$ac_define_dir"
9750
9751 cat >>confdefs.h <<_ACEOF
9752 #define HAVE_REGINA_ADDON_DIR "$ac_define_dir"
9753 _ACEOF
9754
9755 test "$prefix_NONE" && prefix=NONE
9756 test "$exec_prefix_NONE" && exec_prefix=NONE
9757
9758
9759
9760
9761 # Check whether --with-brew-addon-dir was given.
9762 if test "${with_brew_addon_dir+set}" = set; then :
9763 withval=$with_brew_addon_dir; brewaddonsdir=$withval
9764 else
9765 brewaddonsdir=""
9766 fi
9767
9768
9769
9770 #MH_CHECK_RPM
9771
9772 #
9773 # get our own abs_srcdir as autoconf sucks
9774 #
9775 here=`pwd`
9776 cd $srcdir
9777 absolute_srcdir=`pwd`
9778 cd $here
9779 #
9780 packagesdir="$absolute_srcdir/packages"
9781
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rpms are built" >&5
9783 $as_echo_n "checking where rpms are built... " >&6; }
9784 # Extract the first word of "rpmbuild", so it can be a program name with args.
9785 set dummy rpmbuild; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if ${ac_cv_prog_mh_rpm_exists+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 if test -n "$mh_rpm_exists"; then
9792 ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9801 ac_cv_prog_mh_rpm_exists="yes"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805 done
9806 done
9807 IFS=$as_save_IFS
9808
9809 test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no "
9810 fi
9811 fi
9812 mh_rpm_exists=$ac_cv_prog_mh_rpm_exists
9813 if test -n "$mh_rpm_exists"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_rpm_exists" >&5
9815 $as_echo "$mh_rpm_exists" >&6; }
9816 else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9819 fi
9820
9821
9822 if test "$mh_rpm_exists" = yes; then
9823 # rpmtopdir=`rpm --eval "%{_topdir}"`
9824 rpmtopdir="${packagesdir}/RPM"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rpmtopdir" >&5
9826 $as_echo "$rpmtopdir" >&6; }
9827 else
9828 rpmtopdir=""
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9830 $as_echo "\"not avaliable\"" >&6; }
9831 fi
9832
9833 #
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where deb packages are built" >&5
9835 $as_echo_n "checking where deb packages are built... " >&6; }
9836 # Extract the first word of "dpkg-buildpackage", so it can be a program name with args.
9837 set dummy dpkg-buildpackage; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if ${ac_cv_prog_mh_dpkg_exists+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$mh_dpkg_exists"; then
9844 ac_cv_prog_mh_dpkg_exists="$mh_dpkg_exists" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853 ac_cv_prog_mh_dpkg_exists="yes"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9856 fi
9857 done
9858 done
9859 IFS=$as_save_IFS
9860
9861 test -z "$ac_cv_prog_mh_dpkg_exists" && ac_cv_prog_mh_dpkg_exists="no "
9862 fi
9863 fi
9864 mh_dpkg_exists=$ac_cv_prog_mh_dpkg_exists
9865 if test -n "$mh_dpkg_exists"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_dpkg_exists" >&5
9867 $as_echo "$mh_dpkg_exists" >&6; }
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873
9874 if test "$mh_dpkg_exists" = yes; then
9875 debtopdir="${packagesdir}/DEB"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debtopdir" >&5
9877 $as_echo "$debtopdir" >&6; }
9878 else
9879 debtopdir=""
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9881 $as_echo "\"not avaliable\"" >&6; }
9882 fi
9883
9884 #
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where apk packages are built" >&5
9886 $as_echo_n "checking where apk packages are built... " >&6; }
9887 # Extract the first word of "abuild", so it can be a program name with args.
9888 set dummy abuild; ac_word=$2
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9890 $as_echo_n "checking for $ac_word... " >&6; }
9891 if ${ac_cv_prog_mh_apk_exists+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 if test -n "$mh_apk_exists"; then
9895 ac_cv_prog_mh_apk_exists="$mh_apk_exists" # Let the user override the test.
9896 else
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 for as_dir in $PATH
9899 do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9904 ac_cv_prog_mh_apk_exists="yes"
9905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 break 2
9907 fi
9908 done
9909 done
9910 IFS=$as_save_IFS
9911
9912 test -z "$ac_cv_prog_mh_apk_exists" && ac_cv_prog_mh_apk_exists="no "
9913 fi
9914 fi
9915 mh_apk_exists=$ac_cv_prog_mh_apk_exists
9916 if test -n "$mh_apk_exists"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_apk_exists" >&5
9918 $as_echo "$mh_apk_exists" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 fi
9923
9924
9925 if test "$mh_apk_exists" = yes; then
9926 apktopdir="${packagesdir}/APK"
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apktopdir" >&5
9928 $as_echo "$apktopdir" >&6; }
9929 else
9930 apktopdir=""
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9932 $as_echo "\"not avaliable\"" >&6; }
9933 fi
9934
9935 # if we haven't set an environment variable; PACKAGE_RELEASE to a value,
9936 # get a timestamp for use in eg RPM Spec file Release
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getting PACKAGE_RELEASE value" >&5
9938 $as_echo_n "checking getting PACKAGE_RELEASE value... " >&6; }
9939 PACKAGE_RELEASE=`echo $PACKAGE_RELEASE`
9940 if test x"$PACKAGE_RELEASE" == "x"; then
9941 PACKAGE_RELEASE=`date +%y%m%d.%H%M`
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_RELEASE" >&5
9944 $as_echo "$PACKAGE_RELEASE" >&6; }
9945
9946
9947
9948 # Extract the first word of "lsb_release", so it can be a program name with args.
9949 set dummy lsb_release; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_prog_lsb_release+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test -n "$lsb_release"; then
9956 ac_cv_prog_lsb_release="$lsb_release" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9960 do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_lsb_release="yes"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969 done
9970 done
9971 IFS=$as_save_IFS
9972
9973 test -z "$ac_cv_prog_lsb_release" && ac_cv_prog_lsb_release="no"
9974 fi
9975 fi
9976 lsb_release=$ac_cv_prog_lsb_release
9977 if test -n "$lsb_release"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsb_release" >&5
9979 $as_echo "$lsb_release" >&6; }
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9983 fi
9984
9985
9986 if test "$ac_cv_prog_lsb_release" = yes; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS distribution name" >&5
9988 $as_echo_n "checking OS distribution name... " >&6; }
9989 MYDISTRO="`lsb_release -i | cut -f 2`-`lsb_release -r | cut -f 2`"
9990 MYDISTRO="`echo $MYDISTRO | sed \"s/ /_/g\"`"
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDISTRO" >&5
9992 $as_echo "$MYDISTRO" >&6; }
9993 else
9994 case "$target" in
9995 *linux*)
9996 if test -f "/etc/os-release"; then
9997 myid="`grep ^ID= /etc/os-release | cut -f2 -d\=`"
9998 myver="`grep ^VERSION_ID= /etc/os-release | cut -f2 -d\= | sed 's/\"//g'`"
9999 MYDISTRO="$myid-$myver"
10000 else
10001 MYDISTRO="`echo $target | cut -f3 -d-`"
10002 fi
10003 ;;
10004 *freebsd* | *openbsd*)
10005 MYDISTRO="`echo $target | cut -f3 -d-`"
10006 ;;
10007 *darwin*)
10008 MYDISTRO="`echo $target | cut -f2-3 -d-`"
10009 ;;
10010 *pc-solaris2*)
10011 MYDISTRO="`echo $target | cut -f2- -d-`"
10012 ;;
10013 *cygwin*)
10014 MYDISTRO="`echo $target | cut -f2- -d-`"
10015 ;;
10016 *nto-qnx*)
10017 MYDISTRO="`uname -s`-`uname -r`"
10018 ;;
10019 *qnx*)
10020 MYDISTRO="`uname -s`-`uname -v`"
10021 ;;
10022 *)
10023 MYDISTRO="$target"
10024 ;;
10025 esac
10026 fi
10027
10028
10029
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for service manager" >&5
10031 $as_echo_n "checking for service manager... " >&6; }
10032 if test -f /usr/bin/systemctl -o -f /bin/systemctl ; then
10033 initinstaller="installsystemd"
10034 systemdinstallpath=`pkg-config systemd --variable=systemdsystemunitdir`
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: systemd" >&5
10036 $as_echo "systemd" >&6; }
10037 elif test -f /sbin/initctl ; then
10038 initinstaller="installupstart"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: upstart" >&5
10040 $as_echo "upstart" >&6; }
10041 elif test -f /sbin/insserv ; then
10042 # SuSE sysvinit
10043 initinstaller="installinsserv"
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: insserv" >&5
10045 $as_echo "insserv" >&6; }
10046 else
10047 initinstaller="installsysvinit"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysvinit" >&5
10049 $as_echo "sysvinit" >&6; }
10050 fi
10051
10052
10053
10054
10055 $as_echo "#define UNIX 1" >>confdefs.h
10056
10057
10058
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10060 $as_echo_n "checking whether char is unsigned... " >&6; }
10061 if ${ac_cv_c_char_unsigned+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 int
10068 main ()
10069 {
10070 static int test_array [1 - 2 * !(((char) -1) < 0)];
10071 test_array [0] = 0;
10072 return test_array [0];
10073
10074 ;
10075 return 0;
10076 }
10077 _ACEOF
10078 if ac_fn_c_try_compile "$LINENO"; then :
10079 ac_cv_c_char_unsigned=no
10080 else
10081 ac_cv_c_char_unsigned=yes
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 fi
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10086 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10087 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10088 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10089
10090 fi
10091
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler switch for unsigned char" >&5
10093 $as_echo_n "checking compiler switch for unsigned char... " >&6; }
10094 #
10095 # QNX4 Watcom compiler is unsigned char by default
10096 #
10097 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" = "cc" ; then
10098 qnx4_char_unsigned="yes"
10099 fi
10100
10101 if test "$ac_cv_c_char_unsigned" = yes -o "$qnx4_char_unsigned" = yes; then
10102 MH_UNSIGNED_CHAR_SWITCH=""
10103 msg="not needed - char is unsigned by default"
10104 else
10105 case "$ac_cv_prog_CC" in
10106 gcc)
10107 MH_UNSIGNED_CHAR_SWITCH="-funsigned-char"
10108 msg="$MH_UNSIGNED_CHAR_SWITCH"
10109 ;;
10110 xlC)
10111 MH_UNSIGNED_CHAR_SWITCH="-qchars=unsigned"
10112 msg="$MH_UNSIGNED_CHAR_SWITCH"
10113 ;;
10114 *)
10115 save_cflags="$CFLAGS"
10116 mh_have_unsigned_char_switch=no
10117 mh_unsigned_flags="-funsigned-char -xchar=unsigned"
10118 for mh_flag in $mh_unsigned_flags; do
10119 CFLAGS="$CFLAGS $mh_flag"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 #include <stdio.h>
10123 int
10124 main ()
10125 {
10126 char x;
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_compile "$LINENO"; then :
10132 MH_UNSIGNED_CHAR_SWITCH="$mh_flag"; msg="$MH_UNSIGNED_CHAR_SWITCH"; mh_have_unsigned_char_switch=yes
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 CFLAGS="$save_cflags"
10136 if test "$mh_have_unsigned_char_switch" = yes; then
10137 break
10138 fi
10139 done
10140 if test "$mh_have_unsigned_char_switch" = no; then
10141 msg="unknown - assuming unsigned by default but running execiser will confirm"
10142 fi
10143 ;;
10144 esac
10145 fi
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$msg\"" >&5
10147 $as_echo "\"$msg\"" >&6; }
10148
10149
10150
10151
•10152 ac_config_files="$ac_config_files $mymakefile regina-config rxstack.init.d libregina.pc APKBUILD PackageInfo PackageInfo-devel PackageInfo-lib Regina.spec"
10153
10154 cat >confcache <<\_ACEOF
10155 # This file is a shell script that caches the results of configure
10156 # tests run on this system so they can be shared between configure
10157 # scripts and configure runs, see configure's option --config-cache.
10158 # It is not useful on other systems. If it contains results you don't
10159 # want to keep, you may remove or edit it.
10160 #
10161 # config.status only pays attention to the cache file if you give it
10162 # the --recheck option to rerun configure.
10163 #
10164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10166 # following values.
10167
10168 _ACEOF
10169
10170 # The following way of writing the cache mishandles newlines in values,
10171 # but we know of no workaround that is simple, portable, and efficient.
10172 # So, we kill variables containing newlines.
10173 # Ultrix sh set writes to stderr and can't be redirected directly,
10174 # and sets the high bit in the cache file unless we assign to the vars.
10175 (
10176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10177 eval ac_val=\$$ac_var
10178 case $ac_val in #(
10179 *${as_nl}*)
10180 case $ac_var in #(
10181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10183 esac
10184 case $ac_var in #(
10185 _ | IFS | as_nl) ;; #(
10186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10187 *) { eval $ac_var=; unset $ac_var;} ;;
10188 esac ;;
10189 esac
10190 done
10191
10192 (set) 2>&1 |
10193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10194 *${as_nl}ac_space=\ *)
10195 # `set' does not quote correctly, so add quotes: double-quote
10196 # substitution turns \\\\ into \\, and sed turns \\ into \.
10197 sed -n \
10198 "s/'/'\\\\''/g;
10199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10200 ;; #(
10201 *)
10202 # `set' quotes correctly as required by POSIX, so do not add quotes.
10203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10204 ;;
10205 esac |
10206 sort
10207 ) |
10208 sed '
10209 /^ac_cv_env_/b end
10210 t clear
10211 :clear
10212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10213 t end
10214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10215 :end' >>confcache
10216 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10217 if test -w "$cache_file"; then
10218 if test "x$cache_file" != "x/dev/null"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10220 $as_echo "$as_me: updating cache $cache_file" >&6;}
10221 if test ! -f "$cache_file" || test -h "$cache_file"; then
10222 cat confcache >"$cache_file"
10223 else
10224 case $cache_file in #(
10225 */* | ?:*)
10226 mv -f confcache "$cache_file"$$ &&
10227 mv -f "$cache_file"$$ "$cache_file" ;; #(
10228 *)
10229 mv -f confcache "$cache_file" ;;
10230 esac
10231 fi
10232 fi
10233 else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10235 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10236 fi
10237 fi
10238 rm -f confcache
10239
10240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10241 # Let make expand exec_prefix.
10242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10243
10244 DEFS=-DHAVE_CONFIG_H
10245
10246 ac_libobjs=
10247 ac_ltlibobjs=
10248 U=
10249 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10250 # 1. Remove the extension, and $U if already installed.
10251 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10252 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10253 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10254 # will be set to the directory where LIBOBJS objects are built.
10255 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10256 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10257 done
10258 LIBOBJS=$ac_libobjs
10259
10260 LTLIBOBJS=$ac_ltlibobjs
10261
10262
10263
10264 : "${CONFIG_STATUS=./config.status}"
10265 ac_write_fail=0
10266 ac_clean_files_save=$ac_clean_files
10267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10270 as_write_fail=0
10271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10272 #! $SHELL
10273 # Generated by $as_me.
10274 # Run this file to recreate the current configuration.
10275 # Compiler output produced by configure, useful for debugging
10276 # configure, is in config.log if it exists.
10277
10278 debug=false
10279 ac_cs_recheck=false
10280 ac_cs_silent=false
10281
10282 SHELL=\${CONFIG_SHELL-$SHELL}
10283 export SHELL
10284 _ASEOF
10285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10286 ## -------------------- ##
10287 ## M4sh Initialization. ##
10288 ## -------------------- ##
10289
10290 # Be more Bourne compatible
10291 DUALCASE=1; export DUALCASE # for MKS sh
10292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10293 emulate sh
10294 NULLCMD=:
10295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10296 # is contrary to our usage. Disable this feature.
10297 alias -g '${1+"$@"}'='"$@"'
10298 setopt NO_GLOB_SUBST
10299 else
10300 case `(set -o) 2>/dev/null` in #(
10301 *posix*) :
10302 set -o posix ;; #(
10303 *) :
10304 ;;
10305 esac
10306 fi
10307
10308
10309 as_nl='
10310 '
10311 export as_nl
10312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10316 # Prefer a ksh shell builtin over an external printf program on Solaris,
10317 # but without wasting forks for bash or zsh.
10318 if test -z "$BASH_VERSION$ZSH_VERSION" \
10319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10320 as_echo='print -r --'
10321 as_echo_n='print -rn --'
10322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10323 as_echo='printf %s\n'
10324 as_echo_n='printf %s'
10325 else
10326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10328 as_echo_n='/usr/ucb/echo -n'
10329 else
10330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10331 as_echo_n_body='eval
10332 arg=$1;
10333 case $arg in #(
10334 *"$as_nl"*)
10335 expr "X$arg" : "X\\(.*\\)$as_nl";
10336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10337 esac;
10338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10339 '
10340 export as_echo_n_body
10341 as_echo_n='sh -c $as_echo_n_body as_echo'
10342 fi
10343 export as_echo_body
10344 as_echo='sh -c $as_echo_body as_echo'
10345 fi
10346
10347 # The user is always right.
10348 if test "${PATH_SEPARATOR+set}" != set; then
10349 PATH_SEPARATOR=:
10350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10352 PATH_SEPARATOR=';'
10353 }
10354 fi
10355
10356
10357 # IFS
10358 # We need space, tab and new line, in precisely that order. Quoting is
10359 # there to prevent editors from complaining about space-tab.
10360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10361 # splitting by setting IFS to empty value.)
10362 IFS=" "" $as_nl"
10363
10364 # Find who we are. Look in the path if we contain no directory separator.
10365 as_myself=
10366 case $0 in #((
10367 *[\\/]* ) as_myself=$0 ;;
10368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10374 done
10375 IFS=$as_save_IFS
10376
10377 ;;
10378 esac
10379 # We did not find ourselves, most probably we were run as `sh COMMAND'
10380 # in which case we are not to be found in the path.
10381 if test "x$as_myself" = x; then
10382 as_myself=$0
10383 fi
10384 if test ! -f "$as_myself"; then
10385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10386 exit 1
10387 fi
10388
10389 # Unset variables that we do not need and which cause bugs (e.g. in
10390 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10391 # suppresses any "Segmentation fault" message there. '((' could
10392 # trigger a bug in pdksh 5.2.14.
10393 for as_var in BASH_ENV ENV MAIL MAILPATH
10394 do eval test x\${$as_var+set} = xset \
10395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10396 done
10397 PS1='$ '
10398 PS2='> '
10399 PS4='+ '
10400
10401 # NLS nuisances.
10402 LC_ALL=C
10403 export LC_ALL
10404 LANGUAGE=C
10405 export LANGUAGE
10406
10407 # CDPATH.
10408 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10409
10410
10411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10412 # ----------------------------------------
10413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10415 # script with STATUS, using 1 if that was 0.
10416 as_fn_error ()
10417 {
10418 as_status=$1; test $as_status -eq 0 && as_status=1
10419 if test "$4"; then
10420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10422 fi
10423 $as_echo "$as_me: error: $2" >&2
10424 as_fn_exit $as_status
10425 } # as_fn_error
10426
10427
10428 # as_fn_set_status STATUS
10429 # -----------------------
10430 # Set $? to STATUS, without forking.
10431 as_fn_set_status ()
10432 {
10433 return $1
10434 } # as_fn_set_status
10435
10436 # as_fn_exit STATUS
10437 # -----------------
10438 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10439 as_fn_exit ()
10440 {
10441 set +e
10442 as_fn_set_status $1
10443 exit $1
10444 } # as_fn_exit
10445
10446 # as_fn_unset VAR
10447 # ---------------
10448 # Portably unset VAR.
10449 as_fn_unset ()
10450 {
10451 { eval $1=; unset $1;}
10452 }
10453 as_unset=as_fn_unset
10454 # as_fn_append VAR VALUE
10455 # ----------------------
10456 # Append the text in VALUE to the end of the definition contained in VAR. Take
10457 # advantage of any shell optimizations that allow amortized linear growth over
10458 # repeated appends, instead of the typical quadratic growth present in naive
10459 # implementations.
10460 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10461 eval 'as_fn_append ()
10462 {
10463 eval $1+=\$2
10464 }'
10465 else
10466 as_fn_append ()
10467 {
10468 eval $1=\$$1\$2
10469 }
10470 fi # as_fn_append
10471
10472 # as_fn_arith ARG...
10473 # ------------------
10474 # Perform arithmetic evaluation on the ARGs, and store the result in the
10475 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10476 # must be portable across $(()) and expr.
10477 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10478 eval 'as_fn_arith ()
10479 {
10480 as_val=$(( $* ))
10481 }'
10482 else
10483 as_fn_arith ()
10484 {
10485 as_val=`expr "$@" || test $? -eq 1`
10486 }
10487 fi # as_fn_arith
10488
10489
10490 if expr a : '\(a\)' >/dev/null 2>&1 &&
10491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10492 as_expr=expr
10493 else
10494 as_expr=false
10495 fi
10496
10497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10498 as_basename=basename
10499 else
10500 as_basename=false
10501 fi
10502
10503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10504 as_dirname=dirname
10505 else
10506 as_dirname=false
10507 fi
10508
10509 as_me=`$as_basename -- "$0" ||
10510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10511 X"$0" : 'X\(//\)$' \| \
10512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10513 $as_echo X/"$0" |
10514 sed '/^.*\/\([^/][^/]*\)\/*$/{
10515 s//\1/
10516 q
10517 }
10518 /^X\/\(\/\/\)$/{
10519 s//\1/
10520 q
10521 }
10522 /^X\/\(\/\).*/{
10523 s//\1/
10524 q
10525 }
10526 s/.*/./; q'`
10527
10528 # Avoid depending upon Character Ranges.
10529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10532 as_cr_digits='0123456789'
10533 as_cr_alnum=$as_cr_Letters$as_cr_digits
10534
10535 ECHO_C= ECHO_N= ECHO_T=
10536 case `echo -n x` in #(((((
10537 -n*)
10538 case `echo 'xy\c'` in
10539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10540 xy) ECHO_C='\c';;
10541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10542 ECHO_T=' ';;
10543 esac;;
10544 *)
10545 ECHO_N='-n';;
10546 esac
10547
10548 rm -f conf$$ conf$$.exe conf$$.file
10549 if test -d conf$$.dir; then
10550 rm -f conf$$.dir/conf$$.file
10551 else
10552 rm -f conf$$.dir
10553 mkdir conf$$.dir 2>/dev/null
10554 fi
10555 if (echo >conf$$.file) 2>/dev/null; then
10556 if ln -s conf$$.file conf$$ 2>/dev/null; then
10557 as_ln_s='ln -s'
10558 # ... but there are two gotchas:
10559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10561 # In both cases, we have to default to `cp -pR'.
10562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10563 as_ln_s='cp -pR'
10564 elif ln conf$$.file conf$$ 2>/dev/null; then
10565 as_ln_s=ln
10566 else
10567 as_ln_s='cp -pR'
10568 fi
10569 else
10570 as_ln_s='cp -pR'
10571 fi
10572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10573 rmdir conf$$.dir 2>/dev/null
10574
10575
10576 # as_fn_mkdir_p
10577 # -------------
10578 # Create "$as_dir" as a directory, including parents if necessary.
10579 as_fn_mkdir_p ()
10580 {
10581
10582 case $as_dir in #(
10583 -*) as_dir=./$as_dir;;
10584 esac
10585 test -d "$as_dir" || eval $as_mkdir_p || {
10586 as_dirs=
10587 while :; do
10588 case $as_dir in #(
10589 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10590 *) as_qdir=$as_dir;;
10591 esac
10592 as_dirs="'$as_qdir' $as_dirs"
10593 as_dir=`$as_dirname -- "$as_dir" ||
10594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10595 X"$as_dir" : 'X\(//\)[^/]' \| \
10596 X"$as_dir" : 'X\(//\)$' \| \
10597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10598 $as_echo X"$as_dir" |
10599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10600 s//\1/
10601 q
10602 }
10603 /^X\(\/\/\)[^/].*/{
10604 s//\1/
10605 q
10606 }
10607 /^X\(\/\/\)$/{
10608 s//\1/
10609 q
10610 }
10611 /^X\(\/\).*/{
10612 s//\1/
10613 q
10614 }
10615 s/.*/./; q'`
10616 test -d "$as_dir" && break
10617 done
10618 test -z "$as_dirs" || eval "mkdir $as_dirs"
10619 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10620
10621
10622 } # as_fn_mkdir_p
10623 if mkdir -p . 2>/dev/null; then
10624 as_mkdir_p='mkdir -p "$as_dir"'
10625 else
10626 test -d ./-p && rmdir ./-p
10627 as_mkdir_p=false
10628 fi
10629
10630
10631 # as_fn_executable_p FILE
10632 # -----------------------
10633 # Test if FILE is an executable regular file.
10634 as_fn_executable_p ()
10635 {
10636 test -f "$1" && test -x "$1"
10637 } # as_fn_executable_p
10638 as_test_x='test -x'
10639 as_executable_p=as_fn_executable_p
10640
10641 # Sed expression to map a string onto a valid CPP name.
10642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10643
10644 # Sed expression to map a string onto a valid variable name.
10645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10646
10647
10648 exec 6>&1
10649 ## ----------------------------------- ##
10650 ## Main body of $CONFIG_STATUS script. ##
10651 ## ----------------------------------- ##
10652 _ASEOF
10653 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10654
10655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10656 # Save the log message, to keep $0 and so on meaningful, and to
10657 # report actual input values of CONFIG_FILES etc. instead of their
10658 # values after options handling.
10659 ac_log="
10660 This file was extended by Regina Rexx Interpreter $as_me 3.9.5, which was
10661 generated by GNU Autoconf 2.69. Invocation command line was
10662
10663 CONFIG_FILES = $CONFIG_FILES
10664 CONFIG_HEADERS = $CONFIG_HEADERS
10665 CONFIG_LINKS = $CONFIG_LINKS
10666 CONFIG_COMMANDS = $CONFIG_COMMANDS
10667 $ $0 $@
10668
10669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10670 "
10671
10672 _ACEOF
10673
10674 case $ac_config_files in *"
10675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10676 esac
10677
10678 case $ac_config_headers in *"
10679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10680 esac
10681
10682
10683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10684 # Files that config.status was made for.
10685 config_files="$ac_config_files"
10686 config_headers="$ac_config_headers"
10687
10688 _ACEOF
10689
10690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10691 ac_cs_usage="\
10692 \`$as_me' instantiates files and other configuration actions
10693 from templates according to the current configuration. Unless the files
10694 and actions are specified as TAGs, all are instantiated by default.
10695
10696 Usage: $0 [OPTION]... [TAG]...
10697
10698 -h, --help print this help, then exit
10699 -V, --version print version number and configuration settings, then exit
10700 --config print configuration, then exit
10701 -q, --quiet, --silent
10702 do not print progress messages
10703 -d, --debug don't remove temporary files
10704 --recheck update $as_me by reconfiguring in the same conditions
10705 --file=FILE[:TEMPLATE]
10706 instantiate the configuration file FILE
10707 --header=FILE[:TEMPLATE]
10708 instantiate the configuration header FILE
10709
10710 Configuration files:
10711 $config_files
10712
10713 Configuration headers:
10714 $config_headers
10715
10716 Report bugs to <[email protected]>."
10717
10718 _ACEOF
10719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10720 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10721 ac_cs_version="\\
10722 Regina Rexx Interpreter config.status 3.9.5
10723 configured by $0, generated by GNU Autoconf 2.69,
10724 with options \\"\$ac_cs_config\\"
10725
10726 Copyright (C) 2012 Free Software Foundation, Inc.
10727 This config.status script is free software; the Free Software Foundation
10728 gives unlimited permission to copy, distribute and modify it."
10729
10730 ac_pwd='$ac_pwd'
10731 srcdir='$srcdir'
10732 test -n "\$AWK" || AWK=awk
10733 _ACEOF
10734
10735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10736 # The default lists apply if the user does not specify any file.
10737 ac_need_defaults=:
10738 while test $# != 0
10739 do
10740 case $1 in
10741 --*=?*)
10742 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10744 ac_shift=:
10745 ;;
10746 --*=)
10747 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10748 ac_optarg=
10749 ac_shift=:
10750 ;;
10751 *)
10752 ac_option=$1
10753 ac_optarg=$2
10754 ac_shift=shift
10755 ;;
10756 esac
10757
10758 case $ac_option in
10759 # Handling of the options.
10760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10761 ac_cs_recheck=: ;;
10762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10763 $as_echo "$ac_cs_version"; exit ;;
10764 --config | --confi | --conf | --con | --co | --c )
10765 $as_echo "$ac_cs_config"; exit ;;
10766 --debug | --debu | --deb | --de | --d | -d )
10767 debug=: ;;
10768 --file | --fil | --fi | --f )
10769 $ac_shift
10770 case $ac_optarg in
10771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10772 '') as_fn_error $? "missing file argument" ;;
10773 esac
10774 as_fn_append CONFIG_FILES " '$ac_optarg'"
10775 ac_need_defaults=false;;
10776 --header | --heade | --head | --hea )
10777 $ac_shift
10778 case $ac_optarg in
10779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10780 esac
10781 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10782 ac_need_defaults=false;;
10783 --he | --h)
10784 # Conflict between --help and --header
10785 as_fn_error $? "ambiguous option: \`$1'
10786 Try \`$0 --help' for more information.";;
10787 --help | --hel | -h )
10788 $as_echo "$ac_cs_usage"; exit ;;
10789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10791 ac_cs_silent=: ;;
10792
10793 # This is an error.
10794 -*) as_fn_error $? "unrecognized option: \`$1'
10795 Try \`$0 --help' for more information." ;;
10796
10797 *) as_fn_append ac_config_targets " $1"
10798 ac_need_defaults=false ;;
10799
10800 esac
10801 shift
10802 done
10803
10804 ac_configure_extra_args=
10805
10806 if $ac_cs_silent; then
10807 exec 6>/dev/null
10808 ac_configure_extra_args="$ac_configure_extra_args --silent"
10809 fi
10810
10811 _ACEOF
10812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10813 if \$ac_cs_recheck; then
10814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10815 shift
10816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10817 CONFIG_SHELL='$SHELL'
10818 export CONFIG_SHELL
10819 exec "\$@"
10820 fi
10821
10822 _ACEOF
10823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10824 exec 5>>config.log
10825 {
10826 echo
10827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10828 ## Running $as_me. ##
10829 _ASBOX
10830 $as_echo "$ac_log"
10831 } >&5
10832
10833 _ACEOF
10834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10835 _ACEOF
10836
10837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10838
10839 # Handling of arguments.
10840 for ac_config_target in $ac_config_targets
10841 do
10842 case $ac_config_target in
10843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10844 "$mymakefile") CONFIG_FILES="$CONFIG_FILES $mymakefile" ;;
10845 "regina-config") CONFIG_FILES="$CONFIG_FILES regina-config" ;;
10846 "rxstack.init.d") CONFIG_FILES="$CONFIG_FILES rxstack.init.d" ;;
10847 "libregina.pc") CONFIG_FILES="$CONFIG_FILES libregina.pc" ;;
10848 "APKBUILD") CONFIG_FILES="$CONFIG_FILES APKBUILD" ;;
10849 "PackageInfo") CONFIG_FILES="$CONFIG_FILES PackageInfo" ;;
10850 "PackageInfo-devel") CONFIG_FILES="$CONFIG_FILES PackageInfo-devel" ;;
10851 "PackageInfo-lib") CONFIG_FILES="$CONFIG_FILES PackageInfo-lib" ;;
10852 "Regina.spec") CONFIG_FILES="$CONFIG_FILES Regina.spec" ;;
10853 "debian/rules") CONFIG_FILES="$CONFIG_FILES debian/rules" ;;
10854
10855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10856 esac
10857 done
10858
10859
10860 # If the user did not use the arguments to specify the items to instantiate,
10861 # then the envvar interface is used. Set only those that are not.
10862 # We use the long form for the default assignment because of an extremely
10863 # bizarre bug on SunOS 4.1.3.
10864 if $ac_need_defaults; then
10865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10867 fi
10868
10869 # Have a temporary directory for convenience. Make it in the build tree
10870 # simply because there is no reason against having it here, and in addition,
10871 # creating and moving files from /tmp can sometimes cause problems.
10872 # Hook for its removal unless debugging.
10873 # Note that there is a small window in which the directory will not be cleaned:
10874 # after its creation but before its name has been assigned to `$tmp'.
10875 $debug ||
10876 {
10877 tmp= ac_tmp=
10878 trap 'exit_status=$?
10879 : "${ac_tmp:=$tmp}"
10880 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10881 ' 0
10882 trap 'as_fn_exit 1' 1 2 13 15
10883 }
10884 # Create a (secure) tmp directory for tmp files.
10885
10886 {
10887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10888 test -d "$tmp"
10889 } ||
10890 {
10891 tmp=./conf$$-$RANDOM
10892 (umask 077 && mkdir "$tmp")
10893 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10894 ac_tmp=$tmp
10895
10896 # Set up the scripts for CONFIG_FILES section.
10897 # No need to generate them if there are no CONFIG_FILES.
10898 # This happens for instance with `./config.status config.h'.
10899 if test -n "$CONFIG_FILES"; then
10900
10901
10902 ac_cr=`echo X | tr X '\015'`
10903 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10904 # But we know of no other shell where ac_cr would be empty at this
10905 # point, so we can use a bashism as a fallback.
10906 if test "x$ac_cr" = x; then
10907 eval ac_cr=\$\'\\r\'
10908 fi
10909 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10910 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10911 ac_cs_awk_cr='\\r'
10912 else
10913 ac_cs_awk_cr=$ac_cr
10914 fi
10915
10916 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10917 _ACEOF
10918
10919
10920 {
10921 echo "cat >conf$$subs.awk <<_ACEOF" &&
10922 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10923 echo "_ACEOF"
10924 } >conf$$subs.sh ||
10925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10927 ac_delim='%!_!# '
10928 for ac_last_try in false false false false false :; do
10929 . ./conf$$subs.sh ||
10930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10931
10932 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10933 if test $ac_delim_n = $ac_delim_num; then
10934 break
10935 elif $ac_last_try; then
10936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10937 else
10938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10939 fi
10940 done
10941 rm -f conf$$subs.sh
10942
10943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10944 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10945 _ACEOF
10946 sed -n '
10947 h
10948 s/^/S["/; s/!.*/"]=/
10949 p
10950 g
10951 s/^[^!]*!//
10952 :repl
10953 t repl
10954 s/'"$ac_delim"'$//
10955 t delim
10956 :nl
10957 h
10958 s/\(.\{148\}\)..*/\1/
10959 t more1
10960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10961 p
10962 n
10963 b repl
10964 :more1
10965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10966 p
10967 g
10968 s/.\{148\}//
10969 t nl
10970 :delim
10971 h
10972 s/\(.\{148\}\)..*/\1/
10973 t more2
10974 s/["\\]/\\&/g; s/^/"/; s/$/"/
10975 p
10976 b
10977 :more2
10978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10979 p
10980 g
10981 s/.\{148\}//
10982 t delim
10983 ' <conf$$subs.awk | sed '
10984 /^[^""]/{
10985 N
10986 s/\n//
10987 }
10988 ' >>$CONFIG_STATUS || ac_write_fail=1
10989 rm -f conf$$subs.awk
10990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10991 _ACAWK
10992 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10993 for (key in S) S_is_set[key] = 1
10994 FS = ""
10995
10996 }
10997 {
10998 line = $ 0
10999 nfields = split(line, field, "@")
11000 substed = 0
11001 len = length(field[1])
11002 for (i = 2; i < nfields; i++) {
11003 key = field[i]
11004 keylen = length(key)
11005 if (S_is_set[key]) {
11006 value = S[key]
11007 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11008 len += length(value) + length(field[++i])
11009 substed = 1
11010 } else
11011 len += 1 + keylen
11012 }
11013
11014 print line
11015 }
11016
11017 _ACAWK
11018 _ACEOF
11019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11021 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11022 else
11023 cat
11024 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11025 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11026 _ACEOF
11027
11028 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11029 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11030 # trailing colons and then remove the whole line if VPATH becomes empty
11031 # (actually we leave an empty line to preserve line numbers).
11032 if test "x$srcdir" = x.; then
11033 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11034 h
11035 s///
11036 s/^/:/
11037 s/[ ]*$/:/
11038 s/:\$(srcdir):/:/g
11039 s/:\${srcdir}:/:/g
11040 s/:@srcdir@:/:/g
11041 s/^:*//
11042 s/:*$//
11043 x
11044 s/\(=[ ]*\).*/\1/
11045 G
11046 s/\n//
11047 s/^[^=]*=[ ]*$//
11048 }'
11049 fi
11050
11051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11052 fi # test -n "$CONFIG_FILES"
11053
11054 # Set up the scripts for CONFIG_HEADERS section.
11055 # No need to generate them if there are no CONFIG_HEADERS.
11056 # This happens for instance with `./config.status Makefile'.
11057 if test -n "$CONFIG_HEADERS"; then
11058 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11059 BEGIN {
11060 _ACEOF
11061
11062 # Transform confdefs.h into an awk script `defines.awk', embedded as
11063 # here-document in config.status, that substitutes the proper values into
11064 # config.h.in to produce config.h.
11065
11066 # Create a delimiter string that does not exist in confdefs.h, to ease
11067 # handling of long lines.
11068 ac_delim='%!_!# '
11069 for ac_last_try in false false :; do
11070 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11071 if test -z "$ac_tt"; then
11072 break
11073 elif $ac_last_try; then
11074 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11075 else
11076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11077 fi
11078 done
11079
11080 # For the awk script, D is an array of macro values keyed by name,
11081 # likewise P contains macro parameters if any. Preserve backslash
11082 # newline sequences.
11083
11084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11085 sed -n '
11086 s/.\{148\}/&'"$ac_delim"'/g
11087 t rset
11088 :rset
11089 s/^[ ]*#[ ]*define[ ][ ]*/ /
11090 t def
11091 d
11092 :def
11093 s/\\$//
11094 t bsnl
11095 s/["\\]/\\&/g
11096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11097 D["\1"]=" \3"/p
11098 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11099 d
11100 :bsnl
11101 s/["\\]/\\&/g
11102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11103 D["\1"]=" \3\\\\\\n"\\/p
11104 t cont
11105 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11106 t cont
11107 d
11108 :cont
11109 n
11110 s/.\{148\}/&'"$ac_delim"'/g
11111 t clear
11112 :clear
11113 s/\\$//
11114 t bsnlc
11115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11116 d
11117 :bsnlc
11118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11119 b cont
11120 ' <confdefs.h | sed '
11121 s/'"$ac_delim"'/"\\\
11122 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11123
11124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11125 for (key in D) D_is_set[key] = 1
11126 FS = ""
11127 }
11128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11129 line = \$ 0
11130 split(line, arg, " ")
11131 if (arg[1] == "#") {
11132 defundef = arg[2]
11133 mac1 = arg[3]
11134 } else {
11135 defundef = substr(arg[1], 2)
11136 mac1 = arg[2]
11137 }
11138 split(mac1, mac2, "(") #)
11139 macro = mac2[1]
11140 prefix = substr(line, 1, index(line, defundef) - 1)
11141 if (D_is_set[macro]) {
11142 # Preserve the white space surrounding the "#".
11143 print prefix "define", macro P[macro] D[macro]
11144 next
11145 } else {
11146 # Replace #undef with comments. This is necessary, for example,
11147 # in the case of _POSIX_SOURCE, which is predefined and required
11148 # on some systems where configure will not decide to define it.
11149 if (defundef == "undef") {
11150 print "/*", prefix defundef, macro, "*/"
11151 next
11152 }
11153 }
11154 }
11155 { print }
11156 _ACAWK
11157 _ACEOF
11158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11159 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11160 fi # test -n "$CONFIG_HEADERS"
11161
11162
11163 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11164 shift
11165 for ac_tag
11166 do
11167 case $ac_tag in
11168 :[FHLC]) ac_mode=$ac_tag; continue;;
11169 esac
11170 case $ac_mode$ac_tag in
11171 :[FHL]*:*);;
11172 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11173 :[FH]-) ac_tag=-:-;;
11174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11175 esac
11176 ac_save_IFS=$IFS
11177 IFS=:
11178 set x $ac_tag
11179 IFS=$ac_save_IFS
11180 shift
11181 ac_file=$1
11182 shift
11183
11184 case $ac_mode in
11185 :L) ac_source=$1;;
11186 :[FH])
11187 ac_file_inputs=
11188 for ac_f
11189 do
11190 case $ac_f in
11191 -) ac_f="$ac_tmp/stdin";;
11192 *) # Look for the file first in the build tree, then in the source tree
11193 # (if the path is not absolute). The absolute path cannot be DOS-style,
11194 # because $ac_f cannot contain `:'.
11195 test -f "$ac_f" ||
11196 case $ac_f in
11197 [\\/$]*) false;;
11198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11199 esac ||
11200 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11201 esac
11202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11203 as_fn_append ac_file_inputs " '$ac_f'"
11204 done
11205
11206 # Let's still pretend it is `configure' which instantiates (i.e., don't
11207 # use $as_me), people would be surprised to read:
11208 # /* config.h. Generated by config.status. */
11209 configure_input='Generated from '`
11210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11211 `' by configure.'
11212 if test x"$ac_file" != x-; then
11213 configure_input="$ac_file. $configure_input"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11215 $as_echo "$as_me: creating $ac_file" >&6;}
11216 fi
11217 # Neutralize special characters interpreted by sed in replacement strings.
11218 case $configure_input in #(
11219 *\&* | *\|* | *\\* )
11220 ac_sed_conf_input=`$as_echo "$configure_input" |
11221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11222 *) ac_sed_conf_input=$configure_input;;
11223 esac
11224
11225 case $ac_tag in
11226 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11228 esac
11229 ;;
11230 esac
11231
11232 ac_dir=`$as_dirname -- "$ac_file" ||
11233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11234 X"$ac_file" : 'X\(//\)[^/]' \| \
11235 X"$ac_file" : 'X\(//\)$' \| \
11236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11237 $as_echo X"$ac_file" |
11238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11239 s//\1/
11240 q
11241 }
11242 /^X\(\/\/\)[^/].*/{
11243 s//\1/
11244 q
11245 }
11246 /^X\(\/\/\)$/{
11247 s//\1/
11248 q
11249 }
11250 /^X\(\/\).*/{
11251 s//\1/
11252 q
11253 }
11254 s/.*/./; q'`
11255 as_dir="$ac_dir"; as_fn_mkdir_p
11256 ac_builddir=.
11257
11258 case "$ac_dir" in
11259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11260 *)
11261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11262 # A ".." for each directory in $ac_dir_suffix.
11263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11264 case $ac_top_builddir_sub in
11265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11267 esac ;;
11268 esac
11269 ac_abs_top_builddir=$ac_pwd
11270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11271 # for backward compatibility:
11272 ac_top_builddir=$ac_top_build_prefix
11273
11274 case $srcdir in
11275 .) # We are building in place.
11276 ac_srcdir=.
11277 ac_top_srcdir=$ac_top_builddir_sub
11278 ac_abs_top_srcdir=$ac_pwd ;;
11279 [\\/]* | ?:[\\/]* ) # Absolute name.
11280 ac_srcdir=$srcdir$ac_dir_suffix;
11281 ac_top_srcdir=$srcdir
11282 ac_abs_top_srcdir=$srcdir ;;
11283 *) # Relative name.
11284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11285 ac_top_srcdir=$ac_top_build_prefix$srcdir
11286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11287 esac
11288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11289
11290
11291 case $ac_mode in
11292 :F)
11293 #
11294 # CONFIG_FILE
11295 #
11296
11297 _ACEOF
11298
11299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11300 # If the template does not know about datarootdir, expand it.
11301 # FIXME: This hack should be removed a few years after 2.60.
11302 ac_datarootdir_hack=; ac_datarootdir_seen=
11303 ac_sed_dataroot='
11304 /datarootdir/ {
11305 p
11306 q
11307 }
11308 /@datadir@/p
11309 /@docdir@/p
11310 /@infodir@/p
11311 /@localedir@/p
11312 /@mandir@/p'
11313 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11314 *datarootdir*) ac_datarootdir_seen=yes;;
11315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11317 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11318 _ACEOF
11319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11320 ac_datarootdir_hack='
11321 s&@datadir@&$datadir&g
11322 s&@docdir@&$docdir&g
11323 s&@infodir@&$infodir&g
11324 s&@localedir@&$localedir&g
11325 s&@mandir@&$mandir&g
11326 s&\\\${datarootdir}&$datarootdir&g' ;;
11327 esac
11328 _ACEOF
11329
11330 # Neutralize VPATH when `$srcdir' = `.'.
11331 # Shell code in configure.ac might set extrasub.
11332 # FIXME: do we really want to maintain this feature?
11333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11334 ac_sed_extra="$ac_vpsub
11335 $extrasub
11336 _ACEOF
11337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11338 :t
11339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11340 s|@configure_input@|$ac_sed_conf_input|;t t
11341 s&@top_builddir@&$ac_top_builddir_sub&;t t
11342 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11343 s&@srcdir@&$ac_srcdir&;t t
11344 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11345 s&@top_srcdir@&$ac_top_srcdir&;t t
11346 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11347 s&@builddir@&$ac_builddir&;t t
11348 s&@abs_builddir@&$ac_abs_builddir&;t t
11349 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11350 $ac_datarootdir_hack
11351 "
11352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11354
11355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11360 which seems to be undefined. Please make sure it is defined" >&5
11361 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11362 which seems to be undefined. Please make sure it is defined" >&2;}
11363
11364 rm -f "$ac_tmp/stdin"
11365 case $ac_file in
11366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11368 esac \
11369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11370 ;;
11371 :H)
11372 #
11373 # CONFIG_HEADER
11374 #
11375 if test x"$ac_file" != x-; then
11376 {
11377 $as_echo "/* $configure_input */" \
11378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11379 } >"$ac_tmp/config.h" \
11380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11384 else
11385 rm -f "$ac_file"
11386 mv "$ac_tmp/config.h" "$ac_file" \
11387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11388 fi
11389 else
11390 $as_echo "/* $configure_input */" \
11391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11392 || as_fn_error $? "could not create -" "$LINENO" 5
11393 fi
11394 ;;
11395
11396
11397 esac
11398
11399 done # for ac_tag
11400
11401
11402 as_fn_exit 0
11403 _ACEOF
11404 ac_clean_files=$ac_clean_files_save
11405
11406 test $ac_write_fail = 0 ||
11407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11408
11409
11410 # configure is writing to config.log, and then calls config.status.
11411 # config.status does its own redirection, appending to config.log.
11412 # Unfortunately, on DOS this fails, as config.log is still kept open
11413 # by configure, so config.status won't be able to write to it; its
11414 # output is simply discarded. So we exec the FD to /dev/null,
11415 # effectively closing config.log, so it can be properly (re)opened and
11416 # appended to by config.status. When coming back to configure, we
11417 # need to make the FD available again.
11418 if test "$no_create" != yes; then
11419 ac_cs_success=:
11420 ac_config_status_args=
11421 test "$silent" = yes &&
11422 ac_config_status_args="$ac_config_status_args --quiet"
11423 exec 5>/dev/null
11424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11425 exec 5>>config.log
11426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11427 # would make configure fail if this is the last instruction.
11428 $ac_cs_success || as_fn_exit 1
11429 fi
11430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11433 fi
11434
11435 chmod 755 regina-config
11436 echo
11437 echo "Regina ($FULL_PACKAGE_NAME) has now been configured with the following options:"
11438 echo
11439 if test "x$SHL_TARGETS" = "x"; then
11440 echo " Dynamic Loading Support: none"
11441 else
11442 echo " Dynamic Loading Support: supported. Extra components: $SHL_TARGETS"
11443 fi
11444 if test "$with_dlfcnincdir" != no ; then
11445 echo " dlfcn headers in: $with_dlfcnincdir"
11446 fi
11447 if test "$with_dlfcnlibdir" != no ; then
11448 echo " dlfcn libraries in: $with_dlfcnlibdir"
11449 fi
11450
11451 myopts="${bitflag}BIT"
11452 if test "$with_debug" = yes ; then
11453 myopts="$myopts DEBUG"
11454 fi
11455 if test "$with_purify" = yes ; then
11456 myopts="$myopts PURIFY"
11457 fi
11458 if test "$with_efence" = yes; then
11459 myopts="$myopts EFENCE"
11460 fi
11461 if test "$with_orexx_bc" = yes; then
11462 myopts="$myopts OREXX_BINARY"
11463 fi
11464 if test "$with_gci" = yes; then
11465 myopts="$myopts GCI"
11466 fi
11467 if test "$with_flists" = no; then
11468 myopts="$myopts NO_FLISTS"
11469 fi
11470 if test "$with_socket" = no; then
11471 myopts="$myopts"
11472 else
11473 myopts="$myopts SOCKET=$with_socket"
11474 fi
11475
11476 if test "$build_static" = "yes"; then
11477 myfuncs=""
11478 if test "$with_testpackage" = "yes"; then
11479 myfuncs="$myfuncs test"
11480 fi
11481 if test "$with_regutil" = "yes"; then
11482 myfuncs="$myfuncs regutil"
11483 fi
11484 if test "$with_rexxcurses" = "yes"; then
11485 myfuncs="$myfuncs rexxcurses"
11486 fi
11487 if test "$with_rexxtk" = "yes"; then
11488 myfuncs="$myfuncs rexxtk"
11489 fi
11490 if test "$with_rexxgd" = "yes"; then
11491 myfuncs="$myfuncs rexxgd"
11492 fi
11493 if test "$with_rexxcurl" = "yes"; then
11494 myfuncs="$myfuncs rexxcurl"
11495 fi
11496 if test "$with_rexxsql" = "yes"; then
11497 myfuncs="$myfuncs rexxsql"
11498 fi
11499 if test "$with_rexxeec" = "yes"; then
11500 myfuncs="$myfuncs rexxeec"
11501 fi
11502 if test "$with_rexxisam" = "yes"; then
11503 myfuncs="$myfuncs rexxisam"
11504 fi
11505 if test "$with_rxsock" = "yes"; then
11506 myfuncs="$myfuncs rxsock"
11507 fi
11508 if test "$with_rexxdw" = "yes"; then
11509 myfuncs="$myfuncs rexxdw"
11510 fi
11511 if test "$with_rexxcsv" = "yes"; then
11512 myfuncs="$myfuncs rexxcsv"
11513 fi
11514 if test "$with_rexxpdf" = "yes"; then
11515 myfuncs="$myfuncs rexxpdf"
11516 fi
11517 if test "$with_rexxws" = "yes"; then
11518 myfuncs="$myfuncs rexxws"
11519 fi
11520 echo " Static Loaded Packages: $myfuncs"
11521 fi
11522
11523 if test "$on_beos" = yes; then
11524 bindir="/boot/home/config/bin"
11525 libdir="/boot/home/config/lib"
11526 fi
11527
11528 if test "$on_haiku" = yes; then
11529 bindir="/boot/home/config/non-packaged/bin"
11530 libdir="/boot/home/config/non-packaged/lib"
11531 addonsdir="/boot/home/config/non-packaged/lib/regina-rexx/addons"
11532 fi
11533
11534 echo " Build options: $myopts"
11535 echo " binaries will be installed in: $bindir"
11536 if test "x$binarybitprefix" = "x32"; then
11537 echo " binaries will have '32' appended to them. eg rexx32, regina32"
11538 fi
11539 echo " libraries will be installed in: $libdir"
11540 echo " addons will be installed in: $addonsdir"
11541 echo " {prefix}: $prefix"
11542 echo " {exec_prefix}: $exec_prefix"
11543 if test "x$rpmtopdir" != "x" ; then
11544 echo " RPM topdir: $rpmtopdir"
11545 fi
11546 if test "x$debtopdir" != "x" ; then
11547 echo " DEB topdir: $debtopdir"
11548 fi
11549 if test "x$apktopdir" != "x" ; then
11550 echo " APK topdir: $apktopdir"
11551 fi
11552 echo
11553 echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'"
11554 echo "To install Regina in the above directories, type 'make install'"
11555 echo