blob: 6406776b4de3e50c7e2e09d463724d0cbf3cbb07 [file] [log] [blame]
Haibo Huang80b42512019-10-08 15:48:26 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for swig 4.0.1.
4#
5# Report bugs to <http://www.swig.org>.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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 bug-autoconf@gnu.org and
270$0: http://www.swig.org about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='swig'
582PACKAGE_TARNAME='swig'
583PACKAGE_VERSION='4.0.1'
584PACKAGE_STRING='swig 4.0.1'
585PACKAGE_BUGREPORT='http://www.swig.org'
586PACKAGE_URL=''
587
588ac_unique_file="Source/Swig/swig.h"
589enable_option_checking=no
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604# include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609# include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630SWIG_LIB_SET
631SWIG_LIB_PREINST
632SWIG_LIB
633SWIG_LIB_INSTALL
634ac_aux_dir
635EXTRA_CLEAN
636ROOT_DIR
637SKIP_ANDROID
638SKIP_D
639SKIP_GO
640SKIP_SCILAB
641SKIP_R
642SKIP_LUA
643SKIP_CSHARP
644SKIP_OCAML
645SKIP_PHP
646SKIP_RUBY
647SKIP_MZSCHEME
648SKIP_GUILE
649SKIP_JAVASCRIPT
650SKIP_JAVA
651SKIP_PYTHON3
652SKIP_PYTHON
653SKIP_OCTAVE
654SKIP_PERL5
655SKIP_TCL
656DLIBPREFIX
657DDEFAULTVERSION
658D2COMPILER
659D1COMPILER
660GOVERSIONOPTION
661GCCGOOPT
662GOOPT
663GO15
664GO13
665GO12
666GO1
667GOC
668GOGCC
669GCCGO
670GO
671RBIN
672LUALINK
673LUAFLAGS
674LUADYNAMICLINKING
675LUABIN
676CSHARPSO
677CSHARPCFLAGS
678CSHARPLIBRARYPREFIX
679CSHARPDYNAMICLINKING
680CSHARPCONVERTPATH
681CSHARPCILINTERPRETER_FLAGS
682CSHARPCILINTERPRETER
683CSHARPCOMPILER
684OCAMLMKTOP
685OCAMLFIND
686OCAMLDLGEN
687CAMLP4
688OCAMLC
689PHPINC
690PHP
691RUBYDYNAMICLINKING
692RUBYSO
693RUBYCCDLFLAGS
694RUBYLINK
695RUBYLIB
696RUBYINCLUDE
697RUBY
698MZDYNOBJ
699MZC
700MZSCHEME
701GUILE_LIBS
702GUILE_CFLAGS
703GUILE
704GUILE_CONFIG
705NDKBUILD
706ANT
707ADB
708ANDROID
709JSV8ENABLED
710JSCENABLED
711JSV8DYNAMICLINKING
712JSV8INC
713JSCOREVERSION
714JSCOREDYNAMICLINKING
715JSCOREINC
716JSINTERPRETERLINKFLAGS
717JSINTERPRETERCXX
718NODEGYP
719NODEJS
720JAVACFLAGS
721JAVAFLAGS
722JAVACXXSHARED
723JAVALDSHARED
724JAVASO
725JAVALIBRARYPREFIX
726JAVADYNAMICLINKING
727JAVA_TOOLS_JAR
728JAVA_CLASSPATH_SEP
729JAVAINC
730JAVAC
731JAVA
732SCILABOPT
733SCILABINCLUDE
734SCILAB
735OCTAVE_LDFLAGS
736OCTAVE_CXXFLAGS
737OCTAVE_CPPFLAGS
738OCTAVE_SO
739OCTAVE
740PERL5LDFLAGS
741PERL5CCCDLFLAGS
742PERL5CCDLFLAGS
743PERL5CCFLAGS
744PERL5LIB
745PERL5DYNAMICLINKING
746PERL5EXT
747PERL
748PY2TO3
749PYCODESTYLE
750PYTHON3DYNAMICLINKING
751PY3LINK
752PY3LIB
753PY3INCLUDE
754PY3CONFIG
755PYTHON3
756PYTHONDYNAMICLINKING
757PYLINK
758PYLIB
759PYINCLUDE
760PYTHON
761TCLCXXSHARED
762TCLLDSHARED
763TCLDYNAMICLINKING
764TCLLIB
765TCLINCLUDE
766PKGCONFIG
767LIBC
768LIBCRYPT
769LIBM
770SWILL
771SWIGLIBS
772LUA_SO
773MZSCHEME_SO
774PHP_SO
775GUILE_SO
776TCL_SO
777PYTHON_SO
778LINKFORSHARED
779HAVE_CXX11_COMPILER
780PLATCXXFLAGS
781PLATCFLAGS
782RPATH
783TRYLINKINGWITHCXX
784CXXSHARED
785CCSHARED
786LDSHARED
787SO
788BOOST_LDFLAGS
789BOOST_CPPFLAGS
790YFLAGS
791YACC
792ENABLE_CCACHE
793subdirs
794PCRE_LIBS
795PCRE_CFLAGS
796PCRE_CONFIG
797SED
798EGREP
799GREP
800CPP
801am__fastdepCXX_FALSE
802am__fastdepCXX_TRUE
803CXXDEPMODE
804ac_ct_CXX
805CXXFLAGS
806CXX
807am__fastdepCC_FALSE
808am__fastdepCC_TRUE
809CCDEPMODE
810am__nodep
811AMDEPBACKSLASH
812AMDEP_FALSE
813AMDEP_TRUE
814am__include
815DEPDIR
816OBJEXT
817EXEEXT
818ac_ct_CC
819CPPFLAGS
820LDFLAGS
821CFLAGS
822CC
823AM_BACKSLASH
824AM_DEFAULT_VERBOSITY
825AM_DEFAULT_V
826AM_V
827am__untar
828am__tar
829AMTAR
830am__leading_dot
831SET_MAKE
832AWK
833mkdir_p
834MKDIR_P
835INSTALL_STRIP_PROGRAM
836STRIP
837install_sh
838MAKEINFO
839AUTOHEADER
840AUTOMAKE
841AUTOCONF
842ACLOCAL
843VERSION
844PACKAGE
845CYGPATH_W
846am__isrc
847INSTALL_DATA
848INSTALL_SCRIPT
849INSTALL_PROGRAM
850host_os
851host_vendor
852host_cpu
853host
854build_os
855build_vendor
856build_cpu
857build
858target_alias
859host_alias
860build_alias
861LIBS
862ECHO_T
863ECHO_N
864ECHO_C
865DEFS
866mandir
867localedir
868libdir
869psdir
870pdfdir
871dvidir
872htmldir
873infodir
874docdir
875oldincludedir
876includedir
877runstatedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
889PACKAGE_URL
890PACKAGE_BUGREPORT
891PACKAGE_STRING
892PACKAGE_VERSION
893PACKAGE_TARNAME
894PACKAGE_NAME
895PATH_SEPARATOR
896SHELL
897am__quote'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_silent_rules
902enable_dependency_tracking
903with_maximum_compile_warnings
904with_popen
905with_pcre
906with_pcre_prefix
907with_pcre_exec_prefix
908enable_ccache
909with_boost
910with_boost_libdir
911enable_cpp11_testing
912with_libm
913with_libc
914with_alllang
915with_tclconfig
916with_tcl
917with_tclincl
918with_tcllib
919with_python
920with_python3
921with_2to3
922with_perl5
923with_octave
924with_scilab
925with_scilab_inc
926with_java
927with_javac
928with_javaincl
929with_javascript
930with_jscoreinc
931with_jscorelib
932with_jsv8inc
933with_jsv8lib
934with_android
935with_adb
936with_ant
937with_ndk_build
938with_guile_config
939with_guile
940with_guile_cflags
941with_guile_libs
942with_mzscheme
943with_mzc
944with_ruby
945with_php
946with_ocaml
947with_ocamlc
948with_ocamldlgen
949with_ocamlfind
950with_ocamlmktop
951with_camlp4
952with_csharp
953with_cil_interpreter
954with_csharp_compiler
955with_lua
956with_luaincl
957with_lualib
958with_r
959with_go
960with_d
961with_d1_compiler
962with_d2_compiler
963with_swiglibdir
964'
965 ac_precious_vars='build_alias
966host_alias
967target_alias
968CC
969CFLAGS
970LDFLAGS
971LIBS
972CPPFLAGS
973CXX
974CXXFLAGS
975CCC
976CPP
977PCRE_CONFIG
978PCRE_CFLAGS
979PCRE_LIBS
980YACC
981YFLAGS'
982ac_subdirs_all='CCache'
983
984# Initialize some variables set by options.
985ac_init_help=
986ac_init_version=false
987ac_unrecognized_opts=
988ac_unrecognized_sep=
989# The variables have the same names as the options, with
990# dashes changed to underlines.
991cache_file=/dev/null
992exec_prefix=NONE
993no_create=
994no_recursion=
995prefix=NONE
996program_prefix=NONE
997program_suffix=NONE
998program_transform_name=s,x,x,
999silent=
1000site=
1001srcdir=
1002verbose=
1003x_includes=NONE
1004x_libraries=NONE
1005
1006# Installation directory options.
1007# These are left unexpanded so users can "make install exec_prefix=/foo"
1008# and all the variables that are supposed to be based on exec_prefix
1009# by default will actually change.
1010# Use braces instead of parens because sh, perl, etc. also accept them.
1011# (The list follows the same order as the GNU Coding Standards.)
1012bindir='${exec_prefix}/bin'
1013sbindir='${exec_prefix}/sbin'
1014libexecdir='${exec_prefix}/libexec'
1015datarootdir='${prefix}/share'
1016datadir='${datarootdir}'
1017sysconfdir='${prefix}/etc'
1018sharedstatedir='${prefix}/com'
1019localstatedir='${prefix}/var'
1020runstatedir='${localstatedir}/run'
1021includedir='${prefix}/include'
1022oldincludedir='/usr/include'
1023docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024infodir='${datarootdir}/info'
1025htmldir='${docdir}'
1026dvidir='${docdir}'
1027pdfdir='${docdir}'
1028psdir='${docdir}'
1029libdir='${exec_prefix}/lib'
1030localedir='${datarootdir}/locale'
1031mandir='${datarootdir}/man'
1032
1033ac_prev=
1034ac_dashdash=
1035for ac_option
1036do
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\$ac_option
1040 ac_prev=
1041 continue
1042 fi
1043
1044 case $ac_option in
1045 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 *=) ac_optarg= ;;
1047 *) ac_optarg=yes ;;
1048 esac
1049
1050 # Accept the important Cygnus configure options, so we can diagnose typos.
1051
1052 case $ac_dashdash$ac_option in
1053 --)
1054 ac_dashdash=yes ;;
1055
1056 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057 ac_prev=bindir ;;
1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059 bindir=$ac_optarg ;;
1060
1061 -build | --build | --buil | --bui | --bu)
1062 ac_prev=build_alias ;;
1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064 build_alias=$ac_optarg ;;
1065
1066 -cache-file | --cache-file | --cache-fil | --cache-fi \
1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068 ac_prev=cache_file ;;
1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071 cache_file=$ac_optarg ;;
1072
1073 --config-cache | -C)
1074 cache_file=config.cache ;;
1075
1076 -datadir | --datadir | --datadi | --datad)
1077 ac_prev=datadir ;;
1078 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079 datadir=$ac_optarg ;;
1080
1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082 | --dataroo | --dataro | --datar)
1083 ac_prev=datarootdir ;;
1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086 datarootdir=$ac_optarg ;;
1087
1088 -disable-* | --disable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"enable_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=no ;;
1103
1104 -docdir | --docdir | --docdi | --doc | --do)
1105 ac_prev=docdir ;;
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1108
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110 ac_prev=dvidir ;;
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1113
1114 -enable-* | --enable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"enable_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=\$ac_optarg ;;
1129
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1138
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1142
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1149
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1154
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1160
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1167
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1172
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1177
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1184
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1189
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1196
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1201
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1205
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1209
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1213
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1222
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1227
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1234
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1241
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1258
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1263
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1268
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1272
1273 -runstatedir | --runstatedir | --runstatedi | --runstated \
1274 | --runstate | --runstat | --runsta | --runst | --runs \
1275 | --run | --ru | --r)
1276 ac_prev=runstatedir ;;
1277 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1278 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1279 | --run=* | --ru=* | --r=*)
1280 runstatedir=$ac_optarg ;;
1281
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1287
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1298
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1303
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1308
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1315
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1320
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1323
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1326
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"with_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1342
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352"with_$ac_useropt"
1353"*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1358
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1362
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1369
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1376
1377 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378Try \`$0 --help' for more information"
1379 ;;
1380
1381 *=*)
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387 esac
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1390
1391 *)
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397 ;;
1398
1399 esac
1400done
1401
1402if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1405fi
1406
1407if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1409 no) ;;
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412 esac
1413fi
1414
1415# Check all directory arguments for consistency.
1416for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir runstatedir
1420do
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1423 case $ac_val in
1424 */ )
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1427 esac
1428 # Be sure to have absolute directory names.
1429 case $ac_val in
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 esac
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434done
1435
1436# There might be people who depend on the old broken behavior: `$host'
1437# used to hold the argument of --host etc.
1438# FIXME: To remove some day.
1439build=$build_alias
1440host=$host_alias
1441target=$target_alias
1442
1443# FIXME: To remove some day.
1444if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1449 fi
1450fi
1451
1452ac_tool_prefix=
1453test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
1455test "$silent" = yes && exec 6>/dev/null
1456
1457
1458ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459ac_ls_di=`ls -di .` &&
1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $? "working directory cannot be determined"
1462test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $? "pwd does not report name of working directory"
1464
1465
1466# Find the source files, if location was not specified.
1467if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475$as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\).*/{
1489 s//\1/
1490 q
1491 }
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1496 fi
1497else
1498 ac_srcdir_defaulted=no
1499fi
1500if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1503fi
1504ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 pwd)`
1508# When building in place, set srcdir=.
1509if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1511fi
1512# Remove unnecessary trailing slashes from srcdir.
1513# Double slashes in file names in object file debugging info
1514# mess up M-x gdb in Emacs.
1515case $srcdir in
1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517esac
1518for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523done
1524
1525#
1526# Report the --help message.
1527#
1528if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532\`configure' configures swig 4.0.1 to adapt to many kinds of systems.
1533
1534Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537VAR=VALUE. See below for descriptions of some of the useful variables.
1538
1539Defaults for the options are specified in brackets.
1540
1541Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551
1552Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1557
1558By default, \`make install' will install all the files in
1559\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561for instance \`--prefix=\$HOME'.
1562
1563For better control, use the options below.
1564
1565Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/swig]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1586_ACEOF
1587
1588 cat <<\_ACEOF
1589
1590Program names:
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594
1595System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598_ACEOF
1599fi
1600
1601if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of swig 4.0.1:";;
1604 esac
1605 cat <<\_ACEOF
1606
1607Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-silent-rules less verbose build output (undo: "make V=1")
1612 --disable-silent-rules verbose build output (undo: "make V=0")
1613 --enable-dependency-tracking
1614 do not reject slow dependency extractors
1615 --disable-dependency-tracking
1616 speeds up one-time build
1617 --disable-ccache disable building and installation of ccache-swig
1618 executable (default enabled)
1619 --enable-cpp11-testing enable C++11 testing if supported by compiler
1620 (default disabled)
1621
1622Optional Packages:
1623 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1624 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1625 --without-maximum-compile-warnings
1626 Disable maximum warning verbosity
1627 --without-popen Disable popen
1628 --without-pcre Disable support for regular expressions using PCRE
1629 --with-pcre-prefix=PREFIX
1630 Prefix where pcre is installed (optional)
1631 --with-pcre-exec-prefix=EPREFIX
1632 Exec prefix where pcre is installed (optional)
1633 --with-boost[=ARG] use Boost library from a standard location
1634 (ARG=yes), from the specified location (ARG=<path>),
1635 or disable it (ARG=no) [ARG=yes]
1636 --with-boost-libdir=LIB_DIR
1637 Force given directory for boost libraries. Note that
1638 this will override library path detection, so use
1639 this parameter only if default library detection
1640 fails and you know exactly where your boost
1641 libraries are located.
1642 --with-libm=STRING math library
1643 --with-libc=STRING C library
1644 --without-alllang Disable all languages
1645 --without-tcl Disable Tcl
1646 --with-tclconfig=path Set location of tclConfig.sh
1647 --with-tcl=path Set location of Tcl package
1648 --with-tclincl=path Set location of Tcl include directory
1649 --with-tcllib=path Set location of Tcl library directory
1650 --without-python Disable Python
1651 --with-python=path Set location of Python executable
1652 --without-python3 Disable Python 3.x support
1653 --with-python3=path Set location of Python 3.x executable
1654 --with-2to3=path Set location of Python 2to3 tool
1655 --without-perl5 Disable Perl5
1656 --with-perl5=path Set location of Perl5 executable
1657 --without-octave Disable Octave
1658 --with-octave=path Set location of Octave executable
1659 --without-scilab Disable Scilab
1660 --with-scilab=path Set location of Scilab executable
1661 --with-scilab-inc=path Set location of Scilab include directory
1662 --without-java Disable Java
1663 --with-java=path Set location of java executable
1664 --with-javac=path Set location of javac executable
1665 --with-javaincl=path Set location of Java include directory
1666 --without-javascript Disable Javascript
1667 --with-jscoreinc=path Set location of Javascript include directory
1668 --with-jscorelib=path Set location of the JavaScriptCore/Webkit library directory
1669 --with-jsv8inc=path Set location of Javascript v8 include directory
1670 --with-jsv8lib=path Set location of V8 Javascript library directory
1671 --without-android Disable Android
1672 --with-android=path Set location of android executable
1673 --with-adb=path Set location of adb executable - Android Debug Bridge
1674 --with-ant=path Set location of ant executable for Android
1675 --with-ndk-build=path Set location of Android ndk-build executable
1676 --without-guile Disable Guile
1677 --with-guile-config=path
1678 Set location of guile-config
1679 --with-guile=path Set location of Guile executable
1680 --with-guile-cflags=cflags Set cflags required to compile against Guile
1681 --with-guile-libs=ldflags Set ldflags needed to link with Guile
1682 --without-mzscheme Disable MzScheme
1683 --with-mzscheme=path Set location of MzScheme executable
1684 --with-mzc=path Set location of MzScheme's mzc
1685 --without-ruby Disable Ruby
1686 --with-ruby=path Set location of Ruby executable
1687 --without-php Disable PHP
1688 --with-php=path Set location of PHP executable
1689 --without-ocaml Disable OCaml
1690 --with-ocamlc=path Set location of ocamlc executable
1691 --with-ocamldlgen=path Set location of ocamldlgen
1692 --with-ocamlfind=path Set location of ocamlfind
1693 --with-ocamlmktop=path Set location of ocamlmktop executable
1694 --with-camlp4=path Set location of camlp4 executable
1695 --without-csharp Disable CSharp
1696 --with-cil-interpreter=path Set location of CIL interpreter for CSharp
1697 --with-csharp-compiler=path Set location of CSharp compiler
1698 --without-lua Disable Lua
1699 --with-lua=path Set location of Lua executable
1700 --with-luaincl=path Set location of Lua include directory
1701 --with-lualib=path Set location of Lua library directory
1702 --without-r Disable R
1703 --with-r=path Set location of R executable (r)
1704 --without-go Disable Go
1705 --with-go=path Set location of Go compiler
1706 --without-d Disable D
1707 --with-d1-compiler=path Set location of D1/Tango compiler (DMD compatible)
1708 --with-d2-compiler=path Set location of D2 compiler (DMD compatible)
1709 --with-swiglibdir=DIR Put SWIG system-independent libraries into DIR.
1710
1711Some influential environment variables:
1712 CC C compiler command
1713 CFLAGS C compiler flags
1714 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1715 nonstandard directory <lib dir>
1716 LIBS libraries to pass to the linker, e.g. -l<library>
1717 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1718 you have headers in a nonstandard directory <include dir>
1719 CXX C++ compiler command
1720 CXXFLAGS C++ compiler flags
1721 CPP C preprocessor
1722 PCRE_CONFIG config script used for pcre
1723 PCRE_CFLAGS CFLAGS used for pcre
1724 PCRE_LIBS LIBS used for pcre
1725 YACC The `Yet Another Compiler Compiler' implementation to use.
1726 Defaults to the first program found out of: `bison -y', `byacc',
1727 `yacc'.
1728 YFLAGS The list of arguments that will be passed by default to $YACC.
1729 This script will default YFLAGS to the empty string to avoid a
1730 default value of `-d' given by some make applications.
1731
1732Use these variables to override the choices made by `configure' or to help
1733it to find libraries and programs with nonstandard names/locations.
1734
1735Report bugs to <http://www.swig.org>.
1736_ACEOF
1737ac_status=$?
1738fi
1739
1740if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 continue
1746 ac_builddir=.
1747
1748case "$ac_dir" in
1749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750*)
1751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1757 esac ;;
1758esac
1759ac_abs_top_builddir=$ac_pwd
1760ac_abs_builddir=$ac_pwd$ac_dir_suffix
1761# for backward compatibility:
1762ac_top_builddir=$ac_top_build_prefix
1763
1764case $srcdir in
1765 .) # We are building in place.
1766 ac_srcdir=.
1767 ac_top_srcdir=$ac_top_builddir_sub
1768 ac_abs_top_srcdir=$ac_pwd ;;
1769 [\\/]* | ?:[\\/]* ) # Absolute name.
1770 ac_srcdir=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir=$srcdir
1772 ac_abs_top_srcdir=$srcdir ;;
1773 *) # Relative name.
1774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777esac
1778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1779
1780 cd "$ac_dir" || { ac_status=$?; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1793fi
1794
1795test -n "$ac_init_help" && exit $ac_status
1796if $ac_init_version; then
1797 cat <<\_ACEOF
1798swig configure 4.0.1
1799generated by GNU Autoconf 2.69
1800
1801Copyright (C) 2012 Free Software Foundation, Inc.
1802This configure script is free software; the Free Software Foundation
1803gives unlimited permission to copy, distribute and modify it.
1804_ACEOF
1805 exit
1806fi
1807
1808## ------------------------ ##
1809## Autoconf initialization. ##
1810## ------------------------ ##
1811
1812# ac_fn_c_try_compile LINENO
1813# --------------------------
1814# Try to compile conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_compile ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839else
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_compile
1849
1850# ac_fn_cxx_try_compile LINENO
1851# ----------------------------
1852# Try to compile conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_cxx_try_compile ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1885
1886} # ac_fn_cxx_try_compile
1887
1888# ac_fn_c_try_cpp LINENO
1889# ----------------------
1890# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_c_try_cpp ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } > conftest.i && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923} # ac_fn_c_try_cpp
1924
1925# ac_fn_c_try_run LINENO
1926# ----------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928# that executables *can* be run.
1929ac_fn_c_try_run ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_try") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1953 ac_retval=0
1954else
1955 $as_echo "$as_me: program exited with status $ac_status" >&5
1956 $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=$ac_status
1960fi
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1964
1965} # ac_fn_c_try_run
1966
1967# ac_fn_c_try_link LINENO
1968# -----------------------
1969# Try to link conftest.$ac_ext, and return whether this succeeded.
1970ac_fn_c_try_link ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 rm -f conftest.$ac_objext conftest$ac_exeext
1974 if { { ac_try="$ac_link"
1975case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>conftest.err
1982 ac_status=$?
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1987 fi
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && {
1990 test -z "$ac_c_werror_flag" ||
1991 test ! -s conftest.err
1992 } && test -s conftest$ac_exeext && {
1993 test "$cross_compiling" = yes ||
1994 test -x conftest$ac_exeext
1995 }; then :
1996 ac_retval=0
1997else
1998 $as_echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_retval=1
2002fi
2003 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2004 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2005 # interfere with the next link command; also delete a directory that is
2006 # left behind by Apple's compiler. We do this before executing the actions.
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2010
2011} # ac_fn_c_try_link
2012
2013# ac_fn_c_check_func LINENO FUNC VAR
2014# ----------------------------------
2015# Tests whether FUNC exists, setting the cache variable VAR accordingly
2016ac_fn_c_check_func ()
2017{
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2028#define $2 innocuous_$2
2029
2030/* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $2 (); below.
2032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033 <limits.h> exists even on freestanding compilers. */
2034
2035#ifdef __STDC__
2036# include <limits.h>
2037#else
2038# include <assert.h>
2039#endif
2040
2041#undef $2
2042
2043/* Override any GCC internal prototype to avoid an error.
2044 Use char because int might match the return type of a GCC
2045 builtin and then its argument prototype would still apply. */
2046#ifdef __cplusplus
2047extern "C"
2048#endif
2049char $2 ();
2050/* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053#if defined __stub_$2 || defined __stub___$2
2054choke me
2055#endif
2056
2057int
2058main ()
2059{
2060return $2 ();
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_link "$LINENO"; then :
2066 eval "$3=yes"
2067else
2068 eval "$3=no"
2069fi
2070rm -f core conftest.err conftest.$ac_objext \
2071 conftest$ac_exeext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_func
2079
2080# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2081# -------------------------------------------------------
2082# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2083# the include files in INCLUDES and setting the cache variable VAR
2084# accordingly.
2085ac_fn_c_check_header_mongrel ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if eval \${$3+:} false; then :
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090$as_echo_n "checking for $2... " >&6; }
2091if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093fi
2094eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097else
2098 # Is the header compilable?
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2100$as_echo_n "checking $2 usability... " >&6; }
2101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104#include <$2>
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_header_compiler=yes
2108else
2109 ac_header_compiler=no
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2113$as_echo "$ac_header_compiler" >&6; }
2114
2115# Is the header present?
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2117$as_echo_n "checking $2 presence... " >&6; }
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120#include <$2>
2121_ACEOF
2122if ac_fn_c_try_cpp "$LINENO"; then :
2123 ac_header_preproc=yes
2124else
2125 ac_header_preproc=no
2126fi
2127rm -f conftest.err conftest.i conftest.$ac_ext
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2129$as_echo "$ac_header_preproc" >&6; }
2130
2131# So? What about this header?
2132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2133 yes:no: )
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2135$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2137$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 ;;
2139 no:yes:* )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2141$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2143$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2145$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2147$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150( $as_echo "## ---------------------------------- ##
2151## Report this to http://www.swig.org ##
2152## ---------------------------------- ##"
2153 ) | sed "s/^/$as_me: WARNING: /" >&2
2154 ;;
2155esac
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
2158if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2160else
2161 eval "$3=\$ac_header_compiler"
2162fi
2163eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166fi
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169} # ac_fn_c_check_header_mongrel
2170
2171# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2172# -------------------------------------------------------
2173# Tests whether HEADER exists and can be compiled using the include files in
2174# INCLUDES, setting the cache variable VAR accordingly.
2175ac_fn_c_check_header_compile ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2179$as_echo_n "checking for $2... " >&6; }
2180if eval \${$3+:} false; then :
2181 $as_echo_n "(cached) " >&6
2182else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186#include <$2>
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189 eval "$3=yes"
2190else
2191 eval "$3=no"
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195eval ac_res=\$$3
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200} # ac_fn_c_check_header_compile
2201
2202# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2203# --------------------------------------------
2204# Tries to find the compile-time value of EXPR in a program that includes
2205# INCLUDES, setting VAR accordingly. Returns whether the value could be
2206# computed
2207ac_fn_c_compute_int ()
2208{
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 if test "$cross_compiling" = yes; then
2211 # Depending upon the size, compute the lo and hi bounds.
2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215int
2216main ()
2217{
2218static int test_array [1 - 2 * !(($2) >= 0)];
2219test_array [0] = 0;
2220return test_array [0];
2221
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_lo=0 ac_mid=0
2228 while :; do
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232int
2233main ()
2234{
2235static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2236test_array [0] = 0;
2237return test_array [0];
2238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 ac_hi=$ac_mid; break
2245else
2246 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2247 if test $ac_lo -le $ac_mid; then
2248 ac_lo= ac_hi=
2249 break
2250 fi
2251 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2252fi
2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 done
2255else
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h. */
2258$4
2259int
2260main ()
2261{
2262static int test_array [1 - 2 * !(($2) < 0)];
2263test_array [0] = 0;
2264return test_array [0];
2265
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_hi=-1 ac_mid=-1
2272 while :; do
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h. */
2275$4
2276int
2277main ()
2278{
2279static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280test_array [0] = 0;
2281return test_array [0];
2282
2283 ;
2284 return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"; then :
2288 ac_lo=$ac_mid; break
2289else
2290 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2291 if test $ac_mid -le $ac_hi; then
2292 ac_lo= ac_hi=
2293 break
2294 fi
2295 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2296fi
2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 done
2299else
2300 ac_lo= ac_hi=
2301fi
2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305# Binary search between lo and hi bounds.
2306while test "x$ac_lo" != "x$ac_hi"; do
2307 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309/* end confdefs.h. */
2310$4
2311int
2312main ()
2313{
2314static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2315test_array [0] = 0;
2316return test_array [0];
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323 ac_hi=$ac_mid
2324else
2325 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328done
2329case $ac_lo in #((
2330?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2331'') ac_retval=1 ;;
2332esac
2333 else
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h. */
2336$4
2337static long int longval () { return $2; }
2338static unsigned long int ulongval () { return $2; }
2339#include <stdio.h>
2340#include <stdlib.h>
2341int
2342main ()
2343{
2344
2345 FILE *f = fopen ("conftest.val", "w");
2346 if (! f)
2347 return 1;
2348 if (($2) < 0)
2349 {
2350 long int i = longval ();
2351 if (i != ($2))
2352 return 1;
2353 fprintf (f, "%ld", i);
2354 }
2355 else
2356 {
2357 unsigned long int i = ulongval ();
2358 if (i != ($2))
2359 return 1;
2360 fprintf (f, "%lu", i);
2361 }
2362 /* Do not output a trailing newline, as this causes \r\n confusion
2363 on some platforms. */
2364 return ferror (f) || fclose (f) != 0;
2365
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_run "$LINENO"; then :
2371 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2372else
2373 ac_retval=1
2374fi
2375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2376 conftest.$ac_objext conftest.beam conftest.$ac_ext
2377rm -f conftest.val
2378
2379 fi
2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381 as_fn_set_status $ac_retval
2382
2383} # ac_fn_c_compute_int
2384cat >config.log <<_ACEOF
2385This file contains any messages produced by compilers while
2386running configure, to aid debugging if configure makes a mistake.
2387
2388It was created by swig $as_me 4.0.1, which was
2389generated by GNU Autoconf 2.69. Invocation command line was
2390
2391 $ $0 $@
2392
2393_ACEOF
2394exec 5>>config.log
2395{
2396cat <<_ASUNAME
2397## --------- ##
2398## Platform. ##
2399## --------- ##
2400
2401hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2402uname -m = `(uname -m) 2>/dev/null || echo unknown`
2403uname -r = `(uname -r) 2>/dev/null || echo unknown`
2404uname -s = `(uname -s) 2>/dev/null || echo unknown`
2405uname -v = `(uname -v) 2>/dev/null || echo unknown`
2406
2407/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2408/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2409
2410/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2411/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2412/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2413/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2414/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2415/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2416/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2417
2418_ASUNAME
2419
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 $as_echo "PATH: $as_dir"
2426 done
2427IFS=$as_save_IFS
2428
2429} >&5
2430
2431cat >&5 <<_ACEOF
2432
2433
2434## ----------- ##
2435## Core tests. ##
2436## ----------- ##
2437
2438_ACEOF
2439
2440
2441# Keep a trace of the command line.
2442# Strip out --no-create and --no-recursion so they do not pile up.
2443# Strip out --silent because we don't want to record it for future runs.
2444# Also quote any args containing shell meta-characters.
2445# Make two passes to allow for proper duplicate-argument suppression.
2446ac_configure_args=
2447ac_configure_args0=
2448ac_configure_args1=
2449ac_must_keep_next=false
2450for ac_pass in 1 2
2451do
2452 for ac_arg
2453 do
2454 case $ac_arg in
2455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2457 | -silent | --silent | --silen | --sile | --sil)
2458 continue ;;
2459 *\'*)
2460 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 esac
2462 case $ac_pass in
2463 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2464 2)
2465 as_fn_append ac_configure_args1 " '$ac_arg'"
2466 if test $ac_must_keep_next = true; then
2467 ac_must_keep_next=false # Got value, back to normal.
2468 else
2469 case $ac_arg in
2470 *=* | --config-cache | -C | -disable-* | --disable-* \
2471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2473 | -with-* | --with-* | -without-* | --without-* | --x)
2474 case "$ac_configure_args0 " in
2475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2476 esac
2477 ;;
2478 -* ) ac_must_keep_next=true ;;
2479 esac
2480 fi
2481 as_fn_append ac_configure_args " '$ac_arg'"
2482 ;;
2483 esac
2484 done
2485done
2486{ ac_configure_args0=; unset ac_configure_args0;}
2487{ ac_configure_args1=; unset ac_configure_args1;}
2488
2489# When interrupted or exit'd, cleanup temporary files, and complete
2490# config.log. We remove comments because anyway the quotes in there
2491# would cause problems or look ugly.
2492# WARNING: Use '\'' to represent an apostrophe within the trap.
2493# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2494trap 'exit_status=$?
2495 # Save into config.log some information that might help in debugging.
2496 {
2497 echo
2498
2499 $as_echo "## ---------------- ##
2500## Cache variables. ##
2501## ---------------- ##"
2502 echo
2503 # The following way of writing the cache mishandles newlines in values,
2504(
2505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2506 eval ac_val=\$$ac_var
2507 case $ac_val in #(
2508 *${as_nl}*)
2509 case $ac_var in #(
2510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2512 esac
2513 case $ac_var in #(
2514 _ | IFS | as_nl) ;; #(
2515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2516 *) { eval $ac_var=; unset $ac_var;} ;;
2517 esac ;;
2518 esac
2519 done
2520 (set) 2>&1 |
2521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2522 *${as_nl}ac_space=\ *)
2523 sed -n \
2524 "s/'\''/'\''\\\\'\'''\''/g;
2525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2526 ;; #(
2527 *)
2528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2529 ;;
2530 esac |
2531 sort
2532)
2533 echo
2534
2535 $as_echo "## ----------------- ##
2536## Output variables. ##
2537## ----------------- ##"
2538 echo
2539 for ac_var in $ac_subst_vars
2540 do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in
2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 esac
2545 $as_echo "$ac_var='\''$ac_val'\''"
2546 done | sort
2547 echo
2548
2549 if test -n "$ac_subst_files"; then
2550 $as_echo "## ------------------- ##
2551## File substitutions. ##
2552## ------------------- ##"
2553 echo
2554 for ac_var in $ac_subst_files
2555 do
2556 eval ac_val=\$$ac_var
2557 case $ac_val in
2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559 esac
2560 $as_echo "$ac_var='\''$ac_val'\''"
2561 done | sort
2562 echo
2563 fi
2564
2565 if test -s confdefs.h; then
2566 $as_echo "## ----------- ##
2567## confdefs.h. ##
2568## ----------- ##"
2569 echo
2570 cat confdefs.h
2571 echo
2572 fi
2573 test "$ac_signal" != 0 &&
2574 $as_echo "$as_me: caught signal $ac_signal"
2575 $as_echo "$as_me: exit $exit_status"
2576 } >&5
2577 rm -f core *.core core.conftest.* &&
2578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2579 exit $exit_status
2580' 0
2581for ac_signal in 1 2 13 15; do
2582 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2583done
2584ac_signal=0
2585
2586# confdefs.h avoids OS command line length limits that DEFS can exceed.
2587rm -f -r conftest* confdefs.h
2588
2589$as_echo "/* confdefs.h */" > confdefs.h
2590
2591# Predefined preprocessor variables.
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_NAME "$PACKAGE_NAME"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_VERSION "$PACKAGE_VERSION"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_STRING "$PACKAGE_STRING"
2607_ACEOF
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2611_ACEOF
2612
2613cat >>confdefs.h <<_ACEOF
2614#define PACKAGE_URL "$PACKAGE_URL"
2615_ACEOF
2616
2617
2618# Let the site file select an alternate cache file if it wants to.
2619# Prefer an explicitly selected file to automatically selected ones.
2620ac_site_file1=NONE
2621ac_site_file2=NONE
2622if test -n "$CONFIG_SITE"; then
2623 # We do not want a PATH search for config.site.
2624 case $CONFIG_SITE in #((
2625 -*) ac_site_file1=./$CONFIG_SITE;;
2626 */*) ac_site_file1=$CONFIG_SITE;;
2627 *) ac_site_file1=./$CONFIG_SITE;;
2628 esac
2629elif test "x$prefix" != xNONE; then
2630 ac_site_file1=$prefix/share/config.site
2631 ac_site_file2=$prefix/etc/config.site
2632else
2633 ac_site_file1=$ac_default_prefix/share/config.site
2634 ac_site_file2=$ac_default_prefix/etc/config.site
2635fi
2636for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2637do
2638 test "x$ac_site_file" = xNONE && continue
2639 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2641$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2642 sed 's/^/| /' "$ac_site_file" >&5
2643 . "$ac_site_file" \
2644 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646as_fn_error $? "failed to load site script $ac_site_file
2647See \`config.log' for more details" "$LINENO" 5; }
2648 fi
2649done
2650
2651if test -r "$cache_file"; then
2652 # Some versions of bash will fail to source /dev/null (special files
2653 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2654 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2656$as_echo "$as_me: loading cache $cache_file" >&6;}
2657 case $cache_file in
2658 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2659 *) . "./$cache_file";;
2660 esac
2661 fi
2662else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2664$as_echo "$as_me: creating cache $cache_file" >&6;}
2665 >$cache_file
2666fi
2667
2668# Check that the precious variables saved in the cache have kept the same
2669# value.
2670ac_cache_corrupted=false
2671for ac_var in $ac_precious_vars; do
2672 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2673 eval ac_new_set=\$ac_env_${ac_var}_set
2674 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2675 eval ac_new_val=\$ac_env_${ac_var}_value
2676 case $ac_old_set,$ac_new_set in
2677 set,)
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2679$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2681 ,set)
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2683$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2685 ,);;
2686 *)
2687 if test "x$ac_old_val" != "x$ac_new_val"; then
2688 # differences in whitespace do not lead to failure.
2689 ac_old_val_w=`echo x $ac_old_val`
2690 ac_new_val_w=`echo x $ac_new_val`
2691 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2693$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2694 ac_cache_corrupted=:
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2697$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2698 eval $ac_var=\$ac_old_val
2699 fi
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2701$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2703$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2704 fi;;
2705 esac
2706 # Pass precious variables to config.status.
2707 if test "$ac_new_set" = set; then
2708 case $ac_new_val in
2709 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2710 *) ac_arg=$ac_var=$ac_new_val ;;
2711 esac
2712 case " $ac_configure_args " in
2713 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2714 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2715 esac
2716 fi
2717done
2718if $ac_cache_corrupted; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2722$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2723 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2724fi
2725## -------------------- ##
2726## Main body of script. ##
2727## -------------------- ##
2728
2729ac_ext=c
2730ac_cpp='$CPP $CPPFLAGS'
2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735
2736
2737
2738
2739ac_aux_dir=
2740for ac_dir in Tools/config "$srcdir"/Tools/config; do
2741 if test -f "$ac_dir/install-sh"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/install-sh -c"
2744 break
2745 elif test -f "$ac_dir/install.sh"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/install.sh -c"
2748 break
2749 elif test -f "$ac_dir/shtool"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/shtool install -c"
2752 break
2753 fi
2754done
2755if test -z "$ac_aux_dir"; then
2756 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Tools/config \"$srcdir\"/Tools/config" "$LINENO" 5
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766
2767
2768ac_config_headers="$ac_config_headers Source/Include/swigconfig.h"
2769
2770# Make sure we can run config.sub.
2771$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775$as_echo_n "checking build system type... " >&6; }
2776if ${ac_cv_build+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 ac_build_alias=$build_alias
2780test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782test "x$ac_build_alias" = x &&
2783 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2786
2787fi
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789$as_echo "$ac_cv_build" >&6; }
2790case $ac_cv_build in
2791*-*-*) ;;
2792*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2793esac
2794build=$ac_cv_build
2795ac_save_IFS=$IFS; IFS='-'
2796set x $ac_cv_build
2797shift
2798build_cpu=$1
2799build_vendor=$2
2800shift; shift
2801# Remember, the first character of IFS is used to create $*,
2802# except with old shells:
2803build_os=$*
2804IFS=$ac_save_IFS
2805case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2806
2807
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809$as_echo_n "checking host system type... " >&6; }
2810if ${ac_cv_host+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812else
2813 if test "x$host_alias" = x; then
2814 ac_cv_host=$ac_cv_build
2815else
2816 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2818fi
2819
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822$as_echo "$ac_cv_host" >&6; }
2823case $ac_cv_host in
2824*-*-*) ;;
2825*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2826esac
2827host=$ac_cv_host
2828ac_save_IFS=$IFS; IFS='-'
2829set x $ac_cv_host
2830shift
2831host_cpu=$1
2832host_vendor=$2
2833shift; shift
2834# Remember, the first character of IFS is used to create $*,
2835# except with old shells:
2836host_os=$*
2837IFS=$ac_save_IFS
2838case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2839
2840
2841am__api_version='1.16'
2842
2843# Find a good install program. We prefer a C program (faster),
2844# so one script is as good as another. But avoid the broken or
2845# incompatible versions:
2846# SysV /etc/install, /usr/sbin/install
2847# SunOS /usr/etc/install
2848# IRIX /sbin/install
2849# AIX /bin/install
2850# AmigaOS /C/install, which installs bootblocks on floppy discs
2851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854# OS/2's system install, which has a completely different semantic
2855# ./install, which can be erroneously created by make from ./install.sh.
2856# Reject install programs that cannot install multiple files.
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858$as_echo_n "checking for a BSD-compatible install... " >&6; }
2859if test -z "$INSTALL"; then
2860if ${ac_cv_path_install+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 # Account for people who put trailing slashes in PATH elements.
2869case $as_dir/ in #((
2870 ./ | .// | /[cC]/* | \
2871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2873 /usr/ucb/* ) ;;
2874 *)
2875 # OSF1 and SCO ODT 3.0 have their own names for install.
2876 # Don't use installbsd from OSF since it installs stuff as root
2877 # by default.
2878 for ac_prog in ginstall scoinst install; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881 if test $ac_prog = install &&
2882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883 # AIX install. It has an incompatible calling convention.
2884 :
2885 elif test $ac_prog = install &&
2886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887 # program-specific install script used by HP pwplus--don't use.
2888 :
2889 else
2890 rm -rf conftest.one conftest.two conftest.dir
2891 echo one > conftest.one
2892 echo two > conftest.two
2893 mkdir conftest.dir
2894 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895 test -s conftest.one && test -s conftest.two &&
2896 test -s conftest.dir/conftest.one &&
2897 test -s conftest.dir/conftest.two
2898 then
2899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2900 break 3
2901 fi
2902 fi
2903 fi
2904 done
2905 done
2906 ;;
2907esac
2908
2909 done
2910IFS=$as_save_IFS
2911
2912rm -rf conftest.one conftest.two conftest.dir
2913
2914fi
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL=$ac_cv_path_install
2917 else
2918 # As a last resort, use the slow shell script. Don't cache a
2919 # value for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the value is a relative name.
2922 INSTALL=$ac_install_sh
2923 fi
2924fi
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926$as_echo "$INSTALL" >&6; }
2927
2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929# It thinks the first close brace ends the variable substitution.
2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937$as_echo_n "checking whether build environment is sane... " >&6; }
2938# Reject unsafe characters in $srcdir or the absolute working directory
2939# name. Accept space and tab only in the latter.
2940am_lf='
2941'
2942case `pwd` in
2943 *[\\\"\#\$\&\'\`$am_lf]*)
2944 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2945esac
2946case $srcdir in
2947 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2948 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2949esac
2950
2951# Do 'set' in a subshell so we don't clobber the current shell's
2952# arguments. Must try -L first in case configure is actually a
2953# symlink; some systems play weird games with the mod time of symlinks
2954# (eg FreeBSD returns the mod time of the symlink's containing
2955# directory).
2956if (
2957 am_has_slept=no
2958 for am_try in 1 2; do
2959 echo "timestamp, slept: $am_has_slept" > conftest.file
2960 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961 if test "$*" = "X"; then
2962 # -L didn't work.
2963 set X `ls -t "$srcdir/configure" conftest.file`
2964 fi
2965 if test "$*" != "X $srcdir/configure conftest.file" \
2966 && test "$*" != "X conftest.file $srcdir/configure"; then
2967
2968 # If neither matched, then we have a broken ls. This can happen
2969 # if, for instance, CONFIG_SHELL is bash and it inherits a
2970 # broken ls alias from the environment. This has actually
2971 # happened. Such a system could not be considered "sane".
2972 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2973 alias in your environment" "$LINENO" 5
2974 fi
2975 if test "$2" = conftest.file || test $am_try -eq 2; then
2976 break
2977 fi
2978 # Just in case.
2979 sleep 1
2980 am_has_slept=yes
2981 done
2982 test "$2" = conftest.file
2983 )
2984then
2985 # Ok.
2986 :
2987else
2988 as_fn_error $? "newly created file is older than distributed files!
2989Check your system clock" "$LINENO" 5
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992$as_echo "yes" >&6; }
2993# If we didn't sleep, we still need to ensure time stamps of config.status and
2994# generated files are strictly newer.
2995am_sleep_pid=
2996if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2997 ( sleep 1 ) &
2998 am_sleep_pid=$!
2999fi
3000
3001rm -f conftest.file
3002
3003test "$program_prefix" != NONE &&
3004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005# Use a double $ so make ignores it.
3006test "$program_suffix" != NONE &&
3007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008# Double any \ or $.
3009# By default was `s,x,x', remove it if useless.
3010ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3012
3013# Expand $ac_aux_dir to an absolute path.
3014am_aux_dir=`cd "$ac_aux_dir" && pwd`
3015
3016if test x"${MISSING+set}" != xset; then
3017 case $am_aux_dir in
3018 *\ * | *\ *)
3019 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3020 *)
3021 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022 esac
3023fi
3024# Use eval to expand $SHELL
3025if eval "$MISSING --is-lightweight"; then
3026 am_missing_run="$MISSING "
3027else
3028 am_missing_run=
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3030$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3031fi
3032
3033if test x"${install_sh+set}" != xset; then
3034 case $am_aux_dir in
3035 *\ * | *\ *)
3036 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037 *)
3038 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 esac
3040fi
3041
3042# Installed binaries are usually stripped using 'strip' when the user
3043# run "make install-strip". However 'strip' might not be the right
3044# tool to use in cross-compilation environments, therefore Automake
3045# will honor the 'STRIP' environment variable to overrule this program.
3046if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}strip; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if ${ac_cv_prog_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070 done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075STRIP=$ac_cv_prog_STRIP
3076if test -n "$STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078$as_echo "$STRIP" >&6; }
3079else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085fi
3086if test -z "$ac_cv_prog_STRIP"; then
3087 ac_ct_STRIP=$STRIP
3088 # Extract the first word of "strip", so it can be a program name with args.
3089set dummy strip; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094else
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110 done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118$as_echo "$ac_ct_STRIP" >&6; }
3119else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124 if test "x$ac_ct_STRIP" = x; then
3125 STRIP=":"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131ac_tool_warned=yes ;;
3132esac
3133 STRIP=$ac_ct_STRIP
3134 fi
3135else
3136 STRIP="$ac_cv_prog_STRIP"
3137fi
3138
3139fi
3140INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144if test -z "$MKDIR_P"; then
3145 if ${ac_cv_path_mkdir+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_prog in mkdir gmkdir; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3156 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157 'mkdir (GNU coreutils) '* | \
3158 'mkdir (coreutils) '* | \
3159 'mkdir (fileutils) '4.1*)
3160 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161 break 3;;
3162 esac
3163 done
3164 done
3165 done
3166IFS=$as_save_IFS
3167
3168fi
3169
3170 test -d ./--version && rmdir ./--version
3171 if test "${ac_cv_path_mkdir+set}" = set; then
3172 MKDIR_P="$ac_cv_path_mkdir -p"
3173 else
3174 # As a last resort, use the slow shell script. Don't cache a
3175 # value for MKDIR_P within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the value is a relative name.
3178 MKDIR_P="$ac_install_sh -d"
3179 fi
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182$as_echo "$MKDIR_P" >&6; }
3183
3184for ac_prog in gawk mawk nawk awk
3185do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if ${ac_cv_prog_AWK+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$AWK"; then
3194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_AWK="$ac_prog"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208 done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213AWK=$ac_cv_prog_AWK
3214if test -n "$AWK"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3216$as_echo "$AWK" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223 test -n "$AWK" && break
3224done
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3227$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228set x ${MAKE-make}
3229ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3230if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232else
3233 cat >conftest.make <<\_ACEOF
3234SHELL = /bin/sh
3235all:
3236 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237_ACEOF
3238# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3239case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 *@@@%%%=?*=@@@%%%*)
3241 eval ac_cv_prog_make_${ac_make}_set=yes;;
3242 *)
3243 eval ac_cv_prog_make_${ac_make}_set=no;;
3244esac
3245rm -f conftest.make
3246fi
3247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 SET_MAKE=
3251else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254 SET_MAKE="MAKE=${MAKE-make}"
3255fi
3256
3257rm -rf .tst 2>/dev/null
3258mkdir .tst 2>/dev/null
3259if test -d .tst; then
3260 am__leading_dot=.
3261else
3262 am__leading_dot=_
3263fi
3264rmdir .tst 2>/dev/null
3265
3266# Check whether --enable-silent-rules was given.
3267if test "${enable_silent_rules+set}" = set; then :
3268 enableval=$enable_silent_rules;
3269fi
3270
3271case $enable_silent_rules in # (((
3272 yes) AM_DEFAULT_VERBOSITY=0;;
3273 no) AM_DEFAULT_VERBOSITY=1;;
3274 *) AM_DEFAULT_VERBOSITY=1;;
3275esac
3276am_make=${MAKE-make}
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279if ${am_cv_make_support_nested_variables+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281else
3282 if $as_echo 'TRUE=$(BAR$(V))
3283BAR0=false
3284BAR1=true
3285V=1
3286am__doit:
3287 @$(TRUE)
3288.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289 am_cv_make_support_nested_variables=yes
3290else
3291 am_cv_make_support_nested_variables=no
3292fi
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295$as_echo "$am_cv_make_support_nested_variables" >&6; }
3296if test $am_cv_make_support_nested_variables = yes; then
3297 AM_V='$(V)'
3298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299else
3300 AM_V=$AM_DEFAULT_VERBOSITY
3301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3302fi
3303AM_BACKSLASH='\'
3304
3305if test "`cd $srcdir && pwd`" != "`pwd`"; then
3306 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3307 # is not polluted with repeated "-I."
3308 am__isrc=' -I$(srcdir)'
3309 # test to see if srcdir already configured
3310 if test -f $srcdir/config.status; then
3311 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3312 fi
3313fi
3314
3315# test whether we have cygpath
3316if test -z "$CYGPATH_W"; then
3317 if (cygpath --version) >/dev/null 2>/dev/null; then
3318 CYGPATH_W='cygpath -w'
3319 else
3320 CYGPATH_W=echo
3321 fi
3322fi
3323
3324
3325# Define the identity of the package.
3326 PACKAGE='swig'
3327 VERSION='4.0.1'
3328
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE "$PACKAGE"
3332_ACEOF
3333
3334
3335cat >>confdefs.h <<_ACEOF
3336#define VERSION "$VERSION"
3337_ACEOF
3338
3339# Some tools Automake needs.
3340
3341ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3342
3343
3344AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3345
3346
3347AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3348
3349
3350AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3351
3352
3353MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3354
3355# For better backward compatibility. To be removed once Automake 1.9.x
3356# dies out for good. For more background, see:
3357# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359mkdir_p='$(MKDIR_P)'
3360
3361# We need awk for the "check" target (and possibly the TAP driver). The
3362# system "awk" is bad on some platforms.
3363# Always define AMTAR for backward compatibility. Yes, it's still used
3364# in the wild :-( We should find a proper way to deprecate it ...
3365AMTAR='$${TAR-tar}'
3366
3367
3368# We'll loop over all known methods to create a tar archive until one works.
3369_am_tools='gnutar pax cpio none'
3370
3371am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3372
3373
3374
3375
3376
3377
3378# POSIX will say in a future version that running "rm -f" with no argument
3379# is OK; and we want to be able to make that assumption in our Makefile
3380# recipes. So use an aggressive probe to check that the usage we want is
3381# actually supported "in the wild" to an acceptable degree.
3382# See automake bug#10828.
3383# To make any issue more visible, cause the running configure to be aborted
3384# by default if the 'rm' program in use doesn't match our expectations; the
3385# user can still override this though.
3386if rm -f && rm -fr && rm -rf; then : OK; else
3387 cat >&2 <<'END'
3388Oops!
3389
3390Your 'rm' program seems unable to run without file operands specified
3391on the command line, even when the '-f' option is present. This is contrary
3392to the behaviour of most rm programs out there, and not conforming with
3393the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3394
3395Please tell bug-automake@gnu.org about your system, including the value
3396of your $PATH and any error possibly output before this message. This
3397can help us improve future automake versions.
3398
3399END
3400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3401 echo 'Configuration will proceed anyway, since you have set the' >&2
3402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3403 echo >&2
3404 else
3405 cat >&2 <<'END'
3406Aborting the configuration process, to ensure you take notice of the issue.
3407
3408You can download and install GNU coreutils to get an 'rm' implementation
3409that behaves properly: <https://www.gnu.org/software/coreutils/>.
3410
3411If you want to complete the configuration process using your problematic
3412'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3413to "yes", and re-run configure.
3414
3415END
3416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3417 fi
3418fi
3419
3420
3421
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3430set dummy ${ac_tool_prefix}gcc; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451 done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3460else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466fi
3467if test -z "$ac_cv_prog_CC"; then
3468 ac_ct_CC=$CC
3469 # Extract the first word of "gcc", so it can be a program name with args.
3470set dummy gcc; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if ${ac_cv_prog_ac_ct_CC+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475else
3476 if test -n "$ac_ct_CC"; then
3477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_ac_ct_CC="gcc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3499$as_echo "$ac_ct_CC" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505 if test "x$ac_ct_CC" = x; then
3506 CC=""
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509yes:)
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512ac_tool_warned=yes ;;
3513esac
3514 CC=$ac_ct_CC
3515 fi
3516else
3517 CC="$ac_cv_prog_CC"
3518fi
3519
3520if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3523set dummy ${ac_tool_prefix}cc; ac_word=$2
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525$as_echo_n "checking for $ac_word... " >&6; }
3526if ${ac_cv_prog_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_CC="${ac_tool_prefix}cc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543done
3544 done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549CC=$ac_cv_prog_CC
3550if test -n "$CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552$as_echo "$CC" >&6; }
3553else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558
3559 fi
3560fi
3561if test -z "$CC"; then
3562 # Extract the first word of "cc", so it can be a program name with args.
3563set dummy cc; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571else
3572 ac_prog_rejected=no
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3581 ac_prog_rejected=yes
3582 continue
3583 fi
3584 ac_cv_prog_CC="cc"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592if test $ac_prog_rejected = yes; then
3593 # We found a bogon in the path, so make sure we never use it.
3594 set dummy $ac_cv_prog_CC
3595 shift
3596 if test $# != 0; then
3597 # We chose a different compiler from the bogus one.
3598 # However, it has the same basename, so the bogon will be chosen
3599 # first if we set CC to just the basename; use the full file name.
3600 shift
3601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3602 fi
3603fi
3604fi
3605fi
3606CC=$ac_cv_prog_CC
3607if test -n "$CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609$as_echo "$CC" >&6; }
3610else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613fi
3614
3615
3616fi
3617if test -z "$CC"; then
3618 if test -n "$ac_tool_prefix"; then
3619 for ac_prog in cl.exe
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643 done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648CC=$ac_cv_prog_CC
3649if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651$as_echo "$CC" >&6; }
3652else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658 test -n "$CC" && break
3659 done
3660fi
3661if test -z "$CC"; then
3662 ac_ct_CC=$CC
3663 for ac_prog in cl.exe
3664do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if ${ac_cv_prog_ac_ct_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$ac_ct_CC"; then
3673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_CC="$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692ac_ct_CC=$ac_cv_prog_ac_ct_CC
3693if test -n "$ac_ct_CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3695$as_echo "$ac_ct_CC" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702 test -n "$ac_ct_CC" && break
3703done
3704
3705 if test "x$ac_ct_CC" = x; then
3706 CC=""
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709yes:)
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3712ac_tool_warned=yes ;;
3713esac
3714 CC=$ac_ct_CC
3715 fi
3716fi
3717
3718fi
3719
3720
3721test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723as_fn_error $? "no acceptable C compiler found in \$PATH
3724See \`config.log' for more details" "$LINENO" 5; }
3725
3726# Provide some information about the compiler.
3727$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3728set X $ac_compile
3729ac_compiler=$2
3730for ac_option in --version -v -V -qversion; do
3731 { { ac_try="$ac_compiler $ac_option >&5"
3732case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735esac
3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737$as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3739 ac_status=$?
3740 if test -s conftest.err; then
3741 sed '10a\
3742... rest of stderr output deleted ...
3743 10q' conftest.err >conftest.er1
3744 cat conftest.er1 >&5
3745 fi
3746 rm -f conftest.er1 conftest.err
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749done
3750
3751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h. */
3753
3754int
3755main ()
3756{
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762ac_clean_files_save=$ac_clean_files
3763ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3764# Try to create an executable without -o first, disregard a.out.
3765# It will help us diagnose broken compilers, and finding out an intuition
3766# of exeext.
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3768$as_echo_n "checking whether the C compiler works... " >&6; }
3769ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3770
3771# The possible output files:
3772ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3773
3774ac_rmfiles=
3775for ac_file in $ac_files
3776do
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3780 esac
3781done
3782rm -f $ac_rmfiles
3783
3784if { { ac_try="$ac_link_default"
3785case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link_default") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }; then :
3795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3796# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3797# in a Makefile. We should not override ac_cv_exeext if it was cached,
3798# so that the user can short-circuit this test for compilers unknown to
3799# Autoconf.
3800for ac_file in $ac_files ''
3801do
3802 test -f "$ac_file" || continue
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3805 ;;
3806 [ab].out )
3807 # We found the default executable, but exeext='' is most
3808 # certainly right.
3809 break;;
3810 *.* )
3811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3812 then :; else
3813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814 fi
3815 # We set ac_cv_exeext here because the later test for it is not
3816 # safe: cross compilers may not add the suffix if given an `-o'
3817 # argument, so we may need to know it at that point already.
3818 # Even if this section looks crufty: it has the advantage of
3819 # actually working.
3820 break;;
3821 * )
3822 break;;
3823 esac
3824done
3825test "$ac_cv_exeext" = no && ac_cv_exeext=
3826
3827else
3828 ac_file=''
3829fi
3830if test -z "$ac_file"; then :
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833$as_echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838as_fn_error 77 "C compiler cannot create executables
3839See \`config.log' for more details" "$LINENO" 5; }
3840else
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3842$as_echo "yes" >&6; }
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845$as_echo_n "checking for C compiler default output file name... " >&6; }
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3847$as_echo "$ac_file" >&6; }
3848ac_exeext=$ac_cv_exeext
3849
3850rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3851ac_clean_files=$ac_clean_files_save
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3853$as_echo_n "checking for suffix of executables... " >&6; }
3854if { { ac_try="$ac_link"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860$as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_link") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then :
3865 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3866# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3867# work properly (i.e., refer to `conftest.exe'), while it won't with
3868# `rm'.
3869for ac_file in conftest.exe conftest conftest.*; do
3870 test -f "$ac_file" || continue
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3873 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 break;;
3875 * ) break;;
3876 esac
3877done
3878else
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3882See \`config.log' for more details" "$LINENO" 5; }
3883fi
3884rm -f conftest conftest$ac_cv_exeext
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3886$as_echo "$ac_cv_exeext" >&6; }
3887
3888rm -f conftest.$ac_ext
3889EXEEXT=$ac_cv_exeext
3890ac_exeext=$EXEEXT
3891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h. */
3893#include <stdio.h>
3894int
3895main ()
3896{
3897FILE *f = fopen ("conftest.out", "w");
3898 return ferror (f) || fclose (f) != 0;
3899
3900 ;
3901 return 0;
3902}
3903_ACEOF
3904ac_clean_files="$ac_clean_files conftest.out"
3905# Check that the compiler produces executables we can run. If not, either
3906# the compiler is broken, or we cross compile.
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3908$as_echo_n "checking whether we are cross compiling... " >&6; }
3909if test "$cross_compiling" != yes; then
3910 { { ac_try="$ac_link"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_link") 2>&5
3918 ac_status=$?
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 if { ac_try='./conftest$ac_cv_exeext'
3922 { { case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925esac
3926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927$as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_try") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; }; then
3932 cross_compiling=no
3933 else
3934 if test "$cross_compiling" = maybe; then
3935 cross_compiling=yes
3936 else
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error $? "cannot run C compiled programs.
3940If you meant to cross compile, use \`--host'.
3941See \`config.log' for more details" "$LINENO" 5; }
3942 fi
3943 fi
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946$as_echo "$cross_compiling" >&6; }
3947
3948rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3949ac_clean_files=$ac_clean_files_save
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951$as_echo_n "checking for suffix of object files... " >&6; }
3952if ${ac_cv_objext+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957
3958int
3959main ()
3960{
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest.o conftest.obj
3967if { { ac_try="$ac_compile"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973$as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue;
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 break;;
3984 esac
3985done
3986else
3987 $as_echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992as_fn_error $? "cannot compute suffix of object files: cannot compile
3993See \`config.log' for more details" "$LINENO" 5; }
3994fi
3995rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998$as_echo "$ac_cv_objext" >&6; }
3999OBJEXT=$ac_cv_objext
4000ac_objext=$OBJEXT
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003if ${ac_cv_c_compiler_gnu+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h. */
4008
4009int
4010main ()
4011{
4012#ifndef __GNUC__
4013 choke me
4014#endif
4015
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_compiler_gnu=yes
4022else
4023 ac_compiler_gnu=no
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031if test $ac_compiler_gnu = yes; then
4032 GCC=yes
4033else
4034 GCC=
4035fi
4036ac_test_CFLAGS=${CFLAGS+set}
4037ac_save_CFLAGS=$CFLAGS
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039$as_echo_n "checking whether $CC accepts -g... " >&6; }
4040if ${ac_cv_prog_cc_g+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042else
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4045 ac_cv_prog_cc_g=no
4046 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h. */
4049
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_g=yes
4060else
4061 CFLAGS=""
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"; then :
4074
4075else
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077 CFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_cv_prog_cc_g=yes
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4098fi
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100$as_echo "$ac_cv_prog_cc_g" >&6; }
4101if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS
4103elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then
4105 CFLAGS="-g -O2"
4106 else
4107 CFLAGS="-g"
4108 fi
4109else
4110 if test "$GCC" = yes; then
4111 CFLAGS="-O2"
4112 else
4113 CFLAGS=
4114 fi
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118if ${ac_cv_prog_cc_c89+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 ac_cv_prog_cc_c89=no
4122ac_save_CC=$CC
4123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h. */
4125#include <stdarg.h>
4126#include <stdio.h>
4127struct stat;
4128/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4129struct buf { int x; };
4130FILE * (*rcsopen) (struct buf *, struct stat *, int);
4131static char *e (p, i)
4132 char **p;
4133 int i;
4134{
4135 return p[i];
4136}
4137static char *f (char * (*g) (char **, int), char **p, ...)
4138{
4139 char *s;
4140 va_list v;
4141 va_start (v,p);
4142 s = g (p, va_arg (v,int));
4143 va_end (v);
4144 return s;
4145}
4146
4147/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4148 function prototypes and stuff, but not '\xHH' hex character constants.
4149 These don't provoke an error unfortunately, instead are silently treated
4150 as 'x'. The following induces an error, until -std is added to get
4151 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4152 array size at least. It's necessary to write '\x00'==0 to get something
4153 that's true only with -std. */
4154int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155
4156/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4157 inside strings and character constants. */
4158#define FOO(x) 'x'
4159int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160
4161int test (int i, double x);
4162struct s1 {int (*f) (int a);};
4163struct s2 {int (*f) (double a);};
4164int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4165int argc;
4166char **argv;
4167int
4168main ()
4169{
4170return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4176 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177do
4178 CC="$ac_save_CC $ac_arg"
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_c89=$ac_arg
4181fi
4182rm -f core conftest.err conftest.$ac_objext
4183 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184done
4185rm -f conftest.$ac_ext
4186CC=$ac_save_CC
4187
4188fi
4189# AC_CACHE_VAL
4190case "x$ac_cv_prog_cc_c89" in
4191 x)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4193$as_echo "none needed" >&6; } ;;
4194 xno)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4196$as_echo "unsupported" >&6; } ;;
4197 *)
4198 CC="$CC $ac_cv_prog_cc_c89"
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4200$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201esac
4202if test "x$ac_cv_prog_cc_c89" != xno; then :
4203
4204fi
4205
4206ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4218$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4219if ${am_cv_prog_cc_c_o+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h. */
4224
4225int
4226main ()
4227{
4228
4229 ;
4230 return 0;
4231}
4232_ACEOF
4233 # Make sure it works both with $CC and with simple cc.
4234 # Following AC_PROG_CC_C_O, we do the test twice because some
4235 # compilers refuse to overwrite an existing .o file with -o,
4236 # though they will create one.
4237 am_cv_prog_cc_c_o=yes
4238 for am_i in 1 2; do
4239 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4240 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } \
4244 && test -f conftest2.$ac_objext; then
4245 : OK
4246 else
4247 am_cv_prog_cc_c_o=no
4248 break
4249 fi
4250 done
4251 rm -f core conftest*
4252 unset am_i
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4255$as_echo "$am_cv_prog_cc_c_o" >&6; }
4256if test "$am_cv_prog_cc_c_o" != yes; then
4257 # Losing compiler, so override with the script.
4258 # FIXME: It is wrong to rewrite CC.
4259 # But if we don't then we get into trouble of one sort or another.
4260 # A longer-term fix would be to have automake use am__CC in this case,
4261 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4262 CC="$am_aux_dir/compile $CC"
4263fi
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270DEPDIR="${am__leading_dot}deps"
4271
4272ac_config_commands="$ac_config_commands depfiles"
4273
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4275$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4276cat > confinc.mk << 'END'
4277am__doit:
4278 @echo this is the am__doit target >confinc.out
4279.PHONY: am__doit
4280END
4281am__include="#"
4282am__quote=
4283# BSD make does it like this.
4284echo '.include "confinc.mk" # ignored' > confmf.BSD
4285# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4286echo 'include confinc.mk # ignored' > confmf.GNU
4287_am_result=no
4288for s in GNU BSD; do
4289 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4290 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }
4294 case $?:`cat confinc.out 2>/dev/null` in #(
4295 '0:this is the am__doit target') :
4296 case $s in #(
4297 BSD) :
4298 am__include='.include' am__quote='"' ;; #(
4299 *) :
4300 am__include='include' am__quote='' ;;
4301esac ;; #(
4302 *) :
4303 ;;
4304esac
4305 if test "$am__include" != "#"; then
4306 _am_result="yes ($s style)"
4307 break
4308 fi
4309done
4310rm -f confinc.* confmf.*
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4312$as_echo "${_am_result}" >&6; }
4313
4314# Check whether --enable-dependency-tracking was given.
4315if test "${enable_dependency_tracking+set}" = set; then :
4316 enableval=$enable_dependency_tracking;
4317fi
4318
4319if test "x$enable_dependency_tracking" != xno; then
4320 am_depcomp="$ac_aux_dir/depcomp"
4321 AMDEPBACKSLASH='\'
4322 am__nodep='_no'
4323fi
4324 if test "x$enable_dependency_tracking" != xno; then
4325 AMDEP_TRUE=
4326 AMDEP_FALSE='#'
4327else
4328 AMDEP_TRUE='#'
4329 AMDEP_FALSE=
4330fi
4331
4332
4333
4334depcc="$CC" am_compiler_list=
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4337$as_echo_n "checking dependency style of $depcc... " >&6; }
4338if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340else
4341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4342 # We make a subdir and do the tests there. Otherwise we can end up
4343 # making bogus files that we don't know about and never remove. For
4344 # instance it was reported that on HP-UX the gcc test will end up
4345 # making a dummy file named 'D' -- because '-MD' means "put the output
4346 # in D".
4347 rm -rf conftest.dir
4348 mkdir conftest.dir
4349 # Copy depcomp to subdir because otherwise we won't find it if we're
4350 # using a relative directory.
4351 cp "$am_depcomp" conftest.dir
4352 cd conftest.dir
4353 # We will build objects and dependencies in a subdirectory because
4354 # it helps to detect inapplicable dependency modes. For instance
4355 # both Tru64's cc and ICC support -MD to output dependencies as a
4356 # side effect of compilation, but ICC will put the dependencies in
4357 # the current directory while Tru64 will put them in the object
4358 # directory.
4359 mkdir sub
4360
4361 am_cv_CC_dependencies_compiler_type=none
4362 if test "$am_compiler_list" = ""; then
4363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4364 fi
4365 am__universal=false
4366 case " $depcc " in #(
4367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4368 esac
4369
4370 for depmode in $am_compiler_list; do
4371 # Setup a source with many dependencies, because some compilers
4372 # like to wrap large dependency lists on column 80 (with \), and
4373 # we should not choose a depcomp mode which is confused by this.
4374 #
4375 # We need to recreate these files for each test, as the compiler may
4376 # overwrite some of them when testing with obscure command lines.
4377 # This happens at least with the AIX C compiler.
4378 : > sub/conftest.c
4379 for i in 1 2 3 4 5 6; do
4380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4382 # Solaris 10 /bin/sh.
4383 echo '/* dummy */' > sub/conftst$i.h
4384 done
4385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386
4387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4388 # mode. It turns out that the SunPro C++ compiler does not properly
4389 # handle '-M -o', and we need to detect this. Also, some Intel
4390 # versions had trouble with output in subdirs.
4391 am__obj=sub/conftest.${OBJEXT-o}
4392 am__minus_obj="-o $am__obj"
4393 case $depmode in
4394 gcc)
4395 # This depmode causes a compiler race in universal mode.
4396 test "$am__universal" = false || continue
4397 ;;
4398 nosideeffect)
4399 # After this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested.
4401 if test "x$enable_dependency_tracking" = xyes; then
4402 continue
4403 else
4404 break
4405 fi
4406 ;;
4407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4408 # This compiler won't grok '-c -o', but also, the minuso test has
4409 # not run yet. These depmodes are late enough in the game, and
4410 # so weak that their functioning should not be impacted.
4411 am__obj=conftest.${OBJEXT-o}
4412 am__minus_obj=
4413 ;;
4414 none) break ;;
4415 esac
4416 if depmode=$depmode \
4417 source=sub/conftest.c object=$am__obj \
4418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4420 >/dev/null 2>conftest.err &&
4421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425 # icc doesn't choke on unknown options, it will just issue warnings
4426 # or remarks (even with -Werror). So we grep stderr for any message
4427 # that says an option was ignored or not supported.
4428 # When given -MP, icc 7.0 and 7.1 complain thusly:
4429 # icc: Command line warning: ignoring option '-M'; no argument required
4430 # The diagnosis changed in icc 8.0:
4431 # icc: Command line remark: option '-MP' not supported
4432 if (grep 'ignoring option' conftest.err ||
4433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434 am_cv_CC_dependencies_compiler_type=$depmode
4435 break
4436 fi
4437 fi
4438 done
4439
4440 cd ..
4441 rm -rf conftest.dir
4442else
4443 am_cv_CC_dependencies_compiler_type=none
4444fi
4445
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4448$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4449CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4450
4451 if
4452 test "x$enable_dependency_tracking" != xno \
4453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4454 am__fastdepCC_TRUE=
4455 am__fastdepCC_FALSE='#'
4456else
4457 am__fastdepCC_TRUE='#'
4458 am__fastdepCC_FALSE=
4459fi
4460
4461
4462ac_ext=cpp
4463ac_cpp='$CXXCPP $CPPFLAGS'
4464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4467if test -z "$CXX"; then
4468 if test -n "$CCC"; then
4469 CXX=$CCC
4470 else
4471 if test -n "$ac_tool_prefix"; then
4472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4473 do
4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477$as_echo_n "checking for $ac_word... " >&6; }
4478if ${ac_cv_prog_CXX+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480else
4481 if test -n "$CXX"; then
4482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4494 fi
4495done
4496 done
4497IFS=$as_save_IFS
4498
4499fi
4500fi
4501CXX=$ac_cv_prog_CXX
4502if test -n "$CXX"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4504$as_echo "$CXX" >&6; }
4505else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507$as_echo "no" >&6; }
4508fi
4509
4510
4511 test -n "$CXX" && break
4512 done
4513fi
4514if test -z "$CXX"; then
4515 ac_ct_CXX=$CXX
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517do
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519set dummy $ac_prog; ac_word=$2
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521$as_echo_n "checking for $ac_word... " >&6; }
4522if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524else
4525 if test -n "$ac_ct_CXX"; then
4526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_ac_ct_CXX="$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539done
4540 done
4541IFS=$as_save_IFS
4542
4543fi
4544fi
4545ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4546if test -n "$ac_ct_CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4548$as_echo "$ac_ct_CXX" >&6; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552fi
4553
4554
4555 test -n "$ac_ct_CXX" && break
4556done
4557
4558 if test "x$ac_ct_CXX" = x; then
4559 CXX="g++"
4560 else
4561 case $cross_compiling:$ac_tool_warned in
4562yes:)
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4565ac_tool_warned=yes ;;
4566esac
4567 CXX=$ac_ct_CXX
4568 fi
4569fi
4570
4571 fi
4572fi
4573# Provide some information about the compiler.
4574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4575set X $ac_compile
4576ac_compiler=$2
4577for ac_option in --version -v -V -qversion; do
4578 { { ac_try="$ac_compiler $ac_option >&5"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4586 ac_status=$?
4587 if test -s conftest.err; then
4588 sed '10a\
4589... rest of stderr output deleted ...
4590 10q' conftest.err >conftest.er1
4591 cat conftest.er1 >&5
4592 fi
4593 rm -f conftest.er1 conftest.err
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }
4596done
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4599$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4600if ${ac_cv_cxx_compiler_gnu+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605
4606int
4607main ()
4608{
4609#ifndef __GNUC__
4610 choke me
4611#endif
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617if ac_fn_cxx_try_compile "$LINENO"; then :
4618 ac_compiler_gnu=yes
4619else
4620 ac_compiler_gnu=no
4621fi
4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4624
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4627$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4628if test $ac_compiler_gnu = yes; then
4629 GXX=yes
4630else
4631 GXX=
4632fi
4633ac_test_CXXFLAGS=${CXXFLAGS+set}
4634ac_save_CXXFLAGS=$CXXFLAGS
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4636$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4637if ${ac_cv_prog_cxx_g+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4641 ac_cxx_werror_flag=yes
4642 ac_cv_prog_cxx_g=no
4643 CXXFLAGS="-g"
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
4646
4647int
4648main ()
4649{
4650
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655if ac_fn_cxx_try_compile "$LINENO"; then :
4656 ac_cv_prog_cxx_g=yes
4657else
4658 CXXFLAGS=""
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h. */
4661
4662int
4663main ()
4664{
4665
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670if ac_fn_cxx_try_compile "$LINENO"; then :
4671
4672else
4673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4674 CXXFLAGS="-g"
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677
4678int
4679main ()
4680{
4681
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686if ac_fn_cxx_try_compile "$LINENO"; then :
4687 ac_cv_prog_cxx_g=yes
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692fi
4693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4697$as_echo "$ac_cv_prog_cxx_g" >&6; }
4698if test "$ac_test_CXXFLAGS" = set; then
4699 CXXFLAGS=$ac_save_CXXFLAGS
4700elif test $ac_cv_prog_cxx_g = yes; then
4701 if test "$GXX" = yes; then
4702 CXXFLAGS="-g -O2"
4703 else
4704 CXXFLAGS="-g"
4705 fi
4706else
4707 if test "$GXX" = yes; then
4708 CXXFLAGS="-O2"
4709 else
4710 CXXFLAGS=
4711 fi
4712fi
4713ac_ext=c
4714ac_cpp='$CPP $CPPFLAGS'
4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
4719depcc="$CXX" am_compiler_list=
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4722$as_echo_n "checking dependency style of $depcc... " >&6; }
4723if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725else
4726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4727 # We make a subdir and do the tests there. Otherwise we can end up
4728 # making bogus files that we don't know about and never remove. For
4729 # instance it was reported that on HP-UX the gcc test will end up
4730 # making a dummy file named 'D' -- because '-MD' means "put the output
4731 # in D".
4732 rm -rf conftest.dir
4733 mkdir conftest.dir
4734 # Copy depcomp to subdir because otherwise we won't find it if we're
4735 # using a relative directory.
4736 cp "$am_depcomp" conftest.dir
4737 cd conftest.dir
4738 # We will build objects and dependencies in a subdirectory because
4739 # it helps to detect inapplicable dependency modes. For instance
4740 # both Tru64's cc and ICC support -MD to output dependencies as a
4741 # side effect of compilation, but ICC will put the dependencies in
4742 # the current directory while Tru64 will put them in the object
4743 # directory.
4744 mkdir sub
4745
4746 am_cv_CXX_dependencies_compiler_type=none
4747 if test "$am_compiler_list" = ""; then
4748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4749 fi
4750 am__universal=false
4751 case " $depcc " in #(
4752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4753 esac
4754
4755 for depmode in $am_compiler_list; do
4756 # Setup a source with many dependencies, because some compilers
4757 # like to wrap large dependency lists on column 80 (with \), and
4758 # we should not choose a depcomp mode which is confused by this.
4759 #
4760 # We need to recreate these files for each test, as the compiler may
4761 # overwrite some of them when testing with obscure command lines.
4762 # This happens at least with the AIX C compiler.
4763 : > sub/conftest.c
4764 for i in 1 2 3 4 5 6; do
4765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4766 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4767 # Solaris 10 /bin/sh.
4768 echo '/* dummy */' > sub/conftst$i.h
4769 done
4770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4771
4772 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4773 # mode. It turns out that the SunPro C++ compiler does not properly
4774 # handle '-M -o', and we need to detect this. Also, some Intel
4775 # versions had trouble with output in subdirs.
4776 am__obj=sub/conftest.${OBJEXT-o}
4777 am__minus_obj="-o $am__obj"
4778 case $depmode in
4779 gcc)
4780 # This depmode causes a compiler race in universal mode.
4781 test "$am__universal" = false || continue
4782 ;;
4783 nosideeffect)
4784 # After this tag, mechanisms are not by side-effect, so they'll
4785 # only be used when explicitly requested.
4786 if test "x$enable_dependency_tracking" = xyes; then
4787 continue
4788 else
4789 break
4790 fi
4791 ;;
4792 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4793 # This compiler won't grok '-c -o', but also, the minuso test has
4794 # not run yet. These depmodes are late enough in the game, and
4795 # so weak that their functioning should not be impacted.
4796 am__obj=conftest.${OBJEXT-o}
4797 am__minus_obj=
4798 ;;
4799 none) break ;;
4800 esac
4801 if depmode=$depmode \
4802 source=sub/conftest.c object=$am__obj \
4803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4805 >/dev/null 2>conftest.err &&
4806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810 # icc doesn't choke on unknown options, it will just issue warnings
4811 # or remarks (even with -Werror). So we grep stderr for any message
4812 # that says an option was ignored or not supported.
4813 # When given -MP, icc 7.0 and 7.1 complain thusly:
4814 # icc: Command line warning: ignoring option '-M'; no argument required
4815 # The diagnosis changed in icc 8.0:
4816 # icc: Command line remark: option '-MP' not supported
4817 if (grep 'ignoring option' conftest.err ||
4818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819 am_cv_CXX_dependencies_compiler_type=$depmode
4820 break
4821 fi
4822 fi
4823 done
4824
4825 cd ..
4826 rm -rf conftest.dir
4827else
4828 am_cv_CXX_dependencies_compiler_type=none
4829fi
4830
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4834CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4835
4836 if
4837 test "x$enable_dependency_tracking" != xno \
4838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839 am__fastdepCXX_TRUE=
4840 am__fastdepCXX_FALSE='#'
4841else
4842 am__fastdepCXX_TRUE='#'
4843 am__fastdepCXX_FALSE=
4844fi
4845
4846
4847 # Needed for subdir-objects in AUTOMAKE_OPTIONS
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
4851$as_echo_n "checking maximum warning verbosity option... " >&6; }
4852
4853
4854
4855
4856# Check whether --with-maximum-compile-warnings was given.
4857if test "${with_maximum_compile_warnings+set}" = set; then :
4858 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
4859else
4860 ac_compile_warnings_on=""
4861fi
4862
4863
4864 if test x"$ac_compile_warnings_on" = xno
4865 then
4866 ac_compile_warnings_msg=no
4867 else
4868 if test -n "$CXX"
4869 then
4870 if test "$GXX" = "yes"
4871 then
4872 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4873 fi
4874 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
4875 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
4876 fi
4877
4878 if test -n "$CC"
4879 then
4880 if test "$GCC" = "yes"
4881 then
4882 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4883 fi
4884 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
4885 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
4886 fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
4889$as_echo "$ac_compile_warnings_msg" >&6; }
4890 unset ac_compile_warnings_msg
4891 unset ac_compile_warnings_opt
4892 # Increase warning levels
4893
4894
4895cat >>confdefs.h <<_ACEOF
4896#define SWIG_CXX "$CXX"
4897_ACEOF
4898
4899
4900cat >>confdefs.h <<_ACEOF
4901#define SWIG_PLATFORM "$host"
4902_ACEOF
4903
4904
4905
4906ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912$as_echo_n "checking how to run the C preprocessor... " >&6; }
4913# On Suns, sometimes $CPP names a directory.
4914if test -n "$CPP" && test -d "$CPP"; then
4915 CPP=
4916fi
4917if test -z "$CPP"; then
4918 if ${ac_cv_prog_CPP+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920else
4921 # Double quotes because CPP needs to be expanded
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 do
4924 ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934/* end confdefs.h. */
4935#ifdef __STDC__
4936# include <limits.h>
4937#else
4938# include <assert.h>
4939#endif
4940 Syntax error
4941_ACEOF
4942if ac_fn_c_try_cpp "$LINENO"; then :
4943
4944else
4945 # Broken: fails on valid input.
4946continue
4947fi
4948rm -f conftest.err conftest.i conftest.$ac_ext
4949
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953/* end confdefs.h. */
4954#include <ac_nonexistent.h>
4955_ACEOF
4956if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958continue
4959else
4960 # Passes both tests.
4961ac_preproc_ok=:
4962break
4963fi
4964rm -f conftest.err conftest.i conftest.$ac_ext
4965
4966done
4967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968rm -f conftest.i conftest.err conftest.$ac_ext
4969if $ac_preproc_ok; then :
4970 break
4971fi
4972
4973 done
4974 ac_cv_prog_CPP=$CPP
4975
4976fi
4977 CPP=$ac_cv_prog_CPP
4978else
4979 ac_cv_prog_CPP=$CPP
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982$as_echo "$CPP" >&6; }
4983ac_preproc_ok=false
4984for ac_c_preproc_warn_flag in '' yes
4985do
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h. */
4994#ifdef __STDC__
4995# include <limits.h>
4996#else
4997# include <assert.h>
4998#endif
4999 Syntax error
5000_ACEOF
5001if ac_fn_c_try_cpp "$LINENO"; then :
5002
5003else
5004 # Broken: fails on valid input.
5005continue
5006fi
5007rm -f conftest.err conftest.i conftest.$ac_ext
5008
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
5013#include <ac_nonexistent.h>
5014_ACEOF
5015if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5017continue
5018else
5019 # Passes both tests.
5020ac_preproc_ok=:
5021break
5022fi
5023rm -f conftest.err conftest.i conftest.$ac_ext
5024
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.i conftest.err conftest.$ac_ext
5028if $ac_preproc_ok; then :
5029
5030else
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5034See \`config.log' for more details" "$LINENO" 5; }
5035fi
5036
5037ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046if ${ac_cv_path_GREP+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 if test -z "$GREP"; then
5050 ac_path_GREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in grep ggrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060 as_fn_executable_p "$ac_path_GREP" || continue
5061# Check for GNU ac_path_GREP and select it if it is found.
5062 # Check for GNU $ac_path_GREP
5063case `"$ac_path_GREP" --version 2>&1` in
5064*GNU*)
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066*)
5067 ac_count=0
5068 $as_echo_n 0123456789 >"conftest.in"
5069 while :
5070 do
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'GREP' >> "conftest.nl"
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_GREP="$ac_path_GREP"
5081 ac_path_GREP_max=$ac_count
5082 fi
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087esac
5088
5089 $ac_path_GREP_found && break 3
5090 done
5091 done
5092 done
5093IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_GREP"; then
5095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 fi
5097else
5098 ac_cv_path_GREP=$GREP
5099fi
5100
5101fi
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103$as_echo "$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5105
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108$as_echo_n "checking for egrep... " >&6; }
5109if ${ac_cv_path_EGREP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5114 else
5115 if test -z "$EGREP"; then
5116 ac_path_EGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in egrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126 as_fn_executable_p "$ac_path_EGREP" || continue
5127# Check for GNU ac_path_EGREP and select it if it is found.
5128 # Check for GNU $ac_path_EGREP
5129case `"$ac_path_EGREP" --version 2>&1` in
5130*GNU*)
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132*)
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5136 do
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'EGREP' >> "conftest.nl"
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_EGREP="$ac_path_EGREP"
5147 ac_path_EGREP_max=$ac_count
5148 fi
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153esac
5154
5155 $ac_path_EGREP_found && break 3
5156 done
5157 done
5158 done
5159IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_EGREP"; then
5161 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 fi
5163else
5164 ac_cv_path_EGREP=$EGREP
5165fi
5166
5167 fi
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170$as_echo "$ac_cv_path_EGREP" >&6; }
5171 EGREP="$ac_cv_path_EGREP"
5172
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175$as_echo_n "checking for ANSI C header files... " >&6; }
5176if ${ac_cv_header_stdc+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h. */
5181#include <stdlib.h>
5182#include <stdarg.h>
5183#include <string.h>
5184#include <float.h>
5185
5186int
5187main ()
5188{
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_cv_header_stdc=yes
5196else
5197 ac_cv_header_stdc=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200
5201if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#include <string.h>
5206
5207_ACEOF
5208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "memchr" >/dev/null 2>&1; then :
5210
5211else
5212 ac_cv_header_stdc=no
5213fi
5214rm -f conftest*
5215
5216fi
5217
5218if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#include <stdlib.h>
5223
5224_ACEOF
5225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "free" >/dev/null 2>&1; then :
5227
5228else
5229 ac_cv_header_stdc=no
5230fi
5231rm -f conftest*
5232
5233fi
5234
5235if test $ac_cv_header_stdc = yes; then
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237 if test "$cross_compiling" = yes; then :
5238 :
5239else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#include <ctype.h>
5243#include <stdlib.h>
5244#if ((' ' & 0x0FF) == 0x020)
5245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247#else
5248# define ISLOWER(c) \
5249 (('a' <= (c) && (c) <= 'i') \
5250 || ('j' <= (c) && (c) <= 'r') \
5251 || ('s' <= (c) && (c) <= 'z'))
5252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253#endif
5254
5255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256int
5257main ()
5258{
5259 int i;
5260 for (i = 0; i < 256; i++)
5261 if (XOR (islower (i), ISLOWER (i))
5262 || toupper (i) != TOUPPER (i))
5263 return 2;
5264 return 0;
5265}
5266_ACEOF
5267if ac_fn_c_try_run "$LINENO"; then :
5268
5269else
5270 ac_cv_header_stdc=no
5271fi
5272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext
5274fi
5275
5276fi
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279$as_echo "$ac_cv_header_stdc" >&6; }
5280if test $ac_cv_header_stdc = yes; then
5281
5282$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5283
5284fi
5285
5286
5287
5288# Check whether --with-popen was given.
5289if test "${with_popen+set}" = set; then :
5290 withval=$with_popen; with_popen="$withval"
5291fi
5292
5293if test x"${with_popen}" = xno ; then
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling popen" >&5
5295$as_echo "$as_me: Disabling popen" >&6;}
5296else
5297ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
5298if test "x$ac_cv_func_popen" = xyes; then :
5299
5300$as_echo "#define HAVE_POPEN 1" >>confdefs.h
5301
5302else
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling popen" >&5
5304$as_echo "$as_me: Disabling popen" >&6;}
5305fi
5306
5307fi
5308
5309
5310# Check whether --with-pcre was given.
5311if test "${with_pcre+set}" = set; then :
5312 withval=$with_pcre;
5313else
5314 with_pcre=yes
5315fi
5316
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE support" >&5
5319$as_echo_n "checking whether to enable PCRE support... " >&6; }
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pcre" >&5
5321$as_echo "$with_pcre" >&6; }
5322
5323if test x"${with_pcre}" = xyes ; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use local PCRE" >&5
5325$as_echo_n "checking whether to use local PCRE... " >&6; }
5326 local_pcre_config=no
5327 if test -z $PCRE_CONFIG; then
5328 if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then
5329 PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config
5330 local_pcre_config=$PCRE_CONFIG
5331 fi
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_pcre_config" >&5
5334$as_echo "$local_pcre_config" >&6; }
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5337$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5338if ${ac_cv_path_SED+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5342 for ac_i in 1 2 3 4 5 6 7; do
5343 ac_script="$ac_script$as_nl$ac_script"
5344 done
5345 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5346 { ac_script=; unset ac_script;}
5347 if test -z "$SED"; then
5348 ac_path_SED_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_prog in sed gsed; do
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5358 as_fn_executable_p "$ac_path_SED" || continue
5359# Check for GNU ac_path_SED and select it if it is found.
5360 # Check for GNU $ac_path_SED
5361case `"$ac_path_SED" --version 2>&1` in
5362*GNU*)
5363 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5364*)
5365 ac_count=0
5366 $as_echo_n 0123456789 >"conftest.in"
5367 while :
5368 do
5369 cat "conftest.in" "conftest.in" >"conftest.tmp"
5370 mv "conftest.tmp" "conftest.in"
5371 cp "conftest.in" "conftest.nl"
5372 $as_echo '' >> "conftest.nl"
5373 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5375 as_fn_arith $ac_count + 1 && ac_count=$as_val
5376 if test $ac_count -gt ${ac_path_SED_max-0}; then
5377 # Best one so far, save it but keep looking for a better one
5378 ac_cv_path_SED="$ac_path_SED"
5379 ac_path_SED_max=$ac_count
5380 fi
5381 # 10*(2^10) chars as input seems more than enough
5382 test $ac_count -gt 10 && break
5383 done
5384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5385esac
5386
5387 $ac_path_SED_found && break 3
5388 done
5389 done
5390 done
5391IFS=$as_save_IFS
5392 if test -z "$ac_cv_path_SED"; then
5393 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5394 fi
5395else
5396 ac_cv_path_SED=$SED
5397fi
5398
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5401$as_echo "$ac_cv_path_SED" >&6; }
5402 SED="$ac_cv_path_SED"
5403 rm -f conftest.sed
5404
5405if test "x$with_pcre" != xno; then :
5406
5407
5408
5409
5410
5411# Check whether --with-pcre-prefix was given.
5412if test "${with_pcre_prefix+set}" = set; then :
5413 withval=$with_pcre_prefix; pcre_config_prefix="$withval"
5414else
5415 pcre_config_prefix=""
5416fi
5417
5418
5419# Check whether --with-pcre-exec-prefix was given.
5420if test "${with_pcre_exec_prefix+set}" = set; then :
5421 withval=$with_pcre_exec_prefix; pcre_config_exec_prefix="$withval"
5422else
5423 pcre_config_exec_prefix=""
5424fi
5425
5426
5427
5428
5429
5430
5431 if test x"$PCRE_CFLAGS" != x -o x"$PCRE_LIBS" != x; then :
5432
5433
5434
5435 :
5436
5437$as_echo "#define HAVE_PCRE 1" >>confdefs.h
5438
5439 LIBS="$LIBS $PCRE_LIBS"
5440 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS"
5441
5442
5443else
5444
5445 if test x$pcre_config_exec_prefix != x; then :
5446
5447 pcre_config_args="$pcre_config_args --exec-prefix=$pcre_config_exec_prefix"
5448 if test x${PCRE_CONFIG+set} != xset; then :
5449
5450 PCRE_CONFIG=$pcre_config_exec_prefix/bin/pcre-config
5451
5452fi
5453
5454fi
5455 if test x$pcre_config_prefix != x; then :
5456
5457 pcre_config_args="$pcre_config_args --prefix=$pcre_config_prefix"
5458 if test x${PCRE_CONFIG+set} != xset; then :
5459
5460 PCRE_CONFIG=$pcre_config_prefix/bin/pcre-config
5461
5462fi
5463
5464fi
5465
5466 for ac_prog in pcre-config
5467do
5468 # Extract the first word of "$ac_prog", so it can be a program name with args.
5469set dummy $ac_prog; ac_word=$2
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471$as_echo_n "checking for $ac_word... " >&6; }
5472if ${ac_cv_path_PCRE_CONFIG+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474else
5475 case $PCRE_CONFIG in
5476 [\\/]* | ?:[\\/]*)
5477 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
5478 ;;
5479 *)
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491done
5492 done
5493IFS=$as_save_IFS
5494
5495 ;;
5496esac
5497fi
5498PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
5499if test -n "$PCRE_CONFIG"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
5501$as_echo "$PCRE_CONFIG" >&6; }
5502else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
5506
5507
5508 test -n "$PCRE_CONFIG" && break
5509done
5510test -n "$PCRE_CONFIG" || PCRE_CONFIG="no"
5511
5512 if test "$PCRE_CONFIG" = "no"; then :
5513
5514 :
5515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5517as_fn_error $? "
5518 Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions)
5519 library package. This dependency is needed for configure to complete,
5520 Either:
5521 - Install the PCRE developer package on your system (preferred approach).
5522 - Download the PCRE source tarball, build and install on your system
5523 as you would for any package built from source distribution.
5524 - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically
5525 link against. Run 'Tools/pcre-build.sh --help' for instructions.
5526 (quite easy and does not require privileges to install PCRE on your system)
5527 - Use configure --without-pcre to disable regular expressions support in SWIG
5528 (not recommended).
5529See \`config.log' for more details" "$LINENO" 5; }
5530
5531
5532else
5533
5534 if test x"" = x; then :
5535
5536 PCRE_CFLAGS="`$PCRE_CONFIG $pcre_config_args --cflags`"
5537
5538else
5539
5540 PCRE_CFLAGS="`$PCRE_CONFIG $pcre_config_args `"
5541
5542fi
5543
5544 if test x"" = x; then :
5545
5546 PCRE_LIBS="`$PCRE_CONFIG $pcre_config_args --libs`"
5547
5548else
5549
5550 PCRE_LIBS="`$PCRE_CONFIG $pcre_config_args `"
5551
5552fi
5553
5554 if test x"" != x; then :
5555
5556 if test x" " != x; then :
5557
5558 pcre_version="`$PCRE_CONFIG $pcre_config_args --version | $SED -e `"
5559
5560else
5561
5562 pcre_version="`$PCRE_CONFIG $pcre_config_args --version | $SED -e 's/^\ *\(.*\)\ *$/\1/'`"
5563
5564fi
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre ($pcre_version) >= " >&5
5567$as_echo_n "checking for pcre ($pcre_version) >= ... " >&6; }
5568
5569
5570
5571 # Used to indicate true or false condition
5572 ax_compare_version=false
5573
5574 # Convert the two version strings to be compared into a format that
5575 # allows a simple string comparison. The end result is that a version
5576 # string of the form 1.12.5-r617 will be converted to the form
5577 # 0001001200050617. In other words, each number is zero padded to four
5578 # digits, and non digits are removed.
5579
5580 ax_compare_version_A=`echo "$pcre_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
5581 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
5582 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
5583 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
5584 -e 's/[^0-9]//g'`
5585
5586
5587 ax_compare_version_B=`echo "" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
5588 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
5589 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
5590 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
5591 -e 's/[^0-9]//g'`
5592
5593
5594 ax_compare_version=`echo "x$ax_compare_version_A
5595x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
5596
5597
5598
5599 if test "$ax_compare_version" = "true" ; then
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602$as_echo "yes" >&6; }
5603
5604
5605
5606 :
5607
5608$as_echo "#define HAVE_PCRE 1" >>confdefs.h
5609
5610 LIBS="$LIBS $PCRE_LIBS"
5611 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS"
5612
5613
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617 :
5618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5620as_fn_error $? "
5621 Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions)
5622 library package. This dependency is needed for configure to complete,
5623 Either:
5624 - Install the PCRE developer package on your system (preferred approach).
5625 - Download the PCRE source tarball, build and install on your system
5626 as you would for any package built from source distribution.
5627 - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically
5628 link against. Run 'Tools/pcre-build.sh --help' for instructions.
5629 (quite easy and does not require privileges to install PCRE on your system)
5630 - Use configure --without-pcre to disable regular expressions support in SWIG
5631 (not recommended).
5632See \`config.log' for more details" "$LINENO" 5; }
5633
5634
5635 fi
5636
5637
5638else
5639
5640
5641
5642 :
5643
5644$as_echo "#define HAVE_PCRE 1" >>confdefs.h
5645
5646 LIBS="$LIBS $PCRE_LIBS"
5647 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS"
5648
5649
5650fi
5651
5652fi
5653
5654fi
5655
5656
5657
5658
5659
5660fi
5661
5662
5663# Check whether --enable-ccache was given.
5664if test "${enable_ccache+set}" = set; then :
5665 enableval=$enable_ccache; enable_ccache=$enableval
5666else
5667 enable_ccache=yes
5668fi
5669
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache-swig" >&5
5671$as_echo_n "checking whether to enable ccache-swig... " >&6; }
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ccache" >&5
5673$as_echo "$enable_ccache" >&6; }
5674
5675if test "$enable_ccache" = yes; then
5676
5677
5678subdirs="$subdirs CCache"
5679
5680 ENABLE_CCACHE=1
5681fi
5682
5683
5684
5685echo ""
5686echo "Checking packages required for SWIG developers."
5687echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball"
5688echo ""
5689
5690for ac_prog in 'bison -y' byacc
5691do
5692 # Extract the first word of "$ac_prog", so it can be a program name with args.
5693set dummy $ac_prog; ac_word=$2
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695$as_echo_n "checking for $ac_word... " >&6; }
5696if ${ac_cv_prog_YACC+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698else
5699 if test -n "$YACC"; then
5700 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_YACC="$ac_prog"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713done
5714 done
5715IFS=$as_save_IFS
5716
5717fi
5718fi
5719YACC=$ac_cv_prog_YACC
5720if test -n "$YACC"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5722$as_echo "$YACC" >&6; }
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726fi
5727
5728
5729 test -n "$YACC" && break
5730done
5731test -n "$YACC" || YACC="yacc"
5732
5733
5734echo ""
5735echo "Checking for installed target languages and other information in order to compile and run"
5736echo "the examples and test-suite invoked by 'make check'."
5737echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball"
5738echo ""
5739
5740
5741
5742
5743# Check whether --with-boost was given.
5744if test "${with_boost+set}" = set; then :
5745 withval=$with_boost;
5746 case $withval in #(
5747 no) :
5748 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
5749 yes) :
5750 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
5751 *) :
5752 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
5753esac
5754
5755else
5756 want_boost="yes"
5757fi
5758
5759
5760
5761
5762# Check whether --with-boost-libdir was given.
5763if test "${with_boost_libdir+set}" = set; then :
5764 withval=$with_boost_libdir;
5765 if test -d "$withval"; then :
5766 _AX_BOOST_BASE_boost_lib_path="$withval"
5767else
5768 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5769fi
5770
5771else
5772 _AX_BOOST_BASE_boost_lib_path=""
5773fi
5774
5775
5776BOOST_LDFLAGS=""
5777BOOST_CPPFLAGS=""
5778if test "x$want_boost" = "xyes"; then :
5779
5780
5781 if test "x" = "x"; then :
5782 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
5783else
5784 _AX_BOOST_BASE_TONUMERICVERSION_req=""
5785fi
5786 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5787 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5788 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
5789 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
5790fi
5791 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5792 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
5793 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
5794fi
5795 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5796 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
5797 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
5798fi
5799 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
5800 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5801
5802 succeeded=no
5803
5804
5805
5806 case ${host_cpu} in #(
5807 x86_64) :
5808 libsubdirs="lib64 libx32 lib lib64" ;; #(
5809 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
5810 libsubdirs="lib64 lib lib64" ;; #(
5811 *) :
5812 libsubdirs="lib"
5813 ;;
5814esac
5815
5816 case ${host_cpu} in #(
5817 i?86) :
5818 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
5819 *) :
5820 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
5821 ;;
5822esac
5823
5824 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
5827$as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5828 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831$as_echo "yes" >&6; }
5832 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
5833 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
5835$as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
5836 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839$as_echo "yes" >&6; }
5840 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5841 break;
5842
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847 done
5848else
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
5854else
5855
5856 if test X"$cross_compiling" = Xyes; then
5857 search_libsubdirs=$multiarch_libsubdir
5858 else
5859 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
5860 fi
5861 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5862 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5863 for libsubdir in $search_libsubdirs ; do
5864 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5865 done
5866 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5867 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5868 break;
5869 fi
5870 done
5871
5872fi
5873
5874 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
5875 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
5876fi
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION)" >&5
5879$as_echo_n "checking for boostlib >= ($WANT_BOOST_VERSION)... " >&6; }
5880 CPPFLAGS_SAVED="$CPPFLAGS"
5881 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5882 export CPPFLAGS
5883
5884 LDFLAGS_SAVED="$LDFLAGS"
5885 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5886 export LDFLAGS
5887
5888
5889 ac_ext=cpp
5890ac_cpp='$CXXCPP $CPPFLAGS'
5891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896/* end confdefs.h. */
5897
5898#include <boost/version.hpp>
5899
5900int
5901main ()
5902{
5903
5904(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5905
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910if ac_fn_cxx_try_compile "$LINENO"; then :
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913$as_echo "yes" >&6; }
5914 succeeded=yes
5915 found_system=yes
5916
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 ac_ext=c
5920ac_cpp='$CPP $CPPFLAGS'
5921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924
5925
5926
5927
5928 if test "x$succeeded" != "xyes" ; then
5929 CPPFLAGS="$CPPFLAGS_SAVED"
5930 LDFLAGS="$LDFLAGS_SAVED"
5931 BOOST_CPPFLAGS=
5932 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5933 BOOST_LDFLAGS=
5934 fi
5935 _version=0
5936 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5937 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5938 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5939 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5940 V_CHECK=`expr $_version_tmp \> $_version`
5941 if test "x$V_CHECK" = "x1" ; then
5942 _version=$_version_tmp
5943 fi
5944 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5945 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5946 done
5947 if test -z "$BOOST_CPPFLAGS"; then
5948 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5949 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
5950 fi
5951 fi
5952 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5953 for libsubdir in $libsubdirs ; do
5954 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5955 done
5956 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5957 fi
5958 fi
5959 else
5960 if test "x$cross_compiling" != "xyes" ; then
5961 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
5962 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5963 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5964 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5965 V_CHECK=`expr $_version_tmp \> $_version`
5966 if test "x$V_CHECK" = "x1" ; then
5967 _version=$_version_tmp
5968 best_path=$_AX_BOOST_BASE_boost_path
5969 fi
5970 done
5971 fi
5972 done
5973
5974 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5975 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5976 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5977 for libsubdir in $libsubdirs ; do
5978 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5979 done
5980 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5981 fi
5982 fi
5983
5984 if test -n "$BOOST_ROOT" ; then
5985 for libsubdir in $libsubdirs ; do
5986 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5987 done
5988 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5989 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5990 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5991 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5992 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5993 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5995$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5996 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5997 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
5998 fi
5999 fi
6000 fi
6001 fi
6002
6003 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
6004 export CPPFLAGS
6005 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
6006 export LDFLAGS
6007
6008 ac_ext=cpp
6009ac_cpp='$CXXCPP $CPPFLAGS'
6010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6013
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h. */
6016
6017#include <boost/version.hpp>
6018
6019int
6020main ()
6021{
6022
6023(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
6024
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029if ac_fn_cxx_try_compile "$LINENO"; then :
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6032$as_echo "yes" >&6; }
6033 succeeded=yes
6034 found_system=yes
6035
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 ac_ext=c
6039ac_cpp='$CPP $CPPFLAGS'
6040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043
6044 fi
6045
6046 if test "x$succeeded" != "xyes" ; then
6047 if test "x$_version" = "x0" ; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
6049$as_echo "$as_me: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
6052$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
6053 fi
6054 # execute ACTION-IF-NOT-FOUND (if present):
6055 :
6056 else
6057
6058$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
6059
6060 # execute ACTION-IF-FOUND (if present):
6061 :
6062 fi
6063
6064 CPPFLAGS="$CPPFLAGS_SAVED"
6065 LDFLAGS="$LDFLAGS_SAVED"
6066
6067
6068fi
6069
6070
6071
6072
6073
6074# -I should not be used on system directories (GCC)
6075if test "$GCC" = yes; then
6076 ISYSTEM="-isystem "
6077else
6078 ISYSTEM="-I"
6079fi
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: ISYSTEM: $ISYSTEM" >&5
6081$as_echo "$as_me: ISYSTEM: $ISYSTEM" >&6;}
6082
6083
6084# SO is the extension of shared libraries (including the dot!)
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
6086$as_echo_n "checking SO... " >&6; }
6087if test -z "$SO"
6088then
6089 case $host in
6090 *-*-hp*) SO=.sl;;
6091 *-*-darwin*) SO=.bundle;;
6092 *-*-cygwin* | *-*-mingw*) SO=.dll;;
6093 *) SO=.so;;
6094 esac
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
6097$as_echo "$SO" >&6; }
6098
6099# LDSHARED is the ld *command* used to create shared library
6100# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
6101# (Shared libraries in this instance are shared modules to be loaded into
6102# Python, as opposed to building Python itself as a shared library.)
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
6104$as_echo_n "checking LDSHARED... " >&6; }
6105if test -z "$LDSHARED"
6106then
6107 case $host in
6108 *-*-aix*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";;
6109 *-*-cygwin* | *-*-mingw*)
6110 if test "$GCC" = yes; then
6111 LDSHARED="$CC -shared"
6112 else
6113 if test "cl" = $CC ; then
6114 # Microsoft Visual C++ (MSVC)
6115 LDSHARED="$CC -nologo -LD"
6116 else
6117 # Unknown compiler try gcc approach
6118 LDSHARED="$CC -shared"
6119 fi
6120 fi ;;
6121 *-*-irix5*) LDSHARED="ld -shared";;
6122 *-*-irix6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
6123 *-*-sunos4*) LDSHARED="ld";;
6124 *-*-solaris*) LDSHARED="ld -G";;
6125 *-*-hp*) LDSHARED="ld -b";;
6126 *-*-osf*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
6127 *-sequent-sysv4) LDSHARED="ld -G";;
6128 *-*-next*)
6129 if test "$ns_dyld"
6130 then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
6131 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'
6132 fi
6133 if test "$with_next_framework" ; then
6134 LDSHARED="$LDSHARED \$(LDLIBRARY)"
6135 fi ;;
6136 *-*-linux*) LDSHARED="$CC -shared";;
6137 *-*-dgux*) LDSHARED="ld -G";;
6138 *-*-freebsd3*) LDSHARED="$CC -shared";;
6139 *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
6140 *-*-netbsd*)
6141 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
6142 then
6143 LDSHARED="$CC -shared"
6144 else
6145 LDSHARED="ld -Bshareable"
6146 fi;;
6147 *-sco-sysv*) LDSHARED="$CC -G -KPIC -Ki486 -belf -Wl,-Bexport";;
6148 *-*-darwin*) LDSHARED="$CC -bundle -undefined suppress -flat_namespace";;
6149 *) LDSHARED="ld";;
6150 esac
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
6153$as_echo "$LDSHARED" >&6; }
6154# CXXSHARED is the ld *command* used to create C++ shared library
6155# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
6156# (Shared libraries in this instance are shared modules to be loaded into
6157# Python, as opposed to building Python itself as a shared library.)
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXSHARED" >&5
6159$as_echo_n "checking CXXSHARED... " >&6; }
6160if test -z "$CXXSHARED"
6161then
6162 CXXSHARED="$LDSHARED"
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXSHARED" >&5
6165$as_echo "$CXXSHARED" >&6; }
6166
6167#
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TRYLINKINGWITHCXX" >&5
6169$as_echo_n "checking TRYLINKINGWITHCXX... " >&6; }
6170if test -z "$TRYLINKINGWITHCXX"
6171then
6172 case $host in
6173 *-*-solaris*) if test "$GCC" = yes
6174 then TRYLINKINGWITHCXX="CXXSHARED= $CXX -Wl,-G"
6175 else TRYLINKINGWITHCXX="CXXSHARED= $CXX -G -L/opt/SUNWspro/lib -lCrun -lCstd"
6176 fi;;
6177 *-*-hp*) TRYLINKINGWITHCXX="CXXSHARED= $CXX +z ";;
6178 *-*-darwin*) TRYLINKINGWITHCXX="CXXSHARED= $CXX -bundle -undefined suppress -flat_namespace";;
6179 *-*-cygwin* | *-*-mingw*)
6180 if test "$GCC" = yes; then
6181 TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared "
6182 else
6183 if test "cl" = $CXX ; then
6184 # Microsoft Visual C++ (MSVC)
6185 TRYLINKINGWITHCXX="CXXSHARED= $CXX -nologo -LD"
6186 else
6187 TRYLINKINGWITHCXX="#unknown Windows compiler"
6188 fi
6189 fi ;;
6190 *) TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared ";;
6191 esac
6192fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRYLINKINGWITHCXX" >&5
6194$as_echo "$TRYLINKINGWITHCXX" >&6; }
6195# CCSHARED are the C *flags* used to create objects to go into a shared
6196# library (module) -- this is only needed for a few systems
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
6198$as_echo_n "checking CCSHARED... " >&6; }
6199if test -z "$CCSHARED"
6200then
6201 case $host in
6202 *-*-hp*) if test "$GCC" = yes
6203 then CCSHARED="-fpic"
6204 else CCSHARED="+z"
6205 fi;;
6206 s390x*-*-*) CCSHARED="-fpic" ;;
6207 s390*-*-*) CCSHARED="-fPIC" ;;
6208 *-*-linux*) CCSHARED="-fpic";;
6209 *-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";;
6210 *-*-netbsd*) CCSHARED="-fPIC";;
6211 *-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";;
6212 *-*-irix6*) case $CC in
6213 *gcc*) CCSHARED="-shared";;
6214 *) CCSHARED="";;
6215 esac;;
6216 esac
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
6219$as_echo "$CCSHARED" >&6; }
6220
6221# RPATH is the path used to look for shared library files.
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RPATH" >&5
6223$as_echo_n "checking RPATH... " >&6; }
6224if test -z "$RPATH"
6225then
6226 case $host in
6227 *-*-solaris*) RPATH='-R. -R$(exec_prefix)/lib';;
6228 *-*-irix*) RPATH='-rpath .:$(exec_prefix)/lib';;
6229 *-*-linux*) RPATH='-Xlinker -rpath $(exec_prefix)/lib -Xlinker -rpath .';;
6230 *) RPATH='';;
6231 esac
6232fi
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPATH" >&5
6234$as_echo "$RPATH" >&6; }
6235
6236# LINKFORSHARED are the flags passed to the $(CC) command that links
6237# a few executables -- this is only needed for a few systems
6238
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
6240$as_echo_n "checking LINKFORSHARED... " >&6; }
6241if test -z "$LINKFORSHARED"
6242then
6243 case $host in
6244 *-*-aix*) LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';;
6245 *-*-hp*)
6246 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
6247 *-*-linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
6248 *-*-next*) LINKFORSHARED="-u libsys_s";;
6249 *-sco-sysv*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
6250 *-*-irix6*) LINKFORSHARED="-all";;
6251 esac
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
6254$as_echo "$LINKFORSHARED" >&6; }
6255
6256# Optional CFLAGS used to silence/enhance compiler warnings on some platforms.
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PLATCFLAGS" >&5
6258$as_echo_n "checking PLATCFLAGS... " >&6; }
6259case $host in
6260 *-*-solaris*) if test "$GCC" = yes
6261 then PLATCFLAGS=
6262 else PLATCFLAGS=
6263 # else PLATCFLAGS="-errtags=yes" # Need more work as C examples use ld for linking
6264 fi;;
6265 *) PLATCFLAGS=
6266esac
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATCFLAGS" >&5
6268$as_echo "$PLATCFLAGS" >&6; }
6269
6270# Add switch if necessary to enable C++11 support - just for tests
6271# Check whether --enable-cpp11-testing was given.
6272if test "${enable_cpp11_testing+set}" = set; then :
6273 enableval=$enable_cpp11_testing; enable_cpp11_testing=$enableval
6274else
6275 enable_cpp11_testing=no
6276fi
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++11 testing" >&5
6279$as_echo_n "checking whether to enable C++11 testing... " >&6; }
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cpp11_testing" >&5
6281$as_echo "$enable_cpp11_testing" >&6; }
6282
6283PLATCXXFLAGS="$PLATCFLAGS"
6284if test x"$enable_cpp11_testing" = xyes; then
6285 ac_ext=cpp
6286ac_cpp='$CXXCPP $CPPFLAGS'
6287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6290
6291 CXXFLAGS_SAVED=$CXXFLAGS
6292 CXXFLAGS=
6293 ac_success=no
6294 CXX11FLAGS=
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6296$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6297if ${ax_cv_cxx_compile_cxx11+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301/* end confdefs.h. */
6302
6303 template <typename T>
6304 struct check
6305 {
6306 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6307 };
6308
6309 typedef check<check<bool>> right_angle_brackets;
6310
6311 int a;
6312 decltype(a) b;
6313
6314 typedef check<int> check_type;
6315 check_type c;
6316 check_type&& cr = static_cast<check_type&&>(c);
6317
6318_ACEOF
6319if ac_fn_cxx_try_compile "$LINENO"; then :
6320 ax_cv_cxx_compile_cxx11=yes
6321else
6322 ax_cv_cxx_compile_cxx11=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6327$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6328 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6329 ac_success=yes
6330 fi
6331
6332
6333
6334 if test x$ac_success = xno; then
6335 for switch in -std=c++11 -std=c++0x; do
6336 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6338$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6339if eval \${$cachevar+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341else
6342 ac_save_CXXFLAGS="$CXXFLAGS"
6343 CXXFLAGS="$CXXFLAGS $switch"
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h. */
6346
6347 template <typename T>
6348 struct check
6349 {
6350 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6351 };
6352
6353 typedef check<check<bool>> right_angle_brackets;
6354
6355 int a;
6356 decltype(a) b;
6357
6358 typedef check<int> check_type;
6359 check_type c;
6360 check_type&& cr = static_cast<check_type&&>(c);
6361
6362_ACEOF
6363if ac_fn_cxx_try_compile "$LINENO"; then :
6364 eval $cachevar=yes
6365else
6366 eval $cachevar=no
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 CXXFLAGS="$ac_save_CXXFLAGS"
6370fi
6371eval ac_res=\$$cachevar
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6373$as_echo "$ac_res" >&6; }
6374 if eval test x\$$cachevar = xyes; then
6375 CXXFLAGS="$CXXFLAGS $switch"
6376 CXX11FLAGS=$switch
6377 ac_success=yes
6378 break
6379 fi
6380 done
6381 fi
6382
6383 if test x$ac_success = xno; then
6384 if test xnostop != xnostop; then
6385 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6386 fi
6387 else
6388 HAVE_CXX11_COMPILER=yes
6389 fi
6390
6391 CXXFLAGS=$CXXFLAGS_SAVED
6392 ac_ext=c
6393ac_cpp='$CPP $CPPFLAGS'
6394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397
6398 if test x"$CXX11FLAGS" != x; then
6399 PLATCXXFLAGS="$CXX11FLAGS $PLATCXXFLAGS"
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 enabled compiler" >&5
6402$as_echo_n "checking for C++11 enabled compiler... " >&6; }
6403 if test x"$HAVE_CXX11_COMPILER" = x; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX11_COMPILER" >&5
6408$as_echo "$HAVE_CXX11_COMPILER" >&6; }
6409 fi
6410fi
6411
6412# On darwin 10.7,10.8,10.9 using clang++, need to ensure using
6413# libc++ for tests and examples to run under mono. May affect
6414# other language targets as well - problem is a Mac OS X incompatibility
6415# between libraries depending on libstdc++ and libc++.
6416CLANGXX=
6417$CXX -v 2>&1 | grep -i clang >/dev/null && CLANGXX=yes
6418case $host in
6419 *-*-darwin11* | *-*-darwin12* |*-*-darwin13* ) if test "$CLANGXX" = "yes";
6420 then PLATCXXFLAGS="$PLATCXXFLAGS -stdlib=libc++"
6421 fi;;
6422 *) ;;
6423esac
6424
6425# Set info about shared libraries.
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437# This variation is needed on OS-X because there is no (apparent) consistency in shared library naming.
6438# Sometimes .bundle works, but sometimes .so is needed. It depends on the target language
6439
6440
6441case $host in
6442 *-*-mingw*) PYTHON_SO=.pyd;;
6443 *-*-darwin*) PYTHON_SO=.so;;
6444 *) PYTHON_SO=$SO;;
6445esac
6446
6447
6448case $host in
6449 *-*-darwin*) TCL_SO=.dylib;;
6450 *) TCL_SO=$SO;;
6451esac
6452
6453
6454case $host in
6455 *-*-darwin*) GUILE_SO=.so;;
6456 *) GUILE_SO=$SO;;
6457esac
6458
6459
6460case $host in
6461 *-*-darwin*) PHP_SO=.so;;
6462 *) PHP_SO=$SO;;
6463esac
6464
6465
6466case $host in
6467 *) MZSCHEME_SO=.so;;
6468esac
6469
6470
6471case $host in
6472 *-*-darwin*) LUA_SO=.so;;
6473 *) LUA_SO=$SO;;
6474esac
6475
6476# Check for specific libraries. Used for SWIG examples
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6478$as_echo_n "checking for dlopen in -ldl... " >&6; }
6479if ${ac_cv_lib_dl_dlopen+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481else
6482 ac_check_lib_save_LIBS=$LIBS
6483LIBS="-ldl $LIBS"
6484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h. */
6486
6487/* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6490#ifdef __cplusplus
6491extern "C"
6492#endif
6493char dlopen ();
6494int
6495main ()
6496{
6497return dlopen ();
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502if ac_fn_c_try_link "$LINENO"; then :
6503 ac_cv_lib_dl_dlopen=yes
6504else
6505 ac_cv_lib_dl_dlopen=no
6506fi
6507rm -f core conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6509LIBS=$ac_check_lib_save_LIBS
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6512$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6513if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6514 cat >>confdefs.h <<_ACEOF
6515#define HAVE_LIBDL 1
6516_ACEOF
6517
6518 LIBS="-ldl $LIBS"
6519
6520fi
6521 # Dynamic linking for SunOS/Solaris and SYSV
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6523$as_echo_n "checking for shl_load in -ldld... " >&6; }
6524if ${ac_cv_lib_dld_shl_load+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526else
6527 ac_check_lib_save_LIBS=$LIBS
6528LIBS="-ldld $LIBS"
6529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532/* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535#ifdef __cplusplus
6536extern "C"
6537#endif
6538char shl_load ();
6539int
6540main ()
6541{
6542return shl_load ();
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547if ac_fn_c_try_link "$LINENO"; then :
6548 ac_cv_lib_dld_shl_load=yes
6549else
6550 ac_cv_lib_dld_shl_load=no
6551fi
6552rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6557$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6558if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6559 cat >>confdefs.h <<_ACEOF
6560#define HAVE_LIBDLD 1
6561_ACEOF
6562
6563 LIBS="-ldld $LIBS"
6564
6565fi
6566 # Dynamic linking for HP-UX
6567
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing t_open" >&5
6569$as_echo_n "checking for library containing t_open... " >&6; }
6570if ${ac_cv_search_t_open+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572else
6573 ac_func_search_save_LIBS=$LIBS
6574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h. */
6576
6577/* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580#ifdef __cplusplus
6581extern "C"
6582#endif
6583char t_open ();
6584int
6585main ()
6586{
6587return t_open ();
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592for ac_lib in '' nsl; do
6593 if test -z "$ac_lib"; then
6594 ac_res="none required"
6595 else
6596 ac_res=-l$ac_lib
6597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6598 fi
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 ac_cv_search_t_open=$ac_res
6601fi
6602rm -f core conftest.err conftest.$ac_objext \
6603 conftest$ac_exeext
6604 if ${ac_cv_search_t_open+:} false; then :
6605 break
6606fi
6607done
6608if ${ac_cv_search_t_open+:} false; then :
6609
6610else
6611 ac_cv_search_t_open=no
6612fi
6613rm conftest.$ac_ext
6614LIBS=$ac_func_search_save_LIBS
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_t_open" >&5
6617$as_echo "$ac_cv_search_t_open" >&6; }
6618ac_res=$ac_cv_search_t_open
6619if test "$ac_res" != no; then :
6620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6621
6622fi
6623 # SVR4
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6625$as_echo_n "checking for library containing gethostbyname... " >&6; }
6626if ${ac_cv_search_gethostbyname+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628else
6629 ac_func_search_save_LIBS=$LIBS
6630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h. */
6632
6633/* Override any GCC internal prototype to avoid an error.
6634 Use char because int might match the return type of a GCC
6635 builtin and then its argument prototype would still apply. */
6636#ifdef __cplusplus
6637extern "C"
6638#endif
6639char gethostbyname ();
6640int
6641main ()
6642{
6643return gethostbyname ();
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648for ac_lib in '' inet; do
6649 if test -z "$ac_lib"; then
6650 ac_res="none required"
6651 else
6652 ac_res=-l$ac_lib
6653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6654 fi
6655 if ac_fn_c_try_link "$LINENO"; then :
6656 ac_cv_search_gethostbyname=$ac_res
6657fi
6658rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext
6660 if ${ac_cv_search_gethostbyname+:} false; then :
6661 break
6662fi
6663done
6664if ${ac_cv_search_gethostbyname+:} false; then :
6665
6666else
6667 ac_cv_search_gethostbyname=no
6668fi
6669rm conftest.$ac_ext
6670LIBS=$ac_func_search_save_LIBS
6671fi
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6673$as_echo "$ac_cv_search_gethostbyname" >&6; }
6674ac_res=$ac_cv_search_gethostbyname
6675if test "$ac_res" != no; then :
6676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6677
6678fi
6679 # Sequent
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6681$as_echo_n "checking for library containing socket... " >&6; }
6682if ${ac_cv_search_socket+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684else
6685 ac_func_search_save_LIBS=$LIBS
6686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688
6689/* Override any GCC internal prototype to avoid an error.
6690 Use char because int might match the return type of a GCC
6691 builtin and then its argument prototype would still apply. */
6692#ifdef __cplusplus
6693extern "C"
6694#endif
6695char socket ();
6696int
6697main ()
6698{
6699return socket ();
6700 ;
6701 return 0;
6702}
6703_ACEOF
6704for ac_lib in '' socket; do
6705 if test -z "$ac_lib"; then
6706 ac_res="none required"
6707 else
6708 ac_res=-l$ac_lib
6709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6710 fi
6711 if ac_fn_c_try_link "$LINENO"; then :
6712 ac_cv_search_socket=$ac_res
6713fi
6714rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext
6716 if ${ac_cv_search_socket+:} false; then :
6717 break
6718fi
6719done
6720if ${ac_cv_search_socket+:} false; then :
6721
6722else
6723 ac_cv_search_socket=no
6724fi
6725rm conftest.$ac_ext
6726LIBS=$ac_func_search_save_LIBS
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6729$as_echo "$ac_cv_search_socket" >&6; }
6730ac_res=$ac_cv_search_socket
6731if test "$ac_res" != no; then :
6732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6733
6734fi
6735 # SVR4 sockets
6736
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for swill_init in -lswill" >&5
6738$as_echo_n "checking for swill_init in -lswill... " >&6; }
6739if ${ac_cv_lib_swill_swill_init+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741else
6742 ac_check_lib_save_LIBS=$LIBS
6743LIBS="-lswill $LIBS"
6744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h. */
6746
6747/* Override any GCC internal prototype to avoid an error.
6748 Use char because int might match the return type of a GCC
6749 builtin and then its argument prototype would still apply. */
6750#ifdef __cplusplus
6751extern "C"
6752#endif
6753char swill_init ();
6754int
6755main ()
6756{
6757return swill_init ();
6758 ;
6759 return 0;
6760}
6761_ACEOF
6762if ac_fn_c_try_link "$LINENO"; then :
6763 ac_cv_lib_swill_swill_init=yes
6764else
6765 ac_cv_lib_swill_swill_init=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769LIBS=$ac_check_lib_save_LIBS
6770fi
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swill_swill_init" >&5
6772$as_echo "$ac_cv_lib_swill_swill_init" >&6; }
6773if test "x$ac_cv_lib_swill_swill_init" = xyes; then :
6774 SWIGLIBS="-lswill $LIBS" SWILL="-DSWIG_SWILL"
6775fi
6776
6777
6778
6779
6780# check for --with-libm=...
6781
6782LIBM=-lm
6783
6784# Check whether --with-libm was given.
6785if test "${with_libm+set}" = set; then :
6786 withval=$with_libm;
6787if test "$withval" != yes
6788then LIBM=$withval
6789else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
6790fi
6791fi
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
6794$as_echo_n "checking for main in -lieee... " >&6; }
6795if ${ac_cv_lib_ieee_main+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797else
6798 ac_check_lib_save_LIBS=$LIBS
6799LIBS="-lieee $LIBS"
6800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h. */
6802
6803
6804int
6805main ()
6806{
6807return main ();
6808 ;
6809 return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_link "$LINENO"; then :
6813 ac_cv_lib_ieee_main=yes
6814else
6815 ac_cv_lib_ieee_main=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819LIBS=$ac_check_lib_save_LIBS
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
6822$as_echo "$ac_cv_lib_ieee_main" >&6; }
6823if test "x$ac_cv_lib_ieee_main" = xyes; then :
6824 LIBM="-lieee $LIBM"
6825fi
6826
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6828$as_echo_n "checking for crypt in -lcrypt... " >&6; }
6829if ${ac_cv_lib_crypt_crypt+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831else
6832 ac_check_lib_save_LIBS=$LIBS
6833LIBS="-lcrypt $LIBS"
6834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837/* Override any GCC internal prototype to avoid an error.
6838 Use char because int might match the return type of a GCC
6839 builtin and then its argument prototype would still apply. */
6840#ifdef __cplusplus
6841extern "C"
6842#endif
6843char crypt ();
6844int
6845main ()
6846{
6847return crypt ();
6848 ;
6849 return 0;
6850}
6851_ACEOF
6852if ac_fn_c_try_link "$LINENO"; then :
6853 ac_cv_lib_crypt_crypt=yes
6854else
6855 ac_cv_lib_crypt_crypt=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859LIBS=$ac_check_lib_save_LIBS
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6862$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
6863if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
6864 LIBCRYPT="-lcrypt"
6865fi
6866
6867
6868
6869# check for --with-libc=...
6870
6871
6872# Check whether --with-libc was given.
6873if test "${with_libc+set}" = set; then :
6874 withval=$with_libc;
6875if test "$withval" != yes
6876then LIBC=$withval
6877else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
6878fi
6879fi
6880
6881
6882#--------------------------------------------------------------------
6883# Target languages
6884#--------------------------------------------------------------------
6885
6886
6887# Check whether --with-alllang was given.
6888if test "${with_alllang+set}" = set; then :
6889 withval=$with_alllang; with_alllang="$withval"
6890fi
6891
6892
6893if test "$with_alllang" = "no"; then
6894 alllang_default=no
6895else
6896 alllang_default=yes
6897fi
6898
6899for ac_prog in pkg-config
6900do
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902set dummy $ac_prog; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_PKGCONFIG+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907else
6908 if test -n "$PKGCONFIG"; then
6909 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_PKGCONFIG="$ac_prog"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923 done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928PKGCONFIG=$ac_cv_prog_PKGCONFIG
6929if test -n "$PKGCONFIG"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
6931$as_echo "$PKGCONFIG" >&6; }
6932else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937
6938 test -n "$PKGCONFIG" && break
6939done
6940
6941
6942#--------------------------------------------------------------------
6943# Look for Tcl
6944#--------------------------------------------------------------------
6945
6946TCLINCLUDE=
6947TCLLIB=
6948TCLPACKAGE=
6949
6950
6951# Check whether --with-tclconfig was given.
6952if test "${with_tclconfig+set}" = set; then :
6953 withval=$with_tclconfig; with_tclconfig="$withval"
6954else
6955 with_tclconfig=
6956fi
6957
6958
6959# Check whether --with-tcl was given.
6960if test "${with_tcl+set}" = set; then :
6961 withval=$with_tcl;
6962 TCLPACKAGE="$withval"
6963else
6964 TCLPACKAGE="$alllang_default"
6965fi
6966
6967
6968# Check whether --with-tclincl was given.
6969if test "${with_tclincl+set}" = set; then :
6970 withval=$with_tclincl;
6971 TCLINCLUDE="$ISYSTEM$withval"
6972else
6973 TCLINCLUDE=
6974fi
6975
6976
6977# Check whether --with-tcllib was given.
6978if test "${with_tcllib+set}" = set; then :
6979 withval=$with_tcllib;
6980 TCLLIB="-L$withval"
6981else
6982 TCLLIB=
6983fi
6984
6985
6986# First, check for "--without-tcl" or "--with-tcl=no".
6987if test x"${TCLPACKAGE}" = xno; then
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Tcl" >&5
6989$as_echo "$as_me: Disabling Tcl" >&6;}
6990else
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
6992$as_echo_n "checking for Tcl configuration... " >&6; }
6993# First check to see if --with-tclconfig was specified.
6994if test x"${with_tclconfig}" != x ; then
6995 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6996 TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
6997 else
6998 as_fn_error $? "${with_tcl} directory does not contain tclConfig.sh" "$LINENO" 5
6999 fi
7000fi
7001# check in a few common install locations
7002dirs="/usr/lib*/ /usr/lib*/tcl*/ /usr/local/lib*/ /usr/local/lib*/tcl*/"
7003case $host in
7004*-*-darwin*)
7005 dirs="/System/Library/Frameworks/Tcl.framework/ $dirs"
7006 ;;
7007*)
7008 ;;
7009esac
7010if test x"${TCLCONFIG}" = x ; then
7011 for d in $dirs ; do
7012 for i in `ls -d -r $d 2>/dev/null` ; do
7013 if test -f $i"tclConfig.sh" ; then
7014 TCLCONFIG=`(cd $i; pwd)`
7015 break
7016 fi
7017 done
7018 done
7019fi
7020if test x"${TCLCONFIG}" = x ; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCLCONFIG/tclConfig.sh" >&5
7025$as_echo "found $TCLCONFIG/tclConfig.sh" >&6; }
7026 . $TCLCONFIG/tclConfig.sh
7027 if test -z "$TCLINCLUDE"; then
7028 TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
7029 fi
7030 if test -z "$TCLLIB"; then
7031 TCLLIB=$TCL_LIB_SPEC
7032 fi
7033fi
7034
7035if test -z "$TCLINCLUDE"; then
7036 if test "x$TCLPACKAGE" != xyes; then
7037 TCLINCLUDE="$ISYSTEM$TCLPACKAGE/include"
7038 fi
7039fi
7040
7041if test -z "$TCLLIB"; then
7042 if test "x$TCLPACKAGE" != xyes; then
7043 TCLLIB="-L$TCLPACKAGE/lib -ltcl"
7044 fi
7045fi
7046
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header files" >&5
7048$as_echo_n "checking for Tcl header files... " >&6; }
7049if test -z "$TCLINCLUDE"; then
7050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h. */
7052#include <tcl.h>
7053_ACEOF
7054if ac_fn_c_try_cpp "$LINENO"; then :
7055
7056else
7057 TCLINCLUDE=""
7058fi
7059rm -f conftest.err conftest.i conftest.$ac_ext
7060if test -z "$TCLINCLUDE"; then
7061 dirs="/usr/local/include /usr/include /opt/local/include"
7062 for i in $dirs ; do
7063 if test -r $i/tcl.h; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
7065$as_echo "$i" >&6; }
7066 TCLINCLUDE="$ISYSTEM$i"
7067 break
7068 fi
7069 done
7070fi
7071if test -z "$TCLINCLUDE"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7073$as_echo "not found" >&6; }
7074fi
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLINCLUDE" >&5
7077$as_echo "$TCLINCLUDE" >&6; }
7078fi
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
7081$as_echo_n "checking for Tcl library... " >&6; }
7082if test -z "$TCLLIB"; then
7083dirs="/usr/local/lib /usr/lib /opt/local/lib"
7084for i in $dirs ; do
7085 if test -r $i/libtcl.a; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
7087$as_echo "$i" >&6; }
7088 TCLLIB="-L$i -ltcl"
7089 break
7090 fi
7091done
7092if test -z "$TCLLIB"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7094$as_echo "not found" >&6; }
7095fi
7096else
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLLIB" >&5
7098$as_echo "$TCLLIB" >&6; }
7099fi
7100
7101# Cygwin (Windows) needs the library for dynamic linking
7102case $host in
7103*-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
7104*)TCLDYNAMICLINKING="";;
7105esac
7106
7107case $host in
7108*-*-darwin*)
7109 TCLLDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace'
7110 TCLCXXSHARED='$(CXX) -dynamiclib -undefined suppress -flat_namespace'
7111 ;;
7112*)
7113 TCLLDSHARED='$(LDSHARED)'
7114 TCLCXXSHARED='$(CXXSHARED)'
7115 ;;
7116esac
7117
7118fi
7119
7120
7121
7122
7123
7124
7125
7126#----------------------------------------------------------------
7127# Look for Python
7128#----------------------------------------------------------------
7129
7130PYINCLUDE=
7131PYLIB=
7132PYLINK=
7133PYPACKAGE=
7134
7135
7136# Check whether --with-python was given.
7137if test "${with_python+set}" = set; then :
7138 withval=$with_python; PYBIN="$withval"
7139else
7140 PYBIN="$alllang_default"
7141fi
7142
7143
7144# First, check for "--without-python" or "--with-python=no".
7145if test x"${PYBIN}" = xno; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Python" >&5
7147$as_echo "$as_me: Disabling Python" >&6;}
7148else
7149 # First figure out the name of the Python executable
7150 if test "x$PYBIN" = xyes; then
7151 for ac_prog in python python2.7
7152do
7153 # Extract the first word of "$ac_prog", so it can be a program name with args.
7154set dummy $ac_prog; ac_word=$2
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if ${ac_cv_prog_PYTHON+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159else
7160 if test -n "$PYTHON"; then
7161 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_PYTHON="$ac_prog"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174done
7175 done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180PYTHON=$ac_cv_prog_PYTHON
7181if test -n "$PYTHON"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7183$as_echo "$PYTHON" >&6; }
7184else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187fi
7188
7189
7190 test -n "$PYTHON" && break
7191done
7192
7193 else
7194 PYTHON="$PYBIN"
7195 fi
7196
7197 PYVER=0
7198 if test -n "$PYTHON"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON major version number" >&5
7200$as_echo_n "checking for $PYTHON major version number... " >&6; }
7201 PYVER=`($PYTHON -c "import sys; sys.stdout.write(sys.version[0])") 2>/dev/null`
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER" >&5
7203$as_echo "$PYVER" >&6; }
7204 if test -z "$PYVER"; then
7205 PYVER=0
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python os.name" >&5
7208$as_echo_n "checking for Python os.name... " >&6; }
7209 PYOSNAME=`($PYTHON -c "import sys, os; sys.stdout.write(os.name)") 2>/dev/null`
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYOSNAME" >&5
7211$as_echo "$PYOSNAME" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python path separator" >&5
7213$as_echo_n "checking for Python path separator... " >&6; }
7214 PYSEPARATOR=`($PYTHON -c "import sys, os; sys.stdout.write(os.sep)") 2>/dev/null`
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYSEPARATOR" >&5
7216$as_echo "$PYSEPARATOR" >&6; }
7217 fi
7218 fi
7219
7220 if test $PYVER -eq 1 -o $PYVER -eq 2; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5
7222$as_echo_n "checking for Python prefix... " >&6; }
7223 PYPREFIX=`($PYTHON -c "import sys; sys.stdout.write(sys.prefix)") 2>/dev/null`
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYPREFIX" >&5
7225$as_echo "$PYPREFIX" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5
7227$as_echo_n "checking for Python exec-prefix... " >&6; }
7228 PYEPREFIX=`($PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)") 2>/dev/null`
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYEPREFIX" >&5
7230$as_echo "$PYEPREFIX" >&6; }
7231
7232 if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\"; then
7233 # Windows installations are quite different to posix installations (MinGW path separator is a forward slash)
7234 PYPREFIX=`echo "$PYPREFIX" | sed -e 's,\\\\,/,g'` # Forward slashes are easier to use and even work on Windows most of the time
7235 PYTHON_SO=.pyd
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python header files" >&5
7238$as_echo_n "checking for Python header files... " >&6; }
7239 if test -r $PYPREFIX/include/Python.h; then
7240 PYINCLUDE="-I$PYPREFIX/include"
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYINCLUDE" >&5
7243$as_echo "$PYINCLUDE" >&6; }
7244
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library directory" >&5
7246$as_echo_n "checking for Python library directory... " >&6; }
7247 if test -d $PYPREFIX/libs; then
7248 PYLIB=$PYPREFIX/libs
7249 PYLINKFILE=`ls $PYLIB/python*.lib | grep "python[0-9][0-9]\.lib"`
7250 if test -r "$PYLINKFILE"; then
7251 PYLINK=-l`basename $PYLINKFILE | sed -e 's/\.lib$//'`
7252 else
7253 PYLIB=
7254 fi
7255 fi
7256 else
7257 # Note: I could not think of a standard way to get the version string from different versions.
7258 # This trick pulls it out of the file location for a standard library file.
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
7261$as_echo_n "checking for Python version... " >&6; }
7262
7263 # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7264 filehack="file__"
7265 PYVERSION=`($PYTHON -c "import sys,string,operator,os.path; sys.stdout.write(operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1))") 2>/dev/null`
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVERSION" >&5
7267$as_echo "$PYVERSION" >&6; }
7268
7269 # Find the directory for libraries this is necessary to deal with
7270 # platforms that can have apps built for multiple archs: e.g. x86_64
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python lib dir" >&5
7272$as_echo_n "checking for Python lib dir... " >&6; }
7273 PYLIBDIR=`($PYTHON -c "import sys; sys.stdout.write(sys.lib)") 2>/dev/null`
7274 if test -z "$PYLIBDIR"; then
7275 # Fedora patch Python to add sys.lib, for other distros we assume "lib".
7276 PYLIBDIR="lib"
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIBDIR" >&5
7279$as_echo "$PYLIBDIR" >&6; }
7280
7281 # Set the include directory
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python header files" >&5
7284$as_echo_n "checking for Python header files... " >&6; }
7285 if test -r $PYPREFIX/include/$PYVERSION/Python.h; then
7286 PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config"
7287 fi
7288 if test -z "$PYINCLUDE"; then
7289 if test -r $PYPREFIX/include/Py/Python.h; then
7290 PYINCLUDE="-I$PYPREFIX/include/Py -I$PYEPREFIX/$PYLIBDIR/python/lib"
7291 fi
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYINCLUDE" >&5
7294$as_echo "$PYINCLUDE" >&6; }
7295
7296 # Set the library directory blindly. This probably won't work with older versions
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library directory" >&5
7298$as_echo_n "checking for Python library directory... " >&6; }
7299 dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR"
7300 for i in $dirs; do
7301 if test -d $PYEPREFIX/$PYLIBDIR/$i; then
7302 PYLIB="$PYEPREFIX/$PYLIBDIR/$i"
7303 break
7304 fi
7305 done
7306
7307 PYLINK="-l$PYVERSION"
7308 fi
7309
7310 if test -z "$PYLIB"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7312$as_echo "Not found" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIB" >&5
7315$as_echo "$PYLIB" >&6; }
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library" >&5
7318$as_echo_n "checking for Python library... " >&6; }
7319 if test -z "$PYLINK"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7321$as_echo "Not found" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLINK" >&5
7324$as_echo "$PYLINK" >&6; }
7325 fi
7326 fi
7327
7328 # Cygwin (Windows) needs the library for dynamic linking
7329 case $host in
7330 *-*-cygwin* | *-*-mingw*)
7331 PYTHONDYNAMICLINKING="-L$PYLIB $PYLINK"
7332 DEFS="-DUSE_DL_IMPORT $DEFS"
7333 ;;
7334 *)PYTHONDYNAMICLINKING="";;
7335 esac
7336fi
7337
7338
7339
7340
7341
7342
7343
7344#----------------------------------------------------------------
7345# Look for Python 3.x
7346#----------------------------------------------------------------
7347
7348PY3INCLUDE=
7349PY3LIB=
7350PY3LINK=
7351PY3PACKAGE=
7352
7353
7354# Check whether --with-python3 was given.
7355if test "${with_python3+set}" = set; then :
7356 withval=$with_python3; PY3BIN="$withval"
7357else
7358 PY3BIN="$alllang_default"
7359fi
7360
7361
7362# First, check for "--without-python3" or "--with-python3=no".
7363if test x"${PY3BIN}" = xno; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Python 3.x support" >&5
7365$as_echo "$as_me: Disabling Python 3.x support" >&6;}
7366else
7367 if test -z "$PYVER"; then
7368 PYVER=0
7369 fi
7370 if test "x$PY3BIN" = xyes; then
7371 if test x"$PYOSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\" -a $PYVER -ge 3; then
7372 PYTHON3="$PYTHON"
7373 else
7374 for py_ver in 3 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 ""; do
7375 for ac_prog in python$py_ver
7376do
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378set dummy $ac_prog; ac_word=$2
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380$as_echo_n "checking for $ac_word... " >&6; }
7381if ${ac_cv_prog_PYTHON3+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383else
7384 if test -n "$PYTHON3"; then
7385 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7386else
7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_PYTHON3="$ac_prog"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399 done
7400IFS=$as_save_IFS
7401
7402fi
7403fi
7404PYTHON3=$ac_cv_prog_PYTHON3
7405if test -n "$PYTHON3"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7407$as_echo "$PYTHON3" >&6; }
7408else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413
7414 test -n "$PYTHON3" && break
7415done
7416
7417 if test -n "$PYTHON3"; then
7418 for ac_prog in $PYTHON3-config
7419do
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421set dummy $ac_prog; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if ${ac_cv_prog_PY3CONFIG+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426else
7427 if test -n "$PY3CONFIG"; then
7428 ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_PY3CONFIG="$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442 done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447PY3CONFIG=$ac_cv_prog_PY3CONFIG
7448if test -n "$PY3CONFIG"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3CONFIG" >&5
7450$as_echo "$PY3CONFIG" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457 test -n "$PY3CONFIG" && break
7458done
7459
7460 if test -n "$PY3CONFIG"; then
7461 break
7462 fi
7463 fi
7464 done
7465 fi
7466 else
7467 PYTHON3="$PY3BIN"
7468 for ac_prog in $PYTHON3-config
7469do
7470 # Extract the first word of "$ac_prog", so it can be a program name with args.
7471set dummy $ac_prog; ac_word=$2
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473$as_echo_n "checking for $ac_word... " >&6; }
7474if ${ac_cv_prog_PY3CONFIG+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476else
7477 if test -n "$PY3CONFIG"; then
7478 ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7479else
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_PY3CONFIG="$ac_prog"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492 done
7493IFS=$as_save_IFS
7494
7495fi
7496fi
7497PY3CONFIG=$ac_cv_prog_PY3CONFIG
7498if test -n "$PY3CONFIG"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3CONFIG" >&5
7500$as_echo "$PY3CONFIG" >&6; }
7501else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503$as_echo "no" >&6; }
7504fi
7505
7506
7507 test -n "$PY3CONFIG" && break
7508done
7509
7510 fi
7511
7512 if test -n "$PYTHON3"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON3 major version number" >&5
7514$as_echo_n "checking for $PYTHON3 major version number... " >&6; }
7515 PYVER=`($PYTHON3 -c "import sys; sys.stdout.write(sys.version[0])") 2>/dev/null`
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER" >&5
7517$as_echo "$PYVER" >&6; }
7518 if test -z "$PYVER"; then
7519 PYVER=0
7520 fi
7521 fi
7522
7523 if test $PYVER -ge 3; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x os.name" >&5
7525$as_echo_n "checking for Python 3.x os.name... " >&6; }
7526 PY3OSNAME=`($PYTHON3 -c "import sys, os; sys.stdout.write(os.name)") 2>/dev/null`
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3OSNAME" >&5
7528$as_echo "$PY3OSNAME" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x path separator" >&5
7530$as_echo_n "checking for Python 3.x path separator... " >&6; }
7531 PYSEPARATOR=`($PYTHON3 -c "import sys, os; sys.stdout.write(os.sep)") 2>/dev/null`
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYSEPARATOR" >&5
7533$as_echo "$PYSEPARATOR" >&6; }
7534
7535 if test x"$PY3OSNAME" = x"nt" -a x"$PYSEPARATOR" = x"\\"; then
7536 # Windows installations are quite different to posix installations
7537 # There is no python-config to use
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x prefix" >&5
7539$as_echo_n "checking for Python 3.x prefix... " >&6; }
7540 PY3PREFIX=`($PYTHON3 -c "import sys; sys.stdout.write(sys.prefix)") 2>/dev/null`
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3PREFIX" >&5
7542$as_echo "$PY3PREFIX" >&6; }
7543 PY3PREFIX=`echo "$PY3PREFIX" | sed -e 's,\\\\,/,g'` # Forward slashes are easier to use and even work on Windows most of the time
7544 PYTHON_SO=.pyd
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x header files" >&5
7547$as_echo_n "checking for Python 3.x header files... " >&6; }
7548 if test -r $PY3PREFIX/include/Python.h; then
7549 PY3INCLUDE="-I$PY3PREFIX/include"
7550 fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3INCLUDE" >&5
7552$as_echo "$PY3INCLUDE" >&6; }
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x library directory" >&5
7555$as_echo_n "checking for Python 3.x library directory... " >&6; }
7556 if test -d $PY3PREFIX/libs; then
7557 PY3LIB=$PY3PREFIX/libs
7558 PY3LINKFILE=`ls $PY3LIB/python*.lib | grep "python[0-9][0-9]\.lib"`
7559 if test -r "$PY3LINKFILE"; then
7560 PY3LINK=-l`basename $PY3LINKFILE | sed -e 's/\.lib$//'`
7561 else
7562 PY3LIB=
7563 fi
7564 fi
7565 if test -z "$PY3LIB"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7567$as_echo "Not found" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LIB" >&5
7570$as_echo "$PY3LIB" >&6; }
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x library" >&5
7573$as_echo_n "checking for Python 3.x library... " >&6; }
7574 if test -z "$PY3LINK"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7576$as_echo "Not found" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LINK" >&5
7579$as_echo "$PY3LINK" >&6; }
7580 fi
7581 elif test -n "$PY3CONFIG"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x prefix" >&5
7583$as_echo_n "checking for Python 3.x prefix... " >&6; }
7584 PY3PREFIX=`($PY3CONFIG --prefix) 2>/dev/null`
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3PREFIX" >&5
7586$as_echo "$PY3PREFIX" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x exec-prefix" >&5
7588$as_echo_n "checking for Python 3.x exec-prefix... " >&6; }
7589 # Piped through xargs to strip trailing whitespace (bug in msys2 + mingw Python)
7590 PY3EPREFIX=`($PY3CONFIG --exec-prefix | xargs) 2>/dev/null`
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3EPREFIX" >&5
7592$as_echo "$PY3EPREFIX" >&6; }
7593
7594 # Note: I could not think of a standard way to get the version string from different versions.
7595 # This trick pulls it out of the file location for a standard library file.
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x version" >&5
7598$as_echo_n "checking for Python 3.x version... " >&6; }
7599
7600 # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7601 filehack="file__"
7602 PY3VERSION=`($PYTHON3 -c "import string,operator,os.path; print(operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1))") 2>/dev/null`
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3VERSION" >&5
7604$as_echo "$PY3VERSION" >&6; }
7605
7606 # Find the directory for libraries this is necessary to deal with
7607 # platforms that can have apps built for multiple archs: e.g. x86_64
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x lib dir" >&5
7609$as_echo_n "checking for Python 3.x lib dir... " >&6; }
7610 PY3LIBDIR=`($PYTHON3 -c "import sys; print(sys.lib)") 2>/dev/null`
7611 if test -z "$PY3LIBDIR"; then
7612 # some dists don't have sys.lib so the best we can do is assume lib
7613 PY3LIBDIR="lib"
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LIBDIR" >&5
7616$as_echo "$PY3LIBDIR" >&6; }
7617
7618 # Set the include directory
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x header files" >&5
7621$as_echo_n "checking for Python 3.x header files... " >&6; }
7622 PY3INCLUDE=`($PY3CONFIG --includes) 2>/dev/null`
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3INCLUDE" >&5
7624$as_echo "$PY3INCLUDE" >&6; }
7625
7626 # Set the library directory blindly. This probably won't work with older versions
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x library directory" >&5
7628$as_echo_n "checking for Python 3.x library directory... " >&6; }
7629 dirs="$PY3VERSION/config $PY3VERSION/$PY3LIBDIR python/$PY3LIBDIR"
7630 for i in $dirs; do
7631 if test -d $PY3EPREFIX/$PY3LIBDIR/$i; then
7632 PY3LIB="$PY3EPREFIX/$PY3LIBDIR/$i"
7633 break
7634 fi
7635 done
7636 if test -z "$PY3LIB"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7638$as_echo "Not found" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LIB" >&5
7641$as_echo "$PY3LIB" >&6; }
7642 fi
7643
7644 PY3LINK="-l$PY3VERSION"
7645
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x library" >&5
7647$as_echo_n "checking for Python 3.x library... " >&6; }
7648 if test -z "$PY3LINK"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7650$as_echo "Not found" >&6; }
7651 else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LINK" >&5
7653$as_echo "$PY3LINK" >&6; }
7654 fi
7655 fi
7656 fi
7657
7658 # Cygwin (Windows) needs the library for dynamic linking
7659 case $host in
7660 *-*-cygwin* | *-*-mingw*)
7661 PYTHON3DYNAMICLINKING="-L$PY3LIB $PY3LINK"
7662 DEFS="-DUSE_DL_IMPORT $DEFS"
7663 ;;
7664 *)PYTHON3DYNAMICLINKING="";;
7665 esac
7666
7667
7668
7669
7670
7671fi
7672
7673if test -n "$PYINCLUDE" || test -n "$PY3INCLUDE" ; then
7674 for ac_prog in pycodestyle
7675do
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677set dummy $ac_prog; ac_word=$2
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if ${ac_cv_prog_PYCODESTYLE+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682else
7683 if test -n "$PYCODESTYLE"; then
7684 ac_cv_prog_PYCODESTYLE="$PYCODESTYLE" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_PYCODESTYLE="$ac_prog"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698 done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703PYCODESTYLE=$ac_cv_prog_PYCODESTYLE
7704if test -n "$PYCODESTYLE"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYCODESTYLE" >&5
7706$as_echo "$PYCODESTYLE" >&6; }
7707else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712
7713 test -n "$PYCODESTYLE" && break
7714done
7715
7716 if test -n "$PYCODESTYLE"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pycodestyle version" >&5
7718$as_echo_n "checking pycodestyle version... " >&6; }
7719 pycodestyle_version=`$PYCODESTYLE --version 2>/dev/null`
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pycodestyle_version" >&5
7721$as_echo "$pycodestyle_version" >&6; }
7722 fi
7723fi
7724
7725
7726# Check whether --with-2to3 was given.
7727if test "${with_2to3+set}" = set; then :
7728 withval=$with_2to3; PY2TO3BIN="$withval"
7729else
7730 PY2TO3BIN="yes"
7731fi
7732
7733if test -n "$PYTHON3"; then
7734 if test "x$PY2TO3BIN" = xyes; then
7735 py3to2=`echo $PYTHON3 | sed -e "s/python/2to3-/"`
7736 for ac_prog in $py3to2 2to3
7737do
7738 # Extract the first word of "$ac_prog", so it can be a program name with args.
7739set dummy $ac_prog; ac_word=$2
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741$as_echo_n "checking for $ac_word... " >&6; }
7742if ${ac_cv_prog_PY2TO3+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744else
7745 if test -n "$PY2TO3"; then
7746 ac_cv_prog_PY2TO3="$PY2TO3" # Let the user override the test.
7747else
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_PY2TO3="$ac_prog"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760 done
7761IFS=$as_save_IFS
7762
7763fi
7764fi
7765PY2TO3=$ac_cv_prog_PY2TO3
7766if test -n "$PY2TO3"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY2TO3" >&5
7768$as_echo "$PY2TO3" >&6; }
7769else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771$as_echo "no" >&6; }
7772fi
7773
7774
7775 test -n "$PY2TO3" && break
7776done
7777
7778 if test -z "$PY2TO3"; then
7779 # Windows distributions don't always have the 2to3 executable
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2to3.py" >&5
7781$as_echo_n "checking for 2to3.py... " >&6; }
7782 py2to3script="$PY3PREFIX/Tools/scripts/2to3.py"
7783 if test -f "$py2to3script"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $py2to3script" >&5
7785$as_echo "$py2to3script" >&6; }
7786 PY2TO3="$PYTHON3 $py2to3script"
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
7789$as_echo "Not found" >&6; }
7790 fi
7791 fi
7792 else
7793 PY2TO3="$PY2TO3BIN"
7794 fi
7795 if test -z "$PY2TO3"; then
7796 PYTHON3=
7797 fi
7798fi
7799
7800#----------------------------------------------------------------
7801# Look for Perl5
7802#----------------------------------------------------------------
7803
7804PERLBIN=
7805
7806
7807# Check whether --with-perl5 was given.
7808if test "${with_perl5+set}" = set; then :
7809 withval=$with_perl5; PERLBIN="$withval"
7810else
7811 PERLBIN="$alllang_default"
7812fi
7813
7814
7815# First, check for "--without-perl5" or "--with-perl5=no".
7816if test x"${PERLBIN}" = xno; then
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Perl5" >&5
7818$as_echo "$as_me: Disabling Perl5" >&6;}
7819PERL=
7820else
7821
7822# First figure out what the name of Perl5 is
7823
7824if test "x$PERLBIN" = xyes; then
7825for ac_prog in perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
7826do
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828set dummy $ac_prog; ac_word=$2
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if ${ac_cv_prog_PERL+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833else
7834 if test -n "$PERL"; then
7835 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_PERL="$ac_prog"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849 done
7850IFS=$as_save_IFS
7851
7852fi
7853fi
7854PERL=$ac_cv_prog_PERL
7855if test -n "$PERL"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7857$as_echo "$PERL" >&6; }
7858else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
7861fi
7862
7863
7864 test -n "$PERL" && break
7865done
7866
7867else
7868PERL="$PERLBIN"
7869fi
7870
7871
7872# This could probably be simplified as for all platforms and all versions of Perl the following apparently should be run to get the compilation options:
7873# perl -MExtUtils::Embed -e ccopts
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 header files" >&5
7875$as_echo_n "checking for Perl5 header files... " >&6; }
7876if test -n "$PERL"; then
7877 PERL5DIR=`($PERL -MConfig -le 'print $Config{archlibexp}') 2>/dev/null`
7878 if test -n "$PERL5DIR" ; then
7879 dirs="$PERL5DIR $PERL5DIR/CORE"
7880 PERL5EXT=none
7881 for i in $dirs; do
7882 if test -r $i/perl.h; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
7884$as_echo "$i" >&6; }
7885 PERL5EXT="$i"
7886 break
7887 fi
7888 done
7889 if test "$PERL5EXT" = none; then
7890 PERL5EXT="$PERL5DIR/CORE"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not locate perl.h...using $PERL5EXT" >&5
7892$as_echo "could not locate perl.h...using $PERL5EXT" >&6; }
7893 fi
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 library" >&5
7896$as_echo_n "checking for Perl5 library... " >&6; }
7897 PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; s/\.$Config{so}.*//; print $_, "\n"') 2>/dev/null`
7898 if test -z "$PERL5LIB" ; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7900$as_echo "not found" >&6; }
7901 else
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5LIB" >&5
7903$as_echo "$PERL5LIB" >&6; }
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ccflags" >&5
7906$as_echo_n "checking for Perl5 ccflags... " >&6; }
7907 PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//" | sed "s/-I/$ISYSTEM/") 2>/dev/null`
7908 if test -z "$PERL5CCFLAGS" ; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7910$as_echo "not found" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCFLAGS" >&5
7913$as_echo "$PERL5CCFLAGS" >&6; }
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ccdlflags" >&5
7916$as_echo_n "checking for Perl5 ccdlflags... " >&6; }
7917 PERL5CCDLFLAGS=`($PERL -e 'use Config; print $Config{ccdlflags}, "\n"') 2>/dev/null`
7918 if test -z "$PERL5CCDLFLAGS" ; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7920$as_echo "not found" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCDLFLAGS" >&5
7923$as_echo "$PERL5CCDLFLAGS" >&6; }
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 cccdlflags" >&5
7926$as_echo_n "checking for Perl5 cccdlflags... " >&6; }
7927 PERL5CCCDLFLAGS=`($PERL -e 'use Config; print $Config{cccdlflags}, "\n"') 2>/dev/null`
7928 if test -z "$PERL5CCCDLFLAGS" ; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7930$as_echo "not found" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCCDLFLAGS" >&5
7933$as_echo "$PERL5CCCDLFLAGS" >&6; }
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ldflags" >&5
7936$as_echo_n "checking for Perl5 ldflags... " >&6; }
7937 PERL5LDFLAGS=`($PERL -e 'use Config; print $Config{ldflags}, "\n"') 2>/dev/null`
7938 if test -z "$PERL5LDFLAGS" ; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7940$as_echo "not found" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5LDFLAGS" >&5
7943$as_echo "$PERL5LDFLAGS" >&6; }
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 Test::More module" >&5
7946$as_echo_n "checking for Perl5 Test::More module... " >&6; } # For test-suite
7947 PERL5TESTMORE=`($PERL -e 'use Test::More; print "good";') 2>/dev/null`
7948 if test -z "$PERL5TESTMORE" ; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7950$as_echo "not found" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7953$as_echo "found" >&6; }
7954 fi
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to determine perl5 configuration" >&5
7957$as_echo "unable to determine perl5 configuration" >&6; }
7958 PERL5EXT=$PERL5DIR
7959 fi
7960else
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not figure out how to run perl5" >&5
7962$as_echo "could not figure out how to run perl5" >&6; }
7963fi
7964
7965# Cygwin (Windows) needs the library for dynamic linking
7966case $host in
7967*-*-cygwin* | *-*-mingw*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";;
7968*)PERL5DYNAMICLINKING="";;
7969esac
7970fi
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981#----------------------------------------------------------------
7982# Look for Octave
7983#----------------------------------------------------------------
7984
7985OCTAVEBIN=
7986OCTAVE_SO=.oct
7987
7988
7989# Check whether --with-octave was given.
7990if test "${with_octave+set}" = set; then :
7991 withval=$with_octave; OCTAVEBIN="$withval"
7992else
7993 OCTAVEBIN="$alllang_default"
7994fi
7995
7996
7997# Check for "--without-octave" or "--with-octave=no".
7998if test x"${OCTAVEBIN}" = xno; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Octave" >&5
8000$as_echo "$as_me: Disabling Octave" >&6;}
8001 OCTAVE=
8002
8003# Check for Octave; prefer command-line program "octave-cli" to (in newer versions) GUI program "octave"
8004elif test "x$OCTAVEBIN" = xyes; then
8005 # Extract the first word of "octave-cli octave", so it can be a program name with args.
8006set dummy octave-cli octave; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; }
8009if ${ac_cv_path_OCTAVE+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011else
8012 case $OCTAVE in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
8015 ;;
8016 *)
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029 done
8030IFS=$as_save_IFS
8031
8032 ;;
8033esac
8034fi
8035OCTAVE=$ac_cv_path_OCTAVE
8036if test -n "$OCTAVE"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
8038$as_echo "$OCTAVE" >&6; }
8039else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044
8045
8046else
8047 OCTAVE="$OCTAVEBIN"
8048fi
8049
8050# Check if Octave works
8051if test -n "$OCTAVE"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${OCTAVE} works" >&5
8053$as_echo_n "checking if ${OCTAVE} works... " >&6; }
8054 if test "x`${OCTAVE} --version 2>/dev/null | sed -n -e '1p' | sed -n -e '/Octave, version/p'`" != x; then :
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057$as_echo "yes" >&6; }
8058
8059else
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
8062$as_echo "$as_me: no" >&6;}
8063 OCTAVE=
8064
8065fi
8066fi
8067
8068# Check for required Octave helper program "mkoctfile"
8069if test -n "$OCTAVE"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkoctfile" >&5
8071$as_echo_n "checking for mkoctfile... " >&6; }
8072 version_suffix="`echo $OCTAVE | sed -e 's|.*\(-[0-9][0-9.]*\)$|\1|'`"
8073 case $version_suffix in
8074 -*) ;;
8075 *) version_suffix="" ;;
8076 esac
8077 octave_directory=`dirname $OCTAVE`
8078 if test "$octave_directory" = "." ; then
8079 mkoctfile="mkoctfile${version_suffix}"
8080 else
8081 mkoctfile="${octave_directory}/mkoctfile${version_suffix}"
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mkoctfile}" >&5
8084$as_echo "${mkoctfile}" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${mkoctfile} works" >&5
8086$as_echo_n "checking if ${mkoctfile} works... " >&6; }
8087 if test "x`${mkoctfile} --version 2>/dev/null | sed -n -e '1p' | sed -n -e '/mkoctfile, version/p'`" != x; then :
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8090$as_echo "yes" >&6; }
8091
8092else
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
8096 OCTAVE=
8097
8098fi
8099fi
8100
8101# Check for Octave preprocessor/compiler/linker flags
8102if test -n "$OCTAVE"; then
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave preprocessor flags" >&5
8105$as_echo_n "checking for Octave preprocessor flags... " >&6; }
8106 OCTAVE_CPPFLAGS=
8107 for var in CPPFLAGS INCFLAGS ALL_CXXFLAGS; do
8108 for flag in `env - ${mkoctfile} -p ${var}`; do
8109 case ${flag} in
8110 -D*|-I*) OCTAVE_CPPFLAGS="${OCTAVE_CPPFLAGS} ${flag}";;
8111 *) ;;
8112 esac
8113 done
8114 done
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CPPFLAGS" >&5
8116$as_echo "$OCTAVE_CPPFLAGS" >&6; }
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave compiler flags" >&5
8119$as_echo_n "checking for Octave compiler flags... " >&6; }
8120 OCTAVE_CXXFLAGS=
8121 for var in CXX ALL_CXXFLAGS; do
8122 for flag in `env - ${mkoctfile} -p ${var}`; do
8123 case ${flag} in
8124 -std=*|-g*|-W*) OCTAVE_CXXFLAGS="${OCTAVE_CXXFLAGS} ${flag}";;
8125 *) ;;
8126 esac
8127 done
8128 done
8129 save_CXXFLAGS="${CXXFLAGS}"
8130 CXXFLAGS="-Werror -O0"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132/* end confdefs.h. */
8133
8134
8135int
8136main ()
8137{
8138
8139 ;
8140 return 0;
8141}
8142
8143_ACEOF
8144if ac_fn_c_try_compile "$LINENO"; then :
8145
8146 OCTAVE_CXXFLAGS="${OCTAVE_CXXFLAGS} -O0"
8147
8148fi
8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 CXXFLAGS="${save_CXXFLAGS}"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CXXFLAGS" >&5
8152$as_echo "$OCTAVE_CXXFLAGS" >&6; }
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave linker flags" >&5
8155$as_echo_n "checking for Octave linker flags... " >&6; }
8156 OCTAVE_LDFLAGS=
8157 for var in OCTLIBDIR; do
8158 OCTAVE_LDFLAGS="${OCTAVE_LDFLAGS} "-L`env - ${mkoctfile} -p ${var}`
8159 done
8160 for var in RDYNAMIC_FLAG RLD_FLAG OCTAVE_LIBS LIBS; do
8161 OCTAVE_LDFLAGS="${OCTAVE_LDFLAGS} "`env - ${mkoctfile} -p ${var}`
8162 done
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_LDFLAGS" >&5
8164$as_echo "$OCTAVE_LDFLAGS" >&6; }
8165
8166fi
8167
8168# Check for Octave options
8169if test -n "$OCTAVE"; then
8170 for octave_opt in --no-window-system --silent --norc --no-history; do
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Octave option '${octave_opt}' is supported" >&5
8172$as_echo_n "checking if Octave option '${octave_opt}' is supported... " >&6; }
8173 octave_out=`${OCTAVE} ${octave_opt} /dev/null 2>&1 | sed -n '1p' | sed -n '/unrecognized/p'`
8174 if test "x${octave_out}" = x; then :
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177$as_echo "yes" >&6; }
8178 OCTAVE="${OCTAVE} ${octave_opt}"
8179
8180else
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
8184
8185fi
8186 done
8187fi
8188
8189
8190
8191
8192
8193
8194
8195#----------------------------------------------------------------
8196# Look for Scilab
8197#----------------------------------------------------------------
8198
8199
8200# Check whether --with-scilab was given.
8201if test "${with_scilab+set}" = set; then :
8202 withval=$with_scilab; SCILABBIN="$withval"
8203else
8204 SCILABBIN="$alllang_default"
8205fi
8206
8207
8208# Check whether --with-scilab-inc was given.
8209if test "${with_scilab_inc+set}" = set; then :
8210 withval=$with_scilab_inc; SCILABINCDIR="$withval"
8211else
8212 SCILABINCDIR=""
8213fi
8214
8215
8216# First, check for "--without-scilab" or "--with-scilab=no".
8217if test x"${SCILABBIN}" = xno; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Scilab" >&5
8219$as_echo "$as_me: Disabling Scilab" >&6;}
8220 SCILAB=
8221else
8222 # Check for Scilab executable
8223 if test "x$SCILABBIN" = xyes; then
8224 for ac_prog in scilab
8225do
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227set dummy $ac_prog; ac_word=$2
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if ${ac_cv_prog_SCILAB+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232else
8233 if test -n "$SCILAB"; then
8234 ac_cv_prog_SCILAB="$SCILAB" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_SCILAB="$ac_prog"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247done
8248 done
8249IFS=$as_save_IFS
8250
8251fi
8252fi
8253SCILAB=$ac_cv_prog_SCILAB
8254if test -n "$SCILAB"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCILAB" >&5
8256$as_echo "$SCILAB" >&6; }
8257else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
8260fi
8261
8262
8263 test -n "$SCILAB" && break
8264done
8265
8266 else
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scilab" >&5
8268$as_echo_n "checking for scilab... " >&6; }
8269 if test -f "$SCILABBIN"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCILABBIN" >&5
8271$as_echo "$SCILABBIN" >&6; }
8272 SCILAB="$SCILABBIN"
8273 else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8275$as_echo "not found" >&6; }
8276 fi
8277 fi
8278
8279 if test -n "$SCILAB"; then
8280 # Check for Scilab version (needs api_scilab so needs version 5.3.3 or higher)
8281 SCILAB_FULL_VERSION=`$SCILAB -version | head -1 | sed -e 's|Scilab version \"\(.*\)\"|\1|g'`
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Scilab version is 5.3.3 or higher" >&5
8284$as_echo_n "checking Scilab version is 5.3.3 or higher... " >&6; }
8285 SCILAB_MAJOR_VERSION=`echo $SCILAB_FULL_VERSION | cut -d. -f1`
8286 SCILAB_MINOR_VERSION=`echo $SCILAB_FULL_VERSION | cut -d. -f2`
8287 SCILAB_MAINTENANCE_VERSION=`echo $SCILAB_FULL_VERSION | cut -d. -f3`
8288 SCILAB_VERSION="$SCILAB_MAJOR_VERSION$SCILAB_MINOR_VERSION$SCILAB_MAINTENANCE_VERSION"
8289
8290 if test $SCILAB_VERSION -ge 533; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292$as_echo "yes" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
8296 SCILAB=
8297 fi
8298
8299 if test -n "$SCILAB"; then
8300 # Set Scilab startup options depending on version
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Scilab startup options" >&5
8302$as_echo_n "checking for Scilab startup options... " >&6; }
8303 SCILABOPT="-nwni -nb"
8304 if test $SCILAB_VERSION -ge 540; then
8305 SCILABOPT+=" -noatomsautoload"
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCILABOPT" >&5
8308$as_echo "$SCILABOPT" >&6; }
8309
8310 # Check for Scilab header files
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Scilab header files" >&5
8312$as_echo_n "checking for Scilab header files... " >&6; }
8313 if test "$SCILABINCDIR" != ""; then
8314 dirs="$SCILABINCDIR"
8315 elif test -n "$PKGCONFIG"; then
8316 dirs=`$PKGCONFIG scilab --cflags-only-I | sed -e 's/-I//g'`
8317 else
8318 dirs=""
8319 fi
8320 for i in $dirs; do
8321 if test -r $i/api_scilab.h; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
8323$as_echo "$i" >&6; }
8324 SCILABINCLUDE="-I$i"
8325 break
8326 fi
8327 if test -r $i/scilab/api_scilab.h; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i/scilab" >&5
8329$as_echo "$i/scilab" >&6; }
8330 SCILABINCLUDE="-I$i/scilab"
8331 break
8332 fi
8333 done
8334 if test "$SCILABINCLUDE" = "" ; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8336$as_echo "not found" >&6; }
8337 SCILAB=
8338 fi
8339 fi
8340 fi
8341fi
8342
8343
8344
8345
8346
8347
8348#----------------------------------------------------------------
8349# Look for java
8350#----------------------------------------------------------------
8351
8352
8353# Check whether --with-java was given.
8354if test "${with_java+set}" = set; then :
8355 withval=$with_java; JAVABIN="$withval"
8356else
8357 JAVABIN="$alllang_default"
8358fi
8359
8360
8361# Check whether --with-javac was given.
8362if test "${with_javac+set}" = set; then :
8363 withval=$with_javac; JAVACBIN="$withval"
8364else
8365 JAVACBIN=
8366fi
8367
8368
8369# First, check for "--without-java" or "--with-java=no".
8370if test x"${JAVABIN}" = xno; then
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Java" >&5
8372$as_echo "$as_me: Disabling Java" >&6;}
8373JAVA=
8374else
8375
8376case $host in
8377 *-*-cygwin*)
8378 if test -n "$JAVA_HOME"; then
8379 JAVA_HOME=`cygpath --mixed "$JAVA_HOME"`
8380 fi
8381 JAVA_CLASSPATH_SEP=";"
8382 ;;
8383 *-*-mingw*)
8384 if test -n "$JAVA_HOME"; then
8385 JAVA_HOME=`${srcdir}/Tools/convertpath -u "$JAVA_HOME"`
8386 fi
8387 JAVA_CLASSPATH_SEP=";"
8388 ;;
8389 *-*-darwin*)
8390 if test -z "$JAVA_HOME" -a -x /usr/libexec/java_home; then
8391 JAVA_HOME=`/usr/libexec/java_home`
8392 fi
8393 JAVA_OSX_STD_INCDIR="/System/Library/Frameworks/JavaVM.framework/Headers"
8394 if test -r "$JAVA_OSX_STD_INCDIR/jni.h"; then
8395 JAVA_HOME_INCDIR=$JAVA_OSX_STD_INCDIR
8396 fi
8397 JAVA_CLASSPATH_SEP=":"
8398 ;;
8399 *)
8400 JAVA_CLASSPATH_SEP=":"
8401 ;;
8402esac
8403
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java JDK" >&5
8405$as_echo_n "checking for java JDK... " >&6; }
8406if test -n "$JAVA_HOME"; then
8407 java_home_ok=1
8408 if test -z "$JAVABIN" -a ! -x "$JAVA_HOME/bin/java"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No java executable under JAVA_HOME." >&5
8410$as_echo "$as_me: WARNING: No java executable under JAVA_HOME." >&2;}
8411 java_home_ok=0
8412 fi
8413 if test -z "$JAVACBIN" -a ! -x "$JAVA_HOME/bin/javac"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No javac executable under JAVA_HOME." >&5
8415$as_echo "$as_me: WARNING: No javac executable under JAVA_HOME." >&2;}
8416 java_home_ok=0
8417 fi
8418
8419 if test -z "$JAVA_HOME_INCDIR"; then
8420 JAVA_HOME_INCDIR="$JAVA_HOME/include"
8421 fi
8422 if test -z "$JAVAINCDIR" -a ! -r "$JAVA_HOME_INCDIR/jni.h"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No java headers under JAVA_HOME (does it point to a JDK and not just JRE?)." >&5
8424$as_echo "$as_me: WARNING: No java headers under JAVA_HOME (does it point to a JDK and not just JRE?)." >&2;}
8425 java_home_ok=0
8426 fi
8427 if test "$java_home_ok" = 1; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found (in $JAVA_HOME)" >&5
8429$as_echo "found (in $JAVA_HOME)" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432$as_echo "no" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME ($JAVA_HOME) is defined but does not point to a complete JDK installation, ignoring it." >&5
8434$as_echo "$as_me: WARNING: JAVA_HOME ($JAVA_HOME) is defined but does not point to a complete JDK installation, ignoring it." >&2;}
8435 JAVA_HOME=
8436 fi
8437else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (JAVA_HOME is not defined)" >&5
8439$as_echo "no (JAVA_HOME is not defined)" >&6; }
8440fi
8441
8442if test "x$JAVABIN" = xyes; then
8443 if test -n "$JAVA_HOME"; then
8444 JAVA="$JAVA_HOME/bin/java"
8445 else
8446 for ac_prog in java kaffe guavac
8447do
8448 # Extract the first word of "$ac_prog", so it can be a program name with args.
8449set dummy $ac_prog; ac_word=$2
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
8452if ${ac_cv_prog_JAVA+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454else
8455 if test -n "$JAVA"; then
8456 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
8457else
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_JAVA="$ac_prog"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469done
8470 done
8471IFS=$as_save_IFS
8472
8473fi
8474fi
8475JAVA=$ac_cv_prog_JAVA
8476if test -n "$JAVA"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
8478$as_echo "$JAVA" >&6; }
8479else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
8482fi
8483
8484
8485 test -n "$JAVA" && break
8486done
8487
8488 fi
8489else
8490 JAVA="$JAVABIN"
8491fi
8492
8493if test -z "$JAVACBIN"; then
8494 if test -n "$JAVA_HOME"; then
8495 JAVAC="$JAVA_HOME/bin/javac"
8496 else
8497 for ac_prog in javac
8498do
8499 # Extract the first word of "$ac_prog", so it can be a program name with args.
8500set dummy $ac_prog; ac_word=$2
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502$as_echo_n "checking for $ac_word... " >&6; }
8503if ${ac_cv_prog_JAVAC+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505else
8506 if test -n "$JAVAC"; then
8507 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
8508else
8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_JAVAC="$ac_prog"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521 done
8522IFS=$as_save_IFS
8523
8524fi
8525fi
8526JAVAC=$ac_cv_prog_JAVAC
8527if test -n "$JAVAC"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
8529$as_echo "$JAVAC" >&6; }
8530else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534
8535
8536 test -n "$JAVAC" && break
8537done
8538
8539 fi
8540else
8541 JAVAC="$JAVACBIN"
8542fi
8543
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java include file jni.h" >&5
8545$as_echo_n "checking for java include file jni.h... " >&6; }
8546
8547# Check whether --with-javaincl was given.
8548if test "${with_javaincl+set}" = set; then :
8549 withval=$with_javaincl; JAVAINCDIR="$withval"
8550else
8551 JAVAINCDIR=
8552fi
8553
8554
8555JAVAINC=""
8556if test -z "$JAVAINCDIR" ; then
8557 if test -n "$JAVA_HOME"; then
8558 JAVAINCDIR="$JAVA_HOME_INCDIR"
8559 JAVAINC=-I\"$JAVAINCDIR\"
8560 else
8561 JAVAINCDIR="/usr/j2sdk*/include /usr/local/j2sdk*/include /usr/jdk*/include /usr/local/jdk*/include /opt/j2sdk*/include /opt/jdk*/include /usr/java/include /usr/java/j2sdk*/include /usr/java/jdk*/include /usr/local/java/include /opt/java/include /usr/include/java /usr/local/include/java /usr/lib/java/include /usr/lib/jvm/java*/include /usr/lib64/jvm/java*/include /usr/include/kaffe /usr/local/include/kaffe /usr/include"
8562
8563 # Add in default installation directory on Windows for Cygwin
8564 case $host in
8565 *-*-cygwin* | *-*-mingw*) JAVAINCDIR="c:/Program*Files*/Java/jdk*/include d:/Program*Files*/Java/jdk*/include c:/j2sdk*/include d:/j2sdk*/include c:/jdk*/include d:/jdk*/include $JAVAINCDIR";;
8566 *-*-darwin*) JAVAINCDIR="$JAVA_OSX_STD_INCDIR $JAVAINCDIR";;
8567 *);;
8568 esac
8569
8570 for d in $JAVAINCDIR ; do
8571 if test -r "$d/jni.h" ; then
8572 JAVAINCDIR=$d
8573 JAVAINC=-I\"$d\"
8574 JAVA_HOME_MAYBE="`dirname $d`"
8575 break
8576 fi
8577 done
8578 fi
8579else
8580 if test -r "$JAVAINCDIR/jni.h" ; then
8581 JAVAINC=-I\"$JAVAINCDIR\"
8582 fi
8583fi
8584
8585if test "$JAVAINC" = "" ; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8587$as_echo "not found" >&6; }
8588else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAINC" >&5
8590$as_echo "$JAVAINC" >&6; }
8591 # now look for <arch>/jni_md.h
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java include file jni_md.h" >&5
8593$as_echo_n "checking for java include file jni_md.h... " >&6; }
8594 JAVAMDDIR=`find "$JAVAINCDIR" -follow -name jni_md.h -print`
8595 if test "$JAVAMDDIR" = "" ; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8597$as_echo "not found" >&6; }
8598 else
8599 JAVAMDDIR=-I\"`dirname "$JAVAMDDIR" | tail -1`\"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAMDDIR" >&5
8601$as_echo "$JAVAMDDIR" >&6; }
8602 JAVAINC="${JAVAINC} ${JAVAMDDIR}"
8603 fi
8604fi
8605
8606# Auto-detecting JAVA_HOME is not so easy, below will only work up to and including jdk8
8607if test -z "$JAVA_HOME" && test -n "$JAVA_HOME_MAYBE" ; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java jdk from jni include paths" >&5
8609$as_echo_n "checking for java jdk from jni include paths... " >&6; }
8610 if test -r "$JAVA_HOME_MAYBE/lib/tools.jar" ; then
8611 JAVA_HOME=$JAVA_HOME_MAYBE
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_HOME" >&5
8613$as_echo "$JAVA_HOME" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8616$as_echo "not found" >&6; }
8617 fi
8618fi
8619
8620# Javadoc support required for the Java test-suite is available by default in jdk9+ and in tools.jar in earlier jdk versions
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java tools.jar" >&5
8622$as_echo_n "checking for java tools.jar... " >&6; }
8623if test -n "$JAVA_HOME" && test -r "$JAVA_HOME/lib/tools.jar" ; then
8624 JAVA_TOOLS_JAR="$JAVA_HOME/lib/tools.jar"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_TOOLS_JAR" >&5
8626$as_echo "$JAVA_TOOLS_JAR" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8629$as_echo "not found" >&6; }
8630fi
8631
8632case $host in
8633*-*-cygwin*)
8634 # TODO: Only use this flag if the compiler supports it, later versions of gcc no longer have it
8635 GCC_MNO_CYGWIN=" -mno-cygwin"
8636 ;;
8637*)
8638 GCC_MNO_CYGWIN=""
8639 ;;
8640esac
8641
8642# java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable
8643case $host in
8644*-*-cygwin* | *-*-mingw*)
8645 if test "$GCC" = yes; then
8646 JAVADYNAMICLINKING="$GCC_MNO_CYGWIN -mthreads -Wl,--add-stdcall-alias"
8647 JAVACFLAGS="$GCC_MNO_CYGWIN -mthreads"
8648 else
8649 JAVADYNAMICLINKING=""
8650 JAVACFLAGS=""
8651 fi ;;
8652*-*-darwin*)
8653 JAVADYNAMICLINKING="-dynamiclib -framework JavaVM"
8654 JAVACFLAGS=""
8655 ;;
8656*)
8657 JAVADYNAMICLINKING=""
8658 JAVACFLAGS=""
8659 ;;
8660esac
8661
8662# Java on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
8663case $host in
8664*-*-cygwin* | *-*-mingw*) JAVALIBRARYPREFIX="";;
8665*)JAVALIBRARYPREFIX="lib";;
8666esac
8667
8668# Java on Mac OS X tweaks
8669case $host in
8670*-*-darwin*)
8671 JAVASO=".jnilib"
8672 JAVALDSHARED='$(CC)'
8673 JAVACXXSHARED='$(CXX)'
8674 ;;
8675*)
8676 JAVASO=$SO
8677 JAVALDSHARED='$(LDSHARED)'
8678 JAVACXXSHARED='$(CXXSHARED)'
8679 ;;
8680esac
8681fi
8682
8683# Quote for spaces in path to executables
8684if test -n "$JAVA"; then
8685 JAVA=\"$JAVA\"
8686fi
8687if test -n "$JAVAC"; then
8688 JAVAC=\"$JAVAC\"
8689fi
8690
8691# Turned off due to spurious warnings in later versions of openjdk-1.8
8692# JAVAFLAGS=-Xcheck:jni
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707#----------------------------------------------------------------
8708# Look for Javascript
8709#----------------------------------------------------------------
8710
8711# Check whether --with-javascript was given.
8712if test "${with_javascript+set}" = set; then :
8713 withval=$with_javascript; with_javascript="$withval"
8714else
8715 with_javascript="$alllang_default"
8716fi
8717
8718
8719# First, check for "--without-javascript" or "--with-javascript=no".
8720if test x"${with_javascript}" = xno; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Javascript" >&5
8722$as_echo "$as_me: Disabling Javascript" >&6;}
8723 JAVASCRIPT=
8724else
8725 JAVASCRIPT=1
8726
8727 #----------------------------------------------------------------
8728 # General Javascript settings shared by JSC and V8
8729 #----------------------------------------------------------------
8730
8731 case $host in
8732 *-*-darwin*)
8733 JSSO=".dylib"
8734 # HACK: didn't manage to get dynamic module loading working with a g++ compiled interpreter
8735 JSINTERPRETERCXX='c++'
8736 JSINTERPRETERLINKFLAGS='-g -Wl,-search_paths_first -Wl,-headerpad_max_install_names'
8737 ;;
8738 *)
8739 JSSO=$SO
8740 JSINTERPRETERCXX='$(CXX)'
8741 JSINTERPRETERLINKFLAGS='-ldl'
8742 ;;
8743 esac
8744
8745 #----------------------------------------------------------------
8746 # Look for Node.js which is the default Javascript engine
8747 #----------------------------------------------------------------
8748
8749 for ac_prog in nodejs node
8750do
8751 # Extract the first word of "$ac_prog", so it can be a program name with args.
8752set dummy $ac_prog; ac_word=$2
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if ${ac_cv_prog_NODEJS+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757else
8758 if test -n "$NODEJS"; then
8759 ac_cv_prog_NODEJS="$NODEJS" # Let the user override the test.
8760else
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 ac_cv_prog_NODEJS="$ac_prog"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8771 fi
8772done
8773 done
8774IFS=$as_save_IFS
8775
8776fi
8777fi
8778NODEJS=$ac_cv_prog_NODEJS
8779if test -n "$NODEJS"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NODEJS" >&5
8781$as_echo "$NODEJS" >&6; }
8782else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
8785fi
8786
8787
8788 test -n "$NODEJS" && break
8789done
8790
8791
8792 if test -n "$NODEJS"; then
8793 # node-gyp is needed to run the test-suite/examples
8794 for ac_prog in node-gyp
8795do
8796 # Extract the first word of "$ac_prog", so it can be a program name with args.
8797set dummy $ac_prog; ac_word=$2
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
8800if ${ac_cv_prog_NODEGYP+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802else
8803 if test -n "$NODEGYP"; then
8804 ac_cv_prog_NODEGYP="$NODEGYP" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_NODEGYP="$ac_prog"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817done
8818 done
8819IFS=$as_save_IFS
8820
8821fi
8822fi
8823NODEGYP=$ac_cv_prog_NODEGYP
8824if test -n "$NODEGYP"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NODEGYP" >&5
8826$as_echo "$NODEGYP" >&6; }
8827else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
8830fi
8831
8832
8833 test -n "$NODEGYP" && break
8834done
8835
8836 if test -z "$NODEGYP"; then
8837 NODEJS=
8838 fi
8839 fi
8840
8841 #----------------------------------------------------------------
8842 # Look for JavascriptCore (Webkit) settings (JSCOREINCDIR, JSCOREDYNAMICLINKING)
8843 #----------------------------------------------------------------
8844
8845 # check for include files
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JavaScriptCore/JavaScript.h" >&5
8847$as_echo_n "checking for JavaScriptCore/JavaScript.h... " >&6; }
8848
8849# Check whether --with-jscoreinc was given.
8850if test "${with_jscoreinc+set}" = set; then :
8851 withval=$with_jscoreinc; JSCOREINCDIR="$withval"
8852else
8853 JSCOREINCDIR=
8854fi
8855
8856
8857 JSCOREVERSION=
8858
8859 if test -z "$JSCOREINCDIR"; then
8860 JSCOREINCDIR="/usr/include/ /usr/local/include/"
8861
8862 # Add in default directory for JavaScriptCore headers for Linux and Mac OS X
8863 case $host in
8864 *-*-linux*)
8865 JSCOREINCDIR="/usr/include/webkit-1.0/ /usr/include/webkitgtk-1.0/ /usr/local/include/webkit-1.0/JavaScriptCore/ $JSCOREINCDIR"
8866 ;;
8867 *-*-darwin*)
8868 JSCOREINCDIR="/System/Library/Frameworks/JavaScriptCore.framework/Headers/ $JSCOREINCDIR"
8869 ;;
8870 *)
8871 ;;
8872 esac
8873 fi
8874
8875 for d in $JSCOREINCDIR ; do
8876 if test -r "$d/JavaScriptCore/JavaScript.h" || test -r "$d/JavaScript.h" ; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
8878$as_echo "$d" >&6; }
8879 JSCOREINCDIR=$d
8880 JSCOREINC=-I\"$d\"
8881 break
8882 fi
8883 done
8884
8885 if test "$JSCOREINC" = "" ; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8887$as_echo "not found" >&6; }
8888 fi
8889
8890 # check for JavaScriptCore/Webkit libraries
8891
8892# Check whether --with-jscorelib was given.
8893if test "${with_jscorelib+set}" = set; then :
8894 withval=$with_jscorelib; JSCORELIB="-L$withval"
8895else
8896 JSCORELIB=
8897fi
8898
8899
8900 if test -z "$JSCORELIB" -a -n "$PKGCONFIG"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JavaScriptCore/Webkit library" >&5
8902$as_echo_n "checking for JavaScriptCore/Webkit library... " >&6; }
8903 if pkg-config javascriptcoregtk-1.0; then
8904 JSCORELIB=`$PKGCONFIG --libs javascriptcoregtk-1.0`
8905 JSCOREVERSION=`$PKGCONFIG --modversion javascriptcoregtk-1.0`
8906 fi
8907 if test -z "$JSCORELIB"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8909$as_echo "not found" >&6; }
8910 JSCENABLED=
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JSCORELIB" >&5
8913$as_echo "$JSCORELIB" >&6; }
8914 JSCOREDYNAMICLINKING="$JSCORELIB"
8915 JSCENABLED=1
8916 fi
8917 fi
8918
8919 #----------------------------------------------------------------
8920 # Look for V8 settings (JSV8INCDIR, JSV8DYNAMICLINKING)
8921 #----------------------------------------------------------------
8922
8923 # check for include files
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 Javascript v8.h" >&5
8925$as_echo_n "checking for V8 Javascript v8.h... " >&6; }
8926
8927# Check whether --with-jsv8inc was given.
8928if test "${with_jsv8inc+set}" = set; then :
8929 withval=$with_jsv8inc; JSV8INCDIR="$withval"
8930else
8931 JSV8INCDIR=
8932fi
8933
8934
8935 # if not include dir is specified we try to find
8936 if test -z "$JSV8INCDIR"; then
8937 # Add in default directory for JavaScriptCore headers for Linux and Mac OS X
8938 case $host in
8939 *-*-linux*)
8940 JSV8INCDIR="/usr/include /usr/local/include/ $JSV8INCDIR"
8941 ;;
8942 *-*-darwin*)
8943 JSV8INCDIR="$JSV8INCDIR"
8944 ;;
8945 *)
8946 ;;
8947 esac
8948 fi
8949
8950 for d in $JSV8INCDIR ; do
8951 if test -r "$d/v8.h" ; then
8952 JSV8INCDIR=$d
8953 JSV8INC=-I\"$d\"
8954 break
8955 fi
8956 done
8957
8958 if test "$JSV8INC" = "" ; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8960$as_echo "not found" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JSV8INCDIR" >&5
8963$as_echo "$JSV8INCDIR" >&6; }
8964 fi
8965
8966 # check for V8 library
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for V8 Javascript library" >&5
8968$as_echo_n "checking for V8 Javascript library... " >&6; }
8969
8970# Check whether --with-jsv8lib was given.
8971if test "${with_jsv8lib+set}" = set; then :
8972 withval=$with_jsv8lib; JSV8LIBDIR="$withval"
8973else
8974 JSV8LIB=
8975fi
8976
8977
8978 v8libdirs="$JSV8LIBDIR /usr/lib64/ /usr/local/lib64/ /usr/lib/ /usr/local/lib/"
8979 for d in $v8libdirs ; do
8980 if test -r $d/libv8$JSSO; then
8981 JSV8LIBDIR=$d
8982 JSV8LIB="-L$d -lv8"
8983 break
8984 fi
8985 done
8986
8987 if test "$JSV8LIB" = "" ; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8989$as_echo "not found" >&6; }
8990 JSV8ENABLED=
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JSV8LIBDIR" >&5
8993$as_echo "$JSV8LIBDIR" >&6; }
8994 JSV8ENABLED=1
8995 fi
8996
8997
8998 # linking options
8999 case $host in
9000 *-*-darwin*)
9001 JSV8DYNAMICLINKING="$JSV8LIB"
9002 ;;
9003 *-*-linux*)
9004 JSV8DYNAMICLINKING="$JSV8LIB"
9005 ;;
9006 *)
9007 JSV8DYNAMICLINKING=""
9008 ;;
9009 esac
9010
9011fi
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028#----------------------------------------------------------------
9029# Look for Android
9030#----------------------------------------------------------------
9031
9032
9033# Check whether --with-android was given.
9034if test "${with_android+set}" = set; then :
9035 withval=$with_android; ANDROIDBIN="$withval"
9036else
9037 ANDROIDBIN="$alllang_default"
9038fi
9039
9040
9041# Check whether --with-adb was given.
9042if test "${with_adb+set}" = set; then :
9043 withval=$with_adb; ADBBIN="$withval"
9044else
9045 ADBBIN=
9046fi
9047
9048
9049# Check whether --with-ant was given.
9050if test "${with_ant+set}" = set; then :
9051 withval=$with_ant; ANTBIN="$withval"
9052else
9053 ANTBIN=
9054fi
9055
9056
9057# Check whether --with-ndk-build was given.
9058if test "${with_ndk_build+set}" = set; then :
9059 withval=$with_ndk_build; NDKBUILDBIN="$withval"
9060else
9061 NDKBUILDBIN=
9062fi
9063
9064
9065# First, check for "--without-android" or "--with-android=no".
9066if test x"${ANDROIDBIN}" = xno; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Android" >&5
9068$as_echo "$as_me: Disabling Android" >&6;}
9069 ANDROID=
9070else
9071 if test "x$ANDROIDBIN" = xyes; then
9072 for ac_prog in android
9073do
9074 # Extract the first word of "$ac_prog", so it can be a program name with args.
9075set dummy $ac_prog; ac_word=$2
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077$as_echo_n "checking for $ac_word... " >&6; }
9078if ${ac_cv_prog_ANDROID+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080else
9081 if test -n "$ANDROID"; then
9082 ac_cv_prog_ANDROID="$ANDROID" # Let the user override the test.
9083else
9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091 ac_cv_prog_ANDROID="$ac_prog"
9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095done
9096 done
9097IFS=$as_save_IFS
9098
9099fi
9100fi
9101ANDROID=$ac_cv_prog_ANDROID
9102if test -n "$ANDROID"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID" >&5
9104$as_echo "$ANDROID" >&6; }
9105else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107$as_echo "no" >&6; }
9108fi
9109
9110
9111 test -n "$ANDROID" && break
9112done
9113
9114 else
9115 ANDROID="$ANDROIDBIN"
9116 fi
9117
9118 if test -z "$ADBBIN"; then
9119 for ac_prog in adb
9120do
9121 # Extract the first word of "$ac_prog", so it can be a program name with args.
9122set dummy $ac_prog; ac_word=$2
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124$as_echo_n "checking for $ac_word... " >&6; }
9125if ${ac_cv_prog_ADB+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127else
9128 if test -n "$ADB"; then
9129 ac_cv_prog_ADB="$ADB" # Let the user override the test.
9130else
9131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in $PATH
9133do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138 ac_cv_prog_ADB="$ac_prog"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142done
9143 done
9144IFS=$as_save_IFS
9145
9146fi
9147fi
9148ADB=$ac_cv_prog_ADB
9149if test -n "$ADB"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADB" >&5
9151$as_echo "$ADB" >&6; }
9152else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154$as_echo "no" >&6; }
9155fi
9156
9157
9158 test -n "$ADB" && break
9159done
9160
9161 else
9162 ADB="$ADBBIN"
9163 fi
9164
9165 if test -z "$ANTBIN"; then
9166 for ac_prog in ant
9167do
9168 # Extract the first word of "$ac_prog", so it can be a program name with args.
9169set dummy $ac_prog; ac_word=$2
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171$as_echo_n "checking for $ac_word... " >&6; }
9172if ${ac_cv_prog_ANT+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174else
9175 if test -n "$ANT"; then
9176 ac_cv_prog_ANT="$ANT" # Let the user override the test.
9177else
9178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179for as_dir in $PATH
9180do
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_ANT="$ac_prog"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 break 2
9188 fi
9189done
9190 done
9191IFS=$as_save_IFS
9192
9193fi
9194fi
9195ANT=$ac_cv_prog_ANT
9196if test -n "$ANT"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
9198$as_echo "$ANT" >&6; }
9199else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
9202fi
9203
9204
9205 test -n "$ANT" && break
9206done
9207
9208 else
9209 ANT="$ANTBIN"
9210 fi
9211
9212 if test -z "$NDKBUILDBIN"; then
9213 for ac_prog in ndk-build
9214do
9215 # Extract the first word of "$ac_prog", so it can be a program name with args.
9216set dummy $ac_prog; ac_word=$2
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if ${ac_cv_prog_NDKBUILD+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221else
9222 if test -n "$NDKBUILD"; then
9223 ac_cv_prog_NDKBUILD="$NDKBUILD" # Let the user override the test.
9224else
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_NDKBUILD="$ac_prog"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236done
9237 done
9238IFS=$as_save_IFS
9239
9240fi
9241fi
9242NDKBUILD=$ac_cv_prog_NDKBUILD
9243if test -n "$NDKBUILD"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NDKBUILD" >&5
9245$as_echo "$NDKBUILD" >&6; }
9246else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
9249fi
9250
9251
9252 test -n "$NDKBUILD" && break
9253done
9254
9255 else
9256 NDKBUILD="$NDKBUILDBIN"
9257 fi
9258fi
9259
9260
9261
9262
9263
9264
9265#----------------------------------------------------------------
9266# Look for Guile
9267#----------------------------------------------------------------
9268
9269GUILE=
9270GUILE_CFLAGS=
9271GUILE_LIBS=
9272
9273
9274# Check whether --with-guile-config was given.
9275if test "${with_guile_config+set}" = set; then :
9276 withval=$with_guile_config; GUILE_CONFIG="$withval"
9277else
9278 GUILE_CONFIG=
9279fi
9280
9281
9282# Check whether --with-guile was given.
9283if test "${with_guile+set}" = set; then :
9284 withval=$with_guile;
9285 GUILE="$withval"
9286else
9287 GUILE="$alllang_default"
9288fi
9289
9290
9291# Check whether --with-guile-cflags was given.
9292if test "${with_guile_cflags+set}" = set; then :
9293 withval=$with_guile_cflags;
9294 GUILE_CFLAGS="$withval"
9295fi
9296
9297
9298# Check whether --with-guile-libs was given.
9299if test "${with_guile_libs+set}" = set; then :
9300 withval=$with_guile_libs;
9301 GUILE_LIBS="$withval"
9302fi
9303
9304
9305# First, check for "--without-guile" or "--with-guile=no".
9306if test x"${GUILE}" = xno; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Guile" >&5
9308$as_echo "$as_me: Disabling Guile" >&6;}
9309else
9310 if test -z "$GUILE_CONFIG" ; then
9311 # Extract the first word of "guile-config", so it can be a program name with args.
9312set dummy guile-config; ac_word=$2
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
9315if ${ac_cv_path_GUILE_CONFIG+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317else
9318 case $GUILE_CONFIG in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
9321 ;;
9322 *)
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9333 fi
9334done
9335 done
9336IFS=$as_save_IFS
9337
9338 ;;
9339esac
9340fi
9341GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
9342if test -n "$GUILE_CONFIG"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
9344$as_echo "$GUILE_CONFIG" >&6; }
9345else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347$as_echo "no" >&6; }
9348fi
9349
9350
9351 fi
9352 if test -n "$GUILE_CONFIG" ; then
9353 if test x"$GUILE" = xyes; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile executable" >&5
9355$as_echo_n "checking for guile executable... " >&6; }
9356 # Try extracting it via guile-config first. If it's defined there it's the most reliable result
9357 GUILE="`$GUILE_CONFIG info guile 2>/dev/null`"
9358 if test -n "$GUILE"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
9360$as_echo "$GUILE" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found via guile-config - constructing path" >&5
9363$as_echo "not found via guile-config - constructing path" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile bindir" >&5
9365$as_echo_n "checking for guile bindir... " >&6; }
9366 guile_bindir="`$GUILE_CONFIG info bindir`"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_bindir" >&5
9368$as_echo "$guile_bindir" >&6; }
9369 GUILE="$guile_bindir/guile"
9370 fi
9371 if ! test -f "$GUILE" ; then
9372 GUILE=
9373 # Extract the first word of "guile", so it can be a program name with args.
9374set dummy guile; ac_word=$2
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376$as_echo_n "checking for $ac_word... " >&6; }
9377if ${ac_cv_path_GUILE+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379else
9380 case $GUILE in
9381 [\\/]* | ?:[\\/]*)
9382 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
9383 ;;
9384 *)
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386for as_dir in $PATH
9387do
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9395 fi
9396done
9397 done
9398IFS=$as_save_IFS
9399
9400 ;;
9401esac
9402fi
9403GUILE=$ac_cv_path_GUILE
9404if test -n "$GUILE"; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
9406$as_echo "$GUILE" >&6; }
9407else
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409$as_echo "no" >&6; }
9410fi
9411
9412
9413 fi
9414 if test -z "$GUILE" ; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable guile executable found. Disabling Guile" >&5
9416$as_echo "$as_me: WARNING: no suitable guile executable found. Disabling Guile" >&2;}
9417 fi
9418 fi
9419
9420 if test -n "$GUILE" ; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile version" >&5
9422$as_echo_n "checking for guile version... " >&6; }
9423 guile_version=`$GUILE -c '(display (effective-version))'`
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
9425$as_echo "$guile_version" >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile version >= 1.8" >&5
9427$as_echo_n "checking for guile version >= 1.8... " >&6; }
9428 guile_good_version=`$GUILE -c '(if (>= (string->number (effective-version)) 1.8) (display "yes") (display "no"))'`
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_good_version" >&5
9430$as_echo "$guile_good_version" >&6; }
9431 if test x"$guile_good_version" != xyes ; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: at least guile version 1.8 is required. Disabling Guile" >&5
9433$as_echo "$as_me: WARNING: at least guile version 1.8 is required. Disabling Guile" >&2;}
9434 GUILE=
9435 fi
9436 fi
9437
9438 if test -n "$GUILE" ; then
9439 # Test if guile-config and guile versions match. They should.
9440 gc_version="`$GUILE_CONFIG --version 2>&1 | sed '1 s/.* //;q'`"
9441 g_version="`$GUILE --version | sed '1 s/.* //;q'`"
9442 if test "$gc_version" != "$g_version"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: different versions reported by $GUILE_CONFIG ($gc_version) and $GUILE ($g_version). Disabling Guile" >&5
9444$as_echo "$as_me: WARNING: different versions reported by $GUILE_CONFIG ($gc_version) and $GUILE ($g_version). Disabling Guile" >&2;}
9445 GUILE=
9446 fi
9447 fi
9448
9449 if test -n "$GUILE" ; then
9450 if test -z "$GUILE_CFLAGS" ; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile compile flags" >&5
9452$as_echo_n "checking for guile compile flags... " >&6; }
9453 GUILE_CFLAGS="`$GUILE_CONFIG compile`" # Note that this can sometimes be empty
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
9455$as_echo "$GUILE_CFLAGS" >&6; }
9456 fi
9457
9458 if test -z "$GUILE_LIBS" ; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile link flags" >&5
9460$as_echo_n "checking for guile link flags... " >&6; }
9461 GUILE_LIBS="`$GUILE_CONFIG link`"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LIBS" >&5
9463$as_echo "$GUILE_LIBS" >&6; }
9464 fi
9465 fi
9466 fi
9467fi
9468
9469
9470
9471
9472
9473#----------------------------------------------------------------
9474# Look for MzScheme
9475#----------------------------------------------------------------
9476
9477
9478# Check whether --with-mzscheme was given.
9479if test "${with_mzscheme+set}" = set; then :
9480 withval=$with_mzscheme; MZSCHEMEBIN="$withval"
9481else
9482 MZSCHEMEBIN="$alllang_default"
9483fi
9484
9485
9486# Check whether --with-mzc was given.
9487if test "${with_mzc+set}" = set; then :
9488 withval=$with_mzc; MZCBIN="$withval"
9489else
9490 MZCBIN=
9491fi
9492
9493
9494# First, check for "--without-mzscheme" or "--with-mzscheme=no".
9495if test x"${MZSCHEMEBIN}" = xno; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling MzScheme" >&5
9497$as_echo "$as_me: Disabling MzScheme" >&6;}
9498 MZC=
9499else
9500 if test "x$MZSCHEMEBIN" = xyes; then
9501 # Extract the first word of "mzscheme", so it can be a program name with args.
9502set dummy mzscheme; ac_word=$2
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504$as_echo_n "checking for $ac_word... " >&6; }
9505if ${ac_cv_path_MZSCHEME+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507else
9508 case $MZSCHEME in
9509 [\\/]* | ?:[\\/]*)
9510 ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
9511 ;;
9512 *)
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514for as_dir in $PATH
9515do
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520 ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
9521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9523 fi
9524done
9525 done
9526IFS=$as_save_IFS
9527
9528 ;;
9529esac
9530fi
9531MZSCHEME=$ac_cv_path_MZSCHEME
9532if test -n "$MZSCHEME"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZSCHEME" >&5
9534$as_echo "$MZSCHEME" >&6; }
9535else
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540
9541 else
9542 MZSCHEME="$MZSCHEMEBIN"
9543 fi
9544
9545 if test -z "$MZCBIN"; then
9546 # Extract the first word of "mzc", so it can be a program name with args.
9547set dummy mzc; ac_word=$2
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549$as_echo_n "checking for $ac_word... " >&6; }
9550if ${ac_cv_path_MZC+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552else
9553 case $MZC in
9554 [\\/]* | ?:[\\/]*)
9555 ac_cv_path_MZC="$MZC" # Let the user override the test with a path.
9556 ;;
9557 *)
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9565 ac_cv_path_MZC="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9568 fi
9569done
9570 done
9571IFS=$as_save_IFS
9572
9573 ;;
9574esac
9575fi
9576MZC=$ac_cv_path_MZC
9577if test -n "$MZC"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZC" >&5
9579$as_echo "$MZC" >&6; }
9580else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
9583fi
9584
9585
9586 fi
9587
9588 if test -n "$MZSCHEME"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MzScheme dynext object" >&5
9590$as_echo_n "checking for MzScheme dynext object... " >&6; }
9591 MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
9592 if test -f "$MZDYNOBJ"; then
9593 :
9594 else
9595 # older versions (3.72 approx and earlier)
9596 MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
9597 fi
9598 if test -f "$MZDYNOBJ"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZDYNOBJ" >&5
9600$as_echo "$MZDYNOBJ" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9603$as_echo "not found" >&6; }
9604 MZDYNOBJ=""
9605 fi
9606 fi
9607fi
9608
9609
9610#----------------------------------------------------------------
9611# Look for Ruby
9612#----------------------------------------------------------------
9613
9614RUBYBIN=
9615
9616
9617# Check whether --with-ruby was given.
9618if test "${with_ruby+set}" = set; then :
9619 withval=$with_ruby; RUBYBIN="$withval"
9620else
9621 RUBYBIN="$alllang_default"
9622fi
9623
9624
9625# First, check for "--without-ruby" or "--with-ruby=no".
9626RUBYSO=$SO
9627if test x"${RUBYBIN}" = xno; then
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Ruby" >&5
9629$as_echo "$as_me: Disabling Ruby" >&6;}
9630RUBY=
9631else
9632
9633# First figure out what the name of Ruby is
9634
9635if test "x$RUBYBIN" = xyes; then
9636 for ac_prog in ruby
9637do
9638 # Extract the first word of "$ac_prog", so it can be a program name with args.
9639set dummy $ac_prog; ac_word=$2
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
9642if ${ac_cv_prog_RUBY+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644else
9645 if test -n "$RUBY"; then
9646 ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
9647else
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655 ac_cv_prog_RUBY="$ac_prog"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659done
9660 done
9661IFS=$as_save_IFS
9662
9663fi
9664fi
9665RUBY=$ac_cv_prog_RUBY
9666if test -n "$RUBY"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
9668$as_echo "$RUBY" >&6; }
9669else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
9672fi
9673
9674
9675 test -n "$RUBY" && break
9676done
9677
9678else
9679 RUBY="$RUBYBIN"
9680fi
9681
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby header files" >&5
9683$as_echo_n "checking for Ruby header files... " >&6; }
9684if test -n "$RUBY"; then
9685 # Try Ruby1.9+ first
9686 RUBYDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyhdrdir"] || $rubyhdrdir') 2>/dev/null`
9687 RUBYARCHHDRDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyarchhdrdir"] || $rubyarchhdrdir') 2>/dev/null`
9688 if test x"$RUBYDIR" = x"" || test x"$RUBYDIR" = x"nil"; then
9689 RUBYDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["archdir"] || $archdir') 2>/dev/null`
9690 else
9691 RUBYARCH=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["arch"] || $arch') 2>/dev/null`
9692 fi
9693 if test x"$RUBYDIR" != x""; then
9694 dirs="$RUBYDIR"
9695 RUBYINCLUDE=
9696 for i in $dirs; do
9697 if test -r $i/ruby.h; then
9698 if test x"$RUBYARCH" = x""; then
9699 RUBYINCLUDE="-I$i"
9700 elif test -n "$RUBYARCHHDRDIR"; then
9701 RUBYINCLUDE="-I$i -I$RUBYARCHHDRDIR"
9702 else
9703 RUBYINCLUDE="-I$i -I$i/$RUBYARCH"
9704 fi
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBYINCLUDE" >&5
9706$as_echo "$RUBYINCLUDE" >&6; }
9707 break
9708 fi
9709 done
9710 if test x"$RUBYINCLUDE" = x""; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not locate ruby.h" >&5
9712$as_echo "could not locate ruby.h" >&6; }
9713 fi
9714
9715 # Find library and path for linking.
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby library" >&5
9717$as_echo_n "checking for Ruby library... " >&6; }
9718 RUBYLIB=""
9719 rb_archlibdir=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["archlibdir"]') 2>/dev/null`
9720 rb_libdir=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["libdir"]') 2>/dev/null`
9721 rb_bindir=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["bindir"]') 2>/dev/null`
9722 dirs="$dirs $rb_archlibdir $rb_libdir $rb_bindir"
9723
9724 rb_libruby=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["LIBRUBY_A"]') 2>/dev/null`
9725 RUBYLINK=`($RUBY -rrbconfig -e '
9726 c = RbConfig::CONFIG
9727 if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x
9728 if c["LIBRUBY"] == c["LIBRUBY_A"]
9729 link = c["LIBRUBYARG_STATIC"]
9730 else
9731 link = c["LIBRUBYARG_SHARED"]
9732 end
9733 else # 1.6.x
9734 link = "-l" + c["RUBY_INSTALL_NAME"]
9735 end
9736
9737 # Get the target Ruby was built for
9738 target = c["target"]
9739
9740 if target == "i386-pc-mswin32"
9741 # Need to change msvcrt-ruby*.lib to -lmsvcrt-ruby*
9742 ext = File.extname(link)
9743 # Get index that counts backwards from end of string
9744 index = -1 - ext.size
9745 # Strip off the extension
9746 link = link.slice(0..index)
9747 puts "-l#{link}"
9748 else
9749 puts link
9750 end') 2>/dev/null`
9751
9752 if test "$rb_libruby" != ""; then
9753 for i in $dirs; do
9754 if (test -r $i/$rb_libruby;) then
9755 RUBYLIB="$i"
9756 break
9757 fi
9758 done
9759 fi
9760 if test "$RUBYLIB" = ""; then
9761 RUBYLIB="$RUBYDIR"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found... using $RUBYDIR" >&5
9763$as_echo "not found... using $RUBYDIR" >&6; }
9764 else
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBYLINK in $RUBYLIB" >&5
9766$as_echo "$RUBYLINK in $RUBYLIB" >&6; }
9767 fi
9768 else
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to determine ruby configuration" >&5
9770$as_echo "unable to determine ruby configuration" >&6; }
9771 fi
9772
9773 case $host in
9774 *-*-mingw*) ;; # do nothing, the default windows libraries are already included
9775 *) RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print RbConfig::CONFIG["LIBS"]') 2>/dev/null`";;
9776 esac
9777
9778 RUBYCCDLFLAGS=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["CCDLFLAGS"]') 2>/dev/null`
9779 RUBYSO=.`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["DLEXT"]') 2>/dev/null`
9780else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not figure out how to run ruby" >&5
9782$as_echo "could not figure out how to run ruby" >&6; }
9783fi
9784
9785case $host in
9786*-*-cygwin* | *-*-mingw*) RUBYDYNAMICLINKING="-L$RUBYLIB $RUBYLINK";;
9787*) RUBYDYNAMICLINKING="";;
9788esac
9789fi
9790
9791
9792
9793
9794
9795
9796
9797
9798#-------------------------------------------------------------------------
9799# Look for PHP7
9800#-------------------------------------------------------------------------
9801
9802PHPBIN=
9803
9804
9805# Check whether --with-php was given.
9806if test "${with_php+set}" = set; then :
9807 withval=$with_php; PHPBIN="$withval"
9808else
9809 PHPBIN="$alllang_default"
9810fi
9811
9812
9813# First, check for "--without-php" or "--with-php=no".
9814if test x"${PHPBIN}" = xno; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PHP" >&5
9816$as_echo "$as_me: Disabling PHP" >&6;}
9817 PHP=
9818else
9819 if test "x$PHPBIN" = xyes; then
9820 for ac_prog in php7.3 php7.2 php7.1 php7.0 php
9821do
9822 # Extract the first word of "$ac_prog", so it can be a program name with args.
9823set dummy $ac_prog; ac_word=$2
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
9826if ${ac_cv_prog_PHP+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828else
9829 if test -n "$PHP"; then
9830 ac_cv_prog_PHP="$PHP" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839 ac_cv_prog_PHP="$ac_prog"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843done
9844 done
9845IFS=$as_save_IFS
9846
9847fi
9848fi
9849PHP=$ac_cv_prog_PHP
9850if test -n "$PHP"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
9852$as_echo "$PHP" >&6; }
9853else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855$as_echo "no" >&6; }
9856fi
9857
9858
9859 test -n "$PHP" && break
9860done
9861
9862 else
9863 PHP=$PHPBIN
9864 fi
9865
9866 if test -n "$PHP"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP header files" >&5
9868$as_echo_n "checking for PHP header files... " >&6; }
9869 case $PHP in
9870 *7.*)
9871 PHPCONFIG=`echo "$PHP"|sed 's/7\...*$/-config&/'` ;;
9872 *)
9873 PHPCONFIG=$PHP-config ;;
9874 esac
9875 php_version=`$PHPCONFIG --version 2>/dev/null`
9876 case $php_version in
9877 7.*)
9878 PHPINC=`$PHPCONFIG --includes 2>/dev/null`
9879 if test -n "$PHPINC"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPINC" >&5
9881$as_echo "$PHPINC" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9884$as_echo "not found" >&6; }
9885 fi
9886 ;;
9887 "")
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find $PHPCONFIG or obtain PHP version from it" >&5
9889$as_echo "could not find $PHPCONFIG or obtain PHP version from it" >&6; } ;;
9890 *)
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PHP $php_version - not PHP 7" >&5
9892$as_echo "found PHP $php_version - not PHP 7" >&6; } ;;
9893 esac
9894 fi
9895fi
9896
9897
9898
9899#----------------------------------------------------------------
9900# Look for OCaml
9901#----------------------------------------------------------------
9902
9903
9904# Check whether --with-ocaml was given.
9905if test "${with_ocaml+set}" = set; then :
9906 withval=$with_ocaml; with_ocaml="$withval"
9907else
9908 with_ocaml="$alllang_default"
9909fi
9910
9911
9912# Check whether --with-ocamlc was given.
9913if test "${with_ocamlc+set}" = set; then :
9914 withval=$with_ocamlc; OCAMLC="$withval"
9915else
9916 OCAMLC=
9917fi
9918
9919
9920# Check whether --with-ocamldlgen was given.
9921if test "${with_ocamldlgen+set}" = set; then :
9922 withval=$with_ocamldlgen; OCAMLDLGEN="$withval"
9923else
9924 OCAMLDLGEN=
9925fi
9926
9927
9928# Check whether --with-ocamlfind was given.
9929if test "${with_ocamlfind+set}" = set; then :
9930 withval=$with_ocamlfind; OCAMLFIND="$withval"
9931else
9932 OCAMLFIND=
9933fi
9934
9935
9936# Check whether --with-ocamlmktop was given.
9937if test "${with_ocamlmktop+set}" = set; then :
9938 withval=$with_ocamlmktop; OCAMLMKTOP="$withval"
9939else
9940 OCAMLMKTOP=
9941fi
9942
9943
9944# Check whether --with-camlp4 was given.
9945if test "${with_camlp4+set}" = set; then :
9946 withval=$with_camlp4; CAMLP4="$withval"
9947else
9948 CAMLP4=
9949fi
9950
9951
9952# First, check for "--without-ocaml" or "--with-ocaml=no".
9953if test x"${with_ocaml}" = xno; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling OCaml" >&5
9955$as_echo "$as_me: Disabling OCaml" >&6;}
9956 OCAMLC=
9957else
9958 # OCaml compiler
9959 if test -z "$OCAMLC"; then
9960 for ac_prog in ocamlc
9961do
9962 # Extract the first word of "$ac_prog", so it can be a program name with args.
9963set dummy $ac_prog; ac_word=$2
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965$as_echo_n "checking for $ac_word... " >&6; }
9966if ${ac_cv_prog_OCAMLC+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968else
9969 if test -n "$OCAMLC"; then
9970 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
9971else
9972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_OCAMLC="$ac_prog"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
9984 done
9985IFS=$as_save_IFS
9986
9987fi
9988fi
9989OCAMLC=$ac_cv_prog_OCAMLC
9990if test -n "$OCAMLC"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
9992$as_echo "$OCAMLC" >&6; }
9993else
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995$as_echo "no" >&6; }
9996fi
9997
9998
9999 test -n "$OCAMLC" && break
10000done
10001
10002 fi
10003
10004 # OCaml Pre-Processor-Pretty-Printer
10005 if test -z "$CAMLP4"; then
10006 for ac_prog in camlp4
10007do
10008 # Extract the first word of "$ac_prog", so it can be a program name with args.
10009set dummy $ac_prog; ac_word=$2
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if ${ac_cv_prog_CAMLP4+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014else
10015 if test -n "$CAMLP4"; then
10016 ac_cv_prog_CAMLP4="$CAMLP4" # Let the user override the test.
10017else
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_CAMLP4="$ac_prog"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030 done
10031IFS=$as_save_IFS
10032
10033fi
10034fi
10035CAMLP4=$ac_cv_prog_CAMLP4
10036if test -n "$CAMLP4"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5
10038$as_echo "$CAMLP4" >&6; }
10039else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
10042fi
10043
10044
10045 test -n "$CAMLP4" && break
10046done
10047
10048 fi
10049
10050 # OCaml DL load generator
10051 if test -z "$OCAMLDLGEN"; then
10052 for ac_prog in ocamldlgen
10053do
10054 # Extract the first word of "$ac_prog", so it can be a program name with args.
10055set dummy $ac_prog; ac_word=$2
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057$as_echo_n "checking for $ac_word... " >&6; }
10058if ${ac_cv_prog_OCAMLDLGEN+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 if test -n "$OCAMLDLGEN"; then
10062 ac_cv_prog_OCAMLDLGEN="$OCAMLDLGEN" # Let the user override the test.
10063else
10064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $PATH
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_OCAMLDLGEN="$ac_prog"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075done
10076 done
10077IFS=$as_save_IFS
10078
10079fi
10080fi
10081OCAMLDLGEN=$ac_cv_prog_OCAMLDLGEN
10082if test -n "$OCAMLDLGEN"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDLGEN" >&5
10084$as_echo "$OCAMLDLGEN" >&6; }
10085else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087$as_echo "no" >&6; }
10088fi
10089
10090
10091 test -n "$OCAMLDLGEN" && break
10092done
10093
10094 fi
10095
10096 # OCaml package tool
10097 if test -z "$OCAMLFIND"; then
10098 for ac_prog in ocamlfind
10099do
10100 # Extract the first word of "$ac_prog", so it can be a program name with args.
10101set dummy $ac_prog; ac_word=$2
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103$as_echo_n "checking for $ac_word... " >&6; }
10104if ${ac_cv_prog_OCAMLFIND+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106else
10107 if test -n "$OCAMLFIND"; then
10108 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
10109else
10110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111for as_dir in $PATH
10112do
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10117 ac_cv_prog_OCAMLFIND="$ac_prog"
10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10120 fi
10121done
10122 done
10123IFS=$as_save_IFS
10124
10125fi
10126fi
10127OCAMLFIND=$ac_cv_prog_OCAMLFIND
10128if test -n "$OCAMLFIND"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10130$as_echo "$OCAMLFIND" >&6; }
10131else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
10134fi
10135
10136
10137 test -n "$OCAMLFIND" && break
10138done
10139
10140 fi
10141
10142 # OCaml toplevel creator
10143 if test -z "$OCAMLMKTOP"; then
10144 for ac_prog in ocamlmktop
10145do
10146 # Extract the first word of "$ac_prog", so it can be a program name with args.
10147set dummy $ac_prog; ac_word=$2
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if ${ac_cv_prog_OCAMLMKTOP+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152else
10153 if test -n "$OCAMLMKTOP"; then
10154 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_OCAMLMKTOP="$ac_prog"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167done
10168 done
10169IFS=$as_save_IFS
10170
10171fi
10172fi
10173OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
10174if test -n "$OCAMLMKTOP"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
10176$as_echo "$OCAMLMKTOP" >&6; }
10177else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
10180fi
10181
10182
10183 test -n "$OCAMLMKTOP" && break
10184done
10185
10186 fi
10187fi
10188
10189
10190
10191
10192
10193
10194
10195#----------------------------------------------------------------
10196# Look for C#
10197#----------------------------------------------------------------
10198
10199
10200# Check whether --with-csharp was given.
10201if test "${with_csharp+set}" = set; then :
10202 withval=$with_csharp; with_csharp="$withval"
10203else
10204 with_csharp="$alllang_default"
10205fi
10206
10207
10208# Check whether --with-cil-interpreter was given.
10209if test "${with_cil_interpreter+set}" = set; then :
10210 withval=$with_cil_interpreter; CSHARPBIN="$withval"
10211else
10212 CSHARPBIN=
10213fi
10214
10215
10216# Check whether --with-csharp-compiler was given.
10217if test "${with_csharp_compiler+set}" = set; then :
10218 withval=$with_csharp_compiler; CSHARPCOMPILERBIN="$withval"
10219else
10220 CSHARPCOMPILERBIN=
10221fi
10222
10223
10224# First, check for "--without-csharp" or "--with-csharp=no".
10225if test x"${with_csharp}" = xno; then
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling CSharp" >&5
10227$as_echo "$as_me: Disabling CSharp" >&6;}
10228CSHARPCOMPILER=
10229else
10230
10231if test -z "$CSHARPCOMPILERBIN" ; then
10232 case $host in
10233 *-*-cygwin* | *-*-mingw*)
10234 # prefer unified Mono mcs compiler (not to be confused with the ancient .NET 1 mcs) over older/alternative names.
10235 for ac_prog in csc mcs mono-csc gmcs cscc
10236do
10237 # Extract the first word of "$ac_prog", so it can be a program name with args.
10238set dummy $ac_prog; ac_word=$2
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240$as_echo_n "checking for $ac_word... " >&6; }
10241if ${ac_cv_prog_CSHARPCOMPILER+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243else
10244 if test -n "$CSHARPCOMPILER"; then
10245 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
10246else
10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248for as_dir in $PATH
10249do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10254 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258done
10259 done
10260IFS=$as_save_IFS
10261
10262fi
10263fi
10264CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
10265if test -n "$CSHARPCOMPILER"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5
10267$as_echo "$CSHARPCOMPILER" >&6; }
10268else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
10271fi
10272
10273
10274 test -n "$CSHARPCOMPILER" && break
10275done
10276
10277 if test -n "$CSHARPCOMPILER" && test "$CSHARPCOMPILER" = "csc" ; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether csc is the Microsoft CSharp compiler" >&5
10279$as_echo_n "checking whether csc is the Microsoft CSharp compiler... " >&6; }
10280 csc 2>/dev/null | grep "C#" > /dev/null || CSHARPCOMPILER=""
10281 if test -z "$CSHARPCOMPILER" ; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283$as_echo "no" >&6; }
10284 for ac_prog in mcs mono-csc gmcs cscc
10285do
10286 # Extract the first word of "$ac_prog", so it can be a program name with args.
10287set dummy $ac_prog; ac_word=$2
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289$as_echo_n "checking for $ac_word... " >&6; }
10290if ${ac_cv_prog_CSHARPCOMPILER+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292else
10293 if test -n "$CSHARPCOMPILER"; then
10294 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
10295else
10296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $PATH
10298do
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10306 fi
10307done
10308 done
10309IFS=$as_save_IFS
10310
10311fi
10312fi
10313CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
10314if test -n "$CSHARPCOMPILER"; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5
10316$as_echo "$CSHARPCOMPILER" >&6; }
10317else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319$as_echo "no" >&6; }
10320fi
10321
10322
10323 test -n "$CSHARPCOMPILER" && break
10324done
10325
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10328$as_echo "yes" >&6; }
10329 fi
10330 fi
10331 ;;
10332 *)for ac_prog in mono-csc gmcs mcs cscc
10333do
10334 # Extract the first word of "$ac_prog", so it can be a program name with args.
10335set dummy $ac_prog; ac_word=$2
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337$as_echo_n "checking for $ac_word... " >&6; }
10338if ${ac_cv_prog_CSHARPCOMPILER+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340else
10341 if test -n "$CSHARPCOMPILER"; then
10342 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
10343else
10344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345for as_dir in $PATH
10346do
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 break 2
10354 fi
10355done
10356 done
10357IFS=$as_save_IFS
10358
10359fi
10360fi
10361CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
10362if test -n "$CSHARPCOMPILER"; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5
10364$as_echo "$CSHARPCOMPILER" >&6; }
10365else
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367$as_echo "no" >&6; }
10368fi
10369
10370
10371 test -n "$CSHARPCOMPILER" && break
10372done
10373;;
10374 esac
10375else
10376 CSHARPCOMPILER="$CSHARPCOMPILERBIN"
10377fi
10378
10379CSHARPCONVERTPATH="Tools/convertpath -u"
10380if test -z "$CSHARPBIN" ; then
10381 CSHARPCILINTERPRETER=""
10382 CSHARPCILINTERPRETER_FLAGS=""
10383 if test "cscc" = "$CSHARPCOMPILER" ; then
10384 for ac_prog in ilrun
10385do
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387set dummy $ac_prog; ac_word=$2
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
10390if ${ac_cv_prog_CSHARPCILINTERPRETER+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$CSHARPCILINTERPRETER"; then
10394 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
10395else
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407done
10408 done
10409IFS=$as_save_IFS
10410
10411fi
10412fi
10413CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
10414if test -n "$CSHARPCILINTERPRETER"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCILINTERPRETER" >&5
10416$as_echo "$CSHARPCILINTERPRETER" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422
10423 test -n "$CSHARPCILINTERPRETER" && break
10424done
10425
10426 else
10427 if test "mcs" = "$CSHARPCOMPILER"; then
10428 # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
10429 # The Mono compiler should emit: Mono C# compiler version a.b.c.d
10430 csharp_version_raw=`(mcs --version) 2>/dev/null`
10431 csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#'
10432 CSHARPCOMPILER=""
10433 if test -n "$csharp_version_raw" ; then
10434 if test "$csharp_version_raw" = "$csharp_version_searched" ; then
10435 CSHARPCOMPILER="mcs"
10436 fi
10437 fi
10438 if test "mcs" != "$CSHARPCOMPILER" ; then
10439 echo "mcs is not a working Mono C# compiler"
10440 fi
10441 fi
10442 if test "mcs" = "$CSHARPCOMPILER" || test "gmcs" = "$CSHARPCOMPILER" || test "mono-csc" = "$CSHARPCOMPILER"; then
10443 for ac_prog in mono
10444do
10445 # Extract the first word of "$ac_prog", so it can be a program name with args.
10446set dummy $ac_prog; ac_word=$2
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if ${ac_cv_prog_CSHARPCILINTERPRETER+:} false; then :
10450 $as_echo_n "(cached) " >&6
10451else
10452 if test -n "$CSHARPCILINTERPRETER"; then
10453 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10465 fi
10466done
10467 done
10468IFS=$as_save_IFS
10469
10470fi
10471fi
10472CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
10473if test -n "$CSHARPCILINTERPRETER"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCILINTERPRETER" >&5
10475$as_echo "$CSHARPCILINTERPRETER" >&6; }
10476else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
10479fi
10480
10481
10482 test -n "$CSHARPCILINTERPRETER" && break
10483done
10484 # Mono JIT
10485 CSHARPCILINTERPRETER_FLAGS="--debug"
10486 else
10487 if test "csc" = "$CSHARPCOMPILER"; then
10488 CSHARPCONVERTPATH="Tools/convertpath -w"
10489 fi
10490 fi
10491 fi
10492else
10493 CSHARPCILINTERPRETER="$CSHARPBIN"
10494fi
10495
10496# Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable
10497case $host in
10498*-*-cygwin* | *-*-mingw*)
10499 if test "$GCC" = yes; then
10500 CSHARPDYNAMICLINKING="$GCC_MNO_CYGWIN -mthreads -Wl,--add-stdcall-alias"
10501 CSHARPCFLAGS="$GCC_MNO_CYGWIN -mthreads"
10502 else
10503 CSHARPDYNAMICLINKING=""
10504 CSHARPCFLAGS=""
10505 fi ;;
10506*)
10507 CSHARPDYNAMICLINKING=""
10508 CSHARPCFLAGS=""
10509 ;;
10510esac
10511
10512# CSharp on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
10513case $host in
10514*-*-cygwin* | *-*-mingw*) CSHARPLIBRARYPREFIX="";;
10515*)CSHARPLIBRARYPREFIX="lib";;
10516esac
10517
10518# C#/Mono on Mac OS X tweaks
10519case $host in
10520*-*-darwin*)
10521 CSHARPSO=".so"
10522 ;;
10523*)
10524 CSHARPSO=$SO
10525 ;;
10526esac
10527fi
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538#----------------------------------------------------------------
10539# Look for Lua
10540#----------------------------------------------------------------
10541
10542LUABIN=
10543LUAINCLUDE=
10544LUALIB=
10545LUADYNAMICLOADLIB=
10546LUAFLAGS=
10547LUALINK=
10548# note: if LUABIN is empty then lua tests will not be done
10549# LUABIN will be cleared if certain dependencies cannot be found
10550
10551
10552# Check whether --with-lua was given.
10553if test "${with_lua+set}" = set; then :
10554 withval=$with_lua; LUABIN="$withval"
10555else
10556 LUABIN="$alllang_default"
10557fi
10558
10559
10560# Check whether --with-luaincl was given.
10561if test "${with_luaincl+set}" = set; then :
10562 withval=$with_luaincl;
10563 LUAINCLUDE="$withval"
10564else
10565 LUAINCLUDE=
10566fi
10567
10568
10569# Check whether --with-lualib was given.
10570if test "${with_lualib+set}" = set; then :
10571 withval=$with_lualib;
10572 LUALIB="$withval"
10573else
10574 LUALIB=
10575fi
10576
10577
10578# First, check for "--without-lua" or "--with-lua=no".
10579if test x"${LUABIN}" = xno; then
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Lua" >&5
10581$as_echo "$as_me: Disabling Lua" >&6;}
10582else
10583
10584# can we find lua?
10585if test "x$LUABIN" = xyes; then
10586 # We look for a versioned Lua binary first, as there can be
10587 # multiple versions of Lua installed on some systems (like Debian).
10588 for ac_prog in lua5.4 lua5.3 lua5.2 lua5.1 lua
10589do
10590 # Extract the first word of "$ac_prog", so it can be a program name with args.
10591set dummy $ac_prog; ac_word=$2
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593$as_echo_n "checking for $ac_word... " >&6; }
10594if ${ac_cv_path_LUABIN+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596else
10597 case $LUABIN in
10598 [\\/]* | ?:[\\/]*)
10599 ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path.
10600 ;;
10601 *)
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603for as_dir in $PATH
10604do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613done
10614 done
10615IFS=$as_save_IFS
10616
10617 ;;
10618esac
10619fi
10620LUABIN=$ac_cv_path_LUABIN
10621if test -n "$LUABIN"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUABIN" >&5
10623$as_echo "$LUABIN" >&6; }
10624else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626$as_echo "no" >&6; }
10627fi
10628
10629
10630 test -n "$LUABIN" && break
10631done
10632
10633fi
10634
10635# check version: we need Lua 5.x
10636if test "$LUABIN"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5
10638$as_echo_n "checking Lua version... " >&6; }
10639 LUA_VERSION=`$LUABIN -e 'print(string.match(_VERSION, "%d+[.]%d+"))'`
10640 # For 5.0 and 5.1 header and libraries may be named using 50 or 51.
10641 LUA_VERSION_NO_DOTS=
10642 if test -n "$LUA_VERSION" ; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua $LUA_VERSION.x" >&5
10644$as_echo "Lua $LUA_VERSION.x" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10647$as_echo "failed" >&6; }
10648 fi
10649 case $LUA_VERSION in
10650 5.0) LUA_VERSION_NO_DOTS=50 ;;
10651 5.1) LUA_VERSION_NO_DOTS=51 ;;
10652 5.*) ;;
10653 *)
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not Lua 5.x, SWIG does not support this version of Lua" >&5
10655$as_echo "$as_me: WARNING: Not Lua 5.x, SWIG does not support this version of Lua" >&2;}
10656 LUABIN=""
10657 ;;
10658 esac
10659fi
10660
10661if test "$LUABIN"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Lua dynamic loading is enabled" >&5
10663$as_echo_n "checking whether Lua dynamic loading is enabled... " >&6; }
10664 # using Lua to check Lua
10665 # lua 5.0 & 5.1 have different fn names
10666 if test "$LUA_VERSION" = "5.0"; then
10667 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10668 else
10669 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10670 fi
10671
10672 if test -z "$LUADYNAMICLOADLIB"; then
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675 else
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10677$as_echo "yes" >&6; }
10678 fi
10679
10680 # look for the header files & set LUAFLAGS accordingly
10681 # will clear LUABIN if not present
10682 if test -n "$LUAINCLUDE"; then
10683 as_ac_File=`$as_echo "ac_cv_file_$LUAINCLUDE/lua.h" | $as_tr_sh`
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUAINCLUDE/lua.h" >&5
10685$as_echo_n "checking for $LUAINCLUDE/lua.h... " >&6; }
10686if eval \${$as_ac_File+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688else
10689 test "$cross_compiling" = yes &&
10690 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10691if test -r "$LUAINCLUDE/lua.h"; then
10692 eval "$as_ac_File=yes"
10693else
10694 eval "$as_ac_File=no"
10695fi
10696fi
10697eval ac_res=\$$as_ac_File
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10699$as_echo "$ac_res" >&6; }
10700if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10701 LUAFLAGS="$ISYSTEM$LUAINCLUDE"
10702else
10703 LUABIN=
10704fi
10705
10706 else
10707 LUA_OK="1"
10708 CFLAGS_SAVED=$CFLAGS
10709 CFLAGS= # Use empty CFLAGS to avoid failure: "present but cannot be compiled"
10710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10711for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10712 inttypes.h stdint.h unistd.h
10713do :
10714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10715ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10716"
10717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10718 cat >>confdefs.h <<_ACEOF
10719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10720_ACEOF
10721
10722fi
10723
10724done
10725
10726
10727ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
10728if test "x$ac_cv_header_lua_h" = xyes; then :
10729 LUAFLAGS=""
10730else
10731 LUA_OK=""
10732fi
10733
10734
10735 CFLAGS=$CFLAGS_SAVED
10736 # if we didn't get it, going to have to look elsewhere (the hard way)
10737 if test -z "$LUA_OK"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in other locations" >&5
10739$as_echo_n "checking for lua.h in other locations... " >&6; }
10740 # note: Debian/Ubuntu seem to like /usr/include/lua5.1/lua.h
10741 # The ordering of the include directories to search should match
10742 # the ordering of libraries to search in the library test below.
10743 inc=/usr/include
10744 incloc=/usr/local/include
10745 dirs="$inc/lua$LUA_VERSION"
10746 test -z "$LUA_VERSION_NO_DOTS" || dirs="$dirs $inc/lua$LUA_VERSION_NO_DOTS"
10747 dirs="$dirs $incloc/lua$LUA_VERSION"
10748 test -z "$LUA_VERSION_NO_DOTS" || dirs="$dirs $incloc/lua$LUA_VERSION_NO_DOTS"
10749 dirs="$dirs $incloc"
10750 for i in $dirs; do
10751 #echo "$i"
10752 if test -r $i/lua.h; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i/lua.h" >&5
10754$as_echo "$i/lua.h" >&6; }
10755 LUAFLAGS="$ISYSTEM$i"
10756 break
10757 fi
10758 done
10759 if test -z "$LUAFLAGS"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10761$as_echo "not found" >&6; }
10762 LUABIN="" # clear the bin
10763 fi
10764 fi
10765 fi
10766
10767 # look for the library files & set LUALINK accordingly
10768 # will clear LUABIN if not present
10769 lua_save_LIBS=$LIBS # the code seems to disrupt LIBS, so saving
10770
10771 if test -n "$LUALIB"; then
10772 as_ac_File=`$as_echo "ac_cv_file_$LUALIB/liblua.a" | $as_tr_sh`
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUALIB/liblua.a" >&5
10774$as_echo_n "checking for $LUALIB/liblua.a... " >&6; }
10775if eval \${$as_ac_File+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777else
10778 test "$cross_compiling" = yes &&
10779 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10780if test -r "$LUALIB/liblua.a"; then
10781 eval "$as_ac_File=yes"
10782else
10783 eval "$as_ac_File=no"
10784fi
10785fi
10786eval ac_res=\$$as_ac_File
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10788$as_echo "$ac_res" >&6; }
10789if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
10790 LUALINK="-L$LUALIB -llua"
10791else
10792 LUABIN=
10793fi
10794
10795 else
10796 libs="lua lua$LUA_VERSION"
10797 test -z "$LUA_VERSION_NO_DOTS" || libs="$libs lua$LUA_VERSION_NO_DOTS"
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_close" >&5
10799$as_echo_n "checking for library containing lua_close... " >&6; }
10800if ${ac_cv_search_lua_close+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802else
10803 ac_func_search_save_LIBS=$LIBS
10804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h. */
10806
10807/* Override any GCC internal prototype to avoid an error.
10808 Use char because int might match the return type of a GCC
10809 builtin and then its argument prototype would still apply. */
10810#ifdef __cplusplus
10811extern "C"
10812#endif
10813char lua_close ();
10814int
10815main ()
10816{
10817return lua_close ();
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822for ac_lib in '' $libs; do
10823 if test -z "$ac_lib"; then
10824 ac_res="none required"
10825 else
10826 ac_res=-l$ac_lib
10827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10828 fi
10829 if ac_fn_c_try_link "$LINENO"; then :
10830 ac_cv_search_lua_close=$ac_res
10831fi
10832rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext
10834 if ${ac_cv_search_lua_close+:} false; then :
10835 break
10836fi
10837done
10838if ${ac_cv_search_lua_close+:} false; then :
10839
10840else
10841 ac_cv_search_lua_close=no
10842fi
10843rm conftest.$ac_ext
10844LIBS=$ac_func_search_save_LIBS
10845fi
10846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_close" >&5
10847$as_echo "$ac_cv_search_lua_close" >&6; }
10848ac_res=$ac_cv_search_lua_close
10849if test "$ac_res" != no; then :
10850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10851 LUALINK="-l$ac_lib"
10852else
10853 LUABIN=
10854fi
10855
10856 fi
10857
10858 # adding lualib for lua 5.0
10859 if test "$LUA_VERSION" = "5.0"; then
10860 LUALINK="$LUALINK -llualib"
10861 fi
10862
10863 LIBS=$lua_save_LIBS # restore LIBS
10864fi
10865
10866fi # if not disabled
10867
10868
10869
10870
10871
10872
10873#----------------------------------------------------------------
10874# Look for GNU R
10875#----------------------------------------------------------------
10876
10877RBIN=
10878
10879
10880# Check whether --with-r was given.
10881if test "${with_r+set}" = set; then :
10882 withval=$with_r; RBIN="$withval"
10883else
10884 RBIN="$alllang_default"
10885fi
10886
10887
10888# First, check for "--without-r" or "--with-r=no".
10889if test x"${RBIN}" = xno; then
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling R" >&5
10891$as_echo "$as_me: Disabling R" >&6;}
10892RBIN=
10893else
10894
10895# can we find R?
10896if test "x$RBIN" = xyes; then
10897 # Extract the first word of "R", so it can be a program name with args.
10898set dummy R; ac_word=$2
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900$as_echo_n "checking for $ac_word... " >&6; }
10901if ${ac_cv_path_RBIN+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903else
10904 case $RBIN in
10905 [\\/]* | ?:[\\/]*)
10906 ac_cv_path_RBIN="$RBIN" # Let the user override the test with a path.
10907 ;;
10908 *)
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910for as_dir in $PATH
10911do
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916 ac_cv_path_RBIN="$as_dir/$ac_word$ac_exec_ext"
10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 break 2
10919 fi
10920done
10921 done
10922IFS=$as_save_IFS
10923
10924 ;;
10925esac
10926fi
10927RBIN=$ac_cv_path_RBIN
10928if test -n "$RBIN"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RBIN" >&5
10930$as_echo "$RBIN" >&6; }
10931else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
10934fi
10935
10936
10937fi
10938fi
10939
10940
10941
10942#----------------------------------------------------------------
10943# Look for Go compilers
10944#----------------------------------------------------------------
10945
10946
10947# Check whether --with-go was given.
10948if test "${with_go+set}" = set; then :
10949 withval=$with_go; GOBIN="$withval"
10950else
10951 GOBIN="$alllang_default"
10952fi
10953
10954
10955if test x"${GOBIN}" = xno; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Go" >&5
10957$as_echo "$as_me: Disabling Go" >&6;}
10958 GO=
10959 GOGCC=false
10960 GCCGO=
10961 GOOPT=
10962 GCCGOOPT=
10963 GOVERSIONOPTION=
10964else
10965
10966 if test "x$GOBIN" = xyes; then
10967 for ac_prog in go
10968do
10969 # Extract the first word of "$ac_prog", so it can be a program name with args.
10970set dummy $ac_prog; ac_word=$2
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972$as_echo_n "checking for $ac_word... " >&6; }
10973if ${ac_cv_prog_GO+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975else
10976 if test -n "$GO"; then
10977 ac_cv_prog_GO="$GO" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
10985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10986 ac_cv_prog_GO="$ac_prog"
10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991 done
10992IFS=$as_save_IFS
10993
10994fi
10995fi
10996GO=$ac_cv_prog_GO
10997if test -n "$GO"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5
10999$as_echo "$GO" >&6; }
11000else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002$as_echo "no" >&6; }
11003fi
11004
11005
11006 test -n "$GO" && break
11007done
11008
11009 else
11010 GO="$GOBIN"
11011 fi
11012
11013 GOGCC=false
11014 GCCGO=
11015 GOOPT=
11016 GCCGOOPT=
11017 GOVERSIONOPTION=
11018
11019 if test -n "$GO" ; then
11020 GOVERSIONOPTION=version
11021 go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version //')
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether go version is too old" >&5
11023$as_echo_n "checking whether go version is too old... " >&6; }
11024 case $go_version in
11025 go1.012*)
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - minimum version is 1.3" >&5
11027$as_echo "yes - minimum version is 1.3" >&6; }
11028 GO=
11029 GOOPT="-intgosize 32"
11030 ;;
11031 *)
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034 case "$(go env GOARCH)" in
11035 amd64 | arm64 | ppc64*)
11036 GOOPT="-intgosize 64"
11037 ;;
11038 *)
11039 GOOPT="-intgosize 32"
11040 ;;
11041 esac
11042 ;;
11043 esac
11044 fi
11045
11046 for ac_prog in gccgo
11047do
11048 # Extract the first word of "$ac_prog", so it can be a program name with args.
11049set dummy $ac_prog; ac_word=$2
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051$as_echo_n "checking for $ac_word... " >&6; }
11052if ${ac_cv_prog_GCCGO+:} false; then :
11053 $as_echo_n "(cached) " >&6
11054else
11055 if test -n "$GCCGO"; then
11056 ac_cv_prog_GCCGO="$GCCGO" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_prog_GCCGO="$ac_prog"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11068 fi
11069done
11070 done
11071IFS=$as_save_IFS
11072
11073fi
11074fi
11075GCCGO=$ac_cv_prog_GCCGO
11076if test -n "$GCCGO"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCCGO" >&5
11078$as_echo "$GCCGO" >&6; }
11079else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
11082fi
11083
11084
11085 test -n "$GCCGO" && break
11086done
11087
11088
11089 if test -n "$GCCGO" ; then
11090 if $GCCGO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gccgo version is too old" >&5
11092$as_echo_n "checking whether gccgo version is too old... " >&6; }
11093 go_version=`$GO $GOVERSIONOPTION | sed -n '1p' | sed -e 's/^.* \([0-9.]*\) *$/\1/' -e 's/[.]//g'`
11094 if test "x$go_version" = x; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not determine gccgo version" >&5
11096$as_echo "could not determine gccgo version" >&6; }
11097 GCCGO=
11098 elif test "$go_version" -lt 470; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - minimum version is 4.7.0" >&5
11100$as_echo "yes - minimum version is 4.7.0" >&6; }
11101 GCCGO=
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
11105 if test "$go_version" -lt 480; then
11106 GCCGOOPT="-intgosize 32"
11107 else
11108 # The cast to long int works around a bug in the HP C Compiler
11109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11111# This bug is HP SR number 8606223364.
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11113$as_echo_n "checking size of void *... " >&6; }
11114if ${ac_cv_sizeof_void_p+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116else
11117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11118
11119else
11120 if test "$ac_cv_type_void_p" = yes; then
11121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11123as_fn_error 77 "cannot compute sizeof (void *)
11124See \`config.log' for more details" "$LINENO" 5; }
11125 else
11126 ac_cv_sizeof_void_p=0
11127 fi
11128fi
11129
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11132$as_echo "$ac_cv_sizeof_void_p" >&6; }
11133
11134
11135
11136cat >>confdefs.h <<_ACEOF
11137#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11138_ACEOF
11139
11140
11141 if test "$ac_cv_sizeof_void_p" = "8"; then
11142 GCCGOOPT="-intgosize 64"
11143 else
11144 GCCGOOPT="-intgosize 32"
11145 fi
11146 fi
11147 fi
11148 fi
11149 fi
11150fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164#----------------------------------------------------------------
11165# Look for D
11166#----------------------------------------------------------------
11167
11168
11169# Check whether --with-d was given.
11170if test "${with_d+set}" = set; then :
11171 withval=$with_d; with_d="$withval"
11172else
11173 with_d="$alllang_default"
11174fi
11175
11176
11177# Check whether --with-d1-compiler was given.
11178if test "${with_d1_compiler+set}" = set; then :
11179 withval=$with_d1_compiler; D1COMPILERBIN="$withval"
11180else
11181 D1COMPILERBIN=
11182fi
11183
11184
11185# Check whether --with-d2-compiler was given.
11186if test "${with_d2_compiler+set}" = set; then :
11187 withval=$with_d2_compiler; D2COMPILERBIN="$withval"
11188else
11189 D2COMPILERBIN=
11190fi
11191
11192
11193
11194# First, check for "--without-d" or "--with-d=no".
11195if test x"${with_d}" = xno; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling D" >&5
11197$as_echo "$as_me: Disabling D" >&6;}
11198 D1COMPILER=
11199 D2COMPILER=
11200else
11201 old_ac_ext=$ac_ext
11202 ac_ext=d
11203
11204 if test -z "$D1COMPILERBIN" ; then
11205 for ac_prog in dmd ldmd gdmd
11206do
11207 # Extract the first word of "$ac_prog", so it can be a program name with args.
11208set dummy $ac_prog; ac_word=$2
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210$as_echo_n "checking for $ac_word... " >&6; }
11211if ${ac_cv_prog_D1COMPILER+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213else
11214 if test -n "$D1COMPILER"; then
11215 ac_cv_prog_D1COMPILER="$D1COMPILER" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_D1COMPILER="$ac_prog"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228done
11229 done
11230IFS=$as_save_IFS
11231
11232fi
11233fi
11234D1COMPILER=$ac_cv_prog_D1COMPILER
11235if test -n "$D1COMPILER"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $D1COMPILER" >&5
11237$as_echo "$D1COMPILER" >&6; }
11238else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
11241fi
11242
11243
11244 test -n "$D1COMPILER" && break
11245done
11246
11247
11248 if test -n "$D1COMPILER" ; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D1/Tango compiler works" >&5
11250$as_echo_n "checking whether the D1/Tango compiler works... " >&6; }
11251 cat > conftest.$ac_ext <<_ACEOF
11252import tango.io.Stdout;
11253void main() {
11254}
11255_ACEOF
11256 rm -f conftest.$ac_objext
11257 if $D1COMPILER conftest.$ac_ext 2>&5 && test ! -s conftest.err && test -s conftest.$ac_objext; then :
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260else
11261 $as_echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
11265 D1COMPILER=
11266
11267fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 fi
11270 else
11271 D1COMPILER="$D1COMPILERBIN"
11272 fi
11273
11274 if test -z "$D2COMPILERBIN" ; then
11275 for ac_prog in dmd gdmd
11276do
11277 # Extract the first word of "$ac_prog", so it can be a program name with args.
11278set dummy $ac_prog; ac_word=$2
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
11281if ${ac_cv_prog_D2COMPILER+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283else
11284 if test -n "$D2COMPILER"; then
11285 ac_cv_prog_D2COMPILER="$D2COMPILER" # Let the user override the test.
11286else
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11294 ac_cv_prog_D2COMPILER="$ac_prog"
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11297 fi
11298done
11299 done
11300IFS=$as_save_IFS
11301
11302fi
11303fi
11304D2COMPILER=$ac_cv_prog_D2COMPILER
11305if test -n "$D2COMPILER"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $D2COMPILER" >&5
11307$as_echo "$D2COMPILER" >&6; }
11308else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
11311fi
11312
11313
11314 test -n "$D2COMPILER" && break
11315done
11316
11317
11318 if test -n "$D2COMPILER" ; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D2 compiler works" >&5
11320$as_echo_n "checking whether the D2 compiler works... " >&6; }
11321 cat > conftest.$ac_ext <<_ACEOF
11322import std.algorithm;
11323void main() {
11324}
11325_ACEOF
11326 rm -f conftest.$ac_objext
11327 if $D2COMPILER conftest.$ac_ext 2>&5 && test ! -s conftest.err && test -s conftest.$ac_objext; then :
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329$as_echo "yes" >&6; }
11330else
11331 $as_echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334$as_echo "no" >&6; }
11335 D2COMPILER=
11336
11337fi
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339 fi
11340 else
11341 D2COMPILER="$D2COMPILERBIN"
11342 fi
11343
11344 ac_ext=$old_ac_ext
11345fi
11346
11347if test -n "$D1COMPILER"; then
11348 DDEFAULTVERSION=1
11349elif test -n "$D2COMPILER"; then
11350 DDEFAULTVERSION=2
11351fi
11352
11353# Do not prefix library file names with "lib" on Windows.
11354case $host in
11355*-*-cygwin* | *-*-mingw*) DLIBPREFIX="";;
11356*)DLIBPREFIX="lib";;
11357esac
11358
11359
11360
11361
11362
11363
11364#----------------------------------------------------------------
11365# Determine which languages to use for examples/test-suite
11366#----------------------------------------------------------------
11367
11368SKIP_TCL=
11369if test -z "$TCLINCLUDE" || test -z "$TCLLIB" ; then
11370 SKIP_TCL="1"
11371fi
11372
11373
11374
11375SKIP_PERL5=
11376if test -z "$PERL" || test -z "$PERL5EXT" || test -z "$PERL5TESTMORE"; then
11377 SKIP_PERL5="1"
11378fi
11379
11380
11381
11382SKIP_OCTAVE=
11383if test -z "$OCTAVE" ; then
11384 SKIP_OCTAVE="1"
11385fi
11386
11387
11388
11389SKIP_PYTHON=
11390if (test -z "$PYINCLUDE" || test -z "$PYLINK") &&
11391 (test -z "$PY3INCLUDE" || test -z "$PY3LINK") ; then
11392 SKIP_PYTHON="1"
11393fi
11394
11395
11396SKIP_PYTHON3=
11397if test -z "$PY3INCLUDE" || test -z "$PY3LINK" ; then
11398 SKIP_PYTHON3="1"
11399fi
11400
11401
11402SKIP_JAVA=
11403if test -z "$JAVA" || test -z "$JAVAC" || test -z "$JAVAINC" ; then
11404 SKIP_JAVA="1"
11405fi
11406
11407
11408SKIP_JAVASCRIPT=
11409if test -z "$JAVASCRIPT" || ( test -z "$NODEJS" && test -z "$JSCENABLED" && test -z "$JSV8ENABLED" ) ; then
11410 SKIP_JAVASCRIPT="1"
11411fi
11412
11413
11414SKIP_GUILE=
11415if test -z "$GUILE" || test -z "$GUILE_LIBS" ; then
11416 SKIP_GUILE="1"
11417fi
11418
11419
11420
11421SKIP_MZSCHEME=
11422if test -z "$MZC" || test -z "$MZDYNOBJ" ; then
11423 SKIP_MZSCHEME="1"
11424fi
11425
11426
11427
11428SKIP_RUBY=
11429if test -z "$RUBY" || test -z "$RUBYINCLUDE" || test -z "$RUBYLIB" ; then
11430 SKIP_RUBY="1"
11431fi
11432
11433
11434
11435SKIP_PHP=
11436if test -z "$PHP" || test -z "$PHPINC" ; then
11437 SKIP_PHP="1"
11438fi
11439
11440
11441
11442SKIP_OCAML=
11443if test -z "$OCAMLC" || test -z "$CAMLP4" ; then
11444 SKIP_OCAML="1"
11445fi
11446
11447
11448
11449SKIP_CSHARP=
11450if test -z "$CSHARPCOMPILER" ; then
11451 SKIP_CSHARP="1"
11452else
11453 if test "cscc" = "$CSHARPCOMPILER" && test -z "$CSHARPCILINTERPRETER" ; then
11454 SKIP_CSHARP="1"
11455 fi
11456fi
11457
11458
11459SKIP_LUA=
11460# we need LUABIN & dynamic loading
11461if test -z "$LUABIN" || test -z "$LUADYNAMICLOADLIB"; then
11462 SKIP_LUA="1"
11463fi
11464
11465
11466SKIP_R=
11467if test -z "$RBIN" ; then
11468 SKIP_R="1"
11469fi
11470
11471
11472SKIP_SCILAB=
11473if test -z "$SCILAB"; then
11474 SKIP_SCILAB="1"
11475fi
11476
11477
11478SKIP_GO=
11479if test -z "$GO" ; then
11480 SKIP_GO="1"
11481fi
11482
11483
11484SKIP_D=
11485if test -z "$DDEFAULTVERSION" ; then
11486 SKIP_D="1"
11487fi
11488
11489
11490#----------------------------------------------------------------
11491# Additional language dependencies
11492#----------------------------------------------------------------
11493
11494SKIP_ANDROID=
11495if test -z "$ANDROID" || test -z "$ADB" || test -z "$ANT" || test -z "$NDKBUILD" ; then
11496 SKIP_ANDROID="1"
11497fi
11498
11499
11500
11501
11502#----------------------------------------------------------------
11503# Miscellaneous
11504#----------------------------------------------------------------
11505
11506ABS_SRCDIR=`(cd ${srcdir} && pwd)`
11507
11508case $host in
11509 *-*-mingw* ) ABS_SRCDIR=`${srcdir}/Tools/convertpath -m $ABS_SRCDIR` ;;
11510 *-*-cygwin* ) ABS_SRCDIR=`cygpath --mixed $ABS_SRCDIR` ;;
11511esac
11512
11513# Root directory
11514ROOT_DIR=`pwd`
11515case $host in
11516*-*-cygwin*)
11517 # Translate path for native Windows compilers for use with 'make check'
11518 if (cygpath --mixed $ROOT_DIR) >/dev/null 2>/dev/null; then
11519 ROOT_DIR=`cygpath --mixed $ROOT_DIR`
11520 fi
11521 ;;
11522esac
11523
11524case $host in
11525*-*-cygwin* | *-*-mingw*)
11526 # Extra files generated by some Windows compilers
11527 EXTRA_CLEAN="*.stackdump *.exp *.lib *.pdb *.ilk"
11528 ;;
11529esac
11530
11531
11532
11533
11534
11535# Configure SWIG_LIB path
11536
11537
11538# Check whether --with-swiglibdir was given.
11539if test "${with_swiglibdir+set}" = set; then :
11540 withval=$with_swiglibdir; swig_lib="$withval"
11541else
11542 swig_lib="${datadir}/swig/${PACKAGE_VERSION}"
11543fi
11544
11545SWIG_LIB_INSTALL=${swig_lib}
11546
11547
11548 prefix_NONE=
11549 exec_prefix_NONE=
11550 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
11551 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
11552 eval ac_define_dir="\"$swig_lib\""
11553 eval ac_define_dir="\"$ac_define_dir\""
11554 SWIG_LIB="$ac_define_dir"
11555
11556
11557cat >>confdefs.h <<_ACEOF
11558#define SWIG_LIB "$ac_define_dir"
11559_ACEOF
11560
11561 test "$prefix_NONE" && prefix=NONE
11562 test "$exec_prefix_NONE" && exec_prefix=NONE
11563
11564
11565case $build in
11566 # Windows does not understand unix directories. Convert into a windows directory with drive letter.
11567 *-*-mingw*) SWIG_LIB_WIN_UNIX=`${srcdir}/Tools/convertpath -m $SWIG_LIB`;;
11568 *-*-cygwin*) SWIG_LIB_WIN_UNIX=`cygpath --mixed "$SWIG_LIB"`;;
11569 *) SWIG_LIB_WIN_UNIX="";;
11570esac
11571
11572cat >>confdefs.h <<_ACEOF
11573#define SWIG_LIB_WIN_UNIX "$SWIG_LIB_WIN_UNIX"
11574_ACEOF
11575
11576
11577SWIG_LIB_PREINST=$ABS_SRCDIR/Lib
11578
11579
11580SWIG_LIB_SET="env SWIG_LIB=\$(SWIG_LIB_DIR)"
11581if test "${srcdir}" = "."; then
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584#ifdef _WIN32
11585 yes
11586 #endif
11587
11588_ACEOF
11589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11590 $EGREP "yes" >/dev/null 2>&1; then :
11591 SWIG_LIB_SET="env SWIG_LIB="
11592fi
11593rm -f conftest*
11594
11595fi
11596
11597
11598ac_config_files="$ac_config_files Makefile swig.spec Examples/Makefile Examples/d/example.mk Examples/xml/Makefile Examples/test-suite/errors/Makefile Examples/test-suite/csharp/Makefile Examples/test-suite/d/Makefile Examples/test-suite/guile/Makefile Examples/test-suite/java/Makefile Examples/test-suite/javascript/Makefile Examples/test-suite/mzscheme/Makefile Examples/test-suite/ocaml/Makefile Examples/test-suite/octave/Makefile Examples/test-suite/perl5/Makefile Examples/test-suite/php/Makefile Examples/test-suite/python/Makefile Examples/test-suite/ruby/Makefile Examples/test-suite/scilab/Makefile Examples/test-suite/tcl/Makefile Examples/test-suite/lua/Makefile Examples/test-suite/r/Makefile Examples/test-suite/go/Makefile Source/Makefile Tools/javascript/Makefile"
11599
11600ac_config_files="$ac_config_files preinst-swig"
11601
11602ac_config_files="$ac_config_files CCache/ccache_swig_config.h"
11603
11604
11605#--------------------------------------------------------------------
11606# Building Examples/ out of source directory
11607#--------------------------------------------------------------------
11608
11609# If building out of source tree, replicate Examples/ source tree in
11610# build directory, and copy over Makefiles from source directory.
11611# Prefix each Makefile with a header which sets SRCDIR to the relative
11612# source directory, and provides a rule for updating the Makefile from
11613# its original source.
11614ac_config_commands="$ac_config_commands Examples"
11615
11616
11617#--------------------------------------------------------------------
11618
11619cat >confcache <<\_ACEOF
11620# This file is a shell script that caches the results of configure
11621# tests run on this system so they can be shared between configure
11622# scripts and configure runs, see configure's option --config-cache.
11623# It is not useful on other systems. If it contains results you don't
11624# want to keep, you may remove or edit it.
11625#
11626# config.status only pays attention to the cache file if you give it
11627# the --recheck option to rerun configure.
11628#
11629# `ac_cv_env_foo' variables (set or unset) will be overridden when
11630# loading this file, other *unset* `ac_cv_foo' will be assigned the
11631# following values.
11632
11633_ACEOF
11634
11635# The following way of writing the cache mishandles newlines in values,
11636# but we know of no workaround that is simple, portable, and efficient.
11637# So, we kill variables containing newlines.
11638# Ultrix sh set writes to stderr and can't be redirected directly,
11639# and sets the high bit in the cache file unless we assign to the vars.
11640(
11641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11642 eval ac_val=\$$ac_var
11643 case $ac_val in #(
11644 *${as_nl}*)
11645 case $ac_var in #(
11646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11647$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11648 esac
11649 case $ac_var in #(
11650 _ | IFS | as_nl) ;; #(
11651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11652 *) { eval $ac_var=; unset $ac_var;} ;;
11653 esac ;;
11654 esac
11655 done
11656
11657 (set) 2>&1 |
11658 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11659 *${as_nl}ac_space=\ *)
11660 # `set' does not quote correctly, so add quotes: double-quote
11661 # substitution turns \\\\ into \\, and sed turns \\ into \.
11662 sed -n \
11663 "s/'/'\\\\''/g;
11664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11665 ;; #(
11666 *)
11667 # `set' quotes correctly as required by POSIX, so do not add quotes.
11668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11669 ;;
11670 esac |
11671 sort
11672) |
11673 sed '
11674 /^ac_cv_env_/b end
11675 t clear
11676 :clear
11677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11678 t end
11679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11680 :end' >>confcache
11681if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11682 if test -w "$cache_file"; then
11683 if test "x$cache_file" != "x/dev/null"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11685$as_echo "$as_me: updating cache $cache_file" >&6;}
11686 if test ! -f "$cache_file" || test -h "$cache_file"; then
11687 cat confcache >"$cache_file"
11688 else
11689 case $cache_file in #(
11690 */* | ?:*)
11691 mv -f confcache "$cache_file"$$ &&
11692 mv -f "$cache_file"$$ "$cache_file" ;; #(
11693 *)
11694 mv -f confcache "$cache_file" ;;
11695 esac
11696 fi
11697 fi
11698 else
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11700$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11701 fi
11702fi
11703rm -f confcache
11704
11705test "x$prefix" = xNONE && prefix=$ac_default_prefix
11706# Let make expand exec_prefix.
11707test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11708
11709DEFS=-DHAVE_CONFIG_H
11710
11711ac_libobjs=
11712ac_ltlibobjs=
11713U=
11714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11715 # 1. Remove the extension, and $U if already installed.
11716 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11717 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11718 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11719 # will be set to the directory where LIBOBJS objects are built.
11720 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11721 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11722done
11723LIBOBJS=$ac_libobjs
11724
11725LTLIBOBJS=$ac_ltlibobjs
11726
11727
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11729$as_echo_n "checking that generated files are newer than configure... " >&6; }
11730 if test -n "$am_sleep_pid"; then
11731 # Hide warnings about reused PIDs.
11732 wait $am_sleep_pid 2>/dev/null
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11735$as_echo "done" >&6; }
11736 if test -n "$EXEEXT"; then
11737 am__EXEEXT_TRUE=
11738 am__EXEEXT_FALSE='#'
11739else
11740 am__EXEEXT_TRUE='#'
11741 am__EXEEXT_FALSE=
11742fi
11743
11744if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11745 as_fn_error $? "conditional \"AMDEP\" was never defined.
11746Usually this means the macro was only invoked conditionally." "$LINENO" 5
11747fi
11748if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11749 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11750Usually this means the macro was only invoked conditionally." "$LINENO" 5
11751fi
11752if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11753 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11754Usually this means the macro was only invoked conditionally." "$LINENO" 5
11755fi
11756
11757: "${CONFIG_STATUS=./config.status}"
11758ac_write_fail=0
11759ac_clean_files_save=$ac_clean_files
11760ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11762$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11763as_write_fail=0
11764cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11765#! $SHELL
11766# Generated by $as_me.
11767# Run this file to recreate the current configuration.
11768# Compiler output produced by configure, useful for debugging
11769# configure, is in config.log if it exists.
11770
11771debug=false
11772ac_cs_recheck=false
11773ac_cs_silent=false
11774
11775SHELL=\${CONFIG_SHELL-$SHELL}
11776export SHELL
11777_ASEOF
11778cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11779## -------------------- ##
11780## M4sh Initialization. ##
11781## -------------------- ##
11782
11783# Be more Bourne compatible
11784DUALCASE=1; export DUALCASE # for MKS sh
11785if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11786 emulate sh
11787 NULLCMD=:
11788 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11789 # is contrary to our usage. Disable this feature.
11790 alias -g '${1+"$@"}'='"$@"'
11791 setopt NO_GLOB_SUBST
11792else
11793 case `(set -o) 2>/dev/null` in #(
11794 *posix*) :
11795 set -o posix ;; #(
11796 *) :
11797 ;;
11798esac
11799fi
11800
11801
11802as_nl='
11803'
11804export as_nl
11805# Printing a long string crashes Solaris 7 /usr/bin/printf.
11806as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11809# Prefer a ksh shell builtin over an external printf program on Solaris,
11810# but without wasting forks for bash or zsh.
11811if test -z "$BASH_VERSION$ZSH_VERSION" \
11812 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11813 as_echo='print -r --'
11814 as_echo_n='print -rn --'
11815elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11816 as_echo='printf %s\n'
11817 as_echo_n='printf %s'
11818else
11819 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11820 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11821 as_echo_n='/usr/ucb/echo -n'
11822 else
11823 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11824 as_echo_n_body='eval
11825 arg=$1;
11826 case $arg in #(
11827 *"$as_nl"*)
11828 expr "X$arg" : "X\\(.*\\)$as_nl";
11829 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11830 esac;
11831 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11832 '
11833 export as_echo_n_body
11834 as_echo_n='sh -c $as_echo_n_body as_echo'
11835 fi
11836 export as_echo_body
11837 as_echo='sh -c $as_echo_body as_echo'
11838fi
11839
11840# The user is always right.
11841if test "${PATH_SEPARATOR+set}" != set; then
11842 PATH_SEPARATOR=:
11843 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11844 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11845 PATH_SEPARATOR=';'
11846 }
11847fi
11848
11849
11850# IFS
11851# We need space, tab and new line, in precisely that order. Quoting is
11852# there to prevent editors from complaining about space-tab.
11853# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11854# splitting by setting IFS to empty value.)
11855IFS=" "" $as_nl"
11856
11857# Find who we are. Look in the path if we contain no directory separator.
11858as_myself=
11859case $0 in #((
11860 *[\\/]* ) as_myself=$0 ;;
11861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11867 done
11868IFS=$as_save_IFS
11869
11870 ;;
11871esac
11872# We did not find ourselves, most probably we were run as `sh COMMAND'
11873# in which case we are not to be found in the path.
11874if test "x$as_myself" = x; then
11875 as_myself=$0
11876fi
11877if test ! -f "$as_myself"; then
11878 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11879 exit 1
11880fi
11881
11882# Unset variables that we do not need and which cause bugs (e.g. in
11883# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11884# suppresses any "Segmentation fault" message there. '((' could
11885# trigger a bug in pdksh 5.2.14.
11886for as_var in BASH_ENV ENV MAIL MAILPATH
11887do eval test x\${$as_var+set} = xset \
11888 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11889done
11890PS1='$ '
11891PS2='> '
11892PS4='+ '
11893
11894# NLS nuisances.
11895LC_ALL=C
11896export LC_ALL
11897LANGUAGE=C
11898export LANGUAGE
11899
11900# CDPATH.
11901(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11902
11903
11904# as_fn_error STATUS ERROR [LINENO LOG_FD]
11905# ----------------------------------------
11906# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11907# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11908# script with STATUS, using 1 if that was 0.
11909as_fn_error ()
11910{
11911 as_status=$1; test $as_status -eq 0 && as_status=1
11912 if test "$4"; then
11913 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11914 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11915 fi
11916 $as_echo "$as_me: error: $2" >&2
11917 as_fn_exit $as_status
11918} # as_fn_error
11919
11920
11921# as_fn_set_status STATUS
11922# -----------------------
11923# Set $? to STATUS, without forking.
11924as_fn_set_status ()
11925{
11926 return $1
11927} # as_fn_set_status
11928
11929# as_fn_exit STATUS
11930# -----------------
11931# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11932as_fn_exit ()
11933{
11934 set +e
11935 as_fn_set_status $1
11936 exit $1
11937} # as_fn_exit
11938
11939# as_fn_unset VAR
11940# ---------------
11941# Portably unset VAR.
11942as_fn_unset ()
11943{
11944 { eval $1=; unset $1;}
11945}
11946as_unset=as_fn_unset
11947# as_fn_append VAR VALUE
11948# ----------------------
11949# Append the text in VALUE to the end of the definition contained in VAR. Take
11950# advantage of any shell optimizations that allow amortized linear growth over
11951# repeated appends, instead of the typical quadratic growth present in naive
11952# implementations.
11953if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11954 eval 'as_fn_append ()
11955 {
11956 eval $1+=\$2
11957 }'
11958else
11959 as_fn_append ()
11960 {
11961 eval $1=\$$1\$2
11962 }
11963fi # as_fn_append
11964
11965# as_fn_arith ARG...
11966# ------------------
11967# Perform arithmetic evaluation on the ARGs, and store the result in the
11968# global $as_val. Take advantage of shells that can avoid forks. The arguments
11969# must be portable across $(()) and expr.
11970if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11971 eval 'as_fn_arith ()
11972 {
11973 as_val=$(( $* ))
11974 }'
11975else
11976 as_fn_arith ()
11977 {
11978 as_val=`expr "$@" || test $? -eq 1`
11979 }
11980fi # as_fn_arith
11981
11982
11983if expr a : '\(a\)' >/dev/null 2>&1 &&
11984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11985 as_expr=expr
11986else
11987 as_expr=false
11988fi
11989
11990if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11991 as_basename=basename
11992else
11993 as_basename=false
11994fi
11995
11996if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11997 as_dirname=dirname
11998else
11999 as_dirname=false
12000fi
12001
12002as_me=`$as_basename -- "$0" ||
12003$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12004 X"$0" : 'X\(//\)$' \| \
12005 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12006$as_echo X/"$0" |
12007 sed '/^.*\/\([^/][^/]*\)\/*$/{
12008 s//\1/
12009 q
12010 }
12011 /^X\/\(\/\/\)$/{
12012 s//\1/
12013 q
12014 }
12015 /^X\/\(\/\).*/{
12016 s//\1/
12017 q
12018 }
12019 s/.*/./; q'`
12020
12021# Avoid depending upon Character Ranges.
12022as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12023as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12024as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12025as_cr_digits='0123456789'
12026as_cr_alnum=$as_cr_Letters$as_cr_digits
12027
12028ECHO_C= ECHO_N= ECHO_T=
12029case `echo -n x` in #(((((
12030-n*)
12031 case `echo 'xy\c'` in
12032 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12033 xy) ECHO_C='\c';;
12034 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12035 ECHO_T=' ';;
12036 esac;;
12037*)
12038 ECHO_N='-n';;
12039esac
12040
12041rm -f conf$$ conf$$.exe conf$$.file
12042if test -d conf$$.dir; then
12043 rm -f conf$$.dir/conf$$.file
12044else
12045 rm -f conf$$.dir
12046 mkdir conf$$.dir 2>/dev/null
12047fi
12048if (echo >conf$$.file) 2>/dev/null; then
12049 if ln -s conf$$.file conf$$ 2>/dev/null; then
12050 as_ln_s='ln -s'
12051 # ... but there are two gotchas:
12052 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12053 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12054 # In both cases, we have to default to `cp -pR'.
12055 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12056 as_ln_s='cp -pR'
12057 elif ln conf$$.file conf$$ 2>/dev/null; then
12058 as_ln_s=ln
12059 else
12060 as_ln_s='cp -pR'
12061 fi
12062else
12063 as_ln_s='cp -pR'
12064fi
12065rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12066rmdir conf$$.dir 2>/dev/null
12067
12068
12069# as_fn_mkdir_p
12070# -------------
12071# Create "$as_dir" as a directory, including parents if necessary.
12072as_fn_mkdir_p ()
12073{
12074
12075 case $as_dir in #(
12076 -*) as_dir=./$as_dir;;
12077 esac
12078 test -d "$as_dir" || eval $as_mkdir_p || {
12079 as_dirs=
12080 while :; do
12081 case $as_dir in #(
12082 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12083 *) as_qdir=$as_dir;;
12084 esac
12085 as_dirs="'$as_qdir' $as_dirs"
12086 as_dir=`$as_dirname -- "$as_dir" ||
12087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X"$as_dir" : 'X\(//\)[^/]' \| \
12089 X"$as_dir" : 'X\(//\)$' \| \
12090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12091$as_echo X"$as_dir" |
12092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12093 s//\1/
12094 q
12095 }
12096 /^X\(\/\/\)[^/].*/{
12097 s//\1/
12098 q
12099 }
12100 /^X\(\/\/\)$/{
12101 s//\1/
12102 q
12103 }
12104 /^X\(\/\).*/{
12105 s//\1/
12106 q
12107 }
12108 s/.*/./; q'`
12109 test -d "$as_dir" && break
12110 done
12111 test -z "$as_dirs" || eval "mkdir $as_dirs"
12112 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12113
12114
12115} # as_fn_mkdir_p
12116if mkdir -p . 2>/dev/null; then
12117 as_mkdir_p='mkdir -p "$as_dir"'
12118else
12119 test -d ./-p && rmdir ./-p
12120 as_mkdir_p=false
12121fi
12122
12123
12124# as_fn_executable_p FILE
12125# -----------------------
12126# Test if FILE is an executable regular file.
12127as_fn_executable_p ()
12128{
12129 test -f "$1" && test -x "$1"
12130} # as_fn_executable_p
12131as_test_x='test -x'
12132as_executable_p=as_fn_executable_p
12133
12134# Sed expression to map a string onto a valid CPP name.
12135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12136
12137# Sed expression to map a string onto a valid variable name.
12138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12139
12140
12141exec 6>&1
12142## ----------------------------------- ##
12143## Main body of $CONFIG_STATUS script. ##
12144## ----------------------------------- ##
12145_ASEOF
12146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12147
12148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12149# Save the log message, to keep $0 and so on meaningful, and to
12150# report actual input values of CONFIG_FILES etc. instead of their
12151# values after options handling.
12152ac_log="
12153This file was extended by swig $as_me 4.0.1, which was
12154generated by GNU Autoconf 2.69. Invocation command line was
12155
12156 CONFIG_FILES = $CONFIG_FILES
12157 CONFIG_HEADERS = $CONFIG_HEADERS
12158 CONFIG_LINKS = $CONFIG_LINKS
12159 CONFIG_COMMANDS = $CONFIG_COMMANDS
12160 $ $0 $@
12161
12162on `(hostname || uname -n) 2>/dev/null | sed 1q`
12163"
12164
12165_ACEOF
12166
12167case $ac_config_files in *"
12168"*) set x $ac_config_files; shift; ac_config_files=$*;;
12169esac
12170
12171case $ac_config_headers in *"
12172"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12173esac
12174
12175
12176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12177# Files that config.status was made for.
12178config_files="$ac_config_files"
12179config_headers="$ac_config_headers"
12180config_commands="$ac_config_commands"
12181
12182_ACEOF
12183
12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12185ac_cs_usage="\
12186\`$as_me' instantiates files and other configuration actions
12187from templates according to the current configuration. Unless the files
12188and actions are specified as TAGs, all are instantiated by default.
12189
12190Usage: $0 [OPTION]... [TAG]...
12191
12192 -h, --help print this help, then exit
12193 -V, --version print version number and configuration settings, then exit
12194 --config print configuration, then exit
12195 -q, --quiet, --silent
12196 do not print progress messages
12197 -d, --debug don't remove temporary files
12198 --recheck update $as_me by reconfiguring in the same conditions
12199 --file=FILE[:TEMPLATE]
12200 instantiate the configuration file FILE
12201 --header=FILE[:TEMPLATE]
12202 instantiate the configuration header FILE
12203
12204Configuration files:
12205$config_files
12206
12207Configuration headers:
12208$config_headers
12209
12210Configuration commands:
12211$config_commands
12212
12213Report bugs to <http://www.swig.org>."
12214
12215_ACEOF
12216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12217ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12218ac_cs_version="\\
12219swig config.status 4.0.1
12220configured by $0, generated by GNU Autoconf 2.69,
12221 with options \\"\$ac_cs_config\\"
12222
12223Copyright (C) 2012 Free Software Foundation, Inc.
12224This config.status script is free software; the Free Software Foundation
12225gives unlimited permission to copy, distribute and modify it."
12226
12227ac_pwd='$ac_pwd'
12228srcdir='$srcdir'
12229INSTALL='$INSTALL'
12230MKDIR_P='$MKDIR_P'
12231AWK='$AWK'
12232test -n "\$AWK" || AWK=awk
12233_ACEOF
12234
12235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12236# The default lists apply if the user does not specify any file.
12237ac_need_defaults=:
12238while test $# != 0
12239do
12240 case $1 in
12241 --*=?*)
12242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12244 ac_shift=:
12245 ;;
12246 --*=)
12247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12248 ac_optarg=
12249 ac_shift=:
12250 ;;
12251 *)
12252 ac_option=$1
12253 ac_optarg=$2
12254 ac_shift=shift
12255 ;;
12256 esac
12257
12258 case $ac_option in
12259 # Handling of the options.
12260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12261 ac_cs_recheck=: ;;
12262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12263 $as_echo "$ac_cs_version"; exit ;;
12264 --config | --confi | --conf | --con | --co | --c )
12265 $as_echo "$ac_cs_config"; exit ;;
12266 --debug | --debu | --deb | --de | --d | -d )
12267 debug=: ;;
12268 --file | --fil | --fi | --f )
12269 $ac_shift
12270 case $ac_optarg in
12271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12272 '') as_fn_error $? "missing file argument" ;;
12273 esac
12274 as_fn_append CONFIG_FILES " '$ac_optarg'"
12275 ac_need_defaults=false;;
12276 --header | --heade | --head | --hea )
12277 $ac_shift
12278 case $ac_optarg in
12279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12280 esac
12281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12282 ac_need_defaults=false;;
12283 --he | --h)
12284 # Conflict between --help and --header
12285 as_fn_error $? "ambiguous option: \`$1'
12286Try \`$0 --help' for more information.";;
12287 --help | --hel | -h )
12288 $as_echo "$ac_cs_usage"; exit ;;
12289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12291 ac_cs_silent=: ;;
12292
12293 # This is an error.
12294 -*) as_fn_error $? "unrecognized option: \`$1'
12295Try \`$0 --help' for more information." ;;
12296
12297 *) as_fn_append ac_config_targets " $1"
12298 ac_need_defaults=false ;;
12299
12300 esac
12301 shift
12302done
12303
12304ac_configure_extra_args=
12305
12306if $ac_cs_silent; then
12307 exec 6>/dev/null
12308 ac_configure_extra_args="$ac_configure_extra_args --silent"
12309fi
12310
12311_ACEOF
12312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12313if \$ac_cs_recheck; then
12314 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12315 shift
12316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12317 CONFIG_SHELL='$SHELL'
12318 export CONFIG_SHELL
12319 exec "\$@"
12320fi
12321
12322_ACEOF
12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324exec 5>>config.log
12325{
12326 echo
12327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12328## Running $as_me. ##
12329_ASBOX
12330 $as_echo "$ac_log"
12331} >&5
12332
12333_ACEOF
12334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335#
12336# INIT-COMMANDS
12337#
12338AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12339
12340_ACEOF
12341
12342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12343
12344# Handling of arguments.
12345for ac_config_target in $ac_config_targets
12346do
12347 case $ac_config_target in
12348 "Source/Include/swigconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS Source/Include/swigconfig.h" ;;
12349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12351 "swig.spec") CONFIG_FILES="$CONFIG_FILES swig.spec" ;;
12352 "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
12353 "Examples/d/example.mk") CONFIG_FILES="$CONFIG_FILES Examples/d/example.mk" ;;
12354 "Examples/xml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/xml/Makefile" ;;
12355 "Examples/test-suite/errors/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/errors/Makefile" ;;
12356 "Examples/test-suite/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/csharp/Makefile" ;;
12357 "Examples/test-suite/d/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/d/Makefile" ;;
12358 "Examples/test-suite/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guile/Makefile" ;;
12359 "Examples/test-suite/java/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/java/Makefile" ;;
12360 "Examples/test-suite/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/javascript/Makefile" ;;
12361 "Examples/test-suite/mzscheme/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/mzscheme/Makefile" ;;
12362 "Examples/test-suite/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ocaml/Makefile" ;;
12363 "Examples/test-suite/octave/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/octave/Makefile" ;;
12364 "Examples/test-suite/perl5/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/perl5/Makefile" ;;
12365 "Examples/test-suite/php/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/php/Makefile" ;;
12366 "Examples/test-suite/python/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/python/Makefile" ;;
12367 "Examples/test-suite/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ruby/Makefile" ;;
12368 "Examples/test-suite/scilab/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/scilab/Makefile" ;;
12369 "Examples/test-suite/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/tcl/Makefile" ;;
12370 "Examples/test-suite/lua/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/lua/Makefile" ;;
12371 "Examples/test-suite/r/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/r/Makefile" ;;
12372 "Examples/test-suite/go/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/go/Makefile" ;;
12373 "Source/Makefile") CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;;
12374 "Tools/javascript/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/javascript/Makefile" ;;
12375 "preinst-swig") CONFIG_FILES="$CONFIG_FILES preinst-swig" ;;
12376 "CCache/ccache_swig_config.h") CONFIG_FILES="$CONFIG_FILES CCache/ccache_swig_config.h" ;;
12377 "Examples") CONFIG_COMMANDS="$CONFIG_COMMANDS Examples" ;;
12378
12379 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12380 esac
12381done
12382
12383
12384# If the user did not use the arguments to specify the items to instantiate,
12385# then the envvar interface is used. Set only those that are not.
12386# We use the long form for the default assignment because of an extremely
12387# bizarre bug on SunOS 4.1.3.
12388if $ac_need_defaults; then
12389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12392fi
12393
12394# Have a temporary directory for convenience. Make it in the build tree
12395# simply because there is no reason against having it here, and in addition,
12396# creating and moving files from /tmp can sometimes cause problems.
12397# Hook for its removal unless debugging.
12398# Note that there is a small window in which the directory will not be cleaned:
12399# after its creation but before its name has been assigned to `$tmp'.
12400$debug ||
12401{
12402 tmp= ac_tmp=
12403 trap 'exit_status=$?
12404 : "${ac_tmp:=$tmp}"
12405 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12406' 0
12407 trap 'as_fn_exit 1' 1 2 13 15
12408}
12409# Create a (secure) tmp directory for tmp files.
12410
12411{
12412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12413 test -d "$tmp"
12414} ||
12415{
12416 tmp=./conf$$-$RANDOM
12417 (umask 077 && mkdir "$tmp")
12418} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12419ac_tmp=$tmp
12420
12421# Set up the scripts for CONFIG_FILES section.
12422# No need to generate them if there are no CONFIG_FILES.
12423# This happens for instance with `./config.status config.h'.
12424if test -n "$CONFIG_FILES"; then
12425
12426
12427ac_cr=`echo X | tr X '\015'`
12428# On cygwin, bash can eat \r inside `` if the user requested igncr.
12429# But we know of no other shell where ac_cr would be empty at this
12430# point, so we can use a bashism as a fallback.
12431if test "x$ac_cr" = x; then
12432 eval ac_cr=\$\'\\r\'
12433fi
12434ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12435if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12436 ac_cs_awk_cr='\\r'
12437else
12438 ac_cs_awk_cr=$ac_cr
12439fi
12440
12441echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12442_ACEOF
12443
12444
12445{
12446 echo "cat >conf$$subs.awk <<_ACEOF" &&
12447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12448 echo "_ACEOF"
12449} >conf$$subs.sh ||
12450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12451ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12452ac_delim='%!_!# '
12453for ac_last_try in false false false false false :; do
12454 . ./conf$$subs.sh ||
12455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12456
12457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12458 if test $ac_delim_n = $ac_delim_num; then
12459 break
12460 elif $ac_last_try; then
12461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12462 else
12463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12464 fi
12465done
12466rm -f conf$$subs.sh
12467
12468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12469cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12470_ACEOF
12471sed -n '
12472h
12473s/^/S["/; s/!.*/"]=/
12474p
12475g
12476s/^[^!]*!//
12477:repl
12478t repl
12479s/'"$ac_delim"'$//
12480t delim
12481:nl
12482h
12483s/\(.\{148\}\)..*/\1/
12484t more1
12485s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12486p
12487n
12488b repl
12489:more1
12490s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12491p
12492g
12493s/.\{148\}//
12494t nl
12495:delim
12496h
12497s/\(.\{148\}\)..*/\1/
12498t more2
12499s/["\\]/\\&/g; s/^/"/; s/$/"/
12500p
12501b
12502:more2
12503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12504p
12505g
12506s/.\{148\}//
12507t delim
12508' <conf$$subs.awk | sed '
12509/^[^""]/{
12510 N
12511 s/\n//
12512}
12513' >>$CONFIG_STATUS || ac_write_fail=1
12514rm -f conf$$subs.awk
12515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12516_ACAWK
12517cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12518 for (key in S) S_is_set[key] = 1
12519 FS = ""
12520
12521}
12522{
12523 line = $ 0
12524 nfields = split(line, field, "@")
12525 substed = 0
12526 len = length(field[1])
12527 for (i = 2; i < nfields; i++) {
12528 key = field[i]
12529 keylen = length(key)
12530 if (S_is_set[key]) {
12531 value = S[key]
12532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12533 len += length(value) + length(field[++i])
12534 substed = 1
12535 } else
12536 len += 1 + keylen
12537 }
12538
12539 print line
12540}
12541
12542_ACAWK
12543_ACEOF
12544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12546 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12547else
12548 cat
12549fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12550 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12551_ACEOF
12552
12553# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12554# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12555# trailing colons and then remove the whole line if VPATH becomes empty
12556# (actually we leave an empty line to preserve line numbers).
12557if test "x$srcdir" = x.; then
12558 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12559h
12560s///
12561s/^/:/
12562s/[ ]*$/:/
12563s/:\$(srcdir):/:/g
12564s/:\${srcdir}:/:/g
12565s/:@srcdir@:/:/g
12566s/^:*//
12567s/:*$//
12568x
12569s/\(=[ ]*\).*/\1/
12570G
12571s/\n//
12572s/^[^=]*=[ ]*$//
12573}'
12574fi
12575
12576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12577fi # test -n "$CONFIG_FILES"
12578
12579# Set up the scripts for CONFIG_HEADERS section.
12580# No need to generate them if there are no CONFIG_HEADERS.
12581# This happens for instance with `./config.status Makefile'.
12582if test -n "$CONFIG_HEADERS"; then
12583cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12584BEGIN {
12585_ACEOF
12586
12587# Transform confdefs.h into an awk script `defines.awk', embedded as
12588# here-document in config.status, that substitutes the proper values into
12589# config.h.in to produce config.h.
12590
12591# Create a delimiter string that does not exist in confdefs.h, to ease
12592# handling of long lines.
12593ac_delim='%!_!# '
12594for ac_last_try in false false :; do
12595 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12596 if test -z "$ac_tt"; then
12597 break
12598 elif $ac_last_try; then
12599 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12600 else
12601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12602 fi
12603done
12604
12605# For the awk script, D is an array of macro values keyed by name,
12606# likewise P contains macro parameters if any. Preserve backslash
12607# newline sequences.
12608
12609ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12610sed -n '
12611s/.\{148\}/&'"$ac_delim"'/g
12612t rset
12613:rset
12614s/^[ ]*#[ ]*define[ ][ ]*/ /
12615t def
12616d
12617:def
12618s/\\$//
12619t bsnl
12620s/["\\]/\\&/g
12621s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12622D["\1"]=" \3"/p
12623s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12624d
12625:bsnl
12626s/["\\]/\\&/g
12627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12628D["\1"]=" \3\\\\\\n"\\/p
12629t cont
12630s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12631t cont
12632d
12633:cont
12634n
12635s/.\{148\}/&'"$ac_delim"'/g
12636t clear
12637:clear
12638s/\\$//
12639t bsnlc
12640s/["\\]/\\&/g; s/^/"/; s/$/"/p
12641d
12642:bsnlc
12643s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12644b cont
12645' <confdefs.h | sed '
12646s/'"$ac_delim"'/"\\\
12647"/g' >>$CONFIG_STATUS || ac_write_fail=1
12648
12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 for (key in D) D_is_set[key] = 1
12651 FS = ""
12652}
12653/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12654 line = \$ 0
12655 split(line, arg, " ")
12656 if (arg[1] == "#") {
12657 defundef = arg[2]
12658 mac1 = arg[3]
12659 } else {
12660 defundef = substr(arg[1], 2)
12661 mac1 = arg[2]
12662 }
12663 split(mac1, mac2, "(") #)
12664 macro = mac2[1]
12665 prefix = substr(line, 1, index(line, defundef) - 1)
12666 if (D_is_set[macro]) {
12667 # Preserve the white space surrounding the "#".
12668 print prefix "define", macro P[macro] D[macro]
12669 next
12670 } else {
12671 # Replace #undef with comments. This is necessary, for example,
12672 # in the case of _POSIX_SOURCE, which is predefined and required
12673 # on some systems where configure will not decide to define it.
12674 if (defundef == "undef") {
12675 print "/*", prefix defundef, macro, "*/"
12676 next
12677 }
12678 }
12679}
12680{ print }
12681_ACAWK
12682_ACEOF
12683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12684 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12685fi # test -n "$CONFIG_HEADERS"
12686
12687
12688eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12689shift
12690for ac_tag
12691do
12692 case $ac_tag in
12693 :[FHLC]) ac_mode=$ac_tag; continue;;
12694 esac
12695 case $ac_mode$ac_tag in
12696 :[FHL]*:*);;
12697 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12698 :[FH]-) ac_tag=-:-;;
12699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12700 esac
12701 ac_save_IFS=$IFS
12702 IFS=:
12703 set x $ac_tag
12704 IFS=$ac_save_IFS
12705 shift
12706 ac_file=$1
12707 shift
12708
12709 case $ac_mode in
12710 :L) ac_source=$1;;
12711 :[FH])
12712 ac_file_inputs=
12713 for ac_f
12714 do
12715 case $ac_f in
12716 -) ac_f="$ac_tmp/stdin";;
12717 *) # Look for the file first in the build tree, then in the source tree
12718 # (if the path is not absolute). The absolute path cannot be DOS-style,
12719 # because $ac_f cannot contain `:'.
12720 test -f "$ac_f" ||
12721 case $ac_f in
12722 [\\/$]*) false;;
12723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12724 esac ||
12725 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12726 esac
12727 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12728 as_fn_append ac_file_inputs " '$ac_f'"
12729 done
12730
12731 # Let's still pretend it is `configure' which instantiates (i.e., don't
12732 # use $as_me), people would be surprised to read:
12733 # /* config.h. Generated by config.status. */
12734 configure_input='Generated from '`
12735 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12736 `' by configure.'
12737 if test x"$ac_file" != x-; then
12738 configure_input="$ac_file. $configure_input"
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12740$as_echo "$as_me: creating $ac_file" >&6;}
12741 fi
12742 # Neutralize special characters interpreted by sed in replacement strings.
12743 case $configure_input in #(
12744 *\&* | *\|* | *\\* )
12745 ac_sed_conf_input=`$as_echo "$configure_input" |
12746 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12747 *) ac_sed_conf_input=$configure_input;;
12748 esac
12749
12750 case $ac_tag in
12751 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12753 esac
12754 ;;
12755 esac
12756
12757 ac_dir=`$as_dirname -- "$ac_file" ||
12758$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12759 X"$ac_file" : 'X\(//\)[^/]' \| \
12760 X"$ac_file" : 'X\(//\)$' \| \
12761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12762$as_echo X"$ac_file" |
12763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12764 s//\1/
12765 q
12766 }
12767 /^X\(\/\/\)[^/].*/{
12768 s//\1/
12769 q
12770 }
12771 /^X\(\/\/\)$/{
12772 s//\1/
12773 q
12774 }
12775 /^X\(\/\).*/{
12776 s//\1/
12777 q
12778 }
12779 s/.*/./; q'`
12780 as_dir="$ac_dir"; as_fn_mkdir_p
12781 ac_builddir=.
12782
12783case "$ac_dir" in
12784.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12785*)
12786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12787 # A ".." for each directory in $ac_dir_suffix.
12788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12789 case $ac_top_builddir_sub in
12790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12792 esac ;;
12793esac
12794ac_abs_top_builddir=$ac_pwd
12795ac_abs_builddir=$ac_pwd$ac_dir_suffix
12796# for backward compatibility:
12797ac_top_builddir=$ac_top_build_prefix
12798
12799case $srcdir in
12800 .) # We are building in place.
12801 ac_srcdir=.
12802 ac_top_srcdir=$ac_top_builddir_sub
12803 ac_abs_top_srcdir=$ac_pwd ;;
12804 [\\/]* | ?:[\\/]* ) # Absolute name.
12805 ac_srcdir=$srcdir$ac_dir_suffix;
12806 ac_top_srcdir=$srcdir
12807 ac_abs_top_srcdir=$srcdir ;;
12808 *) # Relative name.
12809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12810 ac_top_srcdir=$ac_top_build_prefix$srcdir
12811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12812esac
12813ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12814
12815
12816 case $ac_mode in
12817 :F)
12818 #
12819 # CONFIG_FILE
12820 #
12821
12822 case $INSTALL in
12823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12825 esac
12826 ac_MKDIR_P=$MKDIR_P
12827 case $MKDIR_P in
12828 [\\/$]* | ?:[\\/]* ) ;;
12829 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12830 esac
12831_ACEOF
12832
12833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12834# If the template does not know about datarootdir, expand it.
12835# FIXME: This hack should be removed a few years after 2.60.
12836ac_datarootdir_hack=; ac_datarootdir_seen=
12837ac_sed_dataroot='
12838/datarootdir/ {
12839 p
12840 q
12841}
12842/@datadir@/p
12843/@docdir@/p
12844/@infodir@/p
12845/@localedir@/p
12846/@mandir@/p'
12847case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12848*datarootdir*) ac_datarootdir_seen=yes;;
12849*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12851$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12852_ACEOF
12853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12854 ac_datarootdir_hack='
12855 s&@datadir@&$datadir&g
12856 s&@docdir@&$docdir&g
12857 s&@infodir@&$infodir&g
12858 s&@localedir@&$localedir&g
12859 s&@mandir@&$mandir&g
12860 s&\\\${datarootdir}&$datarootdir&g' ;;
12861esac
12862_ACEOF
12863
12864# Neutralize VPATH when `$srcdir' = `.'.
12865# Shell code in configure.ac might set extrasub.
12866# FIXME: do we really want to maintain this feature?
12867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12868ac_sed_extra="$ac_vpsub
12869$extrasub
12870_ACEOF
12871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12872:t
12873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12874s|@configure_input@|$ac_sed_conf_input|;t t
12875s&@top_builddir@&$ac_top_builddir_sub&;t t
12876s&@top_build_prefix@&$ac_top_build_prefix&;t t
12877s&@srcdir@&$ac_srcdir&;t t
12878s&@abs_srcdir@&$ac_abs_srcdir&;t t
12879s&@top_srcdir@&$ac_top_srcdir&;t t
12880s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12881s&@builddir@&$ac_builddir&;t t
12882s&@abs_builddir@&$ac_abs_builddir&;t t
12883s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12884s&@INSTALL@&$ac_INSTALL&;t t
12885s&@MKDIR_P@&$ac_MKDIR_P&;t t
12886$ac_datarootdir_hack
12887"
12888eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12889 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12890
12891test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12892 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12894 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12896which seems to be undefined. Please make sure it is defined" >&5
12897$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12898which seems to be undefined. Please make sure it is defined" >&2;}
12899
12900 rm -f "$ac_tmp/stdin"
12901 case $ac_file in
12902 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12903 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12904 esac \
12905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12906 ;;
12907 :H)
12908 #
12909 # CONFIG_HEADER
12910 #
12911 if test x"$ac_file" != x-; then
12912 {
12913 $as_echo "/* $configure_input */" \
12914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12915 } >"$ac_tmp/config.h" \
12916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12917 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12919$as_echo "$as_me: $ac_file is unchanged" >&6;}
12920 else
12921 rm -f "$ac_file"
12922 mv "$ac_tmp/config.h" "$ac_file" \
12923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12924 fi
12925 else
12926 $as_echo "/* $configure_input */" \
12927 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12928 || as_fn_error $? "could not create -" "$LINENO" 5
12929 fi
12930# Compute "$ac_file"'s index in $config_headers.
12931_am_arg="$ac_file"
12932_am_stamp_count=1
12933for _am_header in $config_headers :; do
12934 case $_am_header in
12935 $_am_arg | $_am_arg:* )
12936 break ;;
12937 * )
12938 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12939 esac
12940done
12941echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12942$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$_am_arg" : 'X\(//\)[^/]' \| \
12944 X"$_am_arg" : 'X\(//\)$' \| \
12945 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12946$as_echo X"$_am_arg" |
12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12948 s//\1/
12949 q
12950 }
12951 /^X\(\/\/\)[^/].*/{
12952 s//\1/
12953 q
12954 }
12955 /^X\(\/\/\)$/{
12956 s//\1/
12957 q
12958 }
12959 /^X\(\/\).*/{
12960 s//\1/
12961 q
12962 }
12963 s/.*/./; q'`/stamp-h$_am_stamp_count
12964 ;;
12965
12966 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12967$as_echo "$as_me: executing $ac_file commands" >&6;}
12968 ;;
12969 esac
12970
12971
12972 case $ac_file$ac_mode in
12973 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12974 # Older Autoconf quotes --file arguments for eval, but not when files
12975 # are listed without --file. Let's play safe and only enable the eval
12976 # if we detect the quoting.
12977 # TODO: see whether this extra hack can be removed once we start
12978 # requiring Autoconf 2.70 or later.
12979 case $CONFIG_FILES in #(
12980 *\'*) :
12981 eval set x "$CONFIG_FILES" ;; #(
12982 *) :
12983 set x $CONFIG_FILES ;; #(
12984 *) :
12985 ;;
12986esac
12987 shift
12988 # Used to flag and report bootstrapping failures.
12989 am_rc=0
12990 for am_mf
12991 do
12992 # Strip MF so we end up with the name of the file.
12993 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12994 # Check whether this is an Automake generated Makefile which includes
12995 # dependency-tracking related rules and includes.
12996 # Grep'ing the whole file directly is not great: AIX grep has a line
12997 # limit of 2048, but all sed's we know have understand at least 4000.
12998 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12999 || continue
13000 am_dirpart=`$as_dirname -- "$am_mf" ||
13001$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13002 X"$am_mf" : 'X\(//\)[^/]' \| \
13003 X"$am_mf" : 'X\(//\)$' \| \
13004 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13005$as_echo X"$am_mf" |
13006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13007 s//\1/
13008 q
13009 }
13010 /^X\(\/\/\)[^/].*/{
13011 s//\1/
13012 q
13013 }
13014 /^X\(\/\/\)$/{
13015 s//\1/
13016 q
13017 }
13018 /^X\(\/\).*/{
13019 s//\1/
13020 q
13021 }
13022 s/.*/./; q'`
13023 am_filepart=`$as_basename -- "$am_mf" ||
13024$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13025 X"$am_mf" : 'X\(//\)$' \| \
13026 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13027$as_echo X/"$am_mf" |
13028 sed '/^.*\/\([^/][^/]*\)\/*$/{
13029 s//\1/
13030 q
13031 }
13032 /^X\/\(\/\/\)$/{
13033 s//\1/
13034 q
13035 }
13036 /^X\/\(\/\).*/{
13037 s//\1/
13038 q
13039 }
13040 s/.*/./; q'`
13041 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13042 && sed -e '/# am--include-marker/d' "$am_filepart" \
13043 | $MAKE -f - am--depfiles" >&5
13044 (cd "$am_dirpart" \
13045 && sed -e '/# am--include-marker/d' "$am_filepart" \
13046 | $MAKE -f - am--depfiles) >&5 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } || am_rc=$?
13050 done
13051 if test $am_rc -ne 0; then
13052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13054as_fn_error $? "Something went wrong bootstrapping makefile fragments
13055 for automatic dependency tracking. Try re-running configure with the
13056 '--disable-dependency-tracking' option to at least be able to build
13057 the package (albeit without support for automatic dependency tracking).
13058See \`config.log' for more details" "$LINENO" 5; }
13059 fi
13060 { am_dirpart=; unset am_dirpart;}
13061 { am_filepart=; unset am_filepart;}
13062 { am_mf=; unset am_mf;}
13063 { am_rc=; unset am_rc;}
13064 rm -f conftest-deps.mk
13065}
13066 ;;
13067 "preinst-swig":F) chmod +x preinst-swig ;;
13068 "Examples":C)
13069 if test "x${srcdir}" != "x." ; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: generating Examples build tree" >&5
13071$as_echo "$as_me: generating Examples build tree" >&6;}
13072 for mkfile in `cd ${srcdir} && find Examples/ -type f -name Makefile`; do
13073 dir=`dirname ${mkfile}`
13074 d=${dir}
13075 reldir=""
13076 while test "x$d" != "x." ; do
13077 d=`dirname $d`
13078 reldir="${reldir}../"
13079 done
13080 relsrcdir=${reldir}${srcdir}/
13081 as_dir=${dir}; as_fn_mkdir_p
13082 cat <<EOF >${mkfile}
13083# DO NOT EDIT: instead edit ${relsrcdir}${mkfile}
13084# and run (cd ${reldir} && ./config.status) to regenerate
13085TOP_BUILDDIR_TO_TOP_SRCDIR = ${srcdir}/
13086SRCDIR = ${relsrcdir}${dir}/
13087
13088EOF
13089 cat ${srcdir}/${mkfile} >>${mkfile}
13090 done
13091 fi
13092 ;;
13093
13094 esac
13095done # for ac_tag
13096
13097
13098as_fn_exit 0
13099_ACEOF
13100ac_clean_files=$ac_clean_files_save
13101
13102test $ac_write_fail = 0 ||
13103 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13104
13105
13106# configure is writing to config.log, and then calls config.status.
13107# config.status does its own redirection, appending to config.log.
13108# Unfortunately, on DOS this fails, as config.log is still kept open
13109# by configure, so config.status won't be able to write to it; its
13110# output is simply discarded. So we exec the FD to /dev/null,
13111# effectively closing config.log, so it can be properly (re)opened and
13112# appended to by config.status. When coming back to configure, we
13113# need to make the FD available again.
13114if test "$no_create" != yes; then
13115 ac_cs_success=:
13116 ac_config_status_args=
13117 test "$silent" = yes &&
13118 ac_config_status_args="$ac_config_status_args --quiet"
13119 exec 5>/dev/null
13120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13121 exec 5>>config.log
13122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13123 # would make configure fail if this is the last instruction.
13124 $ac_cs_success || as_fn_exit 1
13125fi
13126
13127#
13128# CONFIG_SUBDIRS section.
13129#
13130if test "$no_recursion" != yes; then
13131
13132 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13133 # so they do not pile up.
13134 ac_sub_configure_args=
13135 ac_prev=
13136 eval "set x $ac_configure_args"
13137 shift
13138 for ac_arg
13139 do
13140 if test -n "$ac_prev"; then
13141 ac_prev=
13142 continue
13143 fi
13144 case $ac_arg in
13145 -cache-file | --cache-file | --cache-fil | --cache-fi \
13146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13147 ac_prev=cache_file ;;
13148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13150 | --c=*)
13151 ;;
13152 --config-cache | -C)
13153 ;;
13154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13155 ac_prev=srcdir ;;
13156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13157 ;;
13158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13159 ac_prev=prefix ;;
13160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13161 ;;
13162 --disable-option-checking)
13163 ;;
13164 *)
13165 case $ac_arg in
13166 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13167 esac
13168 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13169 esac
13170 done
13171
13172 # Always prepend --prefix to ensure using the same prefix
13173 # in subdir configurations.
13174 ac_arg="--prefix=$prefix"
13175 case $ac_arg in
13176 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177 esac
13178 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13179
13180 # Pass --silent
13181 if test "$silent" = yes; then
13182 ac_sub_configure_args="--silent $ac_sub_configure_args"
13183 fi
13184
13185 # Always prepend --disable-option-checking to silence warnings, since
13186 # different subdirs can have different --enable and --with options.
13187 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13188
13189 ac_popdir=`pwd`
13190 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13191
13192 # Do not complain, so a configure script can configure whichever
13193 # parts of a large source tree are present.
13194 test -d "$srcdir/$ac_dir" || continue
13195
13196 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13198 $as_echo "$ac_msg" >&6
13199 as_dir="$ac_dir"; as_fn_mkdir_p
13200 ac_builddir=.
13201
13202case "$ac_dir" in
13203.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13204*)
13205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13206 # A ".." for each directory in $ac_dir_suffix.
13207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13208 case $ac_top_builddir_sub in
13209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13211 esac ;;
13212esac
13213ac_abs_top_builddir=$ac_pwd
13214ac_abs_builddir=$ac_pwd$ac_dir_suffix
13215# for backward compatibility:
13216ac_top_builddir=$ac_top_build_prefix
13217
13218case $srcdir in
13219 .) # We are building in place.
13220 ac_srcdir=.
13221 ac_top_srcdir=$ac_top_builddir_sub
13222 ac_abs_top_srcdir=$ac_pwd ;;
13223 [\\/]* | ?:[\\/]* ) # Absolute name.
13224 ac_srcdir=$srcdir$ac_dir_suffix;
13225 ac_top_srcdir=$srcdir
13226 ac_abs_top_srcdir=$srcdir ;;
13227 *) # Relative name.
13228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13229 ac_top_srcdir=$ac_top_build_prefix$srcdir
13230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13231esac
13232ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13233
13234
13235 cd "$ac_dir"
13236
13237 # Check for guested configure; otherwise get Cygnus style configure.
13238 if test -f "$ac_srcdir/configure.gnu"; then
13239 ac_sub_configure=$ac_srcdir/configure.gnu
13240 elif test -f "$ac_srcdir/configure"; then
13241 ac_sub_configure=$ac_srcdir/configure
13242 elif test -f "$ac_srcdir/configure.in"; then
13243 # This should be Cygnus configure.
13244 ac_sub_configure=$ac_aux_dir/configure
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13247$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13248 ac_sub_configure=
13249 fi
13250
13251 # The recursion is here.
13252 if test -n "$ac_sub_configure"; then
13253 # Make the cache file name correct relative to the subdirectory.
13254 case $cache_file in
13255 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13256 *) # Relative name.
13257 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13258 esac
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13261$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13262 # The eval makes quoting arguments work.
13263 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13264 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13265 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13266 fi
13267
13268 cd "$ac_popdir"
13269 done
13270fi
13271if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13273$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13274fi
13275
13276
13277langs=""
13278test -n "$SKIP_CSHARP" || langs="${langs}csharp "
13279test -n "$SKIP_D" || langs="${langs}d "
13280test -n "$SKIP_GO" || langs="${langs}go "
13281test -n "$SKIP_GUILE" || langs="${langs}guile "
13282test -n "$SKIP_JAVA" || langs="${langs}java "
13283test -n "$SKIP_JAVASCRIPT" || langs="${langs}javascript "
13284test -n "$SKIP_LUA" || langs="${langs}lua "
13285test -n "$SKIP_MZSCHEME" || langs="${langs}mzscheme "
13286test -n "$SKIP_OCAML" || langs="${langs}ocaml "
13287test -n "$SKIP_OCTAVE" || langs="${langs}octave "
13288test -n "$SKIP_PERL5" || langs="${langs}perl5 "
13289test -n "$SKIP_PHP" || langs="${langs}php "
13290test -n "$SKIP_PYTHON" || langs="${langs}python "
13291test -n "$SKIP_R" || langs="${langs}r "
13292test -n "$SKIP_RUBY" || langs="${langs}ruby "
13293test -n "$SKIP_SCILAB" || langs="${langs}scilab "
13294test -n "$SKIP_TCL" || langs="${langs}tcl "
13295
13296echo "
13297The SWIG test-suite and examples are configured for the following languages:
13298$langs
13299"
13300