Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Gauche 0.9.15-p2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='Gauche'
623 PACKAGE_TARNAME='gauche'
624 PACKAGE_VERSION='0.9.15-p2'
625 PACKAGE_STRING='Gauche 0.9.15-p2'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://practical-scheme.net/gauche/'
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 enable_option_checking=no
662 ac_subst_vars='LTLIBOBJS
663 LIBOBJS
664 subdirs
665 CROSS_COMPILING_no
666 CROSS_COMPILING_yes
667 STATIC_LIBS
668 SYSTEM_CERT_LIBS
669 GAUCHE_TLS_SWITCH_NONE
670 GAUCHE_TLS_SWITCH_MBEDTLS
671 MBEDTLS_CMAKE_OPTIONS
672 MBEDTLS_LIBS
673 MBEDTLS_CFLAGS
674 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_no
675 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_yes
676 ZLIB_LIB
677 ZLIB_LDFLAGS
678 ZLIB_CPPFLAGS
679 ZLIB_OBJECTS
680 ZLIB_SCMFILES
681 ZLIB_ARCHFILES
682 ODBMLIB
683 NDBMLIB
684 GDBMLIB
685 DBM_OBJECTS
686 DBM_SCMFILES
687 DBM_ARCHFILES
688 ICONV_LDFLAGS
689 ICONV_CPPFLAGS
690 ICONV_LIB
691 ICONV_NAME
692 OPTFLAGS
693 SONAME_FLAG
694 RPATH_REAL
695 RPATH_TMP
696 RPATH_FLAG
697 CYGWIN_FIXDLL
698 INSTALL_COMMON_COMMANDS
699 MAKEVERSLINK
700 LINK_HELPER
701 GOSH_USE_SHLIB
702 LIBGAUCHE_SO
703 EXT_UVECTOR
704 EXT_LIBGAUCHE
705 SHLIB_MAIN_LDFLAGS
706 SHLIB_DYLIB_SUFFIX
707 SHLIB_DYLIB_LDFLAGS
708 SHLIB_LIBS_FOR_EXT
709 SHLIB_SO_SUFFIX
710 SHLIB_SO_LDFLAGS
711 SHLIB_SO_CFLAGS
712 xhost
713 USE_WIN_RESOURCE_no
714 USE_WIN_RESOURCE_yes
715 ALLOCA
716 ALTERNATIVE_GOSH
717 DEFAULT_CFLAGS
718 BUILD_GOSH
719 BUILD_CC
720 GZIP_PROGRAM
721 MAKEINFO
722 INSTALL_INFO
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 SET_MAKE
727 CPP
728 GAUCHE_CONFIGURE_ARGS
729 LINKGAUCHE
730 LIBGAUCHE_STATIC
731 LIBGAUCHE
732 GAUCHE_ABI_VERSION
733 BUILD_GOSH_VERSION
734 GAUCHE_MICRO_VERSION
735 GAUCHE_MINOR_VERSION
736 GAUCHE_MAJOR_VERSION
737 GAUCHE_VERSION
738 LOCAL_LIBDIRS
739 LOCAL_INCDIRS
740 LOCAL_LIB
741 LOCAL_INC
742 SLIB_DIR
743 GAUCHE_THREAD_TYPE
744 LT_SYS_LIBRARY_PATH
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 MANIFEST_TOOL
751 AWK
752 RANLIB
753 STRIP
754 ac_ct_AR
755 AR
756 DLLTOOL
757 OBJDUMP
758 LN_S
759 NM
760 ac_ct_DUMPBIN
761 DUMPBIN
762 LD
763 FGREP
764 EGREP
765 GREP
766 SED
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 LIBTOOL
775 RC
776 target_os
777 target_vendor
778 target_cpu
779 target
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 runstatedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_shared
831 enable_static
832 with_pic
833 enable_fast_install
834 with_aix_soname
835 with_gnu_ld
836 with_sysroot
837 enable_libtool_lock
838 with_slib
839 with_api_version
840 with_local
841 with_rpath
842 enable_shared_commands
843 enable_framework
844 with_gperftools
845 enable_unsafe_jit_api
846 enable_largefile
847 enable_heuristic_optimization
848 enable_ipv6
849 with_iconv
850 with_iconv_lib
851 with_dbm
852 with_zlib
853 with_tls
854 enable_tls
855 with_ca_bundle
856 '
857 ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
865 LT_SYS_LIBRARY_PATH
866 CPP
867 BUILD_GOSH'
868 ac_subdirs_all='gc'
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: \`$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures Gauche 0.9.15-p2 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/gauche]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of Gauche 0.9.15-p2:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-shared-commands
1497 Install commands with SRFI-defined common names such
1498 as compile-r7rs. Note that other Scheme
1499 implementations may also install commands with the
1500 same name. This option overwrites them if there's
1501 any.
1502 --enable-framework On MacOSX, build Gauche as a framework. This flag
1503 has no effect on other platforms.
1504
1505 --disable-largefile omit support for large files
1506 --enable-heuristic-optimization
1507 Sets some architecture specific optimization flags
1508 using heuristics (default: enable)
1509 --enable-ipv6 enable IPv6 support
1510 --enable-tls=TLSLIB,... Obsoleted. Same as --with-tls=TLSLIB,... for the
1511 compatibility.
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-slib=PATH Configure Gauche's slib module to use Aubrey
1525 Jaffer's SLIB installed under PATH. If PATH is not
1526 specified, or this option is omitted, Gauche still
1527 tries to find your slib installation from some
1528 typical places.
1529 --with-api-version=N Compile Gauche with the given API version N, where N
1530 is a positive integer calculated as
1531 API_MAJOR_VERSION * 1000 + API_MINOR_VERSION. This
1532 is for developers to test their code with the
1533 specified API version. Available API versions may
1534 differ for each release; consult release notes for
1535 the details.
1536 --with-local=PATH:PATH...
1537 For each PATH, add PATH/include to the include
1538 search paths and PATH/lib to the library search
1539 paths. Useful if you have some libraries installed
1540 in non-standard places. On MinGW/MSYS, use ';' as a
1541 separator instead of ':'.
1542 --with-rpath=PATH:PATH...
1543 Use -rpath option while building dynamically
1544 loadable objects (experimental).
1545 --with-gperftools Link with gperftools profiler. When linked, and run
1546 with CPUPROFILE=FILE environment variable, sampling
1547 profiler is run and the result is dumped to FILE.
1548 This is to profile Gauche system itself, not the
1549 programs written in Scheme (the latter is supported
1550 with gosh's -ptime runtime option). It is not
1551 recommended to build production release with this
1552 option.
1553 --with-iconv=PATH Use iconv library installed under PATH. Gauche's
1554 charconv module uses iconv if it is available. If
1555 your system has iconv library in non-trivial
1556 location, specify this option. The include file is
1557 looked for in PATH/include, and the library file is
1558 looked for in PATH/lib. If you don't want to use
1559 iconv for some reason, say --without-iconv.
1560 --with-iconv-lib=LIB If your system needs to use external library for
1561 iconv and whose name is not libiconv, specify it.
1562 For example, if you need -lconv to use iconv, say
1563 --with-iconv-lib=conv
1564 --with-dbm=DBM,... Select which dbm libraries to be compiled. You can
1565 specify any combinations of gdbm, ndbm and odbm, or
1566 just 'no' to disable external dbm libraries.
1567 Example: --with-dbm=ndbm,odbm (to use only ndbm and
1568 odbm) or --wtih-dbm=no (to not compile any of them).
1569 Note that fsdbm is always available, for it is
1570 implemented in pure Scheme. By default the configure
1571 script scans the system to find out available dbm
1572 libraries, so you don't need to specify this option.
1573 This options is to exclude some dbm libraries that
1574 would be compiled otherwise.
1575 --with-zlib=PATH Use zlib library installed under PATH. The rfc.zlib
1576 module uses zlib if it is avilable. If your system
1577 has zlib library in non-trivial location, specify
1578 this option. The include file is looked for in
1579 PATH/include, and the library file is looked for in
1580 PATH/lib. If you don't want to use zlib for some
1581 reason, say --without-zlib.
1582 --with-tls=TLSLIB,... Select which TLS libraries to be compiled. Currently
1583 we support 'mbedtls' (to use MbedLS in the system
1584 library), or 'mbedtls-internal' (to use mbed TLS
1585 compiled with Gauche). By default, we use the
1586 system's mbedtls library if it's avaialble. If not,
1587 no TLS support is compiled. You can specify
1588 --with-tls=no to exclude TLS support explicitly.
1589 --with-ca-bundle=/path/to/ca-bundle.crt
1590 Specify the default CA certificate bundle file path
1591 for TLS certificate validation. This file is
1592 required to use mbed TLS. If set "check", check the
1593 availability at runtime. If set "system", use system
1594 certificate store. Default is "check".
1595
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 LT_SYS_LIBRARY_PATH
1605 User-defined run-time library search path.
1606 CPP C preprocessor
1607 BUILD_GOSH gosh command used during build
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 Report bugs to <[email protected]>.
1613 Gauche home page: <https://practical-scheme.net/gauche/>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 continue
1624 ac_builddir=.
1625
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *)
1629 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1641
1642 case $srcdir in
1643 .) # We are building in place.
1644 ac_srcdir=.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1651 *) # Relative name.
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for configure.gnu first; this name is used for a wrapper for
1660 # Metaconfig's "Configure" on case-insensitive file systems.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1667 else
1668 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1671 done
1672 fi
1673
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1676 cat <<\_ACEOF
1677 Gauche configure 0.9.15-p2
1678 generated by GNU Autoconf 2.71
1679
1680 Copyright (C) 2021 Free Software Foundation, Inc.
1681 This configure script is free software; the Free Software Foundation
1682 gives unlimited permission to copy, distribute and modify it.
1683 _ACEOF
1684 exit
1685 fi
1686
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest.beam
1698 if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 printf "%s\n" "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext
1717 then :
1718 ac_retval=0
1719 else $as_nop
1720 printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_link ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 printf "%s\n" "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 test -x conftest$ac_exeext
1758 }
1759 then :
1760 ac_retval=0
1761 else $as_nop
1762 printf "%s\n" "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_link
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 printf %s "checking for $2... " >&6; }
1786 if eval test \${$3+y}
1787 then :
1788 printf %s "(cached) " >&6
1789 else $as_nop
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"
1796 then :
1797 eval "$3=yes"
1798 else $as_nop
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 printf "%s\n" "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 printf %s "checking for $2... " >&6; }
1818 if eval test \${$3+y}
1819 then :
1820 printf %s "(cached) " >&6
1821 else $as_nop
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below. */
1830
1831 #include <limits.h>
1832 #undef $2
1833
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1837 #ifdef __cplusplus
1838 extern "C"
1839 #endif
1840 char $2 ();
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1845 choke me
1846 #endif
1847
1848 int
1849 main (void)
1850 {
1851 return $2 ();
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_link "$LINENO"
1857 then :
1858 eval "$3=yes"
1859 else $as_nop
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 printf "%s\n" "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 printf "%s\n" "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }
1897 then :
1898 ac_retval=0
1899 else $as_nop
1900 printf "%s\n" "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904 fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_cpp
1909
1910 # ac_fn_c_try_run LINENO
1911 # ----------------------
1912 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1913 # executables *can* be run.
1914 ac_fn_c_try_run ()
1915 {
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 printf "%s\n" "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>&5
1925 ac_status=$?
1926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1928 { { case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 printf "%s\n" "$ac_try_echo"; } >&5
1934 (eval "$ac_try") 2>&5
1935 ac_status=$?
1936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; }; }
1938 then :
1939 ac_retval=0
1940 else $as_nop
1941 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1942 printf "%s\n" "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=$ac_status
1946 fi
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951 } # ac_fn_c_try_run
1952
1953 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1954 # --------------------------------------------
1955 # Tries to find the compile-time value of EXPR in a program that includes
1956 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1957 # computed
1958 ac_fn_c_compute_int ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if test "$cross_compiling" = yes; then
1962 # Depending upon the size, compute the lo and hi bounds.
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 int
1967 main (void)
1968 {
1969 static int test_array [1 - 2 * !(($2) >= 0)];
1970 test_array [0] = 0;
1971 return test_array [0];
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"
1978 then :
1979 ac_lo=0 ac_mid=0
1980 while :; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main (void)
1986 {
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 test_array [0] = 0;
1989 return test_array [0];
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"
1996 then :
1997 ac_hi=$ac_mid; break
1998 else $as_nop
1999 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2000 if test $ac_lo -le $ac_mid; then
2001 ac_lo= ac_hi=
2002 break
2003 fi
2004 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2007 done
2008 else $as_nop
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main (void)
2014 {
2015 static int test_array [1 - 2 * !(($2) < 0)];
2016 test_array [0] = 0;
2017 return test_array [0];
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"
2024 then :
2025 ac_hi=-1 ac_mid=-1
2026 while :; do
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main (void)
2032 {
2033 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"
2042 then :
2043 ac_lo=$ac_mid; break
2044 else $as_nop
2045 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2046 if test $ac_mid -le $ac_hi; then
2047 ac_lo= ac_hi=
2048 break
2049 fi
2050 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 done
2054 else $as_nop
2055 ac_lo= ac_hi=
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2060 # Binary search between lo and hi bounds.
2061 while test "x$ac_lo" != "x$ac_hi"; do
2062 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 $4
2066 int
2067 main (void)
2068 {
2069 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 test_array [0] = 0;
2071 return test_array [0];
2072
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"
2078 then :
2079 ac_hi=$ac_mid
2080 else $as_nop
2081 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2084 done
2085 case $ac_lo in #((
2086 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2087 '') ac_retval=1 ;;
2088 esac
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 static long int longval (void) { return $2; }
2094 static unsigned long int ulongval (void) { return $2; }
2095 #include <stdio.h>
2096 #include <stdlib.h>
2097 int
2098 main (void)
2099 {
2100
2101 FILE *f = fopen ("conftest.val", "w");
2102 if (! f)
2103 return 1;
2104 if (($2) < 0)
2105 {
2106 long int i = longval ();
2107 if (i != ($2))
2108 return 1;
2109 fprintf (f, "%ld", i);
2110 }
2111 else
2112 {
2113 unsigned long int i = ulongval ();
2114 if (i != ($2))
2115 return 1;
2116 fprintf (f, "%lu", i);
2117 }
2118 /* Do not output a trailing newline, as this causes \r\n confusion
2119 on some platforms. */
2120 return ferror (f) || fclose (f) != 0;
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_run "$LINENO"
2127 then :
2128 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129 else $as_nop
2130 ac_retval=1
2131 fi
2132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 rm -f conftest.val
2135
2136 fi
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2139
2140 } # ac_fn_c_compute_int
2141
2142 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2143 # -------------------------------------------
2144 # Tests whether TYPE exists after having included INCLUDES, setting cache
2145 # variable VAR accordingly.
2146 ac_fn_c_check_type ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 printf %s "checking for $2... " >&6; }
2151 if eval test \${$3+y}
2152 then :
2153 printf %s "(cached) " >&6
2154 else $as_nop
2155 eval "$3=no"
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main (void)
2161 {
2162 if (sizeof ($2))
2163 return 0;
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"
2169 then :
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main (void)
2175 {
2176 if (sizeof (($2)))
2177 return 0;
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"
2183 then :
2184
2185 else $as_nop
2186 eval "$3=yes"
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 fi
2192 eval ac_res=\$$3
2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 printf "%s\n" "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197 } # ac_fn_c_check_type
2198
2199 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # ----------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_c_check_member ()
2204 {
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 printf %s "checking for $2.$3... " >&6; }
2208 if eval test \${$4+y}
2209 then :
2210 printf %s "(cached) " >&6
2211 else $as_nop
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $5
2215 int
2216 main (void)
2217 {
2218 static $2 ac_aggr;
2219 if (ac_aggr.$3)
2220 return 0;
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"
2226 then :
2227 eval "$4=yes"
2228 else $as_nop
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $5
2232 int
2233 main (void)
2234 {
2235 static $2 ac_aggr;
2236 if (sizeof ac_aggr.$3)
2237 return 0;
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"
2243 then :
2244 eval "$4=yes"
2245 else $as_nop
2246 eval "$4=no"
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2251 fi
2252 eval ac_res=\$$4
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 printf "%s\n" "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257 } # ac_fn_c_check_member
2258 ac_configure_args_raw=
2259 for ac_arg
2260 do
2261 case $ac_arg in
2262 *\'*)
2263 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 esac
2265 as_fn_append ac_configure_args_raw " '$ac_arg'"
2266 done
2267
2268 case $ac_configure_args_raw in
2269 *$as_nl*)
2270 ac_safe_unquote= ;;
2271 *)
2272 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2273 ac_unsafe_a="$ac_unsafe_z#~"
2274 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2275 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2276 esac
2277
2278 cat >config.log <<_ACEOF
2279 This file contains any messages produced by compilers while
2280 running configure, to aid debugging if configure makes a mistake.
2281
2282 It was created by Gauche $as_me 0.9.15-p2, which was
2283 generated by GNU Autoconf 2.71. Invocation command line was
2284
2285 $ $0$ac_configure_args_raw
2286
2287 _ACEOF
2288 exec 5>>config.log
2289 {
2290 cat <<_ASUNAME
2291 ## --------- ##
2292 ## Platform. ##
2293 ## --------- ##
2294
2295 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2296 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2297 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2298 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2299 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2300
2301 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2302 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2303
2304 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2305 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2306 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2307 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2308 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2309 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2310 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2311
2312 _ASUNAME
2313
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 case $as_dir in #(((
2319 '') as_dir=./ ;;
2320 */) ;;
2321 *) as_dir=$as_dir/ ;;
2322 esac
2323 printf "%s\n" "PATH: $as_dir"
2324 done
2325 IFS=$as_save_IFS
2326
2327 } >&5
2328
2329 cat >&5 <<_ACEOF
2330
2331
2332 ## ----------- ##
2333 ## Core tests. ##
2334 ## ----------- ##
2335
2336 _ACEOF
2337
2338
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_configure_args=
2345 ac_configure_args0=
2346 ac_configure_args1=
2347 ac_must_keep_next=false
2348 for ac_pass in 1 2
2349 do
2350 for ac_arg
2351 do
2352 case $ac_arg in
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2356 continue ;;
2357 *\'*)
2358 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 esac
2360 case $ac_pass in
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 2)
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2366 else
2367 case $ac_arg in
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 esac
2375 ;;
2376 -* ) ac_must_keep_next=true ;;
2377 esac
2378 fi
2379 as_fn_append ac_configure_args " '$ac_arg'"
2380 ;;
2381 esac
2382 done
2383 done
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2386
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Sanitize IFS.
2394 IFS=" "" $as_nl"
2395 # Save into config.log some information that might help in debugging.
2396 {
2397 echo
2398
2399 printf "%s\n" "## ---------------- ##
2400 ## Cache variables. ##
2401 ## ---------------- ##"
2402 echo
2403 # The following way of writing the cache mishandles newlines in values,
2404 (
2405 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in #(
2408 *${as_nl}*)
2409 case $ac_var in #(
2410 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2411 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412 esac
2413 case $ac_var in #(
2414 _ | IFS | as_nl) ;; #(
2415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2416 *) { eval $ac_var=; unset $ac_var;} ;;
2417 esac ;;
2418 esac
2419 done
2420 (set) 2>&1 |
2421 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2422 *${as_nl}ac_space=\ *)
2423 sed -n \
2424 "s/'\''/'\''\\\\'\'''\''/g;
2425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426 ;; #(
2427 *)
2428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2429 ;;
2430 esac |
2431 sort
2432 )
2433 echo
2434
2435 printf "%s\n" "## ----------------- ##
2436 ## Output variables. ##
2437 ## ----------------- ##"
2438 echo
2439 for ac_var in $ac_subst_vars
2440 do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in
2443 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 esac
2445 printf "%s\n" "$ac_var='\''$ac_val'\''"
2446 done | sort
2447 echo
2448
2449 if test -n "$ac_subst_files"; then
2450 printf "%s\n" "## ------------------- ##
2451 ## File substitutions. ##
2452 ## ------------------- ##"
2453 echo
2454 for ac_var in $ac_subst_files
2455 do
2456 eval ac_val=\$$ac_var
2457 case $ac_val in
2458 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 esac
2460 printf "%s\n" "$ac_var='\''$ac_val'\''"
2461 done | sort
2462 echo
2463 fi
2464
2465 if test -s confdefs.h; then
2466 printf "%s\n" "## ----------- ##
2467 ## confdefs.h. ##
2468 ## ----------- ##"
2469 echo
2470 cat confdefs.h
2471 echo
2472 fi
2473 test "$ac_signal" != 0 &&
2474 printf "%s\n" "$as_me: caught signal $ac_signal"
2475 printf "%s\n" "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2480 ' 0
2481 for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2485
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2488
2489 printf "%s\n" "/* confdefs.h */" > confdefs.h
2490
2491 # Predefined preprocessor variables.
2492
2493 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2494
2495 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2496
2497 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2498
2499 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2500
2501 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2502
2503 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2504
2505
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 if test -n "$CONFIG_SITE"; then
2509 ac_site_files="$CONFIG_SITE"
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2512 else
2513 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2514 fi
2515
2516 for ac_site_file in $ac_site_files
2517 do
2518 case $ac_site_file in #(
2519 */*) :
2520 ;; #(
2521 *) :
2522 ac_site_file=./$ac_site_file ;;
2523 esac
2524 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file" \
2529 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2533 fi
2534 done
2535
2536 if test -r "$cache_file"; then
2537 # Some versions of bash will fail to source /dev/null (special files
2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2542 case $cache_file in
2543 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544 *) . "./$cache_file";;
2545 esac
2546 fi
2547 else
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2550 >$cache_file
2551 fi
2552
2553 # Test code for whether the C compiler supports C89 (global declarations)
2554 ac_c_conftest_c89_globals='
2555 /* Does the compiler advertise C89 conformance?
2556 Do not test the value of __STDC__, because some compilers set it to 0
2557 while being otherwise adequately conformant. */
2558 #if !defined __STDC__
2559 # error "Compiler does not advertise C89 conformance"
2560 #endif
2561
2562 #include <stddef.h>
2563 #include <stdarg.h>
2564 struct stat;
2565 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2566 struct buf { int x; };
2567 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2568 static char *e (p, i)
2569 char **p;
2570 int i;
2571 {
2572 return p[i];
2573 }
2574 static char *f (char * (*g) (char **, int), char **p, ...)
2575 {
2576 char *s;
2577 va_list v;
2578 va_start (v,p);
2579 s = g (p, va_arg (v,int));
2580 va_end (v);
2581 return s;
2582 }
2583
2584 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2585 function prototypes and stuff, but not \xHH hex character constants.
2586 These do not provoke an error unfortunately, instead are silently treated
2587 as an "x". The following induces an error, until -std is added to get
2588 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2589 array size at least. It is necessary to write \x00 == 0 to get something
2590 that is true only with -std. */
2591 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2592
2593 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2594 inside strings and character constants. */
2595 #define FOO(x) '\''x'\''
2596 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2597
2598 int test (int i, double x);
2599 struct s1 {int (*f) (int a);};
2600 struct s2 {int (*f) (double a);};
2601 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2602 int, int);'
2603
2604 # Test code for whether the C compiler supports C89 (body of main).
2605 ac_c_conftest_c89_main='
2606 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2607 '
2608
2609 # Test code for whether the C compiler supports C99 (global declarations)
2610 ac_c_conftest_c99_globals='
2611 // Does the compiler advertise C99 conformance?
2612 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2613 # error "Compiler does not advertise C99 conformance"
2614 #endif
2615
2616 #include <stdbool.h>
2617 extern int puts (const char *);
2618 extern int printf (const char *, ...);
2619 extern int dprintf (int, const char *, ...);
2620 extern void *malloc (size_t);
2621
2622 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2623 // dprintf is used instead of fprintf to avoid needing to declare
2624 // FILE and stderr.
2625 #define debug(...) dprintf (2, __VA_ARGS__)
2626 #define showlist(...) puts (#__VA_ARGS__)
2627 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2628 static void
2629 test_varargs_macros (void)
2630 {
2631 int x = 1234;
2632 int y = 5678;
2633 debug ("Flag");
2634 debug ("X = %d\n", x);
2635 showlist (The first, second, and third items.);
2636 report (x>y, "x is %d but y is %d", x, y);
2637 }
2638
2639 // Check long long types.
2640 #define BIG64 18446744073709551615ull
2641 #define BIG32 4294967295ul
2642 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2643 #if !BIG_OK
2644 #error "your preprocessor is broken"
2645 #endif
2646 #if BIG_OK
2647 #else
2648 #error "your preprocessor is broken"
2649 #endif
2650 static long long int bignum = -9223372036854775807LL;
2651 static unsigned long long int ubignum = BIG64;
2652
2653 struct incomplete_array
2654 {
2655 int datasize;
2656 double data[];
2657 };
2658
2659 struct named_init {
2660 int number;
2661 const wchar_t *name;
2662 double average;
2663 };
2664
2665 typedef const char *ccp;
2666
2667 static inline int
2668 test_restrict (ccp restrict text)
2669 {
2670 // See if C++-style comments work.
2671 // Iterate through items via the restricted pointer.
2672 // Also check for declarations in for loops.
2673 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2674 continue;
2675 return 0;
2676 }
2677
2678 // Check varargs and va_copy.
2679 static bool
2680 test_varargs (const char *format, ...)
2681 {
2682 va_list args;
2683 va_start (args, format);
2684 va_list args_copy;
2685 va_copy (args_copy, args);
2686
2687 const char *str = "";
2688 int number = 0;
2689 float fnumber = 0;
2690
2691 while (*format)
2692 {
2693 switch (*format++)
2694 {
2695 case '\''s'\'': // string
2696 str = va_arg (args_copy, const char *);
2697 break;
2698 case '\''d'\'': // int
2699 number = va_arg (args_copy, int);
2700 break;
2701 case '\''f'\'': // float
2702 fnumber = va_arg (args_copy, double);
2703 break;
2704 default:
2705 break;
2706 }
2707 }
2708 va_end (args_copy);
2709 va_end (args);
2710
2711 return *str && number && fnumber;
2712 }
2713 '
2714
2715 # Test code for whether the C compiler supports C99 (body of main).
2716 ac_c_conftest_c99_main='
2717 // Check bool.
2718 _Bool success = false;
2719 success |= (argc != 0);
2720
2721 // Check restrict.
2722 if (test_restrict ("String literal") == 0)
2723 success = true;
2724 char *restrict newvar = "Another string";
2725
2726 // Check varargs.
2727 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2728 test_varargs_macros ();
2729
2730 // Check flexible array members.
2731 struct incomplete_array *ia =
2732 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2733 ia->datasize = 10;
2734 for (int i = 0; i < ia->datasize; ++i)
2735 ia->data[i] = i * 1.234;
2736
2737 // Check named initializers.
2738 struct named_init ni = {
2739 .number = 34,
2740 .name = L"Test wide string",
2741 .average = 543.34343,
2742 };
2743
2744 ni.number = 58;
2745
2746 int dynamic_array[ni.number];
2747 dynamic_array[0] = argv[0][0];
2748 dynamic_array[ni.number - 1] = 543;
2749
2750 // work around unused variable warnings
2751 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2752 || dynamic_array[ni.number - 1] != 543);
2753 '
2754
2755 # Test code for whether the C compiler supports C11 (global declarations)
2756 ac_c_conftest_c11_globals='
2757 // Does the compiler advertise C11 conformance?
2758 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2759 # error "Compiler does not advertise C11 conformance"
2760 #endif
2761
2762 // Check _Alignas.
2763 char _Alignas (double) aligned_as_double;
2764 char _Alignas (0) no_special_alignment;
2765 extern char aligned_as_int;
2766 char _Alignas (0) _Alignas (int) aligned_as_int;
2767
2768 // Check _Alignof.
2769 enum
2770 {
2771 int_alignment = _Alignof (int),
2772 int_array_alignment = _Alignof (int[100]),
2773 char_alignment = _Alignof (char)
2774 };
2775 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2776
2777 // Check _Noreturn.
2778 int _Noreturn does_not_return (void) { for (;;) continue; }
2779
2780 // Check _Static_assert.
2781 struct test_static_assert
2782 {
2783 int x;
2784 _Static_assert (sizeof (int) <= sizeof (long int),
2785 "_Static_assert does not work in struct");
2786 long int y;
2787 };
2788
2789 // Check UTF-8 literals.
2790 #define u8 syntax error!
2791 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2792
2793 // Check duplicate typedefs.
2794 typedef long *long_ptr;
2795 typedef long int *long_ptr;
2796 typedef long_ptr long_ptr;
2797
2798 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2799 struct anonymous
2800 {
2801 union {
2802 struct { int i; int j; };
2803 struct { int k; long int l; } w;
2804 };
2805 int m;
2806 } v1;
2807 '
2808
2809 # Test code for whether the C compiler supports C11 (body of main).
2810 ac_c_conftest_c11_main='
2811 _Static_assert ((offsetof (struct anonymous, i)
2812 == offsetof (struct anonymous, w.k)),
2813 "Anonymous union alignment botch");
2814 v1.i = 2;
2815 v1.w.k = 5;
2816 ok |= v1.i != 5;
2817 '
2818
2819 # Test code for whether the C compiler supports C11 (complete).
2820 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2821 ${ac_c_conftest_c99_globals}
2822 ${ac_c_conftest_c11_globals}
2823
2824 int
2825 main (int argc, char **argv)
2826 {
2827 int ok = 0;
2828 ${ac_c_conftest_c89_main}
2829 ${ac_c_conftest_c99_main}
2830 ${ac_c_conftest_c11_main}
2831 return ok;
2832 }
2833 "
2834
2835 # Test code for whether the C compiler supports C99 (complete).
2836 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2837 ${ac_c_conftest_c99_globals}
2838
2839 int
2840 main (int argc, char **argv)
2841 {
2842 int ok = 0;
2843 ${ac_c_conftest_c89_main}
2844 ${ac_c_conftest_c99_main}
2845 return ok;
2846 }
2847 "
2848
2849 # Test code for whether the C compiler supports C89 (complete).
2850 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2851
2852 int
2853 main (int argc, char **argv)
2854 {
2855 int ok = 0;
2856 ${ac_c_conftest_c89_main}
2857 return ok;
2858 }
2859 "
2860
2861 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2862 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2863 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2864 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2865 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2866 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2867 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2868 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2869 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2870 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2871
2872 # Auxiliary files required by this configure script.
2873 ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2874
2875 # Locations in which to look for auxiliary files.
2876 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2877
2878 # Search for a directory containing all of the required auxiliary files,
2879 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2880 # If we don't find one directory that contains all the files we need,
2881 # we report the set of missing files from the *first* directory in
2882 # $ac_aux_dir_candidates and give up.
2883 ac_missing_aux_files=""
2884 ac_first_candidate=:
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 as_found=false
2888 for as_dir in $ac_aux_dir_candidates
2889 do
2890 IFS=$as_save_IFS
2891 case $as_dir in #(((
2892 '') as_dir=./ ;;
2893 */) ;;
2894 *) as_dir=$as_dir/ ;;
2895 esac
2896 as_found=:
2897
2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2899 ac_aux_dir_found=yes
2900 ac_install_sh=
2901 for ac_aux in $ac_aux_files
2902 do
2903 # As a special case, if "install-sh" is required, that requirement
2904 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2905 # and $ac_install_sh is set appropriately for whichever one is found.
2906 if test x"$ac_aux" = x"install-sh"
2907 then
2908 if test -f "${as_dir}install-sh"; then
2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2910 ac_install_sh="${as_dir}install-sh -c"
2911 elif test -f "${as_dir}install.sh"; then
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2913 ac_install_sh="${as_dir}install.sh -c"
2914 elif test -f "${as_dir}shtool"; then
2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2916 ac_install_sh="${as_dir}shtool install -c"
2917 else
2918 ac_aux_dir_found=no
2919 if $ac_first_candidate; then
2920 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2921 else
2922 break
2923 fi
2924 fi
2925 else
2926 if test -f "${as_dir}${ac_aux}"; then
2927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2928 else
2929 ac_aux_dir_found=no
2930 if $ac_first_candidate; then
2931 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2932 else
2933 break
2934 fi
2935 fi
2936 fi
2937 done
2938 if test "$ac_aux_dir_found" = yes; then
2939 ac_aux_dir="$as_dir"
2940 break
2941 fi
2942 ac_first_candidate=false
2943
2944 as_found=false
2945 done
2946 IFS=$as_save_IFS
2947 if $as_found
2948 then :
2949
2950 else $as_nop
2951 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2952 fi
2953
2954
2955 # These three variables are undocumented and unsupported,
2956 # and are intended to be withdrawn in a future Autoconf release.
2957 # They can cause serious problems if a builder's source tree is in a directory
2958 # whose full name contains unusual characters.
2959 if test -f "${ac_aux_dir}config.guess"; then
2960 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2961 fi
2962 if test -f "${ac_aux_dir}config.sub"; then
2963 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2964 fi
2965 if test -f "$ac_aux_dir/configure"; then
2966 ac_configure="$SHELL ${ac_aux_dir}configure"
2967 fi
2968
2969 # Check that the precious variables saved in the cache have kept the same
2970 # value.
2971 ac_cache_corrupted=false
2972 for ac_var in $ac_precious_vars; do
2973 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2974 eval ac_new_set=\$ac_env_${ac_var}_set
2975 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2976 eval ac_new_val=\$ac_env_${ac_var}_value
2977 case $ac_old_set,$ac_new_set in
2978 set,)
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2980 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2981 ac_cache_corrupted=: ;;
2982 ,set)
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2984 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2985 ac_cache_corrupted=: ;;
2986 ,);;
2987 *)
2988 if test "x$ac_old_val" != "x$ac_new_val"; then
2989 # differences in whitespace do not lead to failure.
2990 ac_old_val_w=`echo x $ac_old_val`
2991 ac_new_val_w=`echo x $ac_new_val`
2992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2994 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2995 ac_cache_corrupted=:
2996 else
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2998 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2999 eval $ac_var=\$ac_old_val
3000 fi
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3002 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3004 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3005 fi;;
3006 esac
3007 # Pass precious variables to config.status.
3008 if test "$ac_new_set" = set; then
3009 case $ac_new_val in
3010 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3011 *) ac_arg=$ac_var=$ac_new_val ;;
3012 esac
3013 case " $ac_configure_args " in
3014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3015 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3016 esac
3017 fi
3018 done
3019 if $ac_cache_corrupted; then
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3023 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3024 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3025 and start over" "$LINENO" 5
3026 fi
3027 ## -------------------- ##
3028 ## Main body of script. ##
3029 ## -------------------- ##
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038 BUILD_GOSH_VERSION=0.9.15 # Host Gauche version required to build from scratch
3039
3040
3041
3042 # Make sure we can run config.sub.
3043 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3044 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3045
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3047 printf %s "checking build system type... " >&6; }
3048 if test ${ac_cv_build+y}
3049 then :
3050 printf %s "(cached) " >&6
3051 else $as_nop
3052 ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3055 test "x$ac_build_alias" = x &&
3056 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3058 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3059
3060 fi
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 printf "%s\n" "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3064 *-*-*) ;;
3065 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3066 esac
3067 build=$ac_cv_build
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_build
3070 shift
3071 build_cpu=$1
3072 build_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 build_os=$*
3077 IFS=$ac_save_IFS
3078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3079
3080
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 printf %s "checking host system type... " >&6; }
3083 if test ${ac_cv_host+y}
3084 then :
3085 printf %s "(cached) " >&6
3086 else $as_nop
3087 if test "x$host_alias" = x; then
3088 ac_cv_host=$ac_cv_build
3089 else
3090 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3091 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3092 fi
3093
3094 fi
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3096 printf "%s\n" "$ac_cv_host" >&6; }
3097 case $ac_cv_host in
3098 *-*-*) ;;
3099 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3100 esac
3101 host=$ac_cv_host
3102 ac_save_IFS=$IFS; IFS='-'
3103 set x $ac_cv_host
3104 shift
3105 host_cpu=$1
3106 host_vendor=$2
3107 shift; shift
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3110 host_os=$*
3111 IFS=$ac_save_IFS
3112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3113
3114
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3116 printf %s "checking target system type... " >&6; }
3117 if test ${ac_cv_target+y}
3118 then :
3119 printf %s "(cached) " >&6
3120 else $as_nop
3121 if test "x$target_alias" = x; then
3122 ac_cv_target=$ac_cv_host
3123 else
3124 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3125 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3126 fi
3127
3128 fi
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 printf "%s\n" "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3132 *-*-*) ;;
3133 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3134 esac
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3137 set x $ac_cv_target
3138 shift
3139 target_cpu=$1
3140 target_vendor=$2
3141 shift; shift
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3144 target_os=$*
3145 IFS=$ac_save_IFS
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147
3148
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152 test "$program_prefix$program_suffix$program_transform_name" = \
3153 NONENONEs,x,x, &&
3154 program_prefix=${target_alias}-
3155 ac_config_headers="$ac_config_headers src/gauche/config.h src/gauche/priv/configP.h"
3156
3157
3158
3159 # ABI_VERSION is set to major.minor of Gauche version by default.
3160 # It can be overridden by uncommenting the following line.
3161 # (This may be useful for "prerelease", such as 0.99.x as pre-1.0)
3162 GAUCHE_ABI_VERSION=0.98
3163
3164 # SNAPSHOT_ID is a string uniquely identifies a snapshot tarball that shares
3165 # the same version string. It is not included in (gauche-version), but
3166 # in GAUCHE_SIGNATURE and shown in the output of 'gosh -V'.
3167 #
3168 # For official release versions, this should be empty. Mostly intended
3169 # to be used for automated bleeding-edge tarballs (in that case, this string
3170 # has a timestamp YYYYMMDD). It can be specified manually in case when we
3171 # need a special snapshot.
3172 #
3173 # The reason we don't use versions is that we don't want to create versioned
3174 # subdirectories for every snapshot.
3175 GAUCHE_SNAPSHOT_ID=20241205
3176
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}windres; ac_word=$2
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 printf %s "checking for $ac_word... " >&6; }
3182 if test ${ac_cv_prog_RC+y}
3183 then :
3184 printf %s "(cached) " >&6
3185 else $as_nop
3186 if test -n "$RC"; then
3187 ac_cv_prog_RC="$RC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 case $as_dir in #(((
3194 '') as_dir=./ ;;
3195 */) ;;
3196 *) as_dir=$as_dir/ ;;
3197 esac
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_RC="${ac_tool_prefix}windres"
3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 RC=$ac_cv_prog_RC
3211 if test -n "$RC"; then
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
3213 printf "%s\n" "$RC" >&6; }
3214 else
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf "%s\n" "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$ac_cv_prog_RC"; then
3222 ac_ct_RC=$RC
3223 # Extract the first word of "windres", so it can be a program name with args.
3224 set dummy windres; ac_word=$2
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 printf %s "checking for $ac_word... " >&6; }
3227 if test ${ac_cv_prog_ac_ct_RC+y}
3228 then :
3229 printf %s "(cached) " >&6
3230 else $as_nop
3231 if test -n "$ac_ct_RC"; then
3232 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 case $as_dir in #(((
3239 '') as_dir=./ ;;
3240 */) ;;
3241 *) as_dir=$as_dir/ ;;
3242 esac
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_ac_ct_RC="windres"
3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 ac_ct_RC=$ac_cv_prog_ac_ct_RC
3256 if test -n "$ac_ct_RC"; then
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
3258 printf "%s\n" "$ac_ct_RC" >&6; }
3259 else
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 printf "%s\n" "no" >&6; }
3262 fi
3263
3264 if test "x$ac_ct_RC" = x; then
3265 RC="false"
3266 else
3267 case $cross_compiling:$ac_tool_warned in
3268 yes:)
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3272 esac
3273 RC=$ac_ct_RC
3274 fi
3275 else
3276 RC="$ac_cv_prog_RC"
3277 fi
3278
3279
3280
3281 case `pwd` in
3282 *\ * | *\ *)
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3284 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3285 esac
3286
3287
3288
3289 macro_version='2.4.6'
3290 macro_revision='2.4.6'
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305 ltmain=$ac_aux_dir/ltmain.sh
3306
3307 # Backslashify metacharacters that are still active within
3308 # double-quoted strings.
3309 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3310
3311 # Same as above, but do not quote variable references.
3312 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3313
3314 # Sed substitution to delay expansion of an escaped shell variable in a
3315 # double_quote_subst'ed string.
3316 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3317
3318 # Sed substitution to delay expansion of an escaped single quote.
3319 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3320
3321 # Sed substitution to avoid accidental globbing in evaled expressions
3322 no_glob_subst='s/\*/\\\*/g'
3323
3324 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3325 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3327
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3329 printf %s "checking how to print strings... " >&6; }
3330 # Test print first, because it will be a builtin if present.
3331 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3332 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3333 ECHO='print -r --'
3334 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3335 ECHO='printf %s\n'
3336 else
3337 # Use this function as a fallback that always works.
3338 func_fallback_echo ()
3339 {
3340 eval 'cat <<_LTECHO_EOF
3341 $1
3342 _LTECHO_EOF'
3343 }
3344 ECHO='func_fallback_echo'
3345 fi
3346
3347 # func_echo_all arg...
3348 # Invoke $ECHO with all args, space-separated.
3349 func_echo_all ()
3350 {
3351 $ECHO ""
3352 }
3353
3354 case $ECHO in
3355 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3356 printf "%s\n" "printf" >&6; } ;;
3357 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3358 printf "%s\n" "print -r" >&6; } ;;
3359 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3360 printf "%s\n" "cat" >&6; } ;;
3361 esac
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 printf %s "checking for $ac_word... " >&6; }
3395 if test ${ac_cv_prog_CC+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else $as_nop
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 case $as_dir in #(((
3407 '') as_dir=./ ;;
3408 */) ;;
3409 *) as_dir=$as_dir/ ;;
3410 esac
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 printf "%s\n" "$CC" >&6; }
3427 else
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 printf "%s\n" "no" >&6; }
3430 fi
3431
3432
3433 fi
3434 if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 printf %s "checking for $ac_word... " >&6; }
3440 if test ${ac_cv_prog_ac_ct_CC+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else $as_nop
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_ac_ct_CC="gcc"
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471 printf "%s\n" "$ac_ct_CC" >&6; }
3472 else
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 printf "%s\n" "no" >&6; }
3475 fi
3476
3477 if test "x$ac_ct_CC" = x; then
3478 CC=""
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486 CC=$ac_ct_CC
3487 fi
3488 else
3489 CC="$ac_cv_prog_CC"
3490 fi
3491
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}cc; ac_word=$2
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 printf %s "checking for $ac_word... " >&6; }
3498 if test ${ac_cv_prog_CC+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else $as_nop
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 case $as_dir in #(((
3510 '') as_dir=./ ;;
3511 */) ;;
3512 *) as_dir=$as_dir/ ;;
3513 esac
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="${ac_tool_prefix}cc"
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 printf "%s\n" "$CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535
3536 fi
3537 fi
3538 if test -z "$CC"; then
3539 # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_prog_CC+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else $as_nop
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 ac_prog_rejected=no
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3563 ac_prog_rejected=yes
3564 continue
3565 fi
3566 ac_cv_prog_CC="cc"
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570 done
3571 done
3572 IFS=$as_save_IFS
3573
3574 if test $ac_prog_rejected = yes; then
3575 # We found a bogon in the path, so make sure we never use it.
3576 set dummy $ac_cv_prog_CC
3577 shift
3578 if test $# != 0; then
3579 # We chose a different compiler from the bogus one.
3580 # However, it has the same basename, so the bogon will be chosen
3581 # first if we set CC to just the basename; use the full file name.
3582 shift
3583 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3584 fi
3585 fi
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 printf "%s\n" "$CC" >&6; }
3592 else
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 printf "%s\n" "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 for ac_prog in cl.exe
3602 do
3603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 printf %s "checking for $ac_word... " >&6; }
3607 if test ${ac_cv_prog_CC+y}
3608 then :
3609 printf %s "(cached) " >&6
3610 else $as_nop
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 case $as_dir in #(((
3619 '') as_dir=./ ;;
3620 */) ;;
3621 *) as_dir=$as_dir/ ;;
3622 esac
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 test -n "$CC" && break
3646 done
3647 fi
3648 if test -z "$CC"; then
3649 ac_ct_CC=$CC
3650 for ac_prog in cl.exe
3651 do
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_ac_ct_CC+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else $as_nop
3660 if test -n "$ac_ct_CC"; then
3661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 case $as_dir in #(((
3668 '') as_dir=./ ;;
3669 */) ;;
3670 *) as_dir=$as_dir/ ;;
3671 esac
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC="$ac_prog"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 printf "%s\n" "$ac_ct_CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693
3694 test -n "$ac_ct_CC" && break
3695 done
3696
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701 yes:)
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned=yes ;;
3705 esac
3706 CC=$ac_ct_CC
3707 fi
3708 fi
3709
3710 fi
3711 if test -z "$CC"; then
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}clang; ac_word=$2
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 printf %s "checking for $ac_word... " >&6; }
3717 if test ${ac_cv_prog_CC+y}
3718 then :
3719 printf %s "(cached) " >&6
3720 else $as_nop
3721 if test -n "$CC"; then
3722 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 case $as_dir in #(((
3729 '') as_dir=./ ;;
3730 */) ;;
3731 *) as_dir=$as_dir/ ;;
3732 esac
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_CC="${ac_tool_prefix}clang"
3736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3737 break 2
3738 fi
3739 done
3740 done
3741 IFS=$as_save_IFS
3742
3743 fi
3744 fi
3745 CC=$ac_cv_prog_CC
3746 if test -n "$CC"; then
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748 printf "%s\n" "$CC" >&6; }
3749 else
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 printf "%s\n" "no" >&6; }
3752 fi
3753
3754
3755 fi
3756 if test -z "$ac_cv_prog_CC"; then
3757 ac_ct_CC=$CC
3758 # Extract the first word of "clang", so it can be a program name with args.
3759 set dummy clang; ac_word=$2
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 printf %s "checking for $ac_word... " >&6; }
3762 if test ${ac_cv_prog_ac_ct_CC+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else $as_nop
3766 if test -n "$ac_ct_CC"; then
3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 case $as_dir in #(((
3774 '') as_dir=./ ;;
3775 */) ;;
3776 *) as_dir=$as_dir/ ;;
3777 esac
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_ac_ct_CC="clang"
3781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 printf "%s\n" "$ac_ct_CC" >&6; }
3794 else
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 printf "%s\n" "no" >&6; }
3797 fi
3798
3799 if test "x$ac_ct_CC" = x; then
3800 CC=""
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 CC=$ac_ct_CC
3809 fi
3810 else
3811 CC="$ac_cv_prog_CC"
3812 fi
3813
3814 fi
3815
3816
3817 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "no acceptable C compiler found in \$PATH
3820 See \`config.log' for more details" "$LINENO" 5; }
3821
3822 # Provide some information about the compiler.
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3824 set X $ac_compile
3825 ac_compiler=$2
3826 for ac_option in --version -v -V -qversion -version; do
3827 { { ac_try="$ac_compiler $ac_option >&5"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 printf "%s\n" "$ac_try_echo"; } >&5
3834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3835 ac_status=$?
3836 if test -s conftest.err; then
3837 sed '10a\
3838 ... rest of stderr output deleted ...
3839 10q' conftest.err >conftest.er1
3840 cat conftest.er1 >&5
3841 fi
3842 rm -f conftest.er1 conftest.err
3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }
3845 done
3846
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main (void)
3852 {
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 ac_clean_files_save=$ac_clean_files
3859 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3860 # Try to create an executable without -o first, disregard a.out.
3861 # It will help us diagnose broken compilers, and finding out an intuition
3862 # of exeext.
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3864 printf %s "checking whether the C compiler works... " >&6; }
3865 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866
3867 # The possible output files:
3868 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869
3870 ac_rmfiles=
3871 for ac_file in $ac_files
3872 do
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3875 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3876 esac
3877 done
3878 rm -f $ac_rmfiles
3879
3880 if { { ac_try="$ac_link_default"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 printf "%s\n" "$ac_try_echo"; } >&5
3887 (eval "$ac_link_default") 2>&5
3888 ac_status=$?
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 then :
3892 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3895 # so that the user can short-circuit this test for compilers unknown to
3896 # Autoconf.
3897 for ac_file in $ac_files ''
3898 do
3899 test -f "$ac_file" || continue
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3902 ;;
3903 [ab].out )
3904 # We found the default executable, but exeext='' is most
3905 # certainly right.
3906 break;;
3907 *.* )
3908 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3909 then :; else
3910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911 fi
3912 # We set ac_cv_exeext here because the later test for it is not
3913 # safe: cross compilers may not add the suffix if given an `-o'
3914 # argument, so we may need to know it at that point already.
3915 # Even if this section looks crufty: it has the advantage of
3916 # actually working.
3917 break;;
3918 * )
3919 break;;
3920 esac
3921 done
3922 test "$ac_cv_exeext" = no && ac_cv_exeext=
3923
3924 else $as_nop
3925 ac_file=''
3926 fi
3927 if test -z "$ac_file"
3928 then :
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3931 printf "%s\n" "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error 77 "C compiler cannot create executables
3937 See \`config.log' for more details" "$LINENO" 5; }
3938 else $as_nop
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 printf "%s\n" "yes" >&6; }
3941 fi
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3943 printf %s "checking for C compiler default output file name... " >&6; }
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945 printf "%s\n" "$ac_file" >&6; }
3946 ac_exeext=$ac_cv_exeext
3947
3948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949 ac_clean_files=$ac_clean_files_save
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 printf %s "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 printf "%s\n" "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3960 ac_status=$?
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }
3963 then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else $as_nop
3978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983 rm -f conftest conftest$ac_cv_exeext
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 printf "%s\n" "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdio.h>
3993 int
3994 main (void)
3995 {
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 printf %s "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 printf "%s\n" "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 printf "%s\n" "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4031 cross_compiling=no
4032 else
4033 if test "$cross_compiling" = maybe; then
4034 cross_compiling=yes
4035 else
4036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error 77 "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 fi
4042 fi
4043 fi
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 printf "%s\n" "$cross_compiling" >&6; }
4046
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 printf %s "checking for suffix of object files... " >&6; }
4051 if test ${ac_cv_objext+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else $as_nop
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main (void)
4060 {
4061
4062 ;
4063 return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.o conftest.obj
4067 if { { ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 printf "%s\n" "$ac_try_echo"; } >&5
4074 (eval "$ac_compile") 2>&5
4075 ac_status=$?
4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }
4078 then :
4079 for ac_file in conftest.o conftest.obj conftest.*; do
4080 test -f "$ac_file" || continue;
4081 case $ac_file in
4082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4084 break;;
4085 esac
4086 done
4087 else $as_nop
4088 printf "%s\n" "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error $? "cannot compute suffix of object files: cannot compile
4094 See \`config.log' for more details" "$LINENO" 5; }
4095 fi
4096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097 fi
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4099 printf "%s\n" "$ac_cv_objext" >&6; }
4100 OBJEXT=$ac_cv_objext
4101 ac_objext=$OBJEXT
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4103 printf %s "checking whether the compiler supports GNU C... " >&6; }
4104 if test ${ac_cv_c_compiler_gnu+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else $as_nop
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main (void)
4113 {
4114 #ifndef __GNUC__
4115 choke me
4116 #endif
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"
4123 then :
4124 ac_compiler_gnu=yes
4125 else $as_nop
4126 ac_compiler_gnu=no
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4130
4131 fi
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4133 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136 if test $ac_compiler_gnu = yes; then
4137 GCC=yes
4138 else
4139 GCC=
4140 fi
4141 ac_test_CFLAGS=${CFLAGS+y}
4142 ac_save_CFLAGS=$CFLAGS
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4144 printf %s "checking whether $CC accepts -g... " >&6; }
4145 if test ${ac_cv_prog_cc_g+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else $as_nop
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 int
4157 main (void)
4158 {
4159
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_g=yes
4167 else $as_nop
4168 CFLAGS=""
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main (void)
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"
4181 then :
4182
4183 else $as_nop
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4185 CFLAGS="-g"
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main (void)
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"
4198 then :
4199 ac_cv_prog_cc_g=yes
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4207 fi
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4210 if test $ac_test_CFLAGS; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4214 CFLAGS="-g -O2"
4215 else
4216 CFLAGS="-g"
4217 fi
4218 else
4219 if test "$GCC" = yes; then
4220 CFLAGS="-O2"
4221 else
4222 CFLAGS=
4223 fi
4224 fi
4225 ac_prog_cc_stdc=no
4226 if test x$ac_prog_cc_stdc = xno
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4229 printf %s "checking for $CC option to enable C11 features... " >&6; }
4230 if test ${ac_cv_prog_cc_c11+y}
4231 then :
4232 printf %s "(cached) " >&6
4233 else $as_nop
4234 ac_cv_prog_cc_c11=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_c_conftest_c11_program
4239 _ACEOF
4240 for ac_arg in '' -std=gnu11
4241 do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"
4244 then :
4245 ac_cv_prog_cc_c11=$ac_arg
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.beam
4248 test "x$ac_cv_prog_cc_c11" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4252 fi
4253
4254 if test "x$ac_cv_prog_cc_c11" = xno
4255 then :
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 printf "%s\n" "unsupported" >&6; }
4258 else $as_nop
4259 if test "x$ac_cv_prog_cc_c11" = x
4260 then :
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 printf "%s\n" "none needed" >&6; }
4263 else $as_nop
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4265 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4266 CC="$CC $ac_cv_prog_cc_c11"
4267 fi
4268 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4269 ac_prog_cc_stdc=c11
4270 fi
4271 fi
4272 if test x$ac_prog_cc_stdc = xno
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4275 printf %s "checking for $CC option to enable C99 features... " >&6; }
4276 if test ${ac_cv_prog_cc_c99+y}
4277 then :
4278 printf %s "(cached) " >&6
4279 else $as_nop
4280 ac_cv_prog_cc_c99=no
4281 ac_save_CC=$CC
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 $ac_c_conftest_c99_program
4285 _ACEOF
4286 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4287 do
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cc_c99=$ac_arg
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.beam
4294 test "x$ac_cv_prog_cc_c99" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4298 fi
4299
4300 if test "x$ac_cv_prog_cc_c99" = xno
4301 then :
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 printf "%s\n" "unsupported" >&6; }
4304 else $as_nop
4305 if test "x$ac_cv_prog_cc_c99" = x
4306 then :
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 printf "%s\n" "none needed" >&6; }
4309 else $as_nop
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4311 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4312 CC="$CC $ac_cv_prog_cc_c99"
4313 fi
4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4315 ac_prog_cc_stdc=c99
4316 fi
4317 fi
4318 if test x$ac_prog_cc_stdc = xno
4319 then :
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4321 printf %s "checking for $CC option to enable C89 features... " >&6; }
4322 if test ${ac_cv_prog_cc_c89+y}
4323 then :
4324 printf %s "(cached) " >&6
4325 else $as_nop
4326 ac_cv_prog_cc_c89=no
4327 ac_save_CC=$CC
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 $ac_c_conftest_c89_program
4331 _ACEOF
4332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4333 do
4334 CC="$ac_save_CC $ac_arg"
4335 if ac_fn_c_try_compile "$LINENO"
4336 then :
4337 ac_cv_prog_cc_c89=$ac_arg
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam
4340 test "x$ac_cv_prog_cc_c89" != "xno" && break
4341 done
4342 rm -f conftest.$ac_ext
4343 CC=$ac_save_CC
4344 fi
4345
4346 if test "x$ac_cv_prog_cc_c89" = xno
4347 then :
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349 printf "%s\n" "unsupported" >&6; }
4350 else $as_nop
4351 if test "x$ac_cv_prog_cc_c89" = x
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354 printf "%s\n" "none needed" >&6; }
4355 else $as_nop
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4357 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4358 CC="$CC $ac_cv_prog_cc_c89"
4359 fi
4360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4361 ac_prog_cc_stdc=c89
4362 fi
4363 fi
4364
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4372 printf %s "checking for a sed that does not truncate output... " >&6; }
4373 if test ${ac_cv_path_SED+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else $as_nop
4377 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4378 for ac_i in 1 2 3 4 5 6 7; do
4379 ac_script="$ac_script$as_nl$ac_script"
4380 done
4381 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4382 { ac_script=; unset ac_script;}
4383 if test -z "$SED"; then
4384 ac_path_SED_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389 IFS=$as_save_IFS
4390 case $as_dir in #(((
4391 '') as_dir=./ ;;
4392 */) ;;
4393 *) as_dir=$as_dir/ ;;
4394 esac
4395 for ac_prog in sed gsed
4396 do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_SED" || continue
4400 # Check for GNU ac_path_SED and select it if it is found.
4401 # Check for GNU $ac_path_SED
4402 case `"$ac_path_SED" --version 2>&1` in
4403 *GNU*)
4404 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4405 *)
4406 ac_count=0
4407 printf %s 0123456789 >"conftest.in"
4408 while :
4409 do
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 printf "%s\n" '' >> "conftest.nl"
4414 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_SED_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_SED="$ac_path_SED"
4420 ac_path_SED_max=$ac_count
4421 fi
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4424 done
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428 $ac_path_SED_found && break 3
4429 done
4430 done
4431 done
4432 IFS=$as_save_IFS
4433 if test -z "$ac_cv_path_SED"; then
4434 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4435 fi
4436 else
4437 ac_cv_path_SED=$SED
4438 fi
4439
4440 fi
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4442 printf "%s\n" "$ac_cv_path_SED" >&6; }
4443 SED="$ac_cv_path_SED"
4444 rm -f conftest.sed
4445
4446 test -z "$SED" && SED=sed
4447 Xsed="$SED -e 1s/^X//"
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4460 printf %s "checking for grep that handles long lines and -e... " >&6; }
4461 if test ${ac_cv_path_GREP+y}
4462 then :
4463 printf %s "(cached) " >&6
4464 else $as_nop
4465 if test -z "$GREP"; then
4466 ac_path_GREP_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 do
4471 IFS=$as_save_IFS
4472 case $as_dir in #(((
4473 '') as_dir=./ ;;
4474 */) ;;
4475 *) as_dir=$as_dir/ ;;
4476 esac
4477 for ac_prog in grep ggrep
4478 do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4481 as_fn_executable_p "$ac_path_GREP" || continue
4482 # Check for GNU ac_path_GREP and select it if it is found.
4483 # Check for GNU $ac_path_GREP
4484 case `"$ac_path_GREP" --version 2>&1` in
4485 *GNU*)
4486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4487 *)
4488 ac_count=0
4489 printf %s 0123456789 >"conftest.in"
4490 while :
4491 do
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 printf "%s\n" 'GREP' >> "conftest.nl"
4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 as_fn_arith $ac_count + 1 && ac_count=$as_val
4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_GREP="$ac_path_GREP"
4502 ac_path_GREP_max=$ac_count
4503 fi
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4506 done
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 esac
4509
4510 $ac_path_GREP_found && break 3
4511 done
4512 done
4513 done
4514 IFS=$as_save_IFS
4515 if test -z "$ac_cv_path_GREP"; then
4516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517 fi
4518 else
4519 ac_cv_path_GREP=$GREP
4520 fi
4521
4522 fi
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4525 GREP="$ac_cv_path_GREP"
4526
4527
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529 printf %s "checking for egrep... " >&6; }
4530 if test ${ac_cv_path_EGREP+y}
4531 then :
4532 printf %s "(cached) " >&6
4533 else $as_nop
4534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4535 then ac_cv_path_EGREP="$GREP -E"
4536 else
4537 if test -z "$EGREP"; then
4538 ac_path_EGREP_found=false
4539 # Loop through the user's path and test for each of PROGNAME-LIST
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 do
4543 IFS=$as_save_IFS
4544 case $as_dir in #(((
4545 '') as_dir=./ ;;
4546 */) ;;
4547 *) as_dir=$as_dir/ ;;
4548 esac
4549 for ac_prog in egrep
4550 do
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4553 as_fn_executable_p "$ac_path_EGREP" || continue
4554 # Check for GNU ac_path_EGREP and select it if it is found.
4555 # Check for GNU $ac_path_EGREP
4556 case `"$ac_path_EGREP" --version 2>&1` in
4557 *GNU*)
4558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559 *)
4560 ac_count=0
4561 printf %s 0123456789 >"conftest.in"
4562 while :
4563 do
4564 cat "conftest.in" "conftest.in" >"conftest.tmp"
4565 mv "conftest.tmp" "conftest.in"
4566 cp "conftest.in" "conftest.nl"
4567 printf "%s\n" 'EGREP' >> "conftest.nl"
4568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570 as_fn_arith $ac_count + 1 && ac_count=$as_val
4571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4572 # Best one so far, save it but keep looking for a better one
4573 ac_cv_path_EGREP="$ac_path_EGREP"
4574 ac_path_EGREP_max=$ac_count
4575 fi
4576 # 10*(2^10) chars as input seems more than enough
4577 test $ac_count -gt 10 && break
4578 done
4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582 $ac_path_EGREP_found && break 3
4583 done
4584 done
4585 done
4586 IFS=$as_save_IFS
4587 if test -z "$ac_cv_path_EGREP"; then
4588 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 fi
4590 else
4591 ac_cv_path_EGREP=$EGREP
4592 fi
4593
4594 fi
4595 fi
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4597 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4598 EGREP="$ac_cv_path_EGREP"
4599
4600
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4602 printf %s "checking for fgrep... " >&6; }
4603 if test ${ac_cv_path_FGREP+y}
4604 then :
4605 printf %s "(cached) " >&6
4606 else $as_nop
4607 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4608 then ac_cv_path_FGREP="$GREP -F"
4609 else
4610 if test -z "$FGREP"; then
4611 ac_path_FGREP_found=false
4612 # Loop through the user's path and test for each of PROGNAME-LIST
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615 do
4616 IFS=$as_save_IFS
4617 case $as_dir in #(((
4618 '') as_dir=./ ;;
4619 */) ;;
4620 *) as_dir=$as_dir/ ;;
4621 esac
4622 for ac_prog in fgrep
4623 do
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4626 as_fn_executable_p "$ac_path_FGREP" || continue
4627 # Check for GNU ac_path_FGREP and select it if it is found.
4628 # Check for GNU $ac_path_FGREP
4629 case `"$ac_path_FGREP" --version 2>&1` in
4630 *GNU*)
4631 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4632 *)
4633 ac_count=0
4634 printf %s 0123456789 >"conftest.in"
4635 while :
4636 do
4637 cat "conftest.in" "conftest.in" >"conftest.tmp"
4638 mv "conftest.tmp" "conftest.in"
4639 cp "conftest.in" "conftest.nl"
4640 printf "%s\n" 'FGREP' >> "conftest.nl"
4641 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643 as_fn_arith $ac_count + 1 && ac_count=$as_val
4644 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4645 # Best one so far, save it but keep looking for a better one
4646 ac_cv_path_FGREP="$ac_path_FGREP"
4647 ac_path_FGREP_max=$ac_count
4648 fi
4649 # 10*(2^10) chars as input seems more than enough
4650 test $ac_count -gt 10 && break
4651 done
4652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 esac
4654
4655 $ac_path_FGREP_found && break 3
4656 done
4657 done
4658 done
4659 IFS=$as_save_IFS
4660 if test -z "$ac_cv_path_FGREP"; then
4661 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662 fi
4663 else
4664 ac_cv_path_FGREP=$FGREP
4665 fi
4666
4667 fi
4668 fi
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4670 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4671 FGREP="$ac_cv_path_FGREP"
4672
4673
4674 test -z "$GREP" && GREP=grep
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694 # Check whether --with-gnu-ld was given.
4695 if test ${with_gnu_ld+y}
4696 then :
4697 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4698 else $as_nop
4699 with_gnu_ld=no
4700 fi
4701
4702 ac_prog=ld
4703 if test yes = "$GCC"; then
4704 # Check if gcc -print-prog-name=ld gives a path.
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4706 printf %s "checking for ld used by $CC... " >&6; }
4707 case $host in
4708 *-*-mingw*)
4709 # gcc leaves a trailing carriage return, which upsets mingw
4710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4711 *)
4712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4713 esac
4714 case $ac_prog in
4715 # Accept absolute paths.
4716 [\\/]* | ?:[\\/]*)
4717 re_direlt='/[^/][^/]*/\.\./'
4718 # Canonicalize the pathname of ld
4719 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4720 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4721 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4722 done
4723 test -z "$LD" && LD=$ac_prog
4724 ;;
4725 "")
4726 # If it fails, then pretend we aren't using GCC.
4727 ac_prog=ld
4728 ;;
4729 *)
4730 # If it is relative, then search for the first ld in PATH.
4731 with_gnu_ld=unknown
4732 ;;
4733 esac
4734 elif test yes = "$with_gnu_ld"; then
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4736 printf %s "checking for GNU ld... " >&6; }
4737 else
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4739 printf %s "checking for non-GNU ld... " >&6; }
4740 fi
4741 if test ${lt_cv_path_LD+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 if test -z "$LD"; then
4746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4747 for ac_dir in $PATH; do
4748 IFS=$lt_save_ifs
4749 test -z "$ac_dir" && ac_dir=.
4750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4751 lt_cv_path_LD=$ac_dir/$ac_prog
4752 # Check to see if the program is GNU ld. I'd rather use --version,
4753 # but apparently some variants of GNU ld only accept -v.
4754 # Break only if it was the GNU/non-GNU ld that we prefer.
4755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4756 *GNU* | *'with BFD'*)
4757 test no != "$with_gnu_ld" && break
4758 ;;
4759 *)
4760 test yes != "$with_gnu_ld" && break
4761 ;;
4762 esac
4763 fi
4764 done
4765 IFS=$lt_save_ifs
4766 else
4767 lt_cv_path_LD=$LD # Let the user override the test with a path.
4768 fi
4769 fi
4770
4771 LD=$lt_cv_path_LD
4772 if test -n "$LD"; then
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4774 printf "%s\n" "$LD" >&6; }
4775 else
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 printf "%s\n" "no" >&6; }
4778 fi
4779 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4781 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4782 if test ${lt_cv_prog_gnu_ld+y}
4783 then :
4784 printf %s "(cached) " >&6
4785 else $as_nop
4786 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4787 case `$LD -v 2>&1 </dev/null` in
4788 *GNU* | *'with BFD'*)
4789 lt_cv_prog_gnu_ld=yes
4790 ;;
4791 *)
4792 lt_cv_prog_gnu_ld=no
4793 ;;
4794 esac
4795 fi
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4797 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4798 with_gnu_ld=$lt_cv_prog_gnu_ld
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4809 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4810 if test ${lt_cv_path_NM+y}
4811 then :
4812 printf %s "(cached) " >&6
4813 else $as_nop
4814 if test -n "$NM"; then
4815 # Let the user override the test.
4816 lt_cv_path_NM=$NM
4817 else
4818 lt_nm_to_check=${ac_tool_prefix}nm
4819 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4820 lt_nm_to_check="$lt_nm_to_check nm"
4821 fi
4822 for lt_tmp_nm in $lt_nm_to_check; do
4823 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4824 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4825 IFS=$lt_save_ifs
4826 test -z "$ac_dir" && ac_dir=.
4827 tmp_nm=$ac_dir/$lt_tmp_nm
4828 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4829 # Check to see if the nm accepts a BSD-compat flag.
4830 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4831 # nm: unknown option "B" ignored
4832 # Tru64's nm complains that /dev/null is an invalid object file
4833 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4834 case $build_os in
4835 mingw*) lt_bad_file=conftest.nm/nofile ;;
4836 *) lt_bad_file=/dev/null ;;
4837 esac
4838 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4839 *$lt_bad_file* | *'Invalid file or object type'*)
4840 lt_cv_path_NM="$tmp_nm -B"
4841 break 2
4842 ;;
4843 *)
4844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4845 */dev/null*)
4846 lt_cv_path_NM="$tmp_nm -p"
4847 break 2
4848 ;;
4849 *)
4850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4851 continue # so that we can try to find one that supports BSD flags
4852 ;;
4853 esac
4854 ;;
4855 esac
4856 fi
4857 done
4858 IFS=$lt_save_ifs
4859 done
4860 : ${lt_cv_path_NM=no}
4861 fi
4862 fi
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4864 printf "%s\n" "$lt_cv_path_NM" >&6; }
4865 if test no != "$lt_cv_path_NM"; then
4866 NM=$lt_cv_path_NM
4867 else
4868 # Didn't find any BSD compatible name lister, look for dumpbin.
4869 if test -n "$DUMPBIN"; then :
4870 # Let the user override the test.
4871 else
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in dumpbin "link -dump"
4874 do
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 printf %s "checking for $ac_word... " >&6; }
4879 if test ${ac_cv_prog_DUMPBIN+y}
4880 then :
4881 printf %s "(cached) " >&6
4882 else $as_nop
4883 if test -n "$DUMPBIN"; then
4884 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 case $as_dir in #(((
4891 '') as_dir=./ ;;
4892 */) ;;
4893 *) as_dir=$as_dir/ ;;
4894 esac
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 fi
4906 fi
4907 DUMPBIN=$ac_cv_prog_DUMPBIN
4908 if test -n "$DUMPBIN"; then
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4910 printf "%s\n" "$DUMPBIN" >&6; }
4911 else
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 printf "%s\n" "no" >&6; }
4914 fi
4915
4916
4917 test -n "$DUMPBIN" && break
4918 done
4919 fi
4920 if test -z "$DUMPBIN"; then
4921 ac_ct_DUMPBIN=$DUMPBIN
4922 for ac_prog in dumpbin "link -dump"
4923 do
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 printf %s "checking for $ac_word... " >&6; }
4928 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4929 then :
4930 printf %s "(cached) " >&6
4931 else $as_nop
4932 if test -n "$ac_ct_DUMPBIN"; then
4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938 IFS=$as_save_IFS
4939 case $as_dir in #(((
4940 '') as_dir=./ ;;
4941 */) ;;
4942 *) as_dir=$as_dir/ ;;
4943 esac
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4957 if test -n "$ac_ct_DUMPBIN"; then
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4959 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4960 else
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 printf "%s\n" "no" >&6; }
4963 fi
4964
4965
4966 test -n "$ac_ct_DUMPBIN" && break
4967 done
4968
4969 if test "x$ac_ct_DUMPBIN" = x; then
4970 DUMPBIN=":"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 DUMPBIN=$ac_ct_DUMPBIN
4979 fi
4980 fi
4981
4982 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4983 *COFF*)
4984 DUMPBIN="$DUMPBIN -symbols -headers"
4985 ;;
4986 *)
4987 DUMPBIN=:
4988 ;;
4989 esac
4990 fi
4991
4992 if test : != "$DUMPBIN"; then
4993 NM=$DUMPBIN
4994 fi
4995 fi
4996 test -z "$NM" && NM=nm
4997
4998
4999
5000
5001
5002
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5004 printf %s "checking the name lister ($NM) interface... " >&6; }
5005 if test ${lt_cv_nm_interface+y}
5006 then :
5007 printf %s "(cached) " >&6
5008 else $as_nop
5009 lt_cv_nm_interface="BSD nm"
5010 echo "int some_variable = 0;" > conftest.$ac_ext
5011 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5012 (eval "$ac_compile" 2>conftest.err)
5013 cat conftest.err >&5
5014 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5015 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5016 cat conftest.err >&5
5017 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5018 cat conftest.out >&5
5019 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5020 lt_cv_nm_interface="MS dumpbin"
5021 fi
5022 rm -f conftest*
5023 fi
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5025 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5026
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5028 printf %s "checking whether ln -s works... " >&6; }
5029 LN_S=$as_ln_s
5030 if test "$LN_S" = "ln -s"; then
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 printf "%s\n" "yes" >&6; }
5033 else
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5035 printf "%s\n" "no, using $LN_S" >&6; }
5036 fi
5037
5038 # find the maximum length of command line arguments
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5040 printf %s "checking the maximum length of command line arguments... " >&6; }
5041 if test ${lt_cv_sys_max_cmd_len+y}
5042 then :
5043 printf %s "(cached) " >&6
5044 else $as_nop
5045 i=0
5046 teststring=ABCD
5047
5048 case $build_os in
5049 msdosdjgpp*)
5050 # On DJGPP, this test can blow up pretty badly due to problems in libc
5051 # (any single argument exceeding 2000 bytes causes a buffer overrun
5052 # during glob expansion). Even if it were fixed, the result of this
5053 # check would be larger than it should be.
5054 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5055 ;;
5056
5057 gnu*)
5058 # Under GNU Hurd, this test is not required because there is
5059 # no limit to the length of command line arguments.
5060 # Libtool will interpret -1 as no limit whatsoever
5061 lt_cv_sys_max_cmd_len=-1;
5062 ;;
5063
5064 cygwin* | mingw* | cegcc*)
5065 # On Win9x/ME, this test blows up -- it succeeds, but takes
5066 # about 5 minutes as the teststring grows exponentially.
5067 # Worse, since 9x/ME are not pre-emptively multitasking,
5068 # you end up with a "frozen" computer, even though with patience
5069 # the test eventually succeeds (with a max line length of 256k).
5070 # Instead, let's just punt: use the minimum linelength reported by
5071 # all of the supported platforms: 8192 (on NT/2K/XP).
5072 lt_cv_sys_max_cmd_len=8192;
5073 ;;
5074
5075 mint*)
5076 # On MiNT this can take a long time and run out of memory.
5077 lt_cv_sys_max_cmd_len=8192;
5078 ;;
5079
5080 amigaos*)
5081 # On AmigaOS with pdksh, this test takes hours, literally.
5082 # So we just punt and use a minimum line length of 8192.
5083 lt_cv_sys_max_cmd_len=8192;
5084 ;;
5085
5086 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5087 # This has been around since 386BSD, at least. Likely further.
5088 if test -x /sbin/sysctl; then
5089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5090 elif test -x /usr/sbin/sysctl; then
5091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5092 else
5093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5094 fi
5095 # And add a safety zone
5096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5098 ;;
5099
5100 interix*)
5101 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5102 lt_cv_sys_max_cmd_len=196608
5103 ;;
5104
5105 os2*)
5106 # The test takes a long time on OS/2.
5107 lt_cv_sys_max_cmd_len=8192
5108 ;;
5109
5110 osf*)
5111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5113 # nice to cause kernel panics so lets avoid the loop below.
5114 # First set a reasonable default.
5115 lt_cv_sys_max_cmd_len=16384
5116 #
5117 if test -x /sbin/sysconfig; then
5118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5119 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5120 esac
5121 fi
5122 ;;
5123 sco3.2v5*)
5124 lt_cv_sys_max_cmd_len=102400
5125 ;;
5126 sysv5* | sco5v6* | sysv4.2uw2*)
5127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5128 if test -n "$kargmax"; then
5129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5130 else
5131 lt_cv_sys_max_cmd_len=32768
5132 fi
5133 ;;
5134 *)
5135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5136 if test -n "$lt_cv_sys_max_cmd_len" && \
5137 test undefined != "$lt_cv_sys_max_cmd_len"; then
5138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5140 else
5141 # Make teststring a little bigger before we do anything with it.
5142 # a 1K string should be a reasonable start.
5143 for i in 1 2 3 4 5 6 7 8; do
5144 teststring=$teststring$teststring
5145 done
5146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5147 # If test is not a shell built-in, we'll probably end up computing a
5148 # maximum length that is only half of the actual maximum length, but
5149 # we can't tell.
5150 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5151 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5152 test 17 != "$i" # 1/2 MB should be enough
5153 do
5154 i=`expr $i + 1`
5155 teststring=$teststring$teststring
5156 done
5157 # Only check the string length outside the loop.
5158 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5159 teststring=
5160 # Add a significant safety factor because C++ compilers can tack on
5161 # massive amounts of additional arguments before passing them to the
5162 # linker. It appears as though 1/2 is a usable value.
5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5164 fi
5165 ;;
5166 esac
5167
5168 fi
5169
5170 if test -n "$lt_cv_sys_max_cmd_len"; then
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5172 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5173 else
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5175 printf "%s\n" "none" >&6; }
5176 fi
5177 max_cmd_len=$lt_cv_sys_max_cmd_len
5178
5179
5180
5181
5182
5183
5184 : ${CP="cp -f"}
5185 : ${MV="mv -f"}
5186 : ${RM="rm -f"}
5187
5188 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5189 lt_unset=unset
5190 else
5191 lt_unset=false
5192 fi
5193
5194
5195
5196
5197
5198 # test EBCDIC or ASCII
5199 case `echo X|tr X '\101'` in
5200 A) # ASCII based system
5201 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5202 lt_SP2NL='tr \040 \012'
5203 lt_NL2SP='tr \015\012 \040\040'
5204 ;;
5205 *) # EBCDIC based system
5206 lt_SP2NL='tr \100 \n'
5207 lt_NL2SP='tr \r\n \100\100'
5208 ;;
5209 esac
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5220 printf %s "checking how to convert $build file names to $host format... " >&6; }
5221 if test ${lt_cv_to_host_file_cmd+y}
5222 then :
5223 printf %s "(cached) " >&6
5224 else $as_nop
5225 case $host in
5226 *-*-mingw* )
5227 case $build in
5228 *-*-mingw* ) # actually msys
5229 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5230 ;;
5231 *-*-cygwin* )
5232 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5233 ;;
5234 * ) # otherwise, assume *nix
5235 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5236 ;;
5237 esac
5238 ;;
5239 *-*-cygwin* )
5240 case $build in
5241 *-*-mingw* ) # actually msys
5242 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5243 ;;
5244 *-*-cygwin* )
5245 lt_cv_to_host_file_cmd=func_convert_file_noop
5246 ;;
5247 * ) # otherwise, assume *nix
5248 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5249 ;;
5250 esac
5251 ;;
5252 * ) # unhandled hosts (and "normal" native builds)
5253 lt_cv_to_host_file_cmd=func_convert_file_noop
5254 ;;
5255 esac
5256
5257 fi
5258
5259 to_host_file_cmd=$lt_cv_to_host_file_cmd
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5261 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5262
5263
5264
5265
5266
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5268 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5269 if test ${lt_cv_to_tool_file_cmd+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else $as_nop
5273 #assume ordinary cross tools, or native build.
5274 lt_cv_to_tool_file_cmd=func_convert_file_noop
5275 case $host in
5276 *-*-mingw* )
5277 case $build in
5278 *-*-mingw* ) # actually msys
5279 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5280 ;;
5281 esac
5282 ;;
5283 esac
5284
5285 fi
5286
5287 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5289 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5290
5291
5292
5293
5294
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5296 printf %s "checking for $LD option to reload object files... " >&6; }
5297 if test ${lt_cv_ld_reload_flag+y}
5298 then :
5299 printf %s "(cached) " >&6
5300 else $as_nop
5301 lt_cv_ld_reload_flag='-r'
5302 fi
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5304 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5305 reload_flag=$lt_cv_ld_reload_flag
5306 case $reload_flag in
5307 "" | " "*) ;;
5308 *) reload_flag=" $reload_flag" ;;
5309 esac
5310 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5311 case $host_os in
5312 cygwin* | mingw* | pw32* | cegcc*)
5313 if test yes != "$GCC"; then
5314 reload_cmds=false
5315 fi
5316 ;;
5317 darwin*)
5318 if test yes = "$GCC"; then
5319 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5320 else
5321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5322 fi
5323 ;;
5324 esac
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 printf %s "checking for $ac_word... " >&6; }
5339 if test ${ac_cv_prog_OBJDUMP+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else $as_nop
5343 if test -n "$OBJDUMP"; then
5344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 case $as_dir in #(((
5351 '') as_dir=./ ;;
5352 */) ;;
5353 *) as_dir=$as_dir/ ;;
5354 esac
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361 done
5362 done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 OBJDUMP=$ac_cv_prog_OBJDUMP
5368 if test -n "$OBJDUMP"; then
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5370 printf "%s\n" "$OBJDUMP" >&6; }
5371 else
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 printf "%s\n" "no" >&6; }
5374 fi
5375
5376
5377 fi
5378 if test -z "$ac_cv_prog_OBJDUMP"; then
5379 ac_ct_OBJDUMP=$OBJDUMP
5380 # Extract the first word of "objdump", so it can be a program name with args.
5381 set dummy objdump; ac_word=$2
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 printf %s "checking for $ac_word... " >&6; }
5384 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5385 then :
5386 printf %s "(cached) " >&6
5387 else $as_nop
5388 if test -n "$ac_ct_OBJDUMP"; then
5389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 case $as_dir in #(((
5396 '') as_dir=./ ;;
5397 */) ;;
5398 *) as_dir=$as_dir/ ;;
5399 esac
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5415 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5416 else
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 printf "%s\n" "no" >&6; }
5419 fi
5420
5421 if test "x$ac_ct_OBJDUMP" = x; then
5422 OBJDUMP="false"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430 OBJDUMP=$ac_ct_OBJDUMP
5431 fi
5432 else
5433 OBJDUMP="$ac_cv_prog_OBJDUMP"
5434 fi
5435
5436 test -z "$OBJDUMP" && OBJDUMP=objdump
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5447 printf %s "checking how to recognize dependent libraries... " >&6; }
5448 if test ${lt_cv_deplibs_check_method+y}
5449 then :
5450 printf %s "(cached) " >&6
5451 else $as_nop
5452 lt_cv_file_magic_cmd='$MAGIC_CMD'
5453 lt_cv_file_magic_test_file=
5454 lt_cv_deplibs_check_method='unknown'
5455 # Need to set the preceding variable on all platforms that support
5456 # interlibrary dependencies.
5457 # 'none' -- dependencies not supported.
5458 # 'unknown' -- same as none, but documents that we really don't know.
5459 # 'pass_all' -- all dependencies passed with no checks.
5460 # 'test_compile' -- check by making test program.
5461 # 'file_magic [[regex]]' -- check by looking for files in library path
5462 # that responds to the $file_magic_cmd with a given extended regex.
5463 # If you have 'file' or equivalent on your system and you're not sure
5464 # whether 'pass_all' will *always* work, you probably want this one.
5465
5466 case $host_os in
5467 aix[4-9]*)
5468 lt_cv_deplibs_check_method=pass_all
5469 ;;
5470
5471 beos*)
5472 lt_cv_deplibs_check_method=pass_all
5473 ;;
5474
5475 bsdi[45]*)
5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5477 lt_cv_file_magic_cmd='/usr/bin/file -L'
5478 lt_cv_file_magic_test_file=/shlib/libc.so
5479 ;;
5480
5481 cygwin*)
5482 # func_win32_libid is a shell function defined in ltmain.sh
5483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5484 lt_cv_file_magic_cmd='func_win32_libid'
5485 ;;
5486
5487 mingw* | pw32*)
5488 # Base MSYS/MinGW do not provide the 'file' command needed by
5489 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5490 # unless we find 'file', for example because we are cross-compiling.
5491 if ( file / ) >/dev/null 2>&1; then
5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493 lt_cv_file_magic_cmd='func_win32_libid'
5494 else
5495 # Keep this pattern in sync with the one in func_win32_libid.
5496 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5497 lt_cv_file_magic_cmd='$OBJDUMP -f'
5498 fi
5499 ;;
5500
5501 cegcc*)
5502 # use the weaker test based on 'objdump'. See mingw*.
5503 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5504 lt_cv_file_magic_cmd='$OBJDUMP -f'
5505 ;;
5506
5507 darwin* | rhapsody*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
5511 freebsd* | dragonfly*)
5512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513 case $host_cpu in
5514 i*86 )
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520 ;;
5521 esac
5522 else
5523 lt_cv_deplibs_check_method=pass_all
5524 fi
5525 ;;
5526
5527 haiku*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531 hpux10.20* | hpux11*)
5532 lt_cv_file_magic_cmd=/usr/bin/file
5533 case $host_cpu in
5534 ia64*)
5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537 ;;
5538 hppa*64*)
5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5541 ;;
5542 *)
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545 ;;
5546 esac
5547 ;;
5548
5549 interix[3-9]*)
5550 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5552 ;;
5553
5554 irix5* | irix6* | nonstopux*)
5555 case $LD in
5556 *-32|*"-32 ") libmagic=32-bit;;
5557 *-n32|*"-n32 ") libmagic=N32;;
5558 *-64|*"-64 ") libmagic=64-bit;;
5559 *) libmagic=never-match;;
5560 esac
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564 # This must be glibc/ELF.
5565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 netbsd* | netbsdelf*-gnu)
5570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5572 else
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5574 fi
5575 ;;
5576
5577 newos6*)
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5581 ;;
5582
5583 *nto* | *qnx*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586
5587 openbsd* | bitrig*)
5588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5590 else
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5592 fi
5593 ;;
5594
5595 osf3* | osf4* | osf5*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 rdos*)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
5603 solaris*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
5607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 sysv4 | sysv4.3*)
5612 case $host_vendor in
5613 motorola)
5614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5616 ;;
5617 ncr)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620 sequent)
5621 lt_cv_file_magic_cmd='/bin/file'
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5623 ;;
5624 sni)
5625 lt_cv_file_magic_cmd='/bin/file'
5626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627 lt_cv_file_magic_test_file=/lib/libc.so
5628 ;;
5629 siemens)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632 pc)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635 esac
5636 ;;
5637
5638 tpf*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641 os2*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644 esac
5645
5646 fi
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5648 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5649
5650 file_magic_glob=
5651 want_nocaseglob=no
5652 if test "$build" = "$host"; then
5653 case $host_os in
5654 mingw* | pw32*)
5655 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5656 want_nocaseglob=yes
5657 else
5658 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5659 fi
5660 ;;
5661 esac
5662 fi
5663
5664 file_magic_cmd=$lt_cv_file_magic_cmd
5665 deplibs_check_method=$lt_cv_deplibs_check_method
5666 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 printf %s "checking for $ac_word... " >&6; }
5694 if test ${ac_cv_prog_DLLTOOL+y}
5695 then :
5696 printf %s "(cached) " >&6
5697 else $as_nop
5698 if test -n "$DLLTOOL"; then
5699 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 case $as_dir in #(((
5706 '') as_dir=./ ;;
5707 */) ;;
5708 *) as_dir=$as_dir/ ;;
5709 esac
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 DLLTOOL=$ac_cv_prog_DLLTOOL
5723 if test -n "$DLLTOOL"; then
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5725 printf "%s\n" "$DLLTOOL" >&6; }
5726 else
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 printf "%s\n" "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if test -z "$ac_cv_prog_DLLTOOL"; then
5734 ac_ct_DLLTOOL=$DLLTOOL
5735 # Extract the first word of "dlltool", so it can be a program name with args.
5736 set dummy dlltool; ac_word=$2
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 printf %s "checking for $ac_word... " >&6; }
5739 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else $as_nop
5743 if test -n "$ac_ct_DLLTOOL"; then
5744 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 case $as_dir in #(((
5751 '') as_dir=./ ;;
5752 */) ;;
5753 *) as_dir=$as_dir/ ;;
5754 esac
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5768 if test -n "$ac_ct_DLLTOOL"; then
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5770 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5771 else
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 printf "%s\n" "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_DLLTOOL" = x; then
5777 DLLTOOL="false"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 DLLTOOL=$ac_ct_DLLTOOL
5786 fi
5787 else
5788 DLLTOOL="$ac_cv_prog_DLLTOOL"
5789 fi
5790
5791 test -z "$DLLTOOL" && DLLTOOL=dlltool
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5803 printf %s "checking how to associate runtime and link libraries... " >&6; }
5804 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5805 then :
5806 printf %s "(cached) " >&6
5807 else $as_nop
5808 lt_cv_sharedlib_from_linklib_cmd='unknown'
5809
5810 case $host_os in
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 # two different shell functions defined in ltmain.sh;
5813 # decide which one to use based on capabilities of $DLLTOOL
5814 case `$DLLTOOL --help 2>&1` in
5815 *--identify-strict*)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5817 ;;
5818 *)
5819 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5820 ;;
5821 esac
5822 ;;
5823 *)
5824 # fallback: assume linklib IS sharedlib
5825 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5826 ;;
5827 esac
5828
5829 fi
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 for ac_prog in ar
5844 do
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 printf %s "checking for $ac_word... " >&6; }
5849 if test ${ac_cv_prog_AR+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 if test -n "$AR"; then
5854 ac_cv_prog_AR="$AR" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 case $as_dir in #(((
5861 '') as_dir=./ ;;
5862 */) ;;
5863 *) as_dir=$as_dir/ ;;
5864 esac
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 AR=$ac_cv_prog_AR
5878 if test -n "$AR"; then
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5880 printf "%s\n" "$AR" >&6; }
5881 else
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 printf "%s\n" "no" >&6; }
5884 fi
5885
5886
5887 test -n "$AR" && break
5888 done
5889 fi
5890 if test -z "$AR"; then
5891 ac_ct_AR=$AR
5892 for ac_prog in ar
5893 do
5894 # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 printf %s "checking for $ac_word... " >&6; }
5898 if test ${ac_cv_prog_ac_ct_AR+y}
5899 then :
5900 printf %s "(cached) " >&6
5901 else $as_nop
5902 if test -n "$ac_ct_AR"; then
5903 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 case $as_dir in #(((
5910 '') as_dir=./ ;;
5911 */) ;;
5912 *) as_dir=$as_dir/ ;;
5913 esac
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_AR="$ac_prog"
5917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5927 if test -n "$ac_ct_AR"; then
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5929 printf "%s\n" "$ac_ct_AR" >&6; }
5930 else
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 printf "%s\n" "no" >&6; }
5933 fi
5934
5935
5936 test -n "$ac_ct_AR" && break
5937 done
5938
5939 if test "x$ac_ct_AR" = x; then
5940 AR="false"
5941 else
5942 case $cross_compiling:$ac_tool_warned in
5943 yes:)
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5947 esac
5948 AR=$ac_ct_AR
5949 fi
5950 fi
5951
5952 : ${AR=ar}
5953 : ${AR_FLAGS=cr}
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5966 printf %s "checking for archiver @FILE support... " >&6; }
5967 if test ${lt_cv_ar_at_file+y}
5968 then :
5969 printf %s "(cached) " >&6
5970 else $as_nop
5971 lt_cv_ar_at_file=no
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974
5975 int
5976 main (void)
5977 {
5978
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"
5984 then :
5985 echo conftest.$ac_objext > conftest.lst
5986 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5988 (eval $lt_ar_try) 2>&5
5989 ac_status=$?
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992 if test 0 -eq "$ac_status"; then
5993 # Ensure the archiver fails upon bogus file names.
5994 rm -f conftest.$ac_objext libconftest.a
5995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996 (eval $lt_ar_try) 2>&5
5997 ac_status=$?
5998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }
6000 if test 0 -ne "$ac_status"; then
6001 lt_cv_ar_at_file=@
6002 fi
6003 fi
6004 rm -f conftest.* libconftest.a
6005
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6008
6009 fi
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6011 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6012
6013 if test no = "$lt_cv_ar_at_file"; then
6014 archiver_list_spec=
6015 else
6016 archiver_list_spec=$lt_cv_ar_at_file
6017 fi
6018
6019
6020
6021
6022
6023
6024
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}strip; ac_word=$2
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 printf %s "checking for $ac_word... " >&6; }
6030 if test ${ac_cv_prog_STRIP+y}
6031 then :
6032 printf %s "(cached) " >&6
6033 else $as_nop
6034 if test -n "$STRIP"; then
6035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040 IFS=$as_save_IFS
6041 case $as_dir in #(((
6042 '') as_dir=./ ;;
6043 */) ;;
6044 *) as_dir=$as_dir/ ;;
6045 esac
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 STRIP=$ac_cv_prog_STRIP
6059 if test -n "$STRIP"; then
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6061 printf "%s\n" "$STRIP" >&6; }
6062 else
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 printf "%s\n" "no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_STRIP"; then
6070 ac_ct_STRIP=$STRIP
6071 # Extract the first word of "strip", so it can be a program name with args.
6072 set dummy strip; ac_word=$2
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 printf %s "checking for $ac_word... " >&6; }
6075 if test ${ac_cv_prog_ac_ct_STRIP+y}
6076 then :
6077 printf %s "(cached) " >&6
6078 else $as_nop
6079 if test -n "$ac_ct_STRIP"; then
6080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 case $as_dir in #(((
6087 '') as_dir=./ ;;
6088 */) ;;
6089 *) as_dir=$as_dir/ ;;
6090 esac
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_ac_ct_STRIP="strip"
6094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6104 if test -n "$ac_ct_STRIP"; then
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6106 printf "%s\n" "$ac_ct_STRIP" >&6; }
6107 else
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 printf "%s\n" "no" >&6; }
6110 fi
6111
6112 if test "x$ac_ct_STRIP" = x; then
6113 STRIP=":"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 STRIP=$ac_ct_STRIP
6122 fi
6123 else
6124 STRIP="$ac_cv_prog_STRIP"
6125 fi
6126
6127 test -z "$STRIP" && STRIP=:
6128
6129
6130
6131
6132
6133
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 printf %s "checking for $ac_word... " >&6; }
6139 if test ${ac_cv_prog_RANLIB+y}
6140 then :
6141 printf %s "(cached) " >&6
6142 else $as_nop
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 case $as_dir in #(((
6151 '') as_dir=./ ;;
6152 */) ;;
6153 *) as_dir=$as_dir/ ;;
6154 esac
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161 done
6162 done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6170 printf "%s\n" "$RANLIB" >&6; }
6171 else
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 printf "%s\n" "no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 printf %s "checking for $ac_word... " >&6; }
6184 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6185 then :
6186 printf %s "(cached) " >&6
6187 else $as_nop
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 case $as_dir in #(((
6196 '') as_dir=./ ;;
6197 */) ;;
6198 *) as_dir=$as_dir/ ;;
6199 esac
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_ac_ct_RANLIB="ranlib"
6203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6213 if test -n "$ac_ct_RANLIB"; then
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6215 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6216 else
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 printf "%s\n" "no" >&6; }
6219 fi
6220
6221 if test "x$ac_ct_RANLIB" = x; then
6222 RANLIB=":"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 RANLIB=$ac_ct_RANLIB
6231 fi
6232 else
6233 RANLIB="$ac_cv_prog_RANLIB"
6234 fi
6235
6236 test -z "$RANLIB" && RANLIB=:
6237
6238
6239
6240
6241
6242
6243 # Determine commands to create old-style static archives.
6244 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6245 old_postinstall_cmds='chmod 644 $oldlib'
6246 old_postuninstall_cmds=
6247
6248 if test -n "$RANLIB"; then
6249 case $host_os in
6250 bitrig* | openbsd*)
6251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6252 ;;
6253 *)
6254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6255 ;;
6256 esac
6257 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6258 fi
6259
6260 case $host_os in
6261 darwin*)
6262 lock_old_archive_extraction=yes ;;
6263 *)
6264 lock_old_archive_extraction=no ;;
6265 esac
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 for ac_prog in gawk mawk nawk awk
6288 do
6289 # Extract the first word of "$ac_prog", so it can be a program name with args.
6290 set dummy $ac_prog; ac_word=$2
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 printf %s "checking for $ac_word... " >&6; }
6293 if test ${ac_cv_prog_AWK+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else $as_nop
6297 if test -n "$AWK"; then
6298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303 IFS=$as_save_IFS
6304 case $as_dir in #(((
6305 '') as_dir=./ ;;
6306 */) ;;
6307 *) as_dir=$as_dir/ ;;
6308 esac
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_AWK="$ac_prog"
6312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 AWK=$ac_cv_prog_AWK
6322 if test -n "$AWK"; then
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6324 printf "%s\n" "$AWK" >&6; }
6325 else
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 printf "%s\n" "no" >&6; }
6328 fi
6329
6330
6331 test -n "$AWK" && break
6332 done
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352 # If no C compiler was specified, use CC.
6353 LTCC=${LTCC-"$CC"}
6354
6355 # If no C compiler flags were specified, use CFLAGS.
6356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6357
6358 # Allow CC to be a program name with arguments.
6359 compiler=$CC
6360
6361
6362 # Check for command to grab the raw symbol name followed by C symbol from nm.
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6364 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6365 if test ${lt_cv_sys_global_symbol_pipe+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else $as_nop
6369
6370 # These are sane defaults that work on at least a few old systems.
6371 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6372
6373 # Character class describing NM global symbol codes.
6374 symcode='[BCDEGRST]'
6375
6376 # Regexp to match symbols that can be accessed directly from C.
6377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6378
6379 # Define system-specific variables.
6380 case $host_os in
6381 aix*)
6382 symcode='[BCDT]'
6383 ;;
6384 cygwin* | mingw* | pw32* | cegcc*)
6385 symcode='[ABCDGISTW]'
6386 ;;
6387 hpux*)
6388 if test ia64 = "$host_cpu"; then
6389 symcode='[ABCDEGRST]'
6390 fi
6391 ;;
6392 irix* | nonstopux*)
6393 symcode='[BCDEGRST]'
6394 ;;
6395 osf*)
6396 symcode='[BCDEGQRST]'
6397 ;;
6398 solaris*)
6399 symcode='[BDRT]'
6400 ;;
6401 sco3.2v5*)
6402 symcode='[DT]'
6403 ;;
6404 sysv4.2uw2*)
6405 symcode='[DT]'
6406 ;;
6407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408 symcode='[ABDT]'
6409 ;;
6410 sysv4)
6411 symcode='[DFNSTU]'
6412 ;;
6413 esac
6414
6415 # If we're using GNU nm, then use its standard symbol codes.
6416 case `$NM -V 2>&1` in
6417 *GNU* | *'with BFD'*)
6418 symcode='[ABCDGIRSTW]' ;;
6419 esac
6420
6421 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6422 # Gets list of data symbols to import.
6423 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6424 # Adjust the below global symbol transforms to fixup imported variables.
6425 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6426 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6427 lt_c_name_lib_hook="\
6428 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6429 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6430 else
6431 # Disable hooks by default.
6432 lt_cv_sys_global_symbol_to_import=
6433 lt_cdecl_hook=
6434 lt_c_name_hook=
6435 lt_c_name_lib_hook=
6436 fi
6437
6438 # Transform an extracted symbol line into a proper C declaration.
6439 # Some systems (esp. on ia64) link data and code symbols differently,
6440 # so use this general approach.
6441 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6442 $lt_cdecl_hook\
6443 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6444 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6445
6446 # Transform an extracted symbol line into symbol name and symbol address
6447 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6448 $lt_c_name_hook\
6449 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6450 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6451
6452 # Transform an extracted symbol line into symbol name with lib prefix and
6453 # symbol address.
6454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6455 $lt_c_name_lib_hook\
6456 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6457 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6458 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6459
6460 # Handle CRLF in mingw tool chain
6461 opt_cr=
6462 case $build_os in
6463 mingw*)
6464 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 ;;
6466 esac
6467
6468 # Try without a prefix underscore, then with it.
6469 for ac_symprfx in "" "_"; do
6470
6471 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6472 symxfrm="\\1 $ac_symprfx\\2 \\2"
6473
6474 # Write the raw and C identifiers.
6475 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6476 # Fake it for dumpbin and say T for any non-static function,
6477 # D for any global variable and I for any imported variable.
6478 # Also find C++ and __fastcall symbols from MSVC++,
6479 # which start with @ or ?.
6480 lt_cv_sys_global_symbol_pipe="$AWK '"\
6481 " {last_section=section; section=\$ 3};"\
6482 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6483 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6484 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6485 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6486 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6487 " \$ 0!~/External *\|/{next};"\
6488 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6489 " {if(hide[section]) next};"\
6490 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6491 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6492 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6493 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6494 " ' prfx=^$ac_symprfx"
6495 else
6496 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6497 fi
6498 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6499
6500 # Check to see that the pipe works correctly.
6501 pipe_works=no
6502
6503 rm -f conftest*
6504 cat > conftest.$ac_ext <<_LT_EOF
6505 #ifdef __cplusplus
6506 extern "C" {
6507 #endif
6508 char nm_test_var;
6509 void nm_test_func(void);
6510 void nm_test_func(void){}
6511 #ifdef __cplusplus
6512 }
6513 #endif
6514 int main(){nm_test_var='a';nm_test_func();return(0);}
6515 _LT_EOF
6516
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 # Now try to grab the symbols.
6523 nlist=conftest.nm
6524 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6525 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6526 # Try sorting and uniquifying the output.
6527 if sort "$nlist" | uniq > "$nlist"T; then
6528 mv -f "$nlist"T "$nlist"
6529 else
6530 rm -f "$nlist"T
6531 fi
6532
6533 # Make sure that we snagged all the symbols we need.
6534 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6535 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6536 cat <<_LT_EOF > conftest.$ac_ext
6537 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6538 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6539 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6540 relocations are performed -- see ld's documentation on pseudo-relocs. */
6541 # define LT_DLSYM_CONST
6542 #elif defined __osf__
6543 /* This system does not cope well with relocations in const data. */
6544 # define LT_DLSYM_CONST
6545 #else
6546 # define LT_DLSYM_CONST const
6547 #endif
6548
6549 #ifdef __cplusplus
6550 extern "C" {
6551 #endif
6552
6553 _LT_EOF
6554 # Now generate the symbol file.
6555 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6556
6557 cat <<_LT_EOF >> conftest.$ac_ext
6558
6559 /* The mapping between symbol names and symbols. */
6560 LT_DLSYM_CONST struct {
6561 const char *name;
6562 void *address;
6563 }
6564 lt__PROGRAM__LTX_preloaded_symbols[] =
6565 {
6566 { "@PROGRAM@", (void *) 0 },
6567 _LT_EOF
6568 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6569 cat <<\_LT_EOF >> conftest.$ac_ext
6570 {0, (void *) 0}
6571 };
6572
6573 /* This works around a problem in FreeBSD linker */
6574 #ifdef FREEBSD_WORKAROUND
6575 static const void *lt_preloaded_setup() {
6576 return lt__PROGRAM__LTX_preloaded_symbols;
6577 }
6578 #endif
6579
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 _LT_EOF
6584 # Now try linking the two files.
6585 mv conftest.$ac_objext conftstm.$ac_objext
6586 lt_globsym_save_LIBS=$LIBS
6587 lt_globsym_save_CFLAGS=$CFLAGS
6588 LIBS=conftstm.$ac_objext
6589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6591 (eval $ac_link) 2>&5
6592 ac_status=$?
6593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6595 pipe_works=yes
6596 fi
6597 LIBS=$lt_globsym_save_LIBS
6598 CFLAGS=$lt_globsym_save_CFLAGS
6599 else
6600 echo "cannot find nm_test_func in $nlist" >&5
6601 fi
6602 else
6603 echo "cannot find nm_test_var in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6607 fi
6608 else
6609 echo "$progname: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 fi
6612 rm -rf conftest* conftst*
6613
6614 # Do not use the global_symbol_pipe unless it works.
6615 if test yes = "$pipe_works"; then
6616 break
6617 else
6618 lt_cv_sys_global_symbol_pipe=
6619 fi
6620 done
6621
6622 fi
6623
6624 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6625 lt_cv_sys_global_symbol_to_cdecl=
6626 fi
6627 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6629 printf "%s\n" "failed" >&6; }
6630 else
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6632 printf "%s\n" "ok" >&6; }
6633 fi
6634
6635 # Response file support.
6636 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6637 nm_file_list_spec='@'
6638 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6639 nm_file_list_spec='@'
6640 fi
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6679 printf %s "checking for sysroot... " >&6; }
6680
6681 # Check whether --with-sysroot was given.
6682 if test ${with_sysroot+y}
6683 then :
6684 withval=$with_sysroot;
6685 else $as_nop
6686 with_sysroot=no
6687 fi
6688
6689
6690 lt_sysroot=
6691 case $with_sysroot in #(
6692 yes)
6693 if test yes = "$GCC"; then
6694 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6695 fi
6696 ;; #(
6697 /*)
6698 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6699 ;; #(
6700 no|'')
6701 ;; #(
6702 *)
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6704 printf "%s\n" "$with_sysroot" >&6; }
6705 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6706 ;;
6707 esac
6708
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6710 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6711
6712
6713
6714
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6717 printf %s "checking for a working dd... " >&6; }
6718 if test ${ac_cv_path_lt_DD+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else $as_nop
6722 printf 0123456789abcdef0123456789abcdef >conftest.i
6723 cat conftest.i conftest.i >conftest2.i
6724 : ${lt_DD:=$DD}
6725 if test -z "$lt_DD"; then
6726 ac_path_lt_DD_found=false
6727 # Loop through the user's path and test for each of PROGNAME-LIST
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 case $as_dir in #(((
6733 '') as_dir=./ ;;
6734 */) ;;
6735 *) as_dir=$as_dir/ ;;
6736 esac
6737 for ac_prog in dd
6738 do
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6741 as_fn_executable_p "$ac_path_lt_DD" || continue
6742 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6743 cmp -s conftest.i conftest.out \
6744 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6745 fi
6746 $ac_path_lt_DD_found && break 3
6747 done
6748 done
6749 done
6750 IFS=$as_save_IFS
6751 if test -z "$ac_cv_path_lt_DD"; then
6752 :
6753 fi
6754 else
6755 ac_cv_path_lt_DD=$lt_DD
6756 fi
6757
6758 rm -f conftest.i conftest2.i conftest.out
6759 fi
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6761 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6762
6763
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6765 printf %s "checking how to truncate binary pipes... " >&6; }
6766 if test ${lt_cv_truncate_bin+y}
6767 then :
6768 printf %s "(cached) " >&6
6769 else $as_nop
6770 printf 0123456789abcdef0123456789abcdef >conftest.i
6771 cat conftest.i conftest.i >conftest2.i
6772 lt_cv_truncate_bin=
6773 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6774 cmp -s conftest.i conftest.out \
6775 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6776 fi
6777 rm -f conftest.i conftest2.i conftest.out
6778 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6779 fi
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6781 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6782
6783
6784
6785
6786
6787
6788
6789 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6790 func_cc_basename ()
6791 {
6792 for cc_temp in $*""; do
6793 case $cc_temp in
6794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6796 \-*) ;;
6797 *) break;;
6798 esac
6799 done
6800 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6801 }
6802
6803 # Check whether --enable-libtool-lock was given.
6804 if test ${enable_libtool_lock+y}
6805 then :
6806 enableval=$enable_libtool_lock;
6807 fi
6808
6809 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6810
6811 # Some flags need to be propagated to the compiler or linker for good
6812 # libtool support.
6813 case $host in
6814 ia64-*-hpux*)
6815 # Find out what ABI is being produced by ac_compile, and set mode
6816 # options accordingly.
6817 echo 'int i;' > conftest.$ac_ext
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819 (eval $ac_compile) 2>&5
6820 ac_status=$?
6821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }; then
6823 case `/usr/bin/file conftest.$ac_objext` in
6824 *ELF-32*)
6825 HPUX_IA64_MODE=32
6826 ;;
6827 *ELF-64*)
6828 HPUX_IA64_MODE=64
6829 ;;
6830 esac
6831 fi
6832 rm -rf conftest*
6833 ;;
6834 *-*-irix6*)
6835 # Find out what ABI is being produced by ac_compile, and set linker
6836 # options accordingly.
6837 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6839 (eval $ac_compile) 2>&5
6840 ac_status=$?
6841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842 test $ac_status = 0; }; then
6843 if test yes = "$lt_cv_prog_gnu_ld"; then
6844 case `/usr/bin/file conftest.$ac_objext` in
6845 *32-bit*)
6846 LD="${LD-ld} -melf32bsmip"
6847 ;;
6848 *N32*)
6849 LD="${LD-ld} -melf32bmipn32"
6850 ;;
6851 *64-bit*)
6852 LD="${LD-ld} -melf64bmip"
6853 ;;
6854 esac
6855 else
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *32-bit*)
6858 LD="${LD-ld} -32"
6859 ;;
6860 *N32*)
6861 LD="${LD-ld} -n32"
6862 ;;
6863 *64-bit*)
6864 LD="${LD-ld} -64"
6865 ;;
6866 esac
6867 fi
6868 fi
6869 rm -rf conftest*
6870 ;;
6871
6872 mips64*-*linux*)
6873 # Find out what ABI is being produced by ac_compile, and set linker
6874 # options accordingly.
6875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; }; then
6881 emul=elf
6882 case `/usr/bin/file conftest.$ac_objext` in
6883 *32-bit*)
6884 emul="${emul}32"
6885 ;;
6886 *64-bit*)
6887 emul="${emul}64"
6888 ;;
6889 esac
6890 case `/usr/bin/file conftest.$ac_objext` in
6891 *MSB*)
6892 emul="${emul}btsmip"
6893 ;;
6894 *LSB*)
6895 emul="${emul}ltsmip"
6896 ;;
6897 esac
6898 case `/usr/bin/file conftest.$ac_objext` in
6899 *N32*)
6900 emul="${emul}n32"
6901 ;;
6902 esac
6903 LD="${LD-ld} -m $emul"
6904 fi
6905 rm -rf conftest*
6906 ;;
6907
6908 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6909 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6910 # Find out what ABI is being produced by ac_compile, and set linker
6911 # options accordingly. Note that the listed cases only cover the
6912 # situations where additional linker options are needed (such as when
6913 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6914 # vice versa); the common cases where no linker options are needed do
6915 # not appear in the list.
6916 echo 'int i;' > conftest.$ac_ext
6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918 (eval $ac_compile) 2>&5
6919 ac_status=$?
6920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921 test $ac_status = 0; }; then
6922 case `/usr/bin/file conftest.o` in
6923 *32-bit*)
6924 case $host in
6925 x86_64-*kfreebsd*-gnu)
6926 LD="${LD-ld} -m elf_i386_fbsd"
6927 ;;
6928 x86_64-*linux*)
6929 case `/usr/bin/file conftest.o` in
6930 *x86-64*)
6931 LD="${LD-ld} -m elf32_x86_64"
6932 ;;
6933 *)
6934 LD="${LD-ld} -m elf_i386"
6935 ;;
6936 esac
6937 ;;
6938 powerpc64le-*linux*)
6939 LD="${LD-ld} -m elf32lppclinux"
6940 ;;
6941 powerpc64-*linux*)
6942 LD="${LD-ld} -m elf32ppclinux"
6943 ;;
6944 s390x-*linux*)
6945 LD="${LD-ld} -m elf_s390"
6946 ;;
6947 sparc64-*linux*)
6948 LD="${LD-ld} -m elf32_sparc"
6949 ;;
6950 esac
6951 ;;
6952 *64-bit*)
6953 case $host in
6954 x86_64-*kfreebsd*-gnu)
6955 LD="${LD-ld} -m elf_x86_64_fbsd"
6956 ;;
6957 x86_64-*linux*)
6958 LD="${LD-ld} -m elf_x86_64"
6959 ;;
6960 powerpcle-*linux*)
6961 LD="${LD-ld} -m elf64lppc"
6962 ;;
6963 powerpc-*linux*)
6964 LD="${LD-ld} -m elf64ppc"
6965 ;;
6966 s390*-*linux*|s390*-*tpf*)
6967 LD="${LD-ld} -m elf64_s390"
6968 ;;
6969 sparc*-*linux*)
6970 LD="${LD-ld} -m elf64_sparc"
6971 ;;
6972 esac
6973 ;;
6974 esac
6975 fi
6976 rm -rf conftest*
6977 ;;
6978
6979 *-*-sco3.2v5*)
6980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6981 SAVE_CFLAGS=$CFLAGS
6982 CFLAGS="$CFLAGS -belf"
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6984 printf %s "checking whether the C compiler needs -belf... " >&6; }
6985 if test ${lt_cv_cc_needs_belf+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else $as_nop
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6994
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 int
6999 main (void)
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_c_try_link "$LINENO"
7007 then :
7008 lt_cv_cc_needs_belf=yes
7009 else $as_nop
7010 lt_cv_cc_needs_belf=no
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7013 conftest$ac_exeext conftest.$ac_ext
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020 fi
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7022 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7023 if test yes != "$lt_cv_cc_needs_belf"; then
7024 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7025 CFLAGS=$SAVE_CFLAGS
7026 fi
7027 ;;
7028 *-*solaris*)
7029 # Find out what ABI is being produced by ac_compile, and set linker
7030 # options accordingly.
7031 echo 'int i;' > conftest.$ac_ext
7032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7033 (eval $ac_compile) 2>&5
7034 ac_status=$?
7035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }; then
7037 case `/usr/bin/file conftest.o` in
7038 *64-bit*)
7039 case $lt_cv_prog_gnu_ld in
7040 yes*)
7041 case $host in
7042 i?86-*-solaris*|x86_64-*-solaris*)
7043 LD="${LD-ld} -m elf_x86_64"
7044 ;;
7045 sparc*-*-solaris*)
7046 LD="${LD-ld} -m elf64_sparc"
7047 ;;
7048 esac
7049 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7050 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7051 LD=${LD-ld}_sol2
7052 fi
7053 ;;
7054 *)
7055 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7056 LD="${LD-ld} -64"
7057 fi
7058 ;;
7059 esac
7060 ;;
7061 esac
7062 fi
7063 rm -rf conftest*
7064 ;;
7065 esac
7066
7067 need_locks=$enable_libtool_lock
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}mt; ac_word=$2
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 printf %s "checking for $ac_word... " >&6; }
7074 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7075 then :
7076 printf %s "(cached) " >&6
7077 else $as_nop
7078 if test -n "$MANIFEST_TOOL"; then
7079 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084 IFS=$as_save_IFS
7085 case $as_dir in #(((
7086 '') as_dir=./ ;;
7087 */) ;;
7088 *) as_dir=$as_dir/ ;;
7089 esac
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7103 if test -n "$MANIFEST_TOOL"; then
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7105 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7106 else
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 printf "%s\n" "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7115 # Extract the first word of "mt", so it can be a program name with args.
7116 set dummy mt; ac_word=$2
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 printf %s "checking for $ac_word... " >&6; }
7119 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else $as_nop
7123 if test -n "$ac_ct_MANIFEST_TOOL"; then
7124 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 case $as_dir in #(((
7131 '') as_dir=./ ;;
7132 */) ;;
7133 *) as_dir=$as_dir/ ;;
7134 esac
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7148 if test -n "$ac_ct_MANIFEST_TOOL"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7150 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7151 else
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 printf "%s\n" "no" >&6; }
7154 fi
7155
7156 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7157 MANIFEST_TOOL=":"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7166 fi
7167 else
7168 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7169 fi
7170
7171 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7173 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7174 if test ${lt_cv_path_mainfest_tool+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else $as_nop
7178 lt_cv_path_mainfest_tool=no
7179 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7180 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7181 cat conftest.err >&5
7182 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7183 lt_cv_path_mainfest_tool=yes
7184 fi
7185 rm -f conftest*
7186 fi
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7188 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7189 if test yes != "$lt_cv_path_mainfest_tool"; then
7190 MANIFEST_TOOL=:
7191 fi
7192
7193
7194
7195
7196
7197
7198 case $host_os in
7199 rhapsody* | darwin*)
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 printf %s "checking for $ac_word... " >&6; }
7205 if test ${ac_cv_prog_DSYMUTIL+y}
7206 then :
7207 printf %s "(cached) " >&6
7208 else $as_nop
7209 if test -n "$DSYMUTIL"; then
7210 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 case $as_dir in #(((
7217 '') as_dir=./ ;;
7218 */) ;;
7219 *) as_dir=$as_dir/ ;;
7220 esac
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7234 if test -n "$DSYMUTIL"; then
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7236 printf "%s\n" "$DSYMUTIL" >&6; }
7237 else
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 printf "%s\n" "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_DSYMUTIL"; then
7245 ac_ct_DSYMUTIL=$DSYMUTIL
7246 # Extract the first word of "dsymutil", so it can be a program name with args.
7247 set dummy dsymutil; ac_word=$2
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 printf %s "checking for $ac_word... " >&6; }
7250 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7251 then :
7252 printf %s "(cached) " >&6
7253 else $as_nop
7254 if test -n "$ac_ct_DSYMUTIL"; then
7255 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 case $as_dir in #(((
7262 '') as_dir=./ ;;
7263 */) ;;
7264 *) as_dir=$as_dir/ ;;
7265 esac
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7279 if test -n "$ac_ct_DSYMUTIL"; then
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7281 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7282 else
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 printf "%s\n" "no" >&6; }
7285 fi
7286
7287 if test "x$ac_ct_DSYMUTIL" = x; then
7288 DSYMUTIL=":"
7289 else
7290 case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296 DSYMUTIL=$ac_ct_DSYMUTIL
7297 fi
7298 else
7299 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7300 fi
7301
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 printf %s "checking for $ac_word... " >&6; }
7307 if test ${ac_cv_prog_NMEDIT+y}
7308 then :
7309 printf %s "(cached) " >&6
7310 else $as_nop
7311 if test -n "$NMEDIT"; then
7312 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 case $as_dir in #(((
7319 '') as_dir=./ ;;
7320 */) ;;
7321 *) as_dir=$as_dir/ ;;
7322 esac
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333 fi
7334 fi
7335 NMEDIT=$ac_cv_prog_NMEDIT
7336 if test -n "$NMEDIT"; then
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7338 printf "%s\n" "$NMEDIT" >&6; }
7339 else
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 printf "%s\n" "no" >&6; }
7342 fi
7343
7344
7345 fi
7346 if test -z "$ac_cv_prog_NMEDIT"; then
7347 ac_ct_NMEDIT=$NMEDIT
7348 # Extract the first word of "nmedit", so it can be a program name with args.
7349 set dummy nmedit; ac_word=$2
7350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 printf %s "checking for $ac_word... " >&6; }
7352 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7353 then :
7354 printf %s "(cached) " >&6
7355 else $as_nop
7356 if test -n "$ac_ct_NMEDIT"; then
7357 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362 IFS=$as_save_IFS
7363 case $as_dir in #(((
7364 '') as_dir=./ ;;
7365 */) ;;
7366 *) as_dir=$as_dir/ ;;
7367 esac
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7381 if test -n "$ac_ct_NMEDIT"; then
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7383 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7384 else
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 printf "%s\n" "no" >&6; }
7387 fi
7388
7389 if test "x$ac_ct_NMEDIT" = x; then
7390 NMEDIT=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398 NMEDIT=$ac_ct_NMEDIT
7399 fi
7400 else
7401 NMEDIT="$ac_cv_prog_NMEDIT"
7402 fi
7403
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 printf %s "checking for $ac_word... " >&6; }
7409 if test ${ac_cv_prog_LIPO+y}
7410 then :
7411 printf %s "(cached) " >&6
7412 else $as_nop
7413 if test -n "$LIPO"; then
7414 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419 IFS=$as_save_IFS
7420 case $as_dir in #(((
7421 '') as_dir=./ ;;
7422 */) ;;
7423 *) as_dir=$as_dir/ ;;
7424 esac
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 LIPO=$ac_cv_prog_LIPO
7438 if test -n "$LIPO"; then
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7440 printf "%s\n" "$LIPO" >&6; }
7441 else
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 printf "%s\n" "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_LIPO"; then
7449 ac_ct_LIPO=$LIPO
7450 # Extract the first word of "lipo", so it can be a program name with args.
7451 set dummy lipo; ac_word=$2
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 printf %s "checking for $ac_word... " >&6; }
7454 if test ${ac_cv_prog_ac_ct_LIPO+y}
7455 then :
7456 printf %s "(cached) " >&6
7457 else $as_nop
7458 if test -n "$ac_ct_LIPO"; then
7459 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 case $as_dir in #(((
7466 '') as_dir=./ ;;
7467 */) ;;
7468 *) as_dir=$as_dir/ ;;
7469 esac
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_LIPO="lipo"
7473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7483 if test -n "$ac_ct_LIPO"; then
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7485 printf "%s\n" "$ac_ct_LIPO" >&6; }
7486 else
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 printf "%s\n" "no" >&6; }
7489 fi
7490
7491 if test "x$ac_ct_LIPO" = x; then
7492 LIPO=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7499 esac
7500 LIPO=$ac_ct_LIPO
7501 fi
7502 else
7503 LIPO="$ac_cv_prog_LIPO"
7504 fi
7505
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}otool; ac_word=$2
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 printf %s "checking for $ac_word... " >&6; }
7511 if test ${ac_cv_prog_OTOOL+y}
7512 then :
7513 printf %s "(cached) " >&6
7514 else $as_nop
7515 if test -n "$OTOOL"; then
7516 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 case $as_dir in #(((
7523 '') as_dir=./ ;;
7524 */) ;;
7525 *) as_dir=$as_dir/ ;;
7526 esac
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 OTOOL=$ac_cv_prog_OTOOL
7540 if test -n "$OTOOL"; then
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7542 printf "%s\n" "$OTOOL" >&6; }
7543 else
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 printf "%s\n" "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_OTOOL"; then
7551 ac_ct_OTOOL=$OTOOL
7552 # Extract the first word of "otool", so it can be a program name with args.
7553 set dummy otool; ac_word=$2
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 printf %s "checking for $ac_word... " >&6; }
7556 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7557 then :
7558 printf %s "(cached) " >&6
7559 else $as_nop
7560 if test -n "$ac_ct_OTOOL"; then
7561 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 case $as_dir in #(((
7568 '') as_dir=./ ;;
7569 */) ;;
7570 *) as_dir=$as_dir/ ;;
7571 esac
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_ac_ct_OTOOL="otool"
7575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7585 if test -n "$ac_ct_OTOOL"; then
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7587 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7588 else
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 printf "%s\n" "no" >&6; }
7591 fi
7592
7593 if test "x$ac_ct_OTOOL" = x; then
7594 OTOOL=":"
7595 else
7596 case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602 OTOOL=$ac_ct_OTOOL
7603 fi
7604 else
7605 OTOOL="$ac_cv_prog_OTOOL"
7606 fi
7607
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 printf %s "checking for $ac_word... " >&6; }
7613 if test ${ac_cv_prog_OTOOL64+y}
7614 then :
7615 printf %s "(cached) " >&6
7616 else $as_nop
7617 if test -n "$OTOOL64"; then
7618 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623 IFS=$as_save_IFS
7624 case $as_dir in #(((
7625 '') as_dir=./ ;;
7626 */) ;;
7627 *) as_dir=$as_dir/ ;;
7628 esac
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 OTOOL64=$ac_cv_prog_OTOOL64
7642 if test -n "$OTOOL64"; then
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7644 printf "%s\n" "$OTOOL64" >&6; }
7645 else
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 printf "%s\n" "no" >&6; }
7648 fi
7649
7650
7651 fi
7652 if test -z "$ac_cv_prog_OTOOL64"; then
7653 ac_ct_OTOOL64=$OTOOL64
7654 # Extract the first word of "otool64", so it can be a program name with args.
7655 set dummy otool64; ac_word=$2
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 printf %s "checking for $ac_word... " >&6; }
7658 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else $as_nop
7662 if test -n "$ac_ct_OTOOL64"; then
7663 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 case $as_dir in #(((
7670 '') as_dir=./ ;;
7671 */) ;;
7672 *) as_dir=$as_dir/ ;;
7673 esac
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_OTOOL64="otool64"
7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7687 if test -n "$ac_ct_OTOOL64"; then
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7689 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7690 else
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 printf "%s\n" "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_OTOOL64" = x; then
7696 OTOOL64=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 OTOOL64=$ac_ct_OTOOL64
7705 fi
7706 else
7707 OTOOL64="$ac_cv_prog_OTOOL64"
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7737 printf %s "checking for -single_module linker flag... " >&6; }
7738 if test ${lt_cv_apple_cc_single_mod+y}
7739 then :
7740 printf %s "(cached) " >&6
7741 else $as_nop
7742 lt_cv_apple_cc_single_mod=no
7743 if test -z "$LT_MULTI_MODULE"; then
7744 # By default we will add the -single_module flag. You can override
7745 # by either setting the environment variable LT_MULTI_MODULE
7746 # non-empty at configure time, or by adding -multi_module to the
7747 # link flags.
7748 rm -rf libconftest.dylib*
7749 echo "int foo(void){return 1;}" > conftest.c
7750 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7751 -dynamiclib -Wl,-single_module conftest.c" >&5
7752 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7753 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7754 _lt_result=$?
7755 # If there is a non-empty error log, and "single_module"
7756 # appears in it, assume the flag caused a linker warning
7757 if test -s conftest.err && $GREP single_module conftest.err; then
7758 cat conftest.err >&5
7759 # Otherwise, if the output was created with a 0 exit code from
7760 # the compiler, it worked.
7761 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7762 lt_cv_apple_cc_single_mod=yes
7763 else
7764 cat conftest.err >&5
7765 fi
7766 rm -rf libconftest.dylib*
7767 rm -f conftest.*
7768 fi
7769 fi
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7771 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7772
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7774 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7775 if test ${lt_cv_ld_exported_symbols_list+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 lt_cv_ld_exported_symbols_list=no
7780 save_LDFLAGS=$LDFLAGS
7781 echo "_main" > conftest.sym
7782 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785
7786 int
7787 main (void)
7788 {
7789
7790 ;
7791 return 0;
7792 }
7793 _ACEOF
7794 if ac_fn_c_try_link "$LINENO"
7795 then :
7796 lt_cv_ld_exported_symbols_list=yes
7797 else $as_nop
7798 lt_cv_ld_exported_symbols_list=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7801 conftest$ac_exeext conftest.$ac_ext
7802 LDFLAGS=$save_LDFLAGS
7803
7804 fi
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7806 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7807
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7809 printf %s "checking for -force_load linker flag... " >&6; }
7810 if test ${lt_cv_ld_force_load+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else $as_nop
7814 lt_cv_ld_force_load=no
7815 cat > conftest.c << _LT_EOF
7816 int forced_loaded() { return 2;}
7817 _LT_EOF
7818 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820 echo "$AR cr libconftest.a conftest.o" >&5
7821 $AR cr libconftest.a conftest.o 2>&5
7822 echo "$RANLIB libconftest.a" >&5
7823 $RANLIB libconftest.a 2>&5
7824 cat > conftest.c << _LT_EOF
7825 int main() { return 0;}
7826 _LT_EOF
7827 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7829 _lt_result=$?
7830 if test -s conftest.err && $GREP force_load conftest.err; then
7831 cat conftest.err >&5
7832 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7833 lt_cv_ld_force_load=yes
7834 else
7835 cat conftest.err >&5
7836 fi
7837 rm -f conftest.err libconftest.a conftest conftest.c
7838 rm -rf conftest.dSYM
7839
7840 fi
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7842 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7843 case $host_os in
7844 rhapsody* | darwin1.[012])
7845 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7846 darwin1.*)
7847 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7848 darwin*) # darwin 5.x on
7849 # if running on 10.5 or later, the deployment target defaults
7850 # to the OS version, if on x86, and 10.4, the deployment
7851 # target defaults to 10.4. Don't you love it?
7852 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7853 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7854 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7855 10.[012][,.]*)
7856 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7857 10.*|11.*)
7858 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7859 esac
7860 ;;
7861 esac
7862 if test yes = "$lt_cv_apple_cc_single_mod"; then
7863 _lt_dar_single_mod='$single_module'
7864 fi
7865 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7866 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7867 else
7868 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7869 fi
7870 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7871 _lt_dsymutil='~$DSYMUTIL $lib || :'
7872 else
7873 _lt_dsymutil=
7874 fi
7875 ;;
7876 esac
7877
7878 # func_munge_path_list VARIABLE PATH
7879 # -----------------------------------
7880 # VARIABLE is name of variable containing _space_ separated list of
7881 # directories to be munged by the contents of PATH, which is string
7882 # having a format:
7883 # "DIR[:DIR]:"
7884 # string "DIR[ DIR]" will be prepended to VARIABLE
7885 # ":DIR[:DIR]"
7886 # string "DIR[ DIR]" will be appended to VARIABLE
7887 # "DIRP[:DIRP]::[DIRA:]DIRA"
7888 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7889 # "DIRA[ DIRA]" will be appended to VARIABLE
7890 # "DIR[:DIR]"
7891 # VARIABLE will be replaced by "DIR[ DIR]"
7892 func_munge_path_list ()
7893 {
7894 case x$2 in
7895 x)
7896 ;;
7897 *:)
7898 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7899 ;;
7900 x:*)
7901 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7902 ;;
7903 *::*)
7904 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7905 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7906 ;;
7907 *)
7908 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7909 ;;
7910 esac
7911 }
7912
7913 ac_header= ac_cache=
7914 for ac_item in $ac_header_c_list
7915 do
7916 if test $ac_cache; then
7917 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7918 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7919 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7920 fi
7921 ac_header= ac_cache=
7922 elif test $ac_header; then
7923 ac_cache=$ac_item
7924 else
7925 ac_header=$ac_item
7926 fi
7927 done
7928
7929
7930
7931
7932
7933
7934
7935
7936 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7937 then :
7938
7939 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7940
7941 fi
7942 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7943 "
7944 if test "x$ac_cv_header_dlfcn_h" = xyes
7945 then :
7946 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7947
7948 fi
7949
7950
7951
7952
7953
7954 # Set options
7955
7956
7957
7958 enable_dlopen=no
7959
7960
7961 enable_win32_dll=no
7962
7963
7964 # Check whether --enable-shared was given.
7965 if test ${enable_shared+y}
7966 then :
7967 enableval=$enable_shared; p=${PACKAGE-default}
7968 case $enableval in
7969 yes) enable_shared=yes ;;
7970 no) enable_shared=no ;;
7971 *)
7972 enable_shared=no
7973 # Look at the argument we got. We use all the common list separators.
7974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7975 for pkg in $enableval; do
7976 IFS=$lt_save_ifs
7977 if test "X$pkg" = "X$p"; then
7978 enable_shared=yes
7979 fi
7980 done
7981 IFS=$lt_save_ifs
7982 ;;
7983 esac
7984 else $as_nop
7985 enable_shared=yes
7986 fi
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996 # Check whether --enable-static was given.
7997 if test ${enable_static+y}
7998 then :
7999 enableval=$enable_static; p=${PACKAGE-default}
8000 case $enableval in
8001 yes) enable_static=yes ;;
8002 no) enable_static=no ;;
8003 *)
8004 enable_static=no
8005 # Look at the argument we got. We use all the common list separators.
8006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8007 for pkg in $enableval; do
8008 IFS=$lt_save_ifs
8009 if test "X$pkg" = "X$p"; then
8010 enable_static=yes
8011 fi
8012 done
8013 IFS=$lt_save_ifs
8014 ;;
8015 esac
8016 else $as_nop
8017 enable_static=yes
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 # Check whether --with-pic was given.
8030 if test ${with_pic+y}
8031 then :
8032 withval=$with_pic; lt_p=${PACKAGE-default}
8033 case $withval in
8034 yes|no) pic_mode=$withval ;;
8035 *)
8036 pic_mode=default
8037 # Look at the argument we got. We use all the common list separators.
8038 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8039 for lt_pkg in $withval; do
8040 IFS=$lt_save_ifs
8041 if test "X$lt_pkg" = "X$lt_p"; then
8042 pic_mode=yes
8043 fi
8044 done
8045 IFS=$lt_save_ifs
8046 ;;
8047 esac
8048 else $as_nop
8049 pic_mode=default
8050 fi
8051
8052
8053
8054
8055
8056
8057
8058
8059 # Check whether --enable-fast-install was given.
8060 if test ${enable_fast_install+y}
8061 then :
8062 enableval=$enable_fast_install; p=${PACKAGE-default}
8063 case $enableval in
8064 yes) enable_fast_install=yes ;;
8065 no) enable_fast_install=no ;;
8066 *)
8067 enable_fast_install=no
8068 # Look at the argument we got. We use all the common list separators.
8069 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8070 for pkg in $enableval; do
8071 IFS=$lt_save_ifs
8072 if test "X$pkg" = "X$p"; then
8073 enable_fast_install=yes
8074 fi
8075 done
8076 IFS=$lt_save_ifs
8077 ;;
8078 esac
8079 else $as_nop
8080 enable_fast_install=yes
8081 fi
8082
8083
8084
8085
8086
8087
8088
8089
8090 shared_archive_member_spec=
8091 case $host,$enable_shared in
8092 power*-*-aix[5-9]*,yes)
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8094 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8095
8096 # Check whether --with-aix-soname was given.
8097 if test ${with_aix_soname+y}
8098 then :
8099 withval=$with_aix_soname; case $withval in
8100 aix|svr4|both)
8101 ;;
8102 *)
8103 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8104 ;;
8105 esac
8106 lt_cv_with_aix_soname=$with_aix_soname
8107 else $as_nop
8108 if test ${lt_cv_with_aix_soname+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else $as_nop
8112 lt_cv_with_aix_soname=aix
8113 fi
8114
8115 with_aix_soname=$lt_cv_with_aix_soname
8116 fi
8117
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8119 printf "%s\n" "$with_aix_soname" >&6; }
8120 if test aix != "$with_aix_soname"; then
8121 # For the AIX way of multilib, we name the shared archive member
8122 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8123 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8124 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8125 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8126 if test 64 = "${OBJECT_MODE-32}"; then
8127 shared_archive_member_spec=shr_64
8128 else
8129 shared_archive_member_spec=shr
8130 fi
8131 fi
8132 ;;
8133 *)
8134 with_aix_soname=aix
8135 ;;
8136 esac
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147 # This can be used to rebuild libtool when needed
8148 LIBTOOL_DEPS=$ltmain
8149
8150 # Always use our own libtool.
8151 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 test -z "$LN_S" && LN_S="ln -s"
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 if test -n "${ZSH_VERSION+set}"; then
8198 setopt NO_GLOB_SUBST
8199 fi
8200
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8202 printf %s "checking for objdir... " >&6; }
8203 if test ${lt_cv_objdir+y}
8204 then :
8205 printf %s "(cached) " >&6
8206 else $as_nop
8207 rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8210 lt_cv_objdir=.libs
8211 else
8212 # MS-DOS does not allow filenames that begin with a dot.
8213 lt_cv_objdir=_libs
8214 fi
8215 rmdir .libs 2>/dev/null
8216 fi
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218 printf "%s\n" "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8220
8221
8222
8223
8224
8225 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8226
8227
8228
8229
8230 case $host_os in
8231 aix3*)
8232 # AIX sometimes has problems with the GCC collect2 program. For some
8233 # reason, if we set the COLLECT_NAMES environment variable, the problems
8234 # vanish in a puff of smoke.
8235 if test set != "${COLLECT_NAMES+set}"; then
8236 COLLECT_NAMES=
8237 export COLLECT_NAMES
8238 fi
8239 ;;
8240 esac
8241
8242 # Global variables:
8243 ofile=libtool
8244 can_build_shared=yes
8245
8246 # All known linkers require a '.a' archive for static linking (except MSVC,
8247 # which needs '.lib').
8248 libext=a
8249
8250 with_gnu_ld=$lt_cv_prog_gnu_ld
8251
8252 old_CC=$CC
8253 old_CFLAGS=$CFLAGS
8254
8255 # Set sane defaults for various variables
8256 test -z "$CC" && CC=cc
8257 test -z "$LTCC" && LTCC=$CC
8258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8259 test -z "$LD" && LD=ld
8260 test -z "$ac_objext" && ac_objext=o
8261
8262 func_cc_basename $compiler
8263 cc_basename=$func_cc_basename_result
8264
8265
8266 # Only perform the check for file, if the check method requires it
8267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268 case $deplibs_check_method in
8269 file_magic*)
8270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8272 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8273 if test ${lt_cv_path_MAGIC_CMD+y}
8274 then :
8275 printf %s "(cached) " >&6
8276 else $as_nop
8277 case $MAGIC_CMD in
8278 [\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8280 ;;
8281 *)
8282 lt_save_MAGIC_CMD=$MAGIC_CMD
8283 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS=$lt_save_ifs
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8289 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** [email protected]
8309
8310 _LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS=$lt_save_ifs
8318 MAGIC_CMD=$lt_save_MAGIC_CMD
8319 ;;
8320 esac
8321 fi
8322
8323 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8324 if test -n "$MAGIC_CMD"; then
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 printf "%s\n" "$MAGIC_CMD" >&6; }
8327 else
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 printf "%s\n" "no" >&6; }
8330 fi
8331
8332
8333
8334
8335
8336 if test -z "$lt_cv_path_MAGIC_CMD"; then
8337 if test -n "$ac_tool_prefix"; then
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8339 printf %s "checking for file... " >&6; }
8340 if test ${lt_cv_path_MAGIC_CMD+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else $as_nop
8344 case $MAGIC_CMD in
8345 [\\/*] | ?:[\\/]*)
8346 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8347 ;;
8348 *)
8349 lt_save_MAGIC_CMD=$MAGIC_CMD
8350 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352 for ac_dir in $ac_dummy; do
8353 IFS=$lt_save_ifs
8354 test -z "$ac_dir" && ac_dir=.
8355 if test -f "$ac_dir/file"; then
8356 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8357 if test -n "$file_magic_test_file"; then
8358 case $deplibs_check_method in
8359 "file_magic "*)
8360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363 $EGREP "$file_magic_regex" > /dev/null; then
8364 :
8365 else
8366 cat <<_LT_EOF 1>&2
8367
8368 *** Warning: the command libtool uses to detect shared libraries,
8369 *** $file_magic_cmd, produces output that libtool cannot recognize.
8370 *** The result is that libtool may fail to recognize shared libraries
8371 *** as such. This will affect the creation of libtool libraries that
8372 *** depend on shared libraries, but programs linked with such libtool
8373 *** libraries will work regardless of this problem. Nevertheless, you
8374 *** may want to report the problem to your system manager and/or to
8375 *** [email protected]
8376
8377 _LT_EOF
8378 fi ;;
8379 esac
8380 fi
8381 break
8382 fi
8383 done
8384 IFS=$lt_save_ifs
8385 MAGIC_CMD=$lt_save_MAGIC_CMD
8386 ;;
8387 esac
8388 fi
8389
8390 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8391 if test -n "$MAGIC_CMD"; then
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393 printf "%s\n" "$MAGIC_CMD" >&6; }
8394 else
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 printf "%s\n" "no" >&6; }
8397 fi
8398
8399
8400 else
8401 MAGIC_CMD=:
8402 fi
8403 fi
8404
8405 fi
8406 ;;
8407 esac
8408
8409 # Use C for the default configuration in the libtool script
8410
8411 lt_save_CC=$CC
8412 ac_ext=c
8413 ac_cpp='$CPP $CPPFLAGS'
8414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
8419 # Source file extension for C test sources.
8420 ac_ext=c
8421
8422 # Object file extension for compiled C test sources.
8423 objext=o
8424 objext=$objext
8425
8426 # Code to be used in simple compile tests
8427 lt_simple_compile_test_code="int some_variable = 0;"
8428
8429 # Code to be used in simple link tests
8430 lt_simple_link_test_code='int main(){return(0);}'
8431
8432
8433
8434
8435
8436
8437
8438 # If no C compiler was specified, use CC.
8439 LTCC=${LTCC-"$CC"}
8440
8441 # If no C compiler flags were specified, use CFLAGS.
8442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8443
8444 # Allow CC to be a program name with arguments.
8445 compiler=$CC
8446
8447 # Save the default compiler, since it gets overwritten when the other
8448 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8449 compiler_DEFAULT=$CC
8450
8451 # save warnings/boilerplate of simple test code
8452 ac_outfile=conftest.$ac_objext
8453 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8454 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8455 _lt_compiler_boilerplate=`cat conftest.err`
8456 $RM conftest*
8457
8458 ac_outfile=conftest.$ac_objext
8459 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8460 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461 _lt_linker_boilerplate=`cat conftest.err`
8462 $RM -r conftest*
8463
8464
8465 if test -n "$compiler"; then
8466
8467 lt_prog_compiler_no_builtin_flag=
8468
8469 if test yes = "$GCC"; then
8470 case $cc_basename in
8471 nvcc*)
8472 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8473 *)
8474 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8475 esac
8476
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8478 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8479 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8480 then :
8481 printf %s "(cached) " >&6
8482 else $as_nop
8483 lt_cv_prog_compiler_rtti_exceptions=no
8484 ac_outfile=conftest.$ac_objext
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8486 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8487 # Insert the option either (1) after the last *FLAGS variable, or
8488 # (2) before a word containing "conftest.", or (3) at the end.
8489 # Note that $ac_compile itself does not contain backslashes and begins
8490 # with a dollar sign (not a hyphen), so the echo should work correctly.
8491 # The option is referenced via a variable to avoid confusing sed.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497 (eval "$lt_compile" 2>conftest.err)
8498 ac_status=$?
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 if (exit $ac_status) && test -s "$ac_outfile"; then
8502 # The compiler can only warn and ignore the option if not recognized
8503 # So say no if there are warnings other than the usual output.
8504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8507 lt_cv_prog_compiler_rtti_exceptions=yes
8508 fi
8509 fi
8510 $RM conftest*
8511
8512 fi
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8514 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8515
8516 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8517 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8518 else
8519 :
8520 fi
8521
8522 fi
8523
8524
8525
8526
8527
8528
8529 lt_prog_compiler_wl=
8530 lt_prog_compiler_pic=
8531 lt_prog_compiler_static=
8532
8533
8534 if test yes = "$GCC"; then
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_static='-static'
8537
8538 case $host_os in
8539 aix*)
8540 # All AIX code is PIC.
8541 if test ia64 = "$host_cpu"; then
8542 # AIX 5 now supports IA64 processor
8543 lt_prog_compiler_static='-Bstatic'
8544 fi
8545 lt_prog_compiler_pic='-fPIC'
8546 ;;
8547
8548 amigaos*)
8549 case $host_cpu in
8550 powerpc)
8551 # see comment about AmigaOS4 .so support
8552 lt_prog_compiler_pic='-fPIC'
8553 ;;
8554 m68k)
8555 # FIXME: we need at least 68020 code to build shared libraries, but
8556 # adding the '-m68020' flag to GCC prevents building anything better,
8557 # like '-m68040'.
8558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8559 ;;
8560 esac
8561 ;;
8562
8563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8564 # PIC is the default for these OSes.
8565 ;;
8566
8567 mingw* | cygwin* | pw32* | os2* | cegcc*)
8568 # This hack is so that the source file can tell whether it is being
8569 # built for inclusion in a dll (and should export symbols for example).
8570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8571 # (--disable-auto-import) libraries
8572 lt_prog_compiler_pic='-DDLL_EXPORT'
8573 case $host_os in
8574 os2*)
8575 lt_prog_compiler_static='$wl-static'
8576 ;;
8577 esac
8578 ;;
8579
8580 darwin* | rhapsody*)
8581 # PIC is the default on this platform
8582 # Common symbols not allowed in MH_DYLIB files
8583 lt_prog_compiler_pic='-fno-common'
8584 ;;
8585
8586 haiku*)
8587 # PIC is the default for Haiku.
8588 # The "-static" flag exists, but is broken.
8589 lt_prog_compiler_static=
8590 ;;
8591
8592 hpux*)
8593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8595 # sets the default TLS model and affects inlining.
8596 case $host_cpu in
8597 hppa*64*)
8598 # +Z the default
8599 ;;
8600 *)
8601 lt_prog_compiler_pic='-fPIC'
8602 ;;
8603 esac
8604 ;;
8605
8606 interix[3-9]*)
8607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8608 # Instead, we relocate shared libraries at runtime.
8609 ;;
8610
8611 msdosdjgpp*)
8612 # Just because we use GCC doesn't mean we suddenly get shared libraries
8613 # on systems that don't support them.
8614 lt_prog_compiler_can_build_shared=no
8615 enable_shared=no
8616 ;;
8617
8618 *nto* | *qnx*)
8619 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 # it will coredump.
8621 lt_prog_compiler_pic='-fPIC -shared'
8622 ;;
8623
8624 sysv4*MP*)
8625 if test -d /usr/nec; then
8626 lt_prog_compiler_pic=-Kconform_pic
8627 fi
8628 ;;
8629
8630 *)
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633 esac
8634
8635 case $cc_basename in
8636 nvcc*) # Cuda Compiler Driver 2.2
8637 lt_prog_compiler_wl='-Xlinker '
8638 if test -n "$lt_prog_compiler_pic"; then
8639 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8640 fi
8641 ;;
8642 esac
8643 else
8644 # PORTME Check for flag to pass linker flags through the system compiler.
8645 case $host_os in
8646 aix*)
8647 lt_prog_compiler_wl='-Wl,'
8648 if test ia64 = "$host_cpu"; then
8649 # AIX 5 now supports IA64 processor
8650 lt_prog_compiler_static='-Bstatic'
8651 else
8652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8653 fi
8654 ;;
8655
8656 darwin* | rhapsody*)
8657 # PIC is the default on this platform
8658 # Common symbols not allowed in MH_DYLIB files
8659 lt_prog_compiler_pic='-fno-common'
8660 case $cc_basename in
8661 nagfor*)
8662 # NAG Fortran compiler
8663 lt_prog_compiler_wl='-Wl,-Wl,,'
8664 lt_prog_compiler_pic='-PIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 ;;
8667 esac
8668 ;;
8669
8670 mingw* | cygwin* | pw32* | os2* | cegcc*)
8671 # This hack is so that the source file can tell whether it is being
8672 # built for inclusion in a dll (and should export symbols for example).
8673 lt_prog_compiler_pic='-DDLL_EXPORT'
8674 case $host_os in
8675 os2*)
8676 lt_prog_compiler_static='$wl-static'
8677 ;;
8678 esac
8679 ;;
8680
8681 hpux9* | hpux10* | hpux11*)
8682 lt_prog_compiler_wl='-Wl,'
8683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8684 # not for PA HP-UX.
8685 case $host_cpu in
8686 hppa*64*|ia64*)
8687 # +Z the default
8688 ;;
8689 *)
8690 lt_prog_compiler_pic='+Z'
8691 ;;
8692 esac
8693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8694 lt_prog_compiler_static='$wl-a ${wl}archive'
8695 ;;
8696
8697 irix5* | irix6* | nonstopux*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # PIC (with -KPIC) is the default.
8700 lt_prog_compiler_static='-non_shared'
8701 ;;
8702
8703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8704 case $cc_basename in
8705 # old Intel for x86_64, which still supported -KPIC.
8706 ecc*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-static'
8710 ;;
8711 # flang / f18. f95 an alias for gfortran or flang on Debian
8712 flang* | f18* | f95*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-fPIC'
8715 lt_prog_compiler_static='-static'
8716 ;;
8717 # icc used to be incompatible with GCC.
8718 # ICC 10 doesn't accept -KPIC any more.
8719 icc* | ifort*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-fPIC'
8722 lt_prog_compiler_static='-static'
8723 ;;
8724 # Lahey Fortran 8.1.
8725 lf95*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='--shared'
8728 lt_prog_compiler_static='--static'
8729 ;;
8730 nagfor*)
8731 # NAG Fortran compiler
8732 lt_prog_compiler_wl='-Wl,-Wl,,'
8733 lt_prog_compiler_pic='-PIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 ;;
8736 tcc*)
8737 # Fabrice Bellard et al's Tiny C Compiler
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-fPIC'
8740 lt_prog_compiler_static='-static'
8741 ;;
8742 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8743 # Portland Group compilers (*not* the Pentium gcc compiler,
8744 # which looks to be a dead project)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-fpic'
8747 lt_prog_compiler_static='-Bstatic'
8748 ;;
8749 ccc*)
8750 lt_prog_compiler_wl='-Wl,'
8751 # All Alpha code is PIC.
8752 lt_prog_compiler_static='-non_shared'
8753 ;;
8754 xl* | bgxl* | bgf* | mpixl*)
8755 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='-qpic'
8758 lt_prog_compiler_static='-qstaticlink'
8759 ;;
8760 *)
8761 case `$CC -V 2>&1 | sed 5q` in
8762 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-Bstatic'
8766 lt_prog_compiler_wl=''
8767 ;;
8768 *Sun\ F* | *Sun*Fortran*)
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 lt_prog_compiler_wl='-Qoption ld '
8772 ;;
8773 *Sun\ C*)
8774 # Sun C 5.9
8775 lt_prog_compiler_pic='-KPIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 lt_prog_compiler_wl='-Wl,'
8778 ;;
8779 *Intel*\ [CF]*Compiler*)
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-fPIC'
8782 lt_prog_compiler_static='-static'
8783 ;;
8784 *Portland\ Group*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-fpic'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789 esac
8790 ;;
8791 esac
8792 ;;
8793
8794 newsos6)
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798
8799 *nto* | *qnx*)
8800 # QNX uses GNU C++, but need to define -shared option too, otherwise
8801 # it will coredump.
8802 lt_prog_compiler_pic='-fPIC -shared'
8803 ;;
8804
8805 osf3* | osf4* | osf5*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # All OSF/1 code is PIC.
8808 lt_prog_compiler_static='-non_shared'
8809 ;;
8810
8811 rdos*)
8812 lt_prog_compiler_static='-non_shared'
8813 ;;
8814
8815 solaris*)
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8818 case $cc_basename in
8819 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8820 lt_prog_compiler_wl='-Qoption ld ';;
8821 *)
8822 lt_prog_compiler_wl='-Wl,';;
8823 esac
8824 ;;
8825
8826 sunos4*)
8827 lt_prog_compiler_wl='-Qoption ld '
8828 lt_prog_compiler_pic='-PIC'
8829 lt_prog_compiler_static='-Bstatic'
8830 ;;
8831
8832 sysv4 | sysv4.2uw2* | sysv4.3*)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837
8838 sysv4*MP*)
8839 if test -d /usr/nec; then
8840 lt_prog_compiler_pic='-Kconform_pic'
8841 lt_prog_compiler_static='-Bstatic'
8842 fi
8843 ;;
8844
8845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 ;;
8850
8851 unicos*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_can_build_shared=no
8854 ;;
8855
8856 uts4*)
8857 lt_prog_compiler_pic='-pic'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 *)
8862 lt_prog_compiler_can_build_shared=no
8863 ;;
8864 esac
8865 fi
8866
8867 case $host_os in
8868 # For platforms that do not support PIC, -DPIC is meaningless:
8869 *djgpp*)
8870 lt_prog_compiler_pic=
8871 ;;
8872 *)
8873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8874 ;;
8875 esac
8876
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8878 printf %s "checking for $compiler option to produce PIC... " >&6; }
8879 if test ${lt_cv_prog_compiler_pic+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8884 fi
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8886 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8887 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8888
8889 #
8890 # Check to make sure the PIC flag actually works.
8891 #
8892 if test -n "$lt_prog_compiler_pic"; then
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8894 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8895 if test ${lt_cv_prog_compiler_pic_works+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else $as_nop
8899 lt_cv_prog_compiler_pic_works=no
8900 ac_outfile=conftest.$ac_objext
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 # The option is referenced via a variable to avoid confusing sed.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>conftest.err)
8914 ac_status=$?
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s "$ac_outfile"; then
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings other than the usual output.
8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_pic_works=yes
8924 fi
8925 fi
8926 $RM conftest*
8927
8928 fi
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8930 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8931
8932 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8933 case $lt_prog_compiler_pic in
8934 "" | " "*) ;;
8935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8936 esac
8937 else
8938 lt_prog_compiler_pic=
8939 lt_prog_compiler_can_build_shared=no
8940 fi
8941
8942 fi
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954 #
8955 # Check to make sure the static flag actually works.
8956 #
8957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8959 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8960 if test ${lt_cv_prog_compiler_static_works+y}
8961 then :
8962 printf %s "(cached) " >&6
8963 else $as_nop
8964 lt_cv_prog_compiler_static_works=no
8965 save_LDFLAGS=$LDFLAGS
8966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8969 # The linker can only warn and ignore the option if not recognized
8970 # So say no if there are warnings
8971 if test -s conftest.err; then
8972 # Append any errors to the config.log.
8973 cat conftest.err 1>&5
8974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8976 if diff conftest.exp conftest.er2 >/dev/null; then
8977 lt_cv_prog_compiler_static_works=yes
8978 fi
8979 else
8980 lt_cv_prog_compiler_static_works=yes
8981 fi
8982 fi
8983 $RM -r conftest*
8984 LDFLAGS=$save_LDFLAGS
8985
8986 fi
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8988 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8989
8990 if test yes = "$lt_cv_prog_compiler_static_works"; then
8991 :
8992 else
8993 lt_prog_compiler_static=
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9003 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9004 if test ${lt_cv_prog_compiler_c_o+y}
9005 then :
9006 printf %s "(cached) " >&6
9007 else $as_nop
9008 lt_cv_prog_compiler_c_o=no
9009 $RM -r conftest 2>/dev/null
9010 mkdir conftest
9011 cd conftest
9012 mkdir out
9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014
9015 lt_compiler_flag="-o out/conftest2.$ac_objext"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 lt_compile=`echo "$ac_compile" | $SED \
9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023 -e 's:$: $lt_compiler_flag:'`
9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9025 (eval "$lt_compile" 2>out/conftest.err)
9026 ac_status=$?
9027 cat out/conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9030 then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings
9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_c_o=yes
9037 fi
9038 fi
9039 chmod u+w . 2>&5
9040 $RM conftest*
9041 # SGI C++ compiler will create directory out/ii_files/ for
9042 # template instantiation
9043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9044 $RM out/* && rmdir out
9045 cd ..
9046 $RM -r conftest
9047 $RM conftest*
9048
9049 fi
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9051 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9052
9053
9054
9055
9056
9057
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9059 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9060 if test ${lt_cv_prog_compiler_c_o+y}
9061 then :
9062 printf %s "(cached) " >&6
9063 else $as_nop
9064 lt_cv_prog_compiler_c_o=no
9065 $RM -r conftest 2>/dev/null
9066 mkdir conftest
9067 cd conftest
9068 mkdir out
9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9070
9071 lt_compiler_flag="-o out/conftest2.$ac_objext"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 lt_compile=`echo "$ac_compile" | $SED \
9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079 -e 's:$: $lt_compiler_flag:'`
9080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9081 (eval "$lt_compile" 2>out/conftest.err)
9082 ac_status=$?
9083 cat out/conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9086 then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_c_o=yes
9093 fi
9094 fi
9095 chmod u+w . 2>&5
9096 $RM conftest*
9097 # SGI C++ compiler will create directory out/ii_files/ for
9098 # template instantiation
9099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9100 $RM out/* && rmdir out
9101 cd ..
9102 $RM -r conftest
9103 $RM conftest*
9104
9105 fi
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9107 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9108
9109
9110
9111
9112 hard_links=nottested
9113 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9114 # do not overwrite the value of need_locks provided by the user
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9116 printf %s "checking if we can lock with hard links... " >&6; }
9117 hard_links=yes
9118 $RM conftest*
9119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9120 touch conftest.a
9121 ln conftest.a conftest.b 2>&5 || hard_links=no
9122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9124 printf "%s\n" "$hard_links" >&6; }
9125 if test no = "$hard_links"; then
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9127 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9128 need_locks=warn
9129 fi
9130 else
9131 need_locks=no
9132 fi
9133
9134
9135
9136
9137
9138
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9140 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9141
9142 runpath_var=
9143 allow_undefined_flag=
9144 always_export_symbols=no
9145 archive_cmds=
9146 archive_expsym_cmds=
9147 compiler_needs_object=no
9148 enable_shared_with_static_runtimes=no
9149 export_dynamic_flag_spec=
9150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9151 hardcode_automatic=no
9152 hardcode_direct=no
9153 hardcode_direct_absolute=no
9154 hardcode_libdir_flag_spec=
9155 hardcode_libdir_separator=
9156 hardcode_minus_L=no
9157 hardcode_shlibpath_var=unsupported
9158 inherit_rpath=no
9159 link_all_deplibs=unknown
9160 module_cmds=
9161 module_expsym_cmds=
9162 old_archive_from_new_cmds=
9163 old_archive_from_expsyms_cmds=
9164 thread_safe_flag_spec=
9165 whole_archive_flag_spec=
9166 # include_expsyms should be a list of space-separated symbols to be *always*
9167 # included in the symbol list
9168 include_expsyms=
9169 # exclude_expsyms can be an extended regexp of symbols to exclude
9170 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9171 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9172 # as well as any symbol that contains 'd'.
9173 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9175 # platforms (ab)use it in PIC code, but their linkers get confused if
9176 # the symbol is explicitly referenced. Since portable code cannot
9177 # rely on this symbol name, it's probably fine to never include it in
9178 # preloaded symbol tables.
9179 # Exclude shared library initialization/finalization symbols.
9180 extract_expsyms_cmds=
9181
9182 case $host_os in
9183 cygwin* | mingw* | pw32* | cegcc*)
9184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9185 # When not using gcc, we currently assume that we are using
9186 # Microsoft Visual C++.
9187 if test yes != "$GCC"; then
9188 with_gnu_ld=no
9189 fi
9190 ;;
9191 interix*)
9192 # we just hope/assume this is gcc and not c89 (= MSVC++)
9193 with_gnu_ld=yes
9194 ;;
9195 openbsd* | bitrig*)
9196 with_gnu_ld=no
9197 ;;
9198 linux* | k*bsd*-gnu | gnu*)
9199 link_all_deplibs=no
9200 ;;
9201 esac
9202
9203 ld_shlibs=yes
9204
9205 # On some targets, GNU ld is compatible enough with the native linker
9206 # that we're better off using the native interface for both.
9207 lt_use_gnu_ld_interface=no
9208 if test yes = "$with_gnu_ld"; then
9209 case $host_os in
9210 aix*)
9211 # The AIX port of GNU ld has always aspired to compatibility
9212 # with the native linker. However, as the warning in the GNU ld
9213 # block says, versions before 2.19.5* couldn't really create working
9214 # shared libraries, regardless of the interface used.
9215 case `$LD -v 2>&1` in
9216 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9217 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9218 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9219 *)
9220 lt_use_gnu_ld_interface=yes
9221 ;;
9222 esac
9223 ;;
9224 *)
9225 lt_use_gnu_ld_interface=yes
9226 ;;
9227 esac
9228 fi
9229
9230 if test yes = "$lt_use_gnu_ld_interface"; then
9231 # If archive_cmds runs LD, not CC, wlarc should be empty
9232 wlarc='$wl'
9233
9234 # Set some defaults for GNU ld with shared library support. These
9235 # are reset later if shared libraries are not supported. Putting them
9236 # here allows them to be overridden if necessary.
9237 runpath_var=LD_RUN_PATH
9238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9239 export_dynamic_flag_spec='$wl--export-dynamic'
9240 # ancient GNU ld didn't support --whole-archive et. al.
9241 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9242 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9243 else
9244 whole_archive_flag_spec=
9245 fi
9246 supports_anon_versioning=no
9247 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9248 *GNU\ gold*) supports_anon_versioning=yes ;;
9249 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252 *\ 2.11.*) ;; # other 2.11 versions
9253 *) supports_anon_versioning=yes ;;
9254 esac
9255
9256 # See if GNU ld supports shared libraries.
9257 case $host_os in
9258 aix[3-9]*)
9259 # On AIX/PPC, the GNU linker is very broken
9260 if test ia64 != "$host_cpu"; then
9261 ld_shlibs=no
9262 cat <<_LT_EOF 1>&2
9263
9264 *** Warning: the GNU linker, at least up to release 2.19, is reported
9265 *** to be unable to reliably create shared libraries on AIX.
9266 *** Therefore, libtool is disabling shared libraries support. If you
9267 *** really care for shared libraries, you may want to install binutils
9268 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9269 *** You will then need to restart the configuration process.
9270
9271 _LT_EOF
9272 fi
9273 ;;
9274
9275 amigaos*)
9276 case $host_cpu in
9277 powerpc)
9278 # see comment about AmigaOS4 .so support
9279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9280 archive_expsym_cmds=''
9281 ;;
9282 m68k)
9283 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9286 ;;
9287 esac
9288 ;;
9289
9290 beos*)
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 allow_undefined_flag=unsupported
9293 # Joseph Beckenbach <[email protected]> says some releases of gcc
9294 # support --undefined. This deserves some investigation. FIXME
9295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296 else
9297 ld_shlibs=no
9298 fi
9299 ;;
9300
9301 cygwin* | mingw* | pw32* | cegcc*)
9302 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9303 # as there is no search path for DLLs.
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 export_dynamic_flag_spec='$wl--export-all-symbols'
9306 allow_undefined_flag=unsupported
9307 always_export_symbols=no
9308 enable_shared_with_static_runtimes=yes
9309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9310 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9311
9312 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314 # If the export-symbols file already is a .def file, use it as
9315 # is; otherwise, prepend EXPORTS...
9316 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9317 cp $export_symbols $output_objdir/$soname.def;
9318 else
9319 echo EXPORTS > $output_objdir/$soname.def;
9320 cat $export_symbols >> $output_objdir/$soname.def;
9321 fi~
9322 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327
9328 haiku*)
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330 link_all_deplibs=yes
9331 ;;
9332
9333 os2*)
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_minus_L=yes
9336 allow_undefined_flag=unsupported
9337 shrext_cmds=.dll
9338 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9341 $ECHO EXPORTS >> $output_objdir/$libname.def~
9342 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9343 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9344 emximp -o $lib $output_objdir/$libname.def'
9345 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9346 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9347 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9348 $ECHO EXPORTS >> $output_objdir/$libname.def~
9349 prefix_cmds="$SED"~
9350 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9351 prefix_cmds="$prefix_cmds -e 1d";
9352 fi~
9353 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9354 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9355 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9356 emximp -o $lib $output_objdir/$libname.def'
9357 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9358 enable_shared_with_static_runtimes=yes
9359 ;;
9360
9361 interix[3-9]*)
9362 hardcode_direct=no
9363 hardcode_shlibpath_var=no
9364 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9365 export_dynamic_flag_spec='$wl-E'
9366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9367 # Instead, shared libraries are loaded at an image base (0x10000000 by
9368 # default) and relocated if they conflict, which is a slow very memory
9369 # consuming and fragmenting process. To avoid this, we pick a random,
9370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9373 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9374 ;;
9375
9376 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9377 tmp_diet=no
9378 if test linux-dietlibc = "$host_os"; then
9379 case $cc_basename in
9380 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9381 esac
9382 fi
9383 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9384 && test no = "$tmp_diet"
9385 then
9386 tmp_addflag=' $pic_flag'
9387 tmp_sharedflag='-shared'
9388 case $cc_basename,$host_cpu in
9389 pgcc*) # Portland Group C compiler
9390 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9391 tmp_addflag=' $pic_flag'
9392 ;;
9393 pgf77* | pgf90* | pgf95* | pgfortran*)
9394 # Portland Group f77 and f90 compilers
9395 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9396 tmp_addflag=' $pic_flag -Mnomain' ;;
9397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9398 tmp_addflag=' -i_dynamic' ;;
9399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9400 tmp_addflag=' -i_dynamic -nofor_main' ;;
9401 ifc* | ifort*) # Intel Fortran compiler
9402 tmp_addflag=' -nofor_main' ;;
9403 lf95*) # Lahey Fortran 8.1
9404 whole_archive_flag_spec=
9405 tmp_sharedflag='--shared' ;;
9406 nagfor*) # NAGFOR 5.3
9407 tmp_sharedflag='-Wl,-shared' ;;
9408 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9409 tmp_sharedflag='-qmkshrobj'
9410 tmp_addflag= ;;
9411 nvcc*) # Cuda Compiler Driver 2.2
9412 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9413 compiler_needs_object=yes
9414 ;;
9415 esac
9416 case `$CC -V 2>&1 | sed 5q` in
9417 *Sun\ C*) # Sun C 5.9
9418 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9419 compiler_needs_object=yes
9420 tmp_sharedflag='-G' ;;
9421 *Sun\ F*) # Sun Fortran 8.3
9422 tmp_sharedflag='-G' ;;
9423 esac
9424 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9425
9426 if test yes = "$supports_anon_versioning"; then
9427 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9429 echo "local: *; };" >> $output_objdir/$libname.ver~
9430 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9431 fi
9432
9433 case $cc_basename in
9434 tcc*)
9435 export_dynamic_flag_spec='-rdynamic'
9436 ;;
9437 xlf* | bgf* | bgxlf* | mpixlf*)
9438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9441 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9442 if test yes = "$supports_anon_versioning"; then
9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445 echo "local: *; };" >> $output_objdir/$libname.ver~
9446 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9447 fi
9448 ;;
9449 esac
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;;
9454
9455 netbsd* | netbsdelf*-gnu)
9456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9458 wlarc=
9459 else
9460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9462 fi
9463 ;;
9464
9465 solaris*)
9466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9467 ld_shlibs=no
9468 cat <<_LT_EOF 1>&2
9469
9470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9471 *** create shared libraries on Solaris systems. Therefore, libtool
9472 *** is disabling shared libraries support. We urge you to upgrade GNU
9473 *** binutils to release 2.9.1 or newer. Another option is to modify
9474 *** your PATH or compiler configuration so that the native linker is
9475 *** used, and then restart.
9476
9477 _LT_EOF
9478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
9485
9486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9487 case `$LD -v 2>&1` in
9488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9489 ld_shlibs=no
9490 cat <<_LT_EOF 1>&2
9491
9492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9493 *** reliably create shared libraries on SCO systems. Therefore, libtool
9494 *** is disabling shared libraries support. We urge you to upgrade GNU
9495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9496 *** your PATH or compiler configuration so that the native linker is
9497 *** used, and then restart.
9498
9499 _LT_EOF
9500 ;;
9501 *)
9502 # For security reasons, it is highly recommended that you always
9503 # use absolute paths for naming shared libraries, and exclude the
9504 # DT_RUNPATH tag from executables and libraries. But doing so
9505 # requires that you compile everything twice, which is a pain.
9506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9510 else
9511 ld_shlibs=no
9512 fi
9513 ;;
9514 esac
9515 ;;
9516
9517 sunos4*)
9518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 wlarc=
9520 hardcode_direct=yes
9521 hardcode_shlibpath_var=no
9522 ;;
9523
9524 *)
9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532 esac
9533
9534 if test no = "$ld_shlibs"; then
9535 runpath_var=
9536 hardcode_libdir_flag_spec=
9537 export_dynamic_flag_spec=
9538 whole_archive_flag_spec=
9539 fi
9540 else
9541 # PORTME fill in a description of your system's linker (not GNU ld)
9542 case $host_os in
9543 aix3*)
9544 allow_undefined_flag=unsupported
9545 always_export_symbols=yes
9546 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9547 # Note: this linker hardcodes the directories in LIBPATH if there
9548 # are no directories specified by -L.
9549 hardcode_minus_L=yes
9550 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9551 # Neither direct hardcoding nor static linking is supported with a
9552 # broken collect2.
9553 hardcode_direct=unsupported
9554 fi
9555 ;;
9556
9557 aix[4-9]*)
9558 if test ia64 = "$host_cpu"; then
9559 # On IA64, the linker does run time linking by default, so we don't
9560 # have to do anything special.
9561 aix_use_runtimelinking=no
9562 exp_sym_flag='-Bexport'
9563 no_entry_flag=
9564 else
9565 # If we're using GNU nm, then we don't want the "-C" option.
9566 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9567 # Without the "-l" option, or with the "-B" option, AIX nm treats
9568 # weak defined symbols like other global defined symbols, whereas
9569 # GNU nm marks them as "W".
9570 # While the 'weak' keyword is ignored in the Export File, we need
9571 # it in the Import File for the 'aix-soname' feature, so we have
9572 # to replace the "-B" option with "-P" for AIX nm.
9573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9574 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9575 else
9576 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9577 fi
9578 aix_use_runtimelinking=no
9579
9580 # Test if we are trying to use run time linking or normal
9581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9582 # have runtime linking enabled, and use it for executables.
9583 # For shared libraries, we enable/disable runtime linking
9584 # depending on the kind of the shared library created -
9585 # when "with_aix_soname,aix_use_runtimelinking" is:
9586 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9587 # "aix,yes" lib.so shared, rtl:yes, for executables
9588 # lib.a static archive
9589 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9590 # lib.a(lib.so.V) shared, rtl:no, for executables
9591 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9592 # lib.a(lib.so.V) shared, rtl:no
9593 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9594 # lib.a static archive
9595 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9596 for ld_flag in $LDFLAGS; do
9597 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9598 aix_use_runtimelinking=yes
9599 break
9600 fi
9601 done
9602 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9603 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9604 # so we don't have lib.a shared libs to link our executables.
9605 # We have to force runtime linking in this case.
9606 aix_use_runtimelinking=yes
9607 LDFLAGS="$LDFLAGS -Wl,-brtl"
9608 fi
9609 ;;
9610 esac
9611
9612 exp_sym_flag='-bexport'
9613 no_entry_flag='-bnoentry'
9614 fi
9615
9616 # When large executables or shared objects are built, AIX ld can
9617 # have problems creating the table of contents. If linking a library
9618 # or program results in "error TOC overflow" add -mminimal-toc to
9619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9621
9622 archive_cmds=''
9623 hardcode_direct=yes
9624 hardcode_direct_absolute=yes
9625 hardcode_libdir_separator=':'
9626 link_all_deplibs=yes
9627 file_list_spec='$wl-f,'
9628 case $with_aix_soname,$aix_use_runtimelinking in
9629 aix,*) ;; # traditional, no import file
9630 svr4,* | *,yes) # use import file
9631 # The Import File defines what to hardcode.
9632 hardcode_direct=no
9633 hardcode_direct_absolute=no
9634 ;;
9635 esac
9636
9637 if test yes = "$GCC"; then
9638 case $host_os in aix4.[012]|aix4.[012].*)
9639 # We only want to do this on AIX 4.2 and lower, the check
9640 # below for broken collect2 doesn't work under 4.3+
9641 collect2name=`$CC -print-prog-name=collect2`
9642 if test -f "$collect2name" &&
9643 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9644 then
9645 # We have reworked collect2
9646 :
9647 else
9648 # We have old collect2
9649 hardcode_direct=unsupported
9650 # It fails to find uninstalled libraries when the uninstalled
9651 # path is not listed in the libpath. Setting hardcode_minus_L
9652 # to unsupported forces relinking
9653 hardcode_minus_L=yes
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_libdir_separator=
9656 fi
9657 ;;
9658 esac
9659 shared_flag='-shared'
9660 if test yes = "$aix_use_runtimelinking"; then
9661 shared_flag="$shared_flag "'$wl-G'
9662 fi
9663 # Need to ensure runtime linking is disabled for the traditional
9664 # shared library, or the linker may eventually find shared libraries
9665 # /with/ Import File - we do not want to mix them.
9666 shared_flag_aix='-shared'
9667 shared_flag_svr4='-shared $wl-G'
9668 else
9669 # not using gcc
9670 if test ia64 = "$host_cpu"; then
9671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9672 # chokes on -Wl,-G. The following line is correct:
9673 shared_flag='-G'
9674 else
9675 if test yes = "$aix_use_runtimelinking"; then
9676 shared_flag='$wl-G'
9677 else
9678 shared_flag='$wl-bM:SRE'
9679 fi
9680 shared_flag_aix='$wl-bM:SRE'
9681 shared_flag_svr4='$wl-G'
9682 fi
9683 fi
9684
9685 export_dynamic_flag_spec='$wl-bexpall'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols=yes
9689 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag='-berok'
9693 # Determine the default libpath from the value encoded in an
9694 # empty executable.
9695 if test set = "${lt_cv_aix_libpath+set}"; then
9696 aix_libpath=$lt_cv_aix_libpath
9697 else
9698 if test ${lt_cv_aix_libpath_+y}
9699 then :
9700 printf %s "(cached) " >&6
9701 else $as_nop
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704
9705 int
9706 main (void)
9707 {
9708
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"
9714 then :
9715
9716 lt_aix_libpath_sed='
9717 /Import File Strings/,/^$/ {
9718 /^0/ {
9719 s/^0 *\([^ ]*\) *$/\1/
9720 p
9721 }
9722 }'
9723 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9724 # Check for a 64-bit object if we didn't find anything.
9725 if test -z "$lt_cv_aix_libpath_"; then
9726 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9727 fi
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9730 conftest$ac_exeext conftest.$ac_ext
9731 if test -z "$lt_cv_aix_libpath_"; then
9732 lt_cv_aix_libpath_=/usr/lib:/lib
9733 fi
9734
9735 fi
9736
9737 aix_libpath=$lt_cv_aix_libpath_
9738 fi
9739
9740 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9741 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9742 else
9743 if test ia64 = "$host_cpu"; then
9744 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9745 allow_undefined_flag="-z nodefs"
9746 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9747 else
9748 # Determine the default libpath from the value encoded in an
9749 # empty executable.
9750 if test set = "${lt_cv_aix_libpath+set}"; then
9751 aix_libpath=$lt_cv_aix_libpath
9752 else
9753 if test ${lt_cv_aix_libpath_+y}
9754 then :
9755 printf %s "(cached) " >&6
9756 else $as_nop
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759
9760 int
9761 main (void)
9762 {
9763
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 if ac_fn_c_try_link "$LINENO"
9769 then :
9770
9771 lt_aix_libpath_sed='
9772 /Import File Strings/,/^$/ {
9773 /^0/ {
9774 s/^0 *\([^ ]*\) *$/\1/
9775 p
9776 }
9777 }'
9778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9779 # Check for a 64-bit object if we didn't find anything.
9780 if test -z "$lt_cv_aix_libpath_"; then
9781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782 fi
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9785 conftest$ac_exeext conftest.$ac_ext
9786 if test -z "$lt_cv_aix_libpath_"; then
9787 lt_cv_aix_libpath_=/usr/lib:/lib
9788 fi
9789
9790 fi
9791
9792 aix_libpath=$lt_cv_aix_libpath_
9793 fi
9794
9795 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9796 # Warning - without using the other run time loading flags,
9797 # -berok will link without error, but may produce a broken library.
9798 no_undefined_flag=' $wl-bernotok'
9799 allow_undefined_flag=' $wl-berok'
9800 if test yes = "$with_gnu_ld"; then
9801 # We only use this code for GNU lds that support --whole-archive.
9802 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9803 else
9804 # Exported symbols can be pulled into shared objects from archives
9805 whole_archive_flag_spec='$convenience'
9806 fi
9807 archive_cmds_need_lc=yes
9808 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9809 # -brtl affects multiple linker settings, -berok does not and is overridden later
9810 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9811 if test svr4 != "$with_aix_soname"; then
9812 # This is similar to how AIX traditionally builds its shared libraries.
9813 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9814 fi
9815 if test aix != "$with_aix_soname"; then
9816 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9817 else
9818 # used by -dlpreopen to get the symbols
9819 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9820 fi
9821 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9822 fi
9823 fi
9824 ;;
9825
9826 amigaos*)
9827 case $host_cpu in
9828 powerpc)
9829 # see comment about AmigaOS4 .so support
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9831 archive_expsym_cmds=''
9832 ;;
9833 m68k)
9834 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9835 hardcode_libdir_flag_spec='-L$libdir'
9836 hardcode_minus_L=yes
9837 ;;
9838 esac
9839 ;;
9840
9841 bsdi[45]*)
9842 export_dynamic_flag_spec=-rdynamic
9843 ;;
9844
9845 cygwin* | mingw* | pw32* | cegcc*)
9846 # When not using gcc, we currently assume that we are using
9847 # Microsoft Visual C++.
9848 # hardcode_libdir_flag_spec is actually meaningless, as there is
9849 # no search path for DLLs.
9850 case $cc_basename in
9851 cl*)
9852 # Native MSVC
9853 hardcode_libdir_flag_spec=' '
9854 allow_undefined_flag=unsupported
9855 always_export_symbols=yes
9856 file_list_spec='@'
9857 # Tell ltmain to make .lib files, not .a files.
9858 libext=lib
9859 # Tell ltmain to make .dll files, not .so files.
9860 shrext_cmds=.dll
9861 # FIXME: Setting linknames here is a bad hack.
9862 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9863 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9864 cp "$export_symbols" "$output_objdir/$soname.def";
9865 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9866 else
9867 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9868 fi~
9869 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9870 linknames='
9871 # The linker will not automatically build a static lib if we build a DLL.
9872 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9873 enable_shared_with_static_runtimes=yes
9874 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9876 # Don't use ranlib
9877 old_postinstall_cmds='chmod 644 $oldlib'
9878 postlink_cmds='lt_outputfile="@OUTPUT@"~
9879 lt_tool_outputfile="@TOOL_OUTPUT@"~
9880 case $lt_outputfile in
9881 *.exe|*.EXE) ;;
9882 *)
9883 lt_outputfile=$lt_outputfile.exe
9884 lt_tool_outputfile=$lt_tool_outputfile.exe
9885 ;;
9886 esac~
9887 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9889 $RM "$lt_outputfile.manifest";
9890 fi'
9891 ;;
9892 *)
9893 # Assume MSVC wrapper
9894 hardcode_libdir_flag_spec=' '
9895 allow_undefined_flag=unsupported
9896 # Tell ltmain to make .lib files, not .a files.
9897 libext=lib
9898 # Tell ltmain to make .dll files, not .so files.
9899 shrext_cmds=.dll
9900 # FIXME: Setting linknames here is a bad hack.
9901 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9902 # The linker will automatically build a .lib file if we build a DLL.
9903 old_archive_from_new_cmds='true'
9904 # FIXME: Should let the user specify the lib program.
9905 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9906 enable_shared_with_static_runtimes=yes
9907 ;;
9908 esac
9909 ;;
9910
9911 darwin* | rhapsody*)
9912
9913
9914 archive_cmds_need_lc=no
9915 hardcode_direct=no
9916 hardcode_automatic=yes
9917 hardcode_shlibpath_var=unsupported
9918 if test yes = "$lt_cv_ld_force_load"; then
9919 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9920
9921 else
9922 whole_archive_flag_spec=''
9923 fi
9924 link_all_deplibs=yes
9925 allow_undefined_flag=$_lt_dar_allow_undefined
9926 case $cc_basename in
9927 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9928 *) _lt_dar_can_shared=$GCC ;;
9929 esac
9930 if test yes = "$_lt_dar_can_shared"; then
9931 output_verbose_link_cmd=func_echo_all
9932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9934 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9935 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9936
9937 else
9938 ld_shlibs=no
9939 fi
9940
9941 ;;
9942
9943 dgux*)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9950 # support. Future versions do this automatically, but an explicit c++rt0.o
9951 # does not break anything, and helps significantly (at the cost of a little
9952 # extra space).
9953 freebsd2.2*)
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
9958 ;;
9959
9960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9961 freebsd2.*)
9962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_direct=yes
9964 hardcode_minus_L=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9969 freebsd* | dragonfly*)
9970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 hpux9*)
9977 if test yes = "$GCC"; then
9978 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9979 else
9980 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9981 fi
9982 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9983 hardcode_libdir_separator=:
9984 hardcode_direct=yes
9985
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9989 export_dynamic_flag_spec='$wl-E'
9990 ;;
9991
9992 hpux10*)
9993 if test yes,no = "$GCC,$with_gnu_ld"; then
9994 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995 else
9996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997 fi
9998 if test no = "$with_gnu_ld"; then
9999 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10000 hardcode_libdir_separator=:
10001 hardcode_direct=yes
10002 hardcode_direct_absolute=yes
10003 export_dynamic_flag_spec='$wl-E'
10004 # hardcode_minus_L: Not really in the search PATH,
10005 # but as the default location of the library.
10006 hardcode_minus_L=yes
10007 fi
10008 ;;
10009
10010 hpux11*)
10011 if test yes,no = "$GCC,$with_gnu_ld"; then
10012 case $host_cpu in
10013 hppa*64*)
10014 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 ;;
10016 ia64*)
10017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10018 ;;
10019 *)
10020 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10021 ;;
10022 esac
10023 else
10024 case $host_cpu in
10025 hppa*64*)
10026 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 ;;
10028 ia64*)
10029 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10030 ;;
10031 *)
10032
10033 # Older versions of the 11.00 compiler do not understand -b yet
10034 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10036 printf %s "checking if $CC understands -b... " >&6; }
10037 if test ${lt_cv_prog_compiler__b+y}
10038 then :
10039 printf %s "(cached) " >&6
10040 else $as_nop
10041 lt_cv_prog_compiler__b=no
10042 save_LDFLAGS=$LDFLAGS
10043 LDFLAGS="$LDFLAGS -b"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 else
10057 lt_cv_prog_compiler__b=yes
10058 fi
10059 fi
10060 $RM -r conftest*
10061 LDFLAGS=$save_LDFLAGS
10062
10063 fi
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10066
10067 if test yes = "$lt_cv_prog_compiler__b"; then
10068 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072
10073 ;;
10074 esac
10075 fi
10076 if test no = "$with_gnu_ld"; then
10077 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10078 hardcode_libdir_separator=:
10079
10080 case $host_cpu in
10081 hppa*64*|ia64*)
10082 hardcode_direct=no
10083 hardcode_shlibpath_var=no
10084 ;;
10085 *)
10086 hardcode_direct=yes
10087 hardcode_direct_absolute=yes
10088 export_dynamic_flag_spec='$wl-E'
10089
10090 # hardcode_minus_L: Not really in the search PATH,
10091 # but as the default location of the library.
10092 hardcode_minus_L=yes
10093 ;;
10094 esac
10095 fi
10096 ;;
10097
10098 irix5* | irix6* | nonstopux*)
10099 if test yes = "$GCC"; then
10100 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10101 # Try to use the -exported_symbol ld option, if it does not
10102 # work, assume that -exports_file does not work either and
10103 # implicitly export all symbols.
10104 # This should be the same for all languages, so no per-tag cache variable.
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10106 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10107 if test ${lt_cv_irix_exported_symbol+y}
10108 then :
10109 printf %s "(cached) " >&6
10110 else $as_nop
10111 save_LDFLAGS=$LDFLAGS
10112 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115 int foo (void) { return 0; }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"
10118 then :
10119 lt_cv_irix_exported_symbol=yes
10120 else $as_nop
10121 lt_cv_irix_exported_symbol=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LDFLAGS=$save_LDFLAGS
10126 fi
10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10128 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10129 if test yes = "$lt_cv_irix_exported_symbol"; then
10130 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10131 fi
10132 link_all_deplibs=no
10133 else
10134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10139 hardcode_libdir_separator=:
10140 inherit_rpath=yes
10141 link_all_deplibs=yes
10142 ;;
10143
10144 linux*)
10145 case $cc_basename in
10146 tcc*)
10147 # Fabrice Bellard et al's Tiny C Compiler
10148 ld_shlibs=yes
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 ;;
10151 esac
10152 ;;
10153
10154 netbsd* | netbsdelf*-gnu)
10155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10157 else
10158 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10159 fi
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_direct=yes
10162 hardcode_shlibpath_var=no
10163 ;;
10164
10165 newsos6)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_direct=yes
10168 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10169 hardcode_libdir_separator=:
10170 hardcode_shlibpath_var=no
10171 ;;
10172
10173 *nto* | *qnx*)
10174 ;;
10175
10176 openbsd* | bitrig*)
10177 if test -f /usr/libexec/ld.so; then
10178 hardcode_direct=yes
10179 hardcode_shlibpath_var=no
10180 hardcode_direct_absolute=yes
10181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10184 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10185 export_dynamic_flag_spec='$wl-E'
10186 else
10187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10188 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10189 fi
10190 else
10191 ld_shlibs=no
10192 fi
10193 ;;
10194
10195 os2*)
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 hardcode_minus_L=yes
10198 allow_undefined_flag=unsupported
10199 shrext_cmds=.dll
10200 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10203 $ECHO EXPORTS >> $output_objdir/$libname.def~
10204 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10205 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10206 emximp -o $lib $output_objdir/$libname.def'
10207 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10210 $ECHO EXPORTS >> $output_objdir/$libname.def~
10211 prefix_cmds="$SED"~
10212 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10213 prefix_cmds="$prefix_cmds -e 1d";
10214 fi~
10215 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10216 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10217 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10218 emximp -o $lib $output_objdir/$libname.def'
10219 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10220 enable_shared_with_static_runtimes=yes
10221 ;;
10222
10223 osf3*)
10224 if test yes = "$GCC"; then
10225 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10226 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10227 else
10228 allow_undefined_flag=' -expect_unresolved \*'
10229 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10230 fi
10231 archive_cmds_need_lc='no'
10232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10233 hardcode_libdir_separator=:
10234 ;;
10235
10236 osf4* | osf5*) # as osf3* with the addition of -msym flag
10237 if test yes = "$GCC"; then
10238 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10239 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10241 else
10242 allow_undefined_flag=' -expect_unresolved \*'
10243 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10244 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10245 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10246
10247 # Both c and cxx compiler support -rpath directly
10248 hardcode_libdir_flag_spec='-rpath $libdir'
10249 fi
10250 archive_cmds_need_lc='no'
10251 hardcode_libdir_separator=:
10252 ;;
10253
10254 solaris*)
10255 no_undefined_flag=' -z defs'
10256 if test yes = "$GCC"; then
10257 wlarc='$wl'
10258 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10261 else
10262 case `$CC -V 2>&1` in
10263 *"Compilers 5.0"*)
10264 wlarc=''
10265 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10267 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10268 ;;
10269 *)
10270 wlarc='$wl'
10271 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10273 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10274 ;;
10275 esac
10276 fi
10277 hardcode_libdir_flag_spec='-R$libdir'
10278 hardcode_shlibpath_var=no
10279 case $host_os in
10280 solaris2.[0-5] | solaris2.[0-5].*) ;;
10281 *)
10282 # The compiler driver will combine and reorder linker options,
10283 # but understands '-z linker_flag'. GCC discards it without '$wl',
10284 # but is careful enough not to reorder.
10285 # Supported since Solaris 2.6 (maybe 2.5.1?)
10286 if test yes = "$GCC"; then
10287 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10288 else
10289 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10290 fi
10291 ;;
10292 esac
10293 link_all_deplibs=yes
10294 ;;
10295
10296 sunos4*)
10297 if test sequent = "$host_vendor"; then
10298 # Use $CC to link under sequent, because it throws in some extra .o
10299 # files that make .init and .fini sections work.
10300 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10301 else
10302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10303 fi
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_direct=yes
10306 hardcode_minus_L=yes
10307 hardcode_shlibpath_var=no
10308 ;;
10309
10310 sysv4)
10311 case $host_vendor in
10312 sni)
10313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314 hardcode_direct=yes # is this really true???
10315 ;;
10316 siemens)
10317 ## LD is ld it makes a PLAMLIB
10318 ## CC just makes a GrossModule.
10319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10320 reload_cmds='$CC -r -o $output$reload_objs'
10321 hardcode_direct=no
10322 ;;
10323 motorola)
10324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10326 ;;
10327 esac
10328 runpath_var='LD_RUN_PATH'
10329 hardcode_shlibpath_var=no
10330 ;;
10331
10332 sysv4.3*)
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_shlibpath_var=no
10335 export_dynamic_flag_spec='-Bexport'
10336 ;;
10337
10338 sysv4*MP*)
10339 if test -d /usr/nec; then
10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_shlibpath_var=no
10342 runpath_var=LD_RUN_PATH
10343 hardcode_runpath_var=yes
10344 ld_shlibs=yes
10345 fi
10346 ;;
10347
10348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10349 no_undefined_flag='$wl-z,text'
10350 archive_cmds_need_lc=no
10351 hardcode_shlibpath_var=no
10352 runpath_var='LD_RUN_PATH'
10353
10354 if test yes = "$GCC"; then
10355 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 else
10358 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 fi
10361 ;;
10362
10363 sysv5* | sco3.2v5* | sco5v6*)
10364 # Note: We CANNOT use -z defs as we might desire, because we do not
10365 # link with -lc, and that would cause any symbols used from libc to
10366 # always be unresolved, which means just about no library would
10367 # ever link correctly. If we're not using GNU ld we use -z text
10368 # though, which does catch some bad symbols but isn't as heavy-handed
10369 # as -z defs.
10370 no_undefined_flag='$wl-z,text'
10371 allow_undefined_flag='$wl-z,nodefs'
10372 archive_cmds_need_lc=no
10373 hardcode_shlibpath_var=no
10374 hardcode_libdir_flag_spec='$wl-R,$libdir'
10375 hardcode_libdir_separator=':'
10376 link_all_deplibs=yes
10377 export_dynamic_flag_spec='$wl-Bexport'
10378 runpath_var='LD_RUN_PATH'
10379
10380 if test yes = "$GCC"; then
10381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 else
10384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 fi
10387 ;;
10388
10389 uts4*)
10390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_libdir_flag_spec='-L$libdir'
10392 hardcode_shlibpath_var=no
10393 ;;
10394
10395 *)
10396 ld_shlibs=no
10397 ;;
10398 esac
10399
10400 if test sni = "$host_vendor"; then
10401 case $host in
10402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10403 export_dynamic_flag_spec='$wl-Blargedynsym'
10404 ;;
10405 esac
10406 fi
10407 fi
10408
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10410 printf "%s\n" "$ld_shlibs" >&6; }
10411 test no = "$ld_shlibs" && can_build_shared=no
10412
10413 with_gnu_ld=$with_gnu_ld
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429 #
10430 # Do we need to explicitly link libc?
10431 #
10432 case "x$archive_cmds_need_lc" in
10433 x|xyes)
10434 # Assume -lc should be added
10435 archive_cmds_need_lc=yes
10436
10437 if test yes,yes = "$GCC,$enable_shared"; then
10438 case $archive_cmds in
10439 *'~'*)
10440 # FIXME: we may have to deal with multi-command sequences.
10441 ;;
10442 '$CC '*)
10443 # Test whether the compiler implicitly links with -lc since on some
10444 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10445 # to ld, don't add -lc before -lgcc.
10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10447 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10448 if test ${lt_cv_archive_cmds_need_lc+y}
10449 then :
10450 printf %s "(cached) " >&6
10451 else $as_nop
10452 $RM conftest*
10453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10454
10455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10456 (eval $ac_compile) 2>&5
10457 ac_status=$?
10458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10459 test $ac_status = 0; } 2>conftest.err; then
10460 soname=conftest
10461 lib=conftest
10462 libobjs=conftest.$ac_objext
10463 deplibs=
10464 wl=$lt_prog_compiler_wl
10465 pic_flag=$lt_prog_compiler_pic
10466 compiler_flags=-v
10467 linker_flags=-v
10468 verstring=
10469 output_objdir=.
10470 libname=conftest
10471 lt_save_allow_undefined_flag=$allow_undefined_flag
10472 allow_undefined_flag=
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10474 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10475 ac_status=$?
10476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; }
10478 then
10479 lt_cv_archive_cmds_need_lc=no
10480 else
10481 lt_cv_archive_cmds_need_lc=yes
10482 fi
10483 allow_undefined_flag=$lt_save_allow_undefined_flag
10484 else
10485 cat conftest.err 1>&5
10486 fi
10487 $RM conftest*
10488
10489 fi
10490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10491 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10493 ;;
10494 esac
10495 fi
10496 ;;
10497 esac
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10651 printf %s "checking dynamic linker characteristics... " >&6; }
10652
10653 if test yes = "$GCC"; then
10654 case $host_os in
10655 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10656 *) lt_awk_arg='/^libraries:/' ;;
10657 esac
10658 case $host_os in
10659 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10660 *) lt_sed_strip_eq='s|=/|/|g' ;;
10661 esac
10662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10663 case $lt_search_path_spec in
10664 *\;*)
10665 # if the path contains ";" then we assume it to be the separator
10666 # otherwise default to the standard path separator (i.e. ":") - it is
10667 # assumed that no part of a normal pathname contains ";" but that should
10668 # okay in the real world where ";" in dirpaths is itself problematic.
10669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10670 ;;
10671 *)
10672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10673 ;;
10674 esac
10675 # Ok, now we have the path, separated by spaces, we can step through it
10676 # and add multilib dir if necessary...
10677 lt_tmp_lt_search_path_spec=
10678 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10679 # ...but if some path component already ends with the multilib dir we assume
10680 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10681 case "$lt_multi_os_dir; $lt_search_path_spec " in
10682 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10683 lt_multi_os_dir=
10684 ;;
10685 esac
10686 for lt_sys_path in $lt_search_path_spec; do
10687 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10689 elif test -n "$lt_multi_os_dir"; then
10690 test -d "$lt_sys_path" && \
10691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10692 fi
10693 done
10694 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10695 BEGIN {RS = " "; FS = "/|\n";} {
10696 lt_foo = "";
10697 lt_count = 0;
10698 for (lt_i = NF; lt_i > 0; lt_i--) {
10699 if ($lt_i != "" && $lt_i != ".") {
10700 if ($lt_i == "..") {
10701 lt_count++;
10702 } else {
10703 if (lt_count == 0) {
10704 lt_foo = "/" $lt_i lt_foo;
10705 } else {
10706 lt_count--;
10707 }
10708 }
10709 }
10710 }
10711 if (lt_foo != "") { lt_freq[lt_foo]++; }
10712 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10713 }'`
10714 # AWK program above erroneously prepends '/' to C:/dos/paths
10715 # for these hosts.
10716 case $host_os in
10717 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10718 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10719 esac
10720 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10721 else
10722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10723 fi
10724 library_names_spec=
10725 libname_spec='lib$name'
10726 soname_spec=
10727 shrext_cmds=.so
10728 postinstall_cmds=
10729 postuninstall_cmds=
10730 finish_cmds=
10731 finish_eval=
10732 shlibpath_var=
10733 shlibpath_overrides_runpath=unknown
10734 version_type=none
10735 dynamic_linker="$host_os ld.so"
10736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10737 need_lib_prefix=unknown
10738 hardcode_into_libs=no
10739
10740 # when you set need_version to no, make sure it does not cause -set_version
10741 # flags to be left without arguments
10742 need_version=unknown
10743
10744
10745
10746 case $host_os in
10747 aix3*)
10748 version_type=linux # correct to gnu/linux during the next big refactor
10749 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10750 shlibpath_var=LIBPATH
10751
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec='$libname$release$shared_ext$major'
10754 ;;
10755
10756 aix[4-9]*)
10757 version_type=linux # correct to gnu/linux during the next big refactor
10758 need_lib_prefix=no
10759 need_version=no
10760 hardcode_into_libs=yes
10761 if test ia64 = "$host_cpu"; then
10762 # AIX 5 supports IA64
10763 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 else
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line '#! .'. This would cause the generated library to
10769 # depend on '.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10771 case $host_os in
10772 aix4 | aix4.[01] | aix4.[01].*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774 echo ' yes '
10775 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10776 :
10777 else
10778 can_build_shared=no
10779 fi
10780 ;;
10781 esac
10782 # Using Import Files as archive members, it is possible to support
10783 # filename-based versioning of shared library archives on AIX. While
10784 # this would work for both with and without runtime linking, it will
10785 # prevent static linking of such archives. So we do filename-based
10786 # shared library versioning with .so extension only, which is used
10787 # when both runtime linking and shared linking is enabled.
10788 # Unfortunately, runtime linking may impact performance, so we do
10789 # not want this to be the default eventually. Also, we use the
10790 # versioned .so libs for executables only if there is the -brtl
10791 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10792 # To allow for filename-based versioning support, we need to create
10793 # libNAME.so.V as an archive file, containing:
10794 # *) an Import File, referring to the versioned filename of the
10795 # archive as well as the shared archive member, telling the
10796 # bitwidth (32 or 64) of that shared object, and providing the
10797 # list of exported symbols of that shared object, eventually
10798 # decorated with the 'weak' keyword
10799 # *) the shared object with the F_LOADONLY flag set, to really avoid
10800 # it being seen by the linker.
10801 # At run time we better use the real file rather than another symlink,
10802 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10803
10804 case $with_aix_soname,$aix_use_runtimelinking in
10805 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10806 # soname into executable. Probably we can add versioning support to
10807 # collect2, so additional links can be useful in future.
10808 aix,yes) # traditional libtool
10809 dynamic_linker='AIX unversionable lib.so'
10810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10811 # instead of lib<name>.a to let people know that these are not
10812 # typical AIX shared libraries.
10813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10814 ;;
10815 aix,no) # traditional AIX only
10816 dynamic_linker='AIX lib.a(lib.so.V)'
10817 # We preserve .a as extension for shared libraries through AIX4.2
10818 # and later when we are not doing run time linking.
10819 library_names_spec='$libname$release.a $libname.a'
10820 soname_spec='$libname$release$shared_ext$major'
10821 ;;
10822 svr4,*) # full svr4 only
10823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10825 # We do not specify a path in Import Files, so LIBPATH fires.
10826 shlibpath_overrides_runpath=yes
10827 ;;
10828 *,yes) # both, prefer svr4
10829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10831 # unpreferred sharedlib libNAME.a needs extra handling
10832 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10833 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10834 # We do not specify a path in Import Files, so LIBPATH fires.
10835 shlibpath_overrides_runpath=yes
10836 ;;
10837 *,no) # both, prefer aix
10838 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10839 library_names_spec='$libname$release.a $libname.a'
10840 soname_spec='$libname$release$shared_ext$major'
10841 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10842 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10843 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10844 ;;
10845 esac
10846 shlibpath_var=LIBPATH
10847 fi
10848 ;;
10849
10850 amigaos*)
10851 case $host_cpu in
10852 powerpc)
10853 # Since July 2007 AmigaOS4 officially supports .so libraries.
10854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 ;;
10857 m68k)
10858 library_names_spec='$libname.ixlibrary $libname.a'
10859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10860 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10861 ;;
10862 esac
10863 ;;
10864
10865 beos*)
10866 library_names_spec='$libname$shared_ext'
10867 dynamic_linker="$host_os ld.so"
10868 shlibpath_var=LIBRARY_PATH
10869 ;;
10870
10871 bsdi[45]*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 need_version=no
10874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10875 soname_spec='$libname$release$shared_ext$major'
10876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10880 # the default ld.so.conf also contains /usr/contrib/lib and
10881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10882 # libtool to hard-code these into programs
10883 ;;
10884
10885 cygwin* | mingw* | pw32* | cegcc*)
10886 version_type=windows
10887 shrext_cmds=.dll
10888 need_version=no
10889 need_lib_prefix=no
10890
10891 case $GCC,$cc_basename in
10892 yes,*)
10893 # gcc
10894 library_names_spec='$libname.dll.a'
10895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10896 postinstall_cmds='base_file=`basename \$file`~
10897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10898 dldir=$destdir/`dirname \$dlpath`~
10899 test -d \$dldir || mkdir -p \$dldir~
10900 $install_prog $dir/$dlname \$dldir/$dlname~
10901 chmod a+x \$dldir/$dlname~
10902 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10903 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10904 fi'
10905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10906 dlpath=$dir/\$dldll~
10907 $RM \$dlpath'
10908 shlibpath_overrides_runpath=yes
10909
10910 case $host_os in
10911 cygwin*)
10912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10913 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10914
10915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10916 ;;
10917 mingw* | cegcc*)
10918 # MinGW DLLs use traditional 'lib' prefix
10919 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10920 ;;
10921 pw32*)
10922 # pw32 DLLs use 'pw' prefix rather than 'lib'
10923 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10924 ;;
10925 esac
10926 dynamic_linker='Win32 ld.exe'
10927 ;;
10928
10929 *,cl*)
10930 # Native MSVC
10931 libname_spec='$name'
10932 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10933 library_names_spec='$libname.dll.lib'
10934
10935 case $build_os in
10936 mingw*)
10937 sys_lib_search_path_spec=
10938 lt_save_ifs=$IFS
10939 IFS=';'
10940 for lt_path in $LIB
10941 do
10942 IFS=$lt_save_ifs
10943 # Let DOS variable expansion print the short 8.3 style file name.
10944 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10945 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10946 done
10947 IFS=$lt_save_ifs
10948 # Convert to MSYS style.
10949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10950 ;;
10951 cygwin*)
10952 # Convert to unix form, then to dos form, then back to unix form
10953 # but this time dos style (no spaces!) so that the unix form looks
10954 # like /cygdrive/c/PROGRA~1:/cygdr...
10955 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10956 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10957 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10958 ;;
10959 *)
10960 sys_lib_search_path_spec=$LIB
10961 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10962 # It is most probably a Windows format PATH.
10963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10964 else
10965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10966 fi
10967 # FIXME: find the short name or the path components, as spaces are
10968 # common. (e.g. "Program Files" -> "PROGRA~1")
10969 ;;
10970 esac
10971
10972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10973 postinstall_cmds='base_file=`basename \$file`~
10974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10975 dldir=$destdir/`dirname \$dlpath`~
10976 test -d \$dldir || mkdir -p \$dldir~
10977 $install_prog $dir/$dlname \$dldir/$dlname'
10978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10979 dlpath=$dir/\$dldll~
10980 $RM \$dlpath'
10981 shlibpath_overrides_runpath=yes
10982 dynamic_linker='Win32 link.exe'
10983 ;;
10984
10985 *)
10986 # Assume MSVC wrapper
10987 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10988 dynamic_linker='Win32 ld.exe'
10989 ;;
10990 esac
10991 # FIXME: first we should search . and the directory the executable is in
10992 shlibpath_var=PATH
10993 ;;
10994
10995 darwin* | rhapsody*)
10996 dynamic_linker="$host_os dyld"
10997 version_type=darwin
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11001 soname_spec='$libname$release$major$shared_ext'
11002 shlibpath_overrides_runpath=yes
11003 shlibpath_var=DYLD_LIBRARY_PATH
11004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11005
11006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11008 ;;
11009
11010 dgux*)
11011 version_type=linux # correct to gnu/linux during the next big refactor
11012 need_lib_prefix=no
11013 need_version=no
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11015 soname_spec='$libname$release$shared_ext$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 ;;
11018
11019 freebsd* | dragonfly*)
11020 # DragonFly does not have aout. When/if they implement a new
11021 # versioning mechanism, adjust this.
11022 if test -x /usr/bin/objformat; then
11023 objformat=`/usr/bin/objformat`
11024 else
11025 case $host_os in
11026 freebsd[23].*) objformat=aout ;;
11027 *) objformat=elf ;;
11028 esac
11029 fi
11030 version_type=freebsd-$objformat
11031 case $version_type in
11032 freebsd-elf*)
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 soname_spec='$libname$release$shared_ext$major'
11035 need_version=no
11036 need_lib_prefix=no
11037 ;;
11038 freebsd-*)
11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11040 need_version=yes
11041 ;;
11042 esac
11043 shlibpath_var=LD_LIBRARY_PATH
11044 case $host_os in
11045 freebsd2.*)
11046 shlibpath_overrides_runpath=yes
11047 ;;
11048 freebsd3.[01]* | freebsdelf3.[01]*)
11049 shlibpath_overrides_runpath=yes
11050 hardcode_into_libs=yes
11051 ;;
11052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11056 ;;
11057 *) # from 4.6 on, and DragonFly
11058 shlibpath_overrides_runpath=yes
11059 hardcode_into_libs=yes
11060 ;;
11061 esac
11062 ;;
11063
11064 haiku*)
11065 version_type=linux # correct to gnu/linux during the next big refactor
11066 need_lib_prefix=no
11067 need_version=no
11068 dynamic_linker="$host_os runtime_loader"
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 soname_spec='$libname$release$shared_ext$major'
11071 shlibpath_var=LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11074 hardcode_into_libs=yes
11075 ;;
11076
11077 hpux9* | hpux10* | hpux11*)
11078 # Give a soname corresponding to the major version so that dld.sl refuses to
11079 # link against other versions.
11080 version_type=sunos
11081 need_lib_prefix=no
11082 need_version=no
11083 case $host_cpu in
11084 ia64*)
11085 shrext_cmds='.so'
11086 hardcode_into_libs=yes
11087 dynamic_linker="$host_os dld.so"
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091 soname_spec='$libname$release$shared_ext$major'
11092 if test 32 = "$HPUX_IA64_MODE"; then
11093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11094 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11095 else
11096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11097 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11098 fi
11099 ;;
11100 hppa*64*)
11101 shrext_cmds='.sl'
11102 hardcode_into_libs=yes
11103 dynamic_linker="$host_os dld.sl"
11104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 soname_spec='$libname$release$shared_ext$major'
11108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11110 ;;
11111 *)
11112 shrext_cmds='.sl'
11113 dynamic_linker="$host_os dld.sl"
11114 shlibpath_var=SHLIB_PATH
11115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11117 soname_spec='$libname$release$shared_ext$major'
11118 ;;
11119 esac
11120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11121 postinstall_cmds='chmod 555 $lib'
11122 # or fails outright, so override atomically:
11123 install_override_mode=555
11124 ;;
11125
11126 interix[3-9]*)
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 need_lib_prefix=no
11129 need_version=no
11130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 soname_spec='$libname$release$shared_ext$major'
11132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 ;;
11137
11138 irix5* | irix6* | nonstopux*)
11139 case $host_os in
11140 nonstopux*) version_type=nonstopux ;;
11141 *)
11142 if test yes = "$lt_cv_prog_gnu_ld"; then
11143 version_type=linux # correct to gnu/linux during the next big refactor
11144 else
11145 version_type=irix
11146 fi ;;
11147 esac
11148 need_lib_prefix=no
11149 need_version=no
11150 soname_spec='$libname$release$shared_ext$major'
11151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11152 case $host_os in
11153 irix5* | nonstopux*)
11154 libsuff= shlibsuff=
11155 ;;
11156 *)
11157 case $LD in # libtool.m4 will add one of these switches to LD
11158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11159 libsuff= shlibsuff= libmagic=32-bit;;
11160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11161 libsuff=32 shlibsuff=N32 libmagic=N32;;
11162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11164 *) libsuff= shlibsuff= libmagic=never-match;;
11165 esac
11166 ;;
11167 esac
11168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11169 shlibpath_overrides_runpath=no
11170 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11171 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11172 hardcode_into_libs=yes
11173 ;;
11174
11175 # No shared lib support for Linux oldld, aout, or coff.
11176 linux*oldld* | linux*aout* | linux*coff*)
11177 dynamic_linker=no
11178 ;;
11179
11180 linux*android*)
11181 version_type=none # Android doesn't support versioned libraries.
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='$libname$release$shared_ext'
11185 soname_spec='$libname$release$shared_ext'
11186 finish_cmds=
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189
11190 # This implies no fast_install, which is unacceptable.
11191 # Some rework will be needed to allow for fast_install
11192 # before this can be enabled.
11193 hardcode_into_libs=yes
11194
11195 dynamic_linker='Android linker'
11196 # Don't embed -rpath directories since the linker doesn't support them.
11197 hardcode_libdir_flag_spec='-L$libdir'
11198 ;;
11199
11200 # This must be glibc/ELF.
11201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11202 version_type=linux # correct to gnu/linux during the next big refactor
11203 need_lib_prefix=no
11204 need_version=no
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 soname_spec='$libname$release$shared_ext$major'
11207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 shlibpath_overrides_runpath=no
11210
11211 # Some binutils ld are patched to set DT_RUNPATH
11212 if test ${lt_cv_shlibpath_overrides_runpath+y}
11213 then :
11214 printf %s "(cached) " >&6
11215 else $as_nop
11216 lt_cv_shlibpath_overrides_runpath=no
11217 save_LDFLAGS=$LDFLAGS
11218 save_libdir=$libdir
11219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11223
11224 int
11225 main (void)
11226 {
11227
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"
11233 then :
11234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11235 then :
11236 lt_cv_shlibpath_overrides_runpath=yes
11237 fi
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LDFLAGS=$save_LDFLAGS
11242 libdir=$save_libdir
11243
11244 fi
11245
11246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11247
11248 # This implies no fast_install, which is unacceptable.
11249 # Some rework will be needed to allow for fast_install
11250 # before this can be enabled.
11251 hardcode_into_libs=yes
11252
11253 # Ideally, we could use ldconfig to report *all* directores which are
11254 # searched for libraries, however this is still not possible. Aside from not
11255 # being certain /sbin/ldconfig is available, command
11256 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11257 # even though it is searched at run-time. Try to do the best guess by
11258 # appending ld.so.conf contents (and includes) to the search path.
11259 if test -f /etc/ld.so.conf; then
11260 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11262 fi
11263
11264 # We used to test for /lib/ld.so.1 and disable shared libraries on
11265 # powerpc, because MkLinux only supported shared libraries with the
11266 # GNU dynamic linker. Since this was broken with cross compilers,
11267 # most powerpc-linux boxes support dynamic linking these days and
11268 # people can always --disable-shared, the test was removed, and we
11269 # assume the GNU/Linux dynamic linker is in use.
11270 dynamic_linker='GNU/Linux ld.so'
11271 ;;
11272
11273 netbsdelf*-gnu)
11274 version_type=linux
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=no
11281 hardcode_into_libs=yes
11282 dynamic_linker='NetBSD ld.elf_so'
11283 ;;
11284
11285 netbsd*)
11286 version_type=sunos
11287 need_lib_prefix=no
11288 need_version=no
11289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11292 dynamic_linker='NetBSD (a.out) ld.so'
11293 else
11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295 soname_spec='$libname$release$shared_ext$major'
11296 dynamic_linker='NetBSD ld.elf_so'
11297 fi
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=yes
11300 hardcode_into_libs=yes
11301 ;;
11302
11303 newsos6)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes
11308 ;;
11309
11310 *nto* | *qnx*)
11311 version_type=qnx
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 soname_spec='$libname$release$shared_ext$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=no
11318 hardcode_into_libs=yes
11319 dynamic_linker='ldqnx.so'
11320 ;;
11321
11322 openbsd* | bitrig*)
11323 version_type=sunos
11324 sys_lib_dlsearch_path_spec=/usr/lib
11325 need_lib_prefix=no
11326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11327 need_version=no
11328 else
11329 need_version=yes
11330 fi
11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11335 ;;
11336
11337 os2*)
11338 libname_spec='$name'
11339 version_type=windows
11340 shrext_cmds=.dll
11341 need_version=no
11342 need_lib_prefix=no
11343 # OS/2 can only load a DLL with a base name of 8 characters or less.
11344 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11345 v=$($ECHO $release$versuffix | tr -d .-);
11346 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11347 $ECHO $n$v`$shared_ext'
11348 library_names_spec='${libname}_dll.$libext'
11349 dynamic_linker='OS/2 ld.exe'
11350 shlibpath_var=BEGINLIBPATH
11351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353 postinstall_cmds='base_file=`basename \$file`~
11354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11355 dldir=$destdir/`dirname \$dlpath`~
11356 test -d \$dldir || mkdir -p \$dldir~
11357 $install_prog $dir/$dlname \$dldir/$dlname~
11358 chmod a+x \$dldir/$dlname~
11359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11361 fi'
11362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11363 dlpath=$dir/\$dldll~
11364 $RM \$dlpath'
11365 ;;
11366
11367 osf3* | osf4* | osf5*)
11368 version_type=osf
11369 need_lib_prefix=no
11370 need_version=no
11371 soname_spec='$libname$release$shared_ext$major'
11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11376 ;;
11377
11378 rdos*)
11379 dynamic_linker=no
11380 ;;
11381
11382 solaris*)
11383 version_type=linux # correct to gnu/linux during the next big refactor
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11387 soname_spec='$libname$release$shared_ext$major'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 shlibpath_overrides_runpath=yes
11390 hardcode_into_libs=yes
11391 # ldd complains unless libraries are executable
11392 postinstall_cmds='chmod +x $lib'
11393 ;;
11394
11395 sunos4*)
11396 version_type=sunos
11397 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11399 shlibpath_var=LD_LIBRARY_PATH
11400 shlibpath_overrides_runpath=yes
11401 if test yes = "$with_gnu_ld"; then
11402 need_lib_prefix=no
11403 fi
11404 need_version=yes
11405 ;;
11406
11407 sysv4 | sysv4.3*)
11408 version_type=linux # correct to gnu/linux during the next big refactor
11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410 soname_spec='$libname$release$shared_ext$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 case $host_vendor in
11413 sni)
11414 shlibpath_overrides_runpath=no
11415 need_lib_prefix=no
11416 runpath_var=LD_RUN_PATH
11417 ;;
11418 siemens)
11419 need_lib_prefix=no
11420 ;;
11421 motorola)
11422 need_lib_prefix=no
11423 need_version=no
11424 shlibpath_overrides_runpath=no
11425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11426 ;;
11427 esac
11428 ;;
11429
11430 sysv4*MP*)
11431 if test -d /usr/nec; then
11432 version_type=linux # correct to gnu/linux during the next big refactor
11433 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11434 soname_spec='$libname$shared_ext.$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 fi
11437 ;;
11438
11439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11440 version_type=sco
11441 need_lib_prefix=no
11442 need_version=no
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 hardcode_into_libs=yes
11448 if test yes = "$with_gnu_ld"; then
11449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11450 else
11451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11452 case $host_os in
11453 sco3.2v5*)
11454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11455 ;;
11456 esac
11457 fi
11458 sys_lib_dlsearch_path_spec='/usr/lib'
11459 ;;
11460
11461 tpf*)
11462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 need_lib_prefix=no
11465 need_version=no
11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=no
11469 hardcode_into_libs=yes
11470 ;;
11471
11472 uts4*)
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11475 soname_spec='$libname$release$shared_ext$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 ;;
11478
11479 *)
11480 dynamic_linker=no
11481 ;;
11482 esac
11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11484 printf "%s\n" "$dynamic_linker" >&6; }
11485 test no = "$dynamic_linker" && can_build_shared=no
11486
11487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11488 if test yes = "$GCC"; then
11489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11490 fi
11491
11492 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11493 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11494 fi
11495
11496 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11497 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11498 fi
11499
11500 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11501 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11502
11503 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11504 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11505
11506 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11507 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11606 printf %s "checking how to hardcode library paths into programs... " >&6; }
11607 hardcode_action=
11608 if test -n "$hardcode_libdir_flag_spec" ||
11609 test -n "$runpath_var" ||
11610 test yes = "$hardcode_automatic"; then
11611
11612 # We can hardcode non-existent directories.
11613 if test no != "$hardcode_direct" &&
11614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11615 # have to relink, otherwise we might link with an installed library
11616 # when we should be linking with a yet-to-be-installed one
11617 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11618 test no != "$hardcode_minus_L"; then
11619 # Linking always hardcodes the temporary library directory.
11620 hardcode_action=relink
11621 else
11622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11623 hardcode_action=immediate
11624 fi
11625 else
11626 # We cannot hardcode anything, or else we can only hardcode existing
11627 # directories.
11628 hardcode_action=unsupported
11629 fi
11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11631 printf "%s\n" "$hardcode_action" >&6; }
11632
11633 if test relink = "$hardcode_action" ||
11634 test yes = "$inherit_rpath"; then
11635 # Fast installation is not supported
11636 enable_fast_install=no
11637 elif test yes = "$shlibpath_overrides_runpath" ||
11638 test no = "$enable_shared"; then
11639 # Fast installation is not necessary
11640 enable_fast_install=needless
11641 fi
11642
11643
11644
11645
11646
11647
11648 if test yes != "$enable_dlopen"; then
11649 enable_dlopen=unknown
11650 enable_dlopen_self=unknown
11651 enable_dlopen_self_static=unknown
11652 else
11653 lt_cv_dlopen=no
11654 lt_cv_dlopen_libs=
11655
11656 case $host_os in
11657 beos*)
11658 lt_cv_dlopen=load_add_on
11659 lt_cv_dlopen_libs=
11660 lt_cv_dlopen_self=yes
11661 ;;
11662
11663 mingw* | pw32* | cegcc*)
11664 lt_cv_dlopen=LoadLibrary
11665 lt_cv_dlopen_libs=
11666 ;;
11667
11668 cygwin*)
11669 lt_cv_dlopen=dlopen
11670 lt_cv_dlopen_libs=
11671 ;;
11672
11673 darwin*)
11674 # if libdl is installed we need to link against it
11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11676 printf %s "checking for dlopen in -ldl... " >&6; }
11677 if test ${ac_cv_lib_dl_dlopen+y}
11678 then :
11679 printf %s "(cached) " >&6
11680 else $as_nop
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-ldl $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11689 char dlopen ();
11690 int
11691 main (void)
11692 {
11693 return dlopen ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"
11699 then :
11700 ac_cv_lib_dl_dlopen=yes
11701 else $as_nop
11702 ac_cv_lib_dl_dlopen=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11709 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11710 if test "x$ac_cv_lib_dl_dlopen" = xyes
11711 then :
11712 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11713 else $as_nop
11714
11715 lt_cv_dlopen=dyld
11716 lt_cv_dlopen_libs=
11717 lt_cv_dlopen_self=yes
11718
11719 fi
11720
11721 ;;
11722
11723 tpf*)
11724 # Don't try to run any link tests for TPF. We know it's impossible
11725 # because TPF is a cross-compiler, and we know how we open DSOs.
11726 lt_cv_dlopen=dlopen
11727 lt_cv_dlopen_libs=
11728 lt_cv_dlopen_self=no
11729 ;;
11730
11731 *)
11732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11733 if test "x$ac_cv_func_shl_load" = xyes
11734 then :
11735 lt_cv_dlopen=shl_load
11736 else $as_nop
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11738 printf %s "checking for shl_load in -ldld... " >&6; }
11739 if test ${ac_cv_lib_dld_shl_load+y}
11740 then :
11741 printf %s "(cached) " >&6
11742 else $as_nop
11743 ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-ldld $LIBS"
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751 char shl_load ();
11752 int
11753 main (void)
11754 {
11755 return shl_load ();
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"
11761 then :
11762 ac_cv_lib_dld_shl_load=yes
11763 else $as_nop
11764 ac_cv_lib_dld_shl_load=no
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11767 conftest$ac_exeext conftest.$ac_ext
11768 LIBS=$ac_check_lib_save_LIBS
11769 fi
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11771 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11772 if test "x$ac_cv_lib_dld_shl_load" = xyes
11773 then :
11774 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11775 else $as_nop
11776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11777 if test "x$ac_cv_func_dlopen" = xyes
11778 then :
11779 lt_cv_dlopen=dlopen
11780 else $as_nop
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11782 printf %s "checking for dlopen in -ldl... " >&6; }
11783 if test ${ac_cv_lib_dl_dlopen+y}
11784 then :
11785 printf %s "(cached) " >&6
11786 else $as_nop
11787 ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-ldl $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795 char dlopen ();
11796 int
11797 main (void)
11798 {
11799 return dlopen ();
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"
11805 then :
11806 ac_cv_lib_dl_dlopen=yes
11807 else $as_nop
11808 ac_cv_lib_dl_dlopen=no
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11813 fi
11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11815 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11816 if test "x$ac_cv_lib_dl_dlopen" = xyes
11817 then :
11818 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11819 else $as_nop
11820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11821 printf %s "checking for dlopen in -lsvld... " >&6; }
11822 if test ${ac_cv_lib_svld_dlopen+y}
11823 then :
11824 printf %s "(cached) " >&6
11825 else $as_nop
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-lsvld $LIBS"
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply. */
11834 char dlopen ();
11835 int
11836 main (void)
11837 {
11838 return dlopen ();
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"
11844 then :
11845 ac_cv_lib_svld_dlopen=yes
11846 else $as_nop
11847 ac_cv_lib_svld_dlopen=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11852 fi
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11854 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11855 if test "x$ac_cv_lib_svld_dlopen" = xyes
11856 then :
11857 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11858 else $as_nop
11859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11860 printf %s "checking for dld_link in -ldld... " >&6; }
11861 if test ${ac_cv_lib_dld_dld_link+y}
11862 then :
11863 printf %s "(cached) " >&6
11864 else $as_nop
11865 ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-ldld $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11873 char dld_link ();
11874 int
11875 main (void)
11876 {
11877 return dld_link ();
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 if ac_fn_c_try_link "$LINENO"
11883 then :
11884 ac_cv_lib_dld_dld_link=yes
11885 else $as_nop
11886 ac_cv_lib_dld_dld_link=no
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11891 fi
11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11893 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11894 if test "x$ac_cv_lib_dld_dld_link" = xyes
11895 then :
11896 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11897 fi
11898
11899
11900 fi
11901
11902
11903 fi
11904
11905
11906 fi
11907
11908
11909 fi
11910
11911
11912 fi
11913
11914 ;;
11915 esac
11916
11917 if test no = "$lt_cv_dlopen"; then
11918 enable_dlopen=no
11919 else
11920 enable_dlopen=yes
11921 fi
11922
11923 case $lt_cv_dlopen in
11924 dlopen)
11925 save_CPPFLAGS=$CPPFLAGS
11926 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11927
11928 save_LDFLAGS=$LDFLAGS
11929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11930
11931 save_LIBS=$LIBS
11932 LIBS="$lt_cv_dlopen_libs $LIBS"
11933
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11935 printf %s "checking whether a program can dlopen itself... " >&6; }
11936 if test ${lt_cv_dlopen_self+y}
11937 then :
11938 printf %s "(cached) " >&6
11939 else $as_nop
11940 if test yes = "$cross_compiling"; then :
11941 lt_cv_dlopen_self=cross
11942 else
11943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11944 lt_status=$lt_dlunknown
11945 cat > conftest.$ac_ext <<_LT_EOF
11946 #line $LINENO "configure"
11947 #include "confdefs.h"
11948
11949 #if HAVE_DLFCN_H
11950 #include <dlfcn.h>
11951 #endif
11952
11953 #include <stdio.h>
11954
11955 #ifdef RTLD_GLOBAL
11956 # define LT_DLGLOBAL RTLD_GLOBAL
11957 #else
11958 # ifdef DL_GLOBAL
11959 # define LT_DLGLOBAL DL_GLOBAL
11960 # else
11961 # define LT_DLGLOBAL 0
11962 # endif
11963 #endif
11964
11965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11966 find out it does not work in some platform. */
11967 #ifndef LT_DLLAZY_OR_NOW
11968 # ifdef RTLD_LAZY
11969 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11970 # else
11971 # ifdef DL_LAZY
11972 # define LT_DLLAZY_OR_NOW DL_LAZY
11973 # else
11974 # ifdef RTLD_NOW
11975 # define LT_DLLAZY_OR_NOW RTLD_NOW
11976 # else
11977 # ifdef DL_NOW
11978 # define LT_DLLAZY_OR_NOW DL_NOW
11979 # else
11980 # define LT_DLLAZY_OR_NOW 0
11981 # endif
11982 # endif
11983 # endif
11984 # endif
11985 #endif
11986
11987 /* When -fvisibility=hidden is used, assume the code has been annotated
11988 correspondingly for the symbols needed. */
11989 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11990 int fnord () __attribute__((visibility("default")));
11991 #endif
11992
11993 int fnord () { return 42; }
11994 int main ()
11995 {
11996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11997 int status = $lt_dlunknown;
11998
11999 if (self)
12000 {
12001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12002 else
12003 {
12004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12005 else puts (dlerror ());
12006 }
12007 /* dlclose (self); */
12008 }
12009 else
12010 puts (dlerror ());
12011
12012 return status;
12013 }
12014 _LT_EOF
12015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12016 (eval $ac_link) 2>&5
12017 ac_status=$?
12018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12020 (./conftest; exit; ) >&5 2>/dev/null
12021 lt_status=$?
12022 case x$lt_status in
12023 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12024 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12025 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12026 esac
12027 else :
12028 # compilation failed
12029 lt_cv_dlopen_self=no
12030 fi
12031 fi
12032 rm -fr conftest*
12033
12034
12035 fi
12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12037 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12038
12039 if test yes = "$lt_cv_dlopen_self"; then
12040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12042 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12043 if test ${lt_cv_dlopen_self_static+y}
12044 then :
12045 printf %s "(cached) " >&6
12046 else $as_nop
12047 if test yes = "$cross_compiling"; then :
12048 lt_cv_dlopen_self_static=cross
12049 else
12050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12051 lt_status=$lt_dlunknown
12052 cat > conftest.$ac_ext <<_LT_EOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12055
12056 #if HAVE_DLFCN_H
12057 #include <dlfcn.h>
12058 #endif
12059
12060 #include <stdio.h>
12061
12062 #ifdef RTLD_GLOBAL
12063 # define LT_DLGLOBAL RTLD_GLOBAL
12064 #else
12065 # ifdef DL_GLOBAL
12066 # define LT_DLGLOBAL DL_GLOBAL
12067 # else
12068 # define LT_DLGLOBAL 0
12069 # endif
12070 #endif
12071
12072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12073 find out it does not work in some platform. */
12074 #ifndef LT_DLLAZY_OR_NOW
12075 # ifdef RTLD_LAZY
12076 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12077 # else
12078 # ifdef DL_LAZY
12079 # define LT_DLLAZY_OR_NOW DL_LAZY
12080 # else
12081 # ifdef RTLD_NOW
12082 # define LT_DLLAZY_OR_NOW RTLD_NOW
12083 # else
12084 # ifdef DL_NOW
12085 # define LT_DLLAZY_OR_NOW DL_NOW
12086 # else
12087 # define LT_DLLAZY_OR_NOW 0
12088 # endif
12089 # endif
12090 # endif
12091 # endif
12092 #endif
12093
12094 /* When -fvisibility=hidden is used, assume the code has been annotated
12095 correspondingly for the symbols needed. */
12096 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12097 int fnord () __attribute__((visibility("default")));
12098 #endif
12099
12100 int fnord () { return 42; }
12101 int main ()
12102 {
12103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12104 int status = $lt_dlunknown;
12105
12106 if (self)
12107 {
12108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12109 else
12110 {
12111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12112 else puts (dlerror ());
12113 }
12114 /* dlclose (self); */
12115 }
12116 else
12117 puts (dlerror ());
12118
12119 return status;
12120 }
12121 _LT_EOF
12122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12123 (eval $ac_link) 2>&5
12124 ac_status=$?
12125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12127 (./conftest; exit; ) >&5 2>/dev/null
12128 lt_status=$?
12129 case x$lt_status in
12130 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12131 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12132 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12133 esac
12134 else :
12135 # compilation failed
12136 lt_cv_dlopen_self_static=no
12137 fi
12138 fi
12139 rm -fr conftest*
12140
12141
12142 fi
12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12144 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12145 fi
12146
12147 CPPFLAGS=$save_CPPFLAGS
12148 LDFLAGS=$save_LDFLAGS
12149 LIBS=$save_LIBS
12150 ;;
12151 esac
12152
12153 case $lt_cv_dlopen_self in
12154 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12155 *) enable_dlopen_self=unknown ;;
12156 esac
12157
12158 case $lt_cv_dlopen_self_static in
12159 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12160 *) enable_dlopen_self_static=unknown ;;
12161 esac
12162 fi
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180 striplib=
12181 old_striplib=
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12183 printf %s "checking whether stripping libraries is possible... " >&6; }
12184 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12185 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12186 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12188 printf "%s\n" "yes" >&6; }
12189 else
12190 # FIXME - insert some real tests, host_os isn't really good enough
12191 case $host_os in
12192 darwin*)
12193 if test -n "$STRIP"; then
12194 striplib="$STRIP -x"
12195 old_striplib="$STRIP -S"
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197 printf "%s\n" "yes" >&6; }
12198 else
12199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 printf "%s\n" "no" >&6; }
12201 fi
12202 ;;
12203 *)
12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 printf "%s\n" "no" >&6; }
12206 ;;
12207 esac
12208 fi
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221 # Report what library types will actually be built
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12223 printf %s "checking if libtool supports shared libraries... " >&6; }
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12225 printf "%s\n" "$can_build_shared" >&6; }
12226
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12228 printf %s "checking whether to build shared libraries... " >&6; }
12229 test no = "$can_build_shared" && enable_shared=no
12230
12231 # On AIX, shared libraries and static libraries use the same namespace, and
12232 # are all built from PIC.
12233 case $host_os in
12234 aix3*)
12235 test yes = "$enable_shared" && enable_static=no
12236 if test -n "$RANLIB"; then
12237 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12238 postinstall_cmds='$RANLIB $lib'
12239 fi
12240 ;;
12241
12242 aix[4-9]*)
12243 if test ia64 != "$host_cpu"; then
12244 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12245 yes,aix,yes) ;; # shared object as lib.so file only
12246 yes,svr4,*) ;; # shared object as lib.so archive member only
12247 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12248 esac
12249 fi
12250 ;;
12251 esac
12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12253 printf "%s\n" "$enable_shared" >&6; }
12254
12255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12256 printf %s "checking whether to build static libraries... " >&6; }
12257 # Make sure either enable_shared or enable_static is yes.
12258 test yes = "$enable_shared" || enable_static=yes
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12260 printf "%s\n" "$enable_static" >&6; }
12261
12262
12263
12264
12265 fi
12266 ac_ext=c
12267 ac_cpp='$CPP $CPPFLAGS'
12268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12271
12272 CC=$lt_save_CC
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 ac_config_commands="$ac_config_commands libtool"
12289
12290
12291
12292
12293 # Only expand once:
12294
12295
12296
12297 if test ! -f $srcdir/src/genconfig.in; then
12298 echo "ERROR: src/genconfig.in should be pre-generated. Run ./DIST gen."
12299 exit 1
12300 fi
12301
12302
12303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking thread type" >&5
12304 printf %s "checking thread type... " >&6; }
12305
12306 GAUCHE_THREAD_TYPE=
12307 case "$host" in #(
12308 *-*-linux*) :
12309
12310
12311 printf "%s\n" "#define GC_LINUX_THREADS 1" >>confdefs.h
12312
12313
12314 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
12315
12316 THREADLIBS="-lpthread"
12317 GAUCHE_THREAD_TYPE=pthreads
12318 ;; #(
12319 *-*-hpux*) :
12320
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
12322 printf "%s\n" "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
12323
12324 printf "%s\n" "#define GC_HPUX_THREADS 1" >>confdefs.h
12325
12326
12327 printf "%s\n" "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
12328
12329 THREADLIBS="-lpthread -lrt"
12330 GAUCHE_THREAD_TYPE=pthreads
12331 ;; #(
12332 *-*-*freebsd*|*-*-dragonfly*) :
12333
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
12335 printf "%s\n" "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
12336
12337 printf "%s\n" "#define GC_FREEBSD_THREADS 1" >>confdefs.h
12338
12339 INCLUDES="$INCLUDES -pthread"
12340 THREADLIBS="-pthread"
12341 GAUCHE_THREAD_TYPE=pthreads
12342 ;; #(
12343 *-*-kfreebsd*-gnu) :
12344
12345
12346 printf "%s\n" "#define GC_FREEBSD_THREADS 1" >>confdefs.h
12347
12348 INCLUDES="$INCLUDES -pthread"
12349 THREADDLLIBS=-pthread
12350
12351 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
12352
12353 ;; #(
12354 *-*-gnu*) :
12355
12356
12357 printf "%s\n" "#define GC_GNU_THREADS 1" >>confdefs.h
12358
12359
12360 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
12361
12362 THREADLIBS="-lpthread"
12363 GAUCHE_THREAD_TYPE=pthreads
12364 ;; #(
12365 *-*-netbsd*) :
12366
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
12368 printf "%s\n" "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
12369
12370 printf "%s\n" "#define GC_NETBSD_THREADS 1" >>confdefs.h
12371
12372
12373 printf "%s\n" "#define _REENTRANT /**/" >>confdefs.h
12374
12375
12376 printf "%s\n" "#define _PTHREADS /**/" >>confdefs.h
12377
12378 THREADLIBS="-lpthread"
12379 THREADDLLIBS="-lpthread -lrt"
12380 GAUCHE_THREAD_TYPE=pthreads
12381 ;; #(
12382 *-*-openbsd*) :
12383
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gauche with pthread on OpenBSD has unresolved issues. We recommend you to build without threads (--disable-threads) unless you're trying to fix the issues. See https://github.com/shirok/Gauche/issues/276 and https://github.com/shirok/Gauche/issues/334 ." >&5
12385 printf "%s\n" "$as_me: WARNING: Gauche with pthread on OpenBSD has unresolved issues. We recommend you to build without threads (--disable-threads) unless you're trying to fix the issues. See https://github.com/shirok/Gauche/issues/276 and https://github.com/shirok/Gauche/issues/334 ." >&2;}
12386
12387 printf "%s\n" "#define GC_OPENBSD_THREADS 1" >>confdefs.h
12388
12389 THREADLIBS="-lpthread"
12390 THREADDLLIBS="-lpthread"
12391 GAUCHE_THREAD_TYPE=pthreads
12392 ;; #(
12393 *-*-solaris*) :
12394
12395
12396 printf "%s\n" "#define GC_SOLARIS_THREADS 1" >>confdefs.h
12397
12398
12399 printf "%s\n" "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
12400
12401
12402 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
12403
12404 THREADLIBS="-lpthread"
12405 GAUCHE_THREAD_TYPE=pthreads
12406 ;; #(
12407 *-*-irix*) :
12408
12409
12410 printf "%s\n" "#define GC_IRIX_THREADS 1" >>confdefs.h
12411
12412 THREADLIBS="-lpthread"
12413 GAUCHE_THREAD_TYPE=pthreads
12414 ;; #(
12415 *-*-cygwin*) :
12416
12417
12418 printf "%s\n" "#define GC_WIN32_THREADS 1" >>confdefs.h
12419
12420 THREADLIBS="-lpthread"
12421 GAUCHE_THREAD_TYPE=pthreads
12422 ;; #(
12423 *-*-darwin*) :
12424
12425
12426 printf "%s\n" "#define GC_DARWIN_THREADS 1" >>confdefs.h
12427
12428 INCLUDES="$INCLUDES -I/sw/include"
12429 THREADLIBS="-lpthread"
12430 GAUCHE_THREAD_TYPE=pthreads
12431 ;; #(
12432 *-*-mingw*) :
12433
12434 GAUCHE_THREAD_TYPE=win32
12435 ;; #(
12436 *) :
12437
12438 as_fn_error $? "Can't determine thread subsystem type on $host" "$LINENO" 5
12439 ;;
12440 esac
12441 case $GAUCHE_THREAD_TYPE in #(
12442 pthreads) :
12443
12444 printf "%s\n" "#define GAUCHE_USE_PTHREADS 1" >>confdefs.h
12445 ;; #(
12446 win32) :
12447
12448 printf "%s\n" "#define GAUCHE_USE_WTHREADS 1" >>confdefs.h
12449 ;; #(
12450 *) :
12451 ;;
12452 esac
12453
12454 LIBS="$LIBS $THREADLIBS"
12455
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GAUCHE_THREAD_TYPE" >&5
12457 printf "%s\n" "$GAUCHE_THREAD_TYPE" >&6; }
12458
12459 SLIB_DIR=/usr/local/slib
12460
12461 # Check whether --with-slib was given.
12462 if test ${with_slib+y}
12463 then :
12464 withval=$with_slib;
12465 case $with_slib in #(
12466 no) :
12467 search_slib=no ;; #(
12468 yes) :
12469 search_slib=yes ;; #(
12470 *) :
12471 search_slib=no; SLIB_DIR=$with_slib ;;
12472 esac
12473
12474 else $as_nop
12475 search_slib=yes
12476 fi
12477
12478
12479 if test $search_slib = "yes"
12480 then :
12481
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking slib" >&5
12483 printf %s "checking slib... " >&6; }
12484 slib_found=no
12485 for dir in /usr/share/slib /usr/local/slib /usr/local/lib/slib /usr/local/share/slib /usr/src/slib /opt/share/slib; do
12486 if test -f $dir/require.scm
12487 then :
12488
12489 SLIB_DIR=$dir
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SLIB_DIR" >&5
12491 printf "%s\n" "$SLIB_DIR" >&6; }
12492 slib_found=yes
12493 break
12494
12495 fi
12496 done
12497 if test $slib_found = "no"
12498 then :
12499
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using fallback $SLIB_DIR" >&5
12501 printf "%s\n" "not found, using fallback $SLIB_DIR" >&6; }
12502
12503 fi
12504
12505 fi
12506
12507
12508 printf "%s\n" "#define SLIB_DIR \"$SLIB_DIR\"" >>confdefs.h
12509
12510
12511
12512
12513 # Check whether --with-api-version was given.
12514 if test ${with_api_version+y}
12515 then :
12516 withval=$with_api_version; if echo "$with_api_version" | grep -E '^[0-9]+$' > /dev/null
12517 then :
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Overriding API version with $with_api_version" >&5
12519 printf "%s\n" "Overriding API version with $with_api_version" >&6; }
12520 else $as_nop
12521 as_fn_error $? "The argument of --with-api-version must be a positive integer, but got \"$with_api_version\"" "$LINENO" 5
12522 fi
12523
12524 printf "%s\n" "#define GAUCHE_API_VERSION \$with_api_version" >>confdefs.h
12525
12526
12527 fi
12528
12529
12530
12531 # Check whether --with-local was given.
12532 if test ${with_local+y}
12533 then :
12534 withval=$with_local;
12535 case $with_local in #(
12536 yes|no|"") :
12537 ;; #(
12538 *) :
12539 IFS_save=$IFS
12540 case $host in #(
12541 *mingw*) :
12542 IFS=";" ;; #(
12543 *) :
12544 IFS=":" ;;
12545 esac
12546 sep0=""
12547 sep1=""
12548 for p in $with_local; do
12549 LOCAL_INC="${LOCAL_INC}${sep0}-I$p/include"
12550 LOCAL_LIB="${LOCAL_LIB}${sep0}-L$p/lib"
12551 LOCAL_INCDIRS="${LOCAL_INCDIRS}${sep1}$p/include"
12552 LOCAL_LIBDIRS="${LOCAL_LIBDIRS}${sep1}$p/lib"
12553 sep0=" "
12554 sep1="$IFS"
12555 done
12556 IFS=$IFS_save ;;
12557 esac
12558
12559 fi
12560
12561
12562
12563
12564
12565 INCLUDES="$INCLUDES $LOCAL_INC"
12566 CPPFLAGS="$CPPFLAGS $LOCAL_INC"
12567 LDFLAGS="$LDFLAGS $LOCAL_LIB"
12568
12569 try_rpath=yes
12570 rpath=
12571
12572 # Check whether --with-rpath was given.
12573 if test ${with_rpath+y}
12574 then :
12575 withval=$with_rpath;
12576 case $with_rpath in #(
12577 yes) :
12578 ;; #(
12579 no) :
12580 try_rpath=no ;; #(
12581 *) :
12582 rpath=`echo $with_rpath | sed -e 's/^/-Wl,-rpath=/ ; s/:/,-rpath=/g'` ;;
12583 esac
12584
12585 fi
12586
12587
12588
12589 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
12590 if test "x$ac_cv_header_stdatomic_h" = xyes
12591 then :
12592 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
12593
12594 fi
12595
12596
12597 # Check whether --enable-shared-commands was given.
12598 if test ${enable_shared_commands+y}
12599 then :
12600 enableval=$enable_shared_commands;
12601 case $enableval in #(
12602 no) :
12603 ;; #(
12604 *) :
12605 install_common_commands=yes ;;
12606 esac
12607
12608 fi
12609
12610
12611 ac_gauche_framework=no
12612 # Check whether --enable-framework was given.
12613 if test ${enable_framework+y}
12614 then :
12615 enableval=$enable_framework;
12616 case $enableval in #(
12617 no) :
12618 ;; #(
12619 *) :
12620 ac_gauche_framework=yes ;;
12621 esac
12622
12623 fi
12624
12625
12626
12627 # Check whether --with-gperftools was given.
12628 if test ${with_gperftools+y}
12629 then :
12630 withval=$with_gperftools;
12631 case $with_gperftools in #(
12632 no) :
12633 ;; #(
12634 *) :
12635 ac_fn_c_check_header_compile "$LINENO" "gperftools/profiler.h" "ac_cv_header_gperftools_profiler_h" "$ac_includes_default"
12636 if test "x$ac_cv_header_gperftools_profiler_h" = xyes
12637 then :
12638 printf "%s\n" "#define HAVE_GPERFTOOLS_PROFILER_H 1" >>confdefs.h
12639
12640 fi
12641
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ProfilerStart in -lprofiler" >&5
12643 printf %s "checking for ProfilerStart in -lprofiler... " >&6; }
12644 if test ${ac_cv_lib_profiler_ProfilerStart+y}
12645 then :
12646 printf %s "(cached) " >&6
12647 else $as_nop
12648 ac_check_lib_save_LIBS=$LIBS
12649 LIBS="-lprofiler $LIBS"
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12656 char ProfilerStart ();
12657 int
12658 main (void)
12659 {
12660 return ProfilerStart ();
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"
12666 then :
12667 ac_cv_lib_profiler_ProfilerStart=yes
12668 else $as_nop
12669 ac_cv_lib_profiler_ProfilerStart=no
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12674 fi
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_profiler_ProfilerStart" >&5
12676 printf "%s\n" "$ac_cv_lib_profiler_ProfilerStart" >&6; }
12677 if test "x$ac_cv_lib_profiler_ProfilerStart" = xyes
12678 then :
12679 printf "%s\n" "#define HAVE_LIBPROFILER 1" >>confdefs.h
12680
12681 LIBS="-lprofiler $LIBS"
12682
12683 fi
12684
12685 if test "x$ac_cv_header_gperftools_profiler_h" != xyes
12686 -o "x$ac_cv_lib_profiler_ProfilerStart" != xyes
12687 then :
12688 as_fn_error $? "The --with-gperftools option requires gperftools, but it doesn't appear to be installed on this system." "$LINENO" 5
12689 fi
12690 ;;
12691 esac
12692
12693 fi
12694
12695
12696
12697 ac_gauche_enable_unsafe_jit_api=no
12698 # Check whether --enable-unsafe-jit-api was given.
12699 if test ${enable_unsafe_jit_api+y}
12700 then :
12701 enableval=$enable_unsafe_jit_api;
12702
12703 printf "%s\n" "#define GAUCHE_ENABLE_UNSAFE_JIT_API 1" >>confdefs.h
12704
12705
12706 fi
12707
12708
12709 GAUCHE_VERSION=$PACKAGE_VERSION
12710
12711
12712 printf "%s\n" "#define GAUCHE_VERSION \"$GAUCHE_VERSION\"" >>confdefs.h
12713
12714
12715 GAUCHE_VERSION_TRUNC=`echo $GAUCHE_VERSION | sed 's/[-_].*//'`
12716 OLD_IFS=$IFS; IFS="."; set $GAUCHE_VERSION_TRUNC; IFS=$OLD_IFS
12717 GAUCHE_MAJOR_VERSION=$1
12718 GAUCHE_MINOR_VERSION=$2
12719 GAUCHE_MICRO_VERSION=$3
12720 if test -z "$GAUCHE_MICRO_VERSION"; then GAUCHE_MICRO_VERSION=0; fi
12721
12722
12723
12724
12725 printf "%s\n" "#define GAUCHE_MAJOR_VERSION $GAUCHE_MAJOR_VERSION" >>confdefs.h
12726
12727
12728 printf "%s\n" "#define GAUCHE_MINOR_VERSION $GAUCHE_MINOR_VERSION" >>confdefs.h
12729
12730
12731 printf "%s\n" "#define GAUCHE_MICRO_VERSION $GAUCHE_MICRO_VERSION" >>confdefs.h
12732
12733
12734
12735 if test -z "$GAUCHE_ABI_VERSION"; then
12736 GAUCHE_ABI_VERSION="$GAUCHE_MAJOR_VERSION.$GAUCHE_MINOR_VERSION"
12737 fi
12738
12739
12740 printf "%s\n" "#define GAUCHE_ABI_VERSION \"$GAUCHE_ABI_VERSION\"" >>confdefs.h
12741
12742
12743 if test -n "$GAUCHE_SNAPSHOT_ID"; then
12744
12745 printf "%s\n" "#define GAUCHE_SNAPSHOT_ID \"$GAUCHE_SNAPSHOT_ID\"" >>confdefs.h
12746
12747 fi
12748
12749 GAUCHE_SIGNATURE="$GAUCHE_ABI_VERSION,utf8,$GAUCHE_THREAD_TYPE"
12750
12751 printf "%s\n" "#define GAUCHE_SIGNATURE \"$GAUCHE_SIGNATURE\"" >>confdefs.h
12752
12753
12754 LIBGAUCHE=libgauche-$GAUCHE_ABI_VERSION
12755
12756 LIBGAUCHE_STATIC=libgauche-static-$GAUCHE_ABI_VERSION
12757
12758 LINKGAUCHE=gauche-$GAUCHE_ABI_VERSION
12759
12760
12761 GAUCHE_CONFIGURE_ARGS=`echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`
12762
12763
12764
12765 case $host in
12766 *-pc-solaris2.*)
12767 CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" ;;
12768 esac
12769
12770 ac_ext=c
12771 ac_cpp='$CPP $CPPFLAGS'
12772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775 if test -n "$ac_tool_prefix"; then
12776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12779 printf %s "checking for $ac_word... " >&6; }
12780 if test ${ac_cv_prog_CC+y}
12781 then :
12782 printf %s "(cached) " >&6
12783 else $as_nop
12784 if test -n "$CC"; then
12785 ac_cv_prog_CC="$CC" # Let the user override the test.
12786 else
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH
12789 do
12790 IFS=$as_save_IFS
12791 case $as_dir in #(((
12792 '') as_dir=./ ;;
12793 */) ;;
12794 *) as_dir=$as_dir/ ;;
12795 esac
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12800 break 2
12801 fi
12802 done
12803 done
12804 IFS=$as_save_IFS
12805
12806 fi
12807 fi
12808 CC=$ac_cv_prog_CC
12809 if test -n "$CC"; then
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12811 printf "%s\n" "$CC" >&6; }
12812 else
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 printf "%s\n" "no" >&6; }
12815 fi
12816
12817
12818 fi
12819 if test -z "$ac_cv_prog_CC"; then
12820 ac_ct_CC=$CC
12821 # Extract the first word of "gcc", so it can be a program name with args.
12822 set dummy gcc; ac_word=$2
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 printf %s "checking for $ac_word... " >&6; }
12825 if test ${ac_cv_prog_ac_ct_CC+y}
12826 then :
12827 printf %s "(cached) " >&6
12828 else $as_nop
12829 if test -n "$ac_ct_CC"; then
12830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12831 else
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835 IFS=$as_save_IFS
12836 case $as_dir in #(((
12837 '') as_dir=./ ;;
12838 */) ;;
12839 *) as_dir=$as_dir/ ;;
12840 esac
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12843 ac_cv_prog_ac_ct_CC="gcc"
12844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 fi
12852 fi
12853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12854 if test -n "$ac_ct_CC"; then
12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12856 printf "%s\n" "$ac_ct_CC" >&6; }
12857 else
12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 printf "%s\n" "no" >&6; }
12860 fi
12861
12862 if test "x$ac_ct_CC" = x; then
12863 CC=""
12864 else
12865 case $cross_compiling:$ac_tool_warned in
12866 yes:)
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12869 ac_tool_warned=yes ;;
12870 esac
12871 CC=$ac_ct_CC
12872 fi
12873 else
12874 CC="$ac_cv_prog_CC"
12875 fi
12876
12877 if test -z "$CC"; then
12878 if test -n "$ac_tool_prefix"; then
12879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12880 set dummy ${ac_tool_prefix}cc; ac_word=$2
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 printf %s "checking for $ac_word... " >&6; }
12883 if test ${ac_cv_prog_CC+y}
12884 then :
12885 printf %s "(cached) " >&6
12886 else $as_nop
12887 if test -n "$CC"; then
12888 ac_cv_prog_CC="$CC" # Let the user override the test.
12889 else
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12892 do
12893 IFS=$as_save_IFS
12894 case $as_dir in #(((
12895 '') as_dir=./ ;;
12896 */) ;;
12897 *) as_dir=$as_dir/ ;;
12898 esac
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12901 ac_cv_prog_CC="${ac_tool_prefix}cc"
12902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 CC=$ac_cv_prog_CC
12912 if test -n "$CC"; then
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12914 printf "%s\n" "$CC" >&6; }
12915 else
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 printf "%s\n" "no" >&6; }
12918 fi
12919
12920
12921 fi
12922 fi
12923 if test -z "$CC"; then
12924 # Extract the first word of "cc", so it can be a program name with args.
12925 set dummy cc; ac_word=$2
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 printf %s "checking for $ac_word... " >&6; }
12928 if test ${ac_cv_prog_CC+y}
12929 then :
12930 printf %s "(cached) " >&6
12931 else $as_nop
12932 if test -n "$CC"; then
12933 ac_cv_prog_CC="$CC" # Let the user override the test.
12934 else
12935 ac_prog_rejected=no
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939 IFS=$as_save_IFS
12940 case $as_dir in #(((
12941 '') as_dir=./ ;;
12942 */) ;;
12943 *) as_dir=$as_dir/ ;;
12944 esac
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12947 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12948 ac_prog_rejected=yes
12949 continue
12950 fi
12951 ac_cv_prog_CC="cc"
12952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955 done
12956 done
12957 IFS=$as_save_IFS
12958
12959 if test $ac_prog_rejected = yes; then
12960 # We found a bogon in the path, so make sure we never use it.
12961 set dummy $ac_cv_prog_CC
12962 shift
12963 if test $# != 0; then
12964 # We chose a different compiler from the bogus one.
12965 # However, it has the same basename, so the bogon will be chosen
12966 # first if we set CC to just the basename; use the full file name.
12967 shift
12968 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12969 fi
12970 fi
12971 fi
12972 fi
12973 CC=$ac_cv_prog_CC
12974 if test -n "$CC"; then
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12976 printf "%s\n" "$CC" >&6; }
12977 else
12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 printf "%s\n" "no" >&6; }
12980 fi
12981
12982
12983 fi
12984 if test -z "$CC"; then
12985 if test -n "$ac_tool_prefix"; then
12986 for ac_prog in cl.exe
12987 do
12988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 printf %s "checking for $ac_word... " >&6; }
12992 if test ${ac_cv_prog_CC+y}
12993 then :
12994 printf %s "(cached) " >&6
12995 else $as_nop
12996 if test -n "$CC"; then
12997 ac_cv_prog_CC="$CC" # Let the user override the test.
12998 else
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13001 do
13002 IFS=$as_save_IFS
13003 case $as_dir in #(((
13004 '') as_dir=./ ;;
13005 */) ;;
13006 *) as_dir=$as_dir/ ;;
13007 esac
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014 done
13015 done
13016 IFS=$as_save_IFS
13017
13018 fi
13019 fi
13020 CC=$ac_cv_prog_CC
13021 if test -n "$CC"; then
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13023 printf "%s\n" "$CC" >&6; }
13024 else
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 printf "%s\n" "no" >&6; }
13027 fi
13028
13029
13030 test -n "$CC" && break
13031 done
13032 fi
13033 if test -z "$CC"; then
13034 ac_ct_CC=$CC
13035 for ac_prog in cl.exe
13036 do
13037 # Extract the first word of "$ac_prog", so it can be a program name with args.
13038 set dummy $ac_prog; ac_word=$2
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 printf %s "checking for $ac_word... " >&6; }
13041 if test ${ac_cv_prog_ac_ct_CC+y}
13042 then :
13043 printf %s "(cached) " >&6
13044 else $as_nop
13045 if test -n "$ac_ct_CC"; then
13046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051 IFS=$as_save_IFS
13052 case $as_dir in #(((
13053 '') as_dir=./ ;;
13054 */) ;;
13055 *) as_dir=$as_dir/ ;;
13056 esac
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13059 ac_cv_prog_ac_ct_CC="$ac_prog"
13060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13061 break 2
13062 fi
13063 done
13064 done
13065 IFS=$as_save_IFS
13066
13067 fi
13068 fi
13069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13070 if test -n "$ac_ct_CC"; then
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13072 printf "%s\n" "$ac_ct_CC" >&6; }
13073 else
13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 printf "%s\n" "no" >&6; }
13076 fi
13077
13078
13079 test -n "$ac_ct_CC" && break
13080 done
13081
13082 if test "x$ac_ct_CC" = x; then
13083 CC=""
13084 else
13085 case $cross_compiling:$ac_tool_warned in
13086 yes:)
13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13089 ac_tool_warned=yes ;;
13090 esac
13091 CC=$ac_ct_CC
13092 fi
13093 fi
13094
13095 fi
13096 if test -z "$CC"; then
13097 if test -n "$ac_tool_prefix"; then
13098 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13099 set dummy ${ac_tool_prefix}clang; ac_word=$2
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 printf %s "checking for $ac_word... " >&6; }
13102 if test ${ac_cv_prog_CC+y}
13103 then :
13104 printf %s "(cached) " >&6
13105 else $as_nop
13106 if test -n "$CC"; then
13107 ac_cv_prog_CC="$CC" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13111 do
13112 IFS=$as_save_IFS
13113 case $as_dir in #(((
13114 '') as_dir=./ ;;
13115 */) ;;
13116 *) as_dir=$as_dir/ ;;
13117 esac
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13120 ac_cv_prog_CC="${ac_tool_prefix}clang"
13121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 CC=$ac_cv_prog_CC
13131 if test -n "$CC"; then
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13133 printf "%s\n" "$CC" >&6; }
13134 else
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 printf "%s\n" "no" >&6; }
13137 fi
13138
13139
13140 fi
13141 if test -z "$ac_cv_prog_CC"; then
13142 ac_ct_CC=$CC
13143 # Extract the first word of "clang", so it can be a program name with args.
13144 set dummy clang; ac_word=$2
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 printf %s "checking for $ac_word... " >&6; }
13147 if test ${ac_cv_prog_ac_ct_CC+y}
13148 then :
13149 printf %s "(cached) " >&6
13150 else $as_nop
13151 if test -n "$ac_ct_CC"; then
13152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13153 else
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13156 do
13157 IFS=$as_save_IFS
13158 case $as_dir in #(((
13159 '') as_dir=./ ;;
13160 */) ;;
13161 *) as_dir=$as_dir/ ;;
13162 esac
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13165 ac_cv_prog_ac_ct_CC="clang"
13166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13176 if test -n "$ac_ct_CC"; then
13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13178 printf "%s\n" "$ac_ct_CC" >&6; }
13179 else
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 printf "%s\n" "no" >&6; }
13182 fi
13183
13184 if test "x$ac_ct_CC" = x; then
13185 CC=""
13186 else
13187 case $cross_compiling:$ac_tool_warned in
13188 yes:)
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13191 ac_tool_warned=yes ;;
13192 esac
13193 CC=$ac_ct_CC
13194 fi
13195 else
13196 CC="$ac_cv_prog_CC"
13197 fi
13198
13199 fi
13200
13201
13202 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13203 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13204 as_fn_error $? "no acceptable C compiler found in \$PATH
13205 See \`config.log' for more details" "$LINENO" 5; }
13206
13207 # Provide some information about the compiler.
13208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13209 set X $ac_compile
13210 ac_compiler=$2
13211 for ac_option in --version -v -V -qversion -version; do
13212 { { ac_try="$ac_compiler $ac_option >&5"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13218 printf "%s\n" "$ac_try_echo"; } >&5
13219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13220 ac_status=$?
13221 if test -s conftest.err; then
13222 sed '10a\
13223 ... rest of stderr output deleted ...
13224 10q' conftest.err >conftest.er1
13225 cat conftest.er1 >&5
13226 fi
13227 rm -f conftest.er1 conftest.err
13228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; }
13230 done
13231
13232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13233 printf %s "checking whether the compiler supports GNU C... " >&6; }
13234 if test ${ac_cv_c_compiler_gnu+y}
13235 then :
13236 printf %s "(cached) " >&6
13237 else $as_nop
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240
13241 int
13242 main (void)
13243 {
13244 #ifndef __GNUC__
13245 choke me
13246 #endif
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_compile "$LINENO"
13253 then :
13254 ac_compiler_gnu=yes
13255 else $as_nop
13256 ac_compiler_gnu=no
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13260
13261 fi
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13263 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13265
13266 if test $ac_compiler_gnu = yes; then
13267 GCC=yes
13268 else
13269 GCC=
13270 fi
13271 ac_test_CFLAGS=${CFLAGS+y}
13272 ac_save_CFLAGS=$CFLAGS
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13274 printf %s "checking whether $CC accepts -g... " >&6; }
13275 if test ${ac_cv_prog_cc_g+y}
13276 then :
13277 printf %s "(cached) " >&6
13278 else $as_nop
13279 ac_save_c_werror_flag=$ac_c_werror_flag
13280 ac_c_werror_flag=yes
13281 ac_cv_prog_cc_g=no
13282 CFLAGS="-g"
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285
13286 int
13287 main (void)
13288 {
13289
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_compile "$LINENO"
13295 then :
13296 ac_cv_prog_cc_g=yes
13297 else $as_nop
13298 CFLAGS=""
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301
13302 int
13303 main (void)
13304 {
13305
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_compile "$LINENO"
13311 then :
13312
13313 else $as_nop
13314 ac_c_werror_flag=$ac_save_c_werror_flag
13315 CFLAGS="-g"
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318
13319 int
13320 main (void)
13321 {
13322
13323 ;
13324 return 0;
13325 }
13326 _ACEOF
13327 if ac_fn_c_try_compile "$LINENO"
13328 then :
13329 ac_cv_prog_cc_g=yes
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13336 ac_c_werror_flag=$ac_save_c_werror_flag
13337 fi
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13339 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13340 if test $ac_test_CFLAGS; then
13341 CFLAGS=$ac_save_CFLAGS
13342 elif test $ac_cv_prog_cc_g = yes; then
13343 if test "$GCC" = yes; then
13344 CFLAGS="-g -O2"
13345 else
13346 CFLAGS="-g"
13347 fi
13348 else
13349 if test "$GCC" = yes; then
13350 CFLAGS="-O2"
13351 else
13352 CFLAGS=
13353 fi
13354 fi
13355 ac_prog_cc_stdc=no
13356 if test x$ac_prog_cc_stdc = xno
13357 then :
13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13359 printf %s "checking for $CC option to enable C11 features... " >&6; }
13360 if test ${ac_cv_prog_cc_c11+y}
13361 then :
13362 printf %s "(cached) " >&6
13363 else $as_nop
13364 ac_cv_prog_cc_c11=no
13365 ac_save_CC=$CC
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 $ac_c_conftest_c11_program
13369 _ACEOF
13370 for ac_arg in '' -std=gnu11
13371 do
13372 CC="$ac_save_CC $ac_arg"
13373 if ac_fn_c_try_compile "$LINENO"
13374 then :
13375 ac_cv_prog_cc_c11=$ac_arg
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.beam
13378 test "x$ac_cv_prog_cc_c11" != "xno" && break
13379 done
13380 rm -f conftest.$ac_ext
13381 CC=$ac_save_CC
13382 fi
13383
13384 if test "x$ac_cv_prog_cc_c11" = xno
13385 then :
13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13387 printf "%s\n" "unsupported" >&6; }
13388 else $as_nop
13389 if test "x$ac_cv_prog_cc_c11" = x
13390 then :
13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13392 printf "%s\n" "none needed" >&6; }
13393 else $as_nop
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13395 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13396 CC="$CC $ac_cv_prog_cc_c11"
13397 fi
13398 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13399 ac_prog_cc_stdc=c11
13400 fi
13401 fi
13402 if test x$ac_prog_cc_stdc = xno
13403 then :
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13405 printf %s "checking for $CC option to enable C99 features... " >&6; }
13406 if test ${ac_cv_prog_cc_c99+y}
13407 then :
13408 printf %s "(cached) " >&6
13409 else $as_nop
13410 ac_cv_prog_cc_c99=no
13411 ac_save_CC=$CC
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 $ac_c_conftest_c99_program
13415 _ACEOF
13416 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13417 do
13418 CC="$ac_save_CC $ac_arg"
13419 if ac_fn_c_try_compile "$LINENO"
13420 then :
13421 ac_cv_prog_cc_c99=$ac_arg
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext conftest.beam
13424 test "x$ac_cv_prog_cc_c99" != "xno" && break
13425 done
13426 rm -f conftest.$ac_ext
13427 CC=$ac_save_CC
13428 fi
13429
13430 if test "x$ac_cv_prog_cc_c99" = xno
13431 then :
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13433 printf "%s\n" "unsupported" >&6; }
13434 else $as_nop
13435 if test "x$ac_cv_prog_cc_c99" = x
13436 then :
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13438 printf "%s\n" "none needed" >&6; }
13439 else $as_nop
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13441 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13442 CC="$CC $ac_cv_prog_cc_c99"
13443 fi
13444 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13445 ac_prog_cc_stdc=c99
13446 fi
13447 fi
13448 if test x$ac_prog_cc_stdc = xno
13449 then :
13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13451 printf %s "checking for $CC option to enable C89 features... " >&6; }
13452 if test ${ac_cv_prog_cc_c89+y}
13453 then :
13454 printf %s "(cached) " >&6
13455 else $as_nop
13456 ac_cv_prog_cc_c89=no
13457 ac_save_CC=$CC
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 $ac_c_conftest_c89_program
13461 _ACEOF
13462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13463 do
13464 CC="$ac_save_CC $ac_arg"
13465 if ac_fn_c_try_compile "$LINENO"
13466 then :
13467 ac_cv_prog_cc_c89=$ac_arg
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext conftest.beam
13470 test "x$ac_cv_prog_cc_c89" != "xno" && break
13471 done
13472 rm -f conftest.$ac_ext
13473 CC=$ac_save_CC
13474 fi
13475
13476 if test "x$ac_cv_prog_cc_c89" = xno
13477 then :
13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13479 printf "%s\n" "unsupported" >&6; }
13480 else $as_nop
13481 if test "x$ac_cv_prog_cc_c89" = x
13482 then :
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13484 printf "%s\n" "none needed" >&6; }
13485 else $as_nop
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13487 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13488 CC="$CC $ac_cv_prog_cc_c89"
13489 fi
13490 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13491 ac_prog_cc_stdc=c89
13492 fi
13493 fi
13494
13495 ac_ext=c
13496 ac_cpp='$CPP $CPPFLAGS'
13497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13500
13501 ac_ext=c
13502 ac_cpp='$CPP $CPPFLAGS'
13503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13507 printf %s "checking how to run the C preprocessor... " >&6; }
13508 # On Suns, sometimes $CPP names a directory.
13509 if test -n "$CPP" && test -d "$CPP"; then
13510 CPP=
13511 fi
13512 if test -z "$CPP"; then
13513 if test ${ac_cv_prog_CPP+y}
13514 then :
13515 printf %s "(cached) " >&6
13516 else $as_nop
13517 # Double quotes because $CC needs to be expanded
13518 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
13519 do
13520 ac_preproc_ok=false
13521 for ac_c_preproc_warn_flag in '' yes
13522 do
13523 # Use a header file that comes with gcc, so configuring glibc
13524 # with a fresh cross-compiler works.
13525 # On the NeXT, cc -E runs the code through the compiler's parser,
13526 # not just through cpp. "Syntax error" is here to catch this case.
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 #include <limits.h>
13530 Syntax error
13531 _ACEOF
13532 if ac_fn_c_try_cpp "$LINENO"
13533 then :
13534
13535 else $as_nop
13536 # Broken: fails on valid input.
13537 continue
13538 fi
13539 rm -f conftest.err conftest.i conftest.$ac_ext
13540
13541 # OK, works on sane cases. Now check whether nonexistent headers
13542 # can be detected and how.
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 #include <ac_nonexistent.h>
13546 _ACEOF
13547 if ac_fn_c_try_cpp "$LINENO"
13548 then :
13549 # Broken: success on invalid input.
13550 continue
13551 else $as_nop
13552 # Passes both tests.
13553 ac_preproc_ok=:
13554 break
13555 fi
13556 rm -f conftest.err conftest.i conftest.$ac_ext
13557
13558 done
13559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13560 rm -f conftest.i conftest.err conftest.$ac_ext
13561 if $ac_preproc_ok
13562 then :
13563 break
13564 fi
13565
13566 done
13567 ac_cv_prog_CPP=$CPP
13568
13569 fi
13570 CPP=$ac_cv_prog_CPP
13571 else
13572 ac_cv_prog_CPP=$CPP
13573 fi
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13575 printf "%s\n" "$CPP" >&6; }
13576 ac_preproc_ok=false
13577 for ac_c_preproc_warn_flag in '' yes
13578 do
13579 # Use a header file that comes with gcc, so configuring glibc
13580 # with a fresh cross-compiler works.
13581 # On the NeXT, cc -E runs the code through the compiler's parser,
13582 # not just through cpp. "Syntax error" is here to catch this case.
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <limits.h>
13586 Syntax error
13587 _ACEOF
13588 if ac_fn_c_try_cpp "$LINENO"
13589 then :
13590
13591 else $as_nop
13592 # Broken: fails on valid input.
13593 continue
13594 fi
13595 rm -f conftest.err conftest.i conftest.$ac_ext
13596
13597 # OK, works on sane cases. Now check whether nonexistent headers
13598 # can be detected and how.
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <ac_nonexistent.h>
13602 _ACEOF
13603 if ac_fn_c_try_cpp "$LINENO"
13604 then :
13605 # Broken: success on invalid input.
13606 continue
13607 else $as_nop
13608 # Passes both tests.
13609 ac_preproc_ok=:
13610 break
13611 fi
13612 rm -f conftest.err conftest.i conftest.$ac_ext
13613
13614 done
13615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13616 rm -f conftest.i conftest.err conftest.$ac_ext
13617 if $ac_preproc_ok
13618 then :
13619
13620 else $as_nop
13621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13622 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13623 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13624 See \`config.log' for more details" "$LINENO" 5; }
13625 fi
13626
13627 ac_ext=c
13628 ac_cpp='$CPP $CPPFLAGS'
13629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13632
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13634 printf %s "checking for an ANSI C-conforming const... " >&6; }
13635 if test ${ac_cv_c_const+y}
13636 then :
13637 printf %s "(cached) " >&6
13638 else $as_nop
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641
13642 int
13643 main (void)
13644 {
13645
13646 #ifndef __cplusplus
13647 /* Ultrix mips cc rejects this sort of thing. */
13648 typedef int charset[2];
13649 const charset cs = { 0, 0 };
13650 /* SunOS 4.1.1 cc rejects this. */
13651 char const *const *pcpcc;
13652 char **ppc;
13653 /* NEC SVR4.0.2 mips cc rejects this. */
13654 struct point {int x, y;};
13655 static struct point const zero = {0,0};
13656 /* IBM XL C 1.02.0.0 rejects this.
13657 It does not let you subtract one const X* pointer from another in
13658 an arm of an if-expression whose if-part is not a constant
13659 expression */
13660 const char *g = "string";
13661 pcpcc = &g + (g ? g-g : 0);
13662 /* HPUX 7.0 cc rejects these. */
13663 ++pcpcc;
13664 ppc = (char**) pcpcc;
13665 pcpcc = (char const *const *) ppc;
13666 { /* SCO 3.2v4 cc rejects this sort of thing. */
13667 char tx;
13668 char *t = &tx;
13669 char const *s = 0 ? (char *) 0 : (char const *) 0;
13670
13671 *t++ = 0;
13672 if (s) return 0;
13673 }
13674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13675 int x[] = {25, 17};
13676 const int *foo = &x[0];
13677 ++foo;
13678 }
13679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13680 typedef const int *iptr;
13681 iptr p = 0;
13682 ++p;
13683 }
13684 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13686 struct s { int j; const int *ap[3]; } bx;
13687 struct s *b = &bx; b->j = 5;
13688 }
13689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13690 const int foo = 10;
13691 if (!foo) return 0;
13692 }
13693 return !cs[0] && !zero.x;
13694 #endif
13695
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_compile "$LINENO"
13701 then :
13702 ac_cv_c_const=yes
13703 else $as_nop
13704 ac_cv_c_const=no
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13707 fi
13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13709 printf "%s\n" "$ac_cv_c_const" >&6; }
13710 if test $ac_cv_c_const = no; then
13711
13712 printf "%s\n" "#define const /**/" >>confdefs.h
13713
13714 fi
13715
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13717 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13718 set x ${MAKE-make}
13719 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13720 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13721 then :
13722 printf %s "(cached) " >&6
13723 else $as_nop
13724 cat >conftest.make <<\_ACEOF
13725 SHELL = /bin/sh
13726 all:
13727 @echo '@@@%%%=$(MAKE)=@@@%%%'
13728 _ACEOF
13729 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13731 *@@@%%%=?*=@@@%%%*)
13732 eval ac_cv_prog_make_${ac_make}_set=yes;;
13733 *)
13734 eval ac_cv_prog_make_${ac_make}_set=no;;
13735 esac
13736 rm -f conftest.make
13737 fi
13738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 printf "%s\n" "yes" >&6; }
13741 SET_MAKE=
13742 else
13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 printf "%s\n" "no" >&6; }
13745 SET_MAKE="MAKE=${MAKE-make}"
13746 fi
13747
13748
13749 # Find a good install program. We prefer a C program (faster),
13750 # so one script is as good as another. But avoid the broken or
13751 # incompatible versions:
13752 # SysV /etc/install, /usr/sbin/install
13753 # SunOS /usr/etc/install
13754 # IRIX /sbin/install
13755 # AIX /bin/install
13756 # AmigaOS /C/install, which installs bootblocks on floppy discs
13757 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13758 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13759 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13760 # OS/2's system install, which has a completely different semantic
13761 # ./install, which can be erroneously created by make from ./install.sh.
13762 # Reject install programs that cannot install multiple files.
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13764 printf %s "checking for a BSD-compatible install... " >&6; }
13765 if test -z "$INSTALL"; then
13766 if test ${ac_cv_path_install+y}
13767 then :
13768 printf %s "(cached) " >&6
13769 else $as_nop
13770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13772 do
13773 IFS=$as_save_IFS
13774 case $as_dir in #(((
13775 '') as_dir=./ ;;
13776 */) ;;
13777 *) as_dir=$as_dir/ ;;
13778 esac
13779 # Account for fact that we put trailing slashes in our PATH walk.
13780 case $as_dir in #((
13781 ./ | /[cC]/* | \
13782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13784 /usr/ucb/* ) ;;
13785 *)
13786 # OSF1 and SCO ODT 3.0 have their own names for install.
13787 # Don't use installbsd from OSF since it installs stuff as root
13788 # by default.
13789 for ac_prog in ginstall scoinst install; do
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
13792 if test $ac_prog = install &&
13793 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13794 # AIX install. It has an incompatible calling convention.
13795 :
13796 elif test $ac_prog = install &&
13797 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13798 # program-specific install script used by HP pwplus--don't use.
13799 :
13800 else
13801 rm -rf conftest.one conftest.two conftest.dir
13802 echo one > conftest.one
13803 echo two > conftest.two
13804 mkdir conftest.dir
13805 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
13806 test -s conftest.one && test -s conftest.two &&
13807 test -s conftest.dir/conftest.one &&
13808 test -s conftest.dir/conftest.two
13809 then
13810 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
13811 break 3
13812 fi
13813 fi
13814 fi
13815 done
13816 done
13817 ;;
13818 esac
13819
13820 done
13821 IFS=$as_save_IFS
13822
13823 rm -rf conftest.one conftest.two conftest.dir
13824
13825 fi
13826 if test ${ac_cv_path_install+y}; then
13827 INSTALL=$ac_cv_path_install
13828 else
13829 # As a last resort, use the slow shell script. Don't cache a
13830 # value for INSTALL within a source directory, because that will
13831 # break other packages using the cache if that directory is
13832 # removed, or if the value is a relative name.
13833 INSTALL=$ac_install_sh
13834 fi
13835 fi
13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13837 printf "%s\n" "$INSTALL" >&6; }
13838
13839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13840 # It thinks the first close brace ends the variable substitution.
13841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13842
13843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13844
13845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13846
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13848 printf %s "checking whether ln -s works... " >&6; }
13849 LN_S=$as_ln_s
13850 if test "$LN_S" = "ln -s"; then
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13852 printf "%s\n" "yes" >&6; }
13853 else
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13855 printf "%s\n" "no, using $LN_S" >&6; }
13856 fi
13857
13858 for ac_prog in install-info
13859 do
13860 # Extract the first word of "$ac_prog", so it can be a program name with args.
13861 set dummy $ac_prog; ac_word=$2
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 printf %s "checking for $ac_word... " >&6; }
13864 if test ${ac_cv_prog_INSTALL_INFO+y}
13865 then :
13866 printf %s "(cached) " >&6
13867 else $as_nop
13868 if test -n "$INSTALL_INFO"; then
13869 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
13870 else
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13873 do
13874 IFS=$as_save_IFS
13875 case $as_dir in #(((
13876 '') as_dir=./ ;;
13877 */) ;;
13878 *) as_dir=$as_dir/ ;;
13879 esac
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13882 ac_cv_prog_INSTALL_INFO="$ac_prog"
13883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13884 break 2
13885 fi
13886 done
13887 done
13888 IFS=$as_save_IFS
13889
13890 fi
13891 fi
13892 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
13893 if test -n "$INSTALL_INFO"; then
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
13895 printf "%s\n" "$INSTALL_INFO" >&6; }
13896 else
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 printf "%s\n" "no" >&6; }
13899 fi
13900
13901
13902 test -n "$INSTALL_INFO" && break
13903 done
13904
13905 if test -n "$ac_tool_prefix"; then
13906 for ac_prog in ar gar
13907 do
13908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13911 printf %s "checking for $ac_word... " >&6; }
13912 if test ${ac_cv_prog_AR+y}
13913 then :
13914 printf %s "(cached) " >&6
13915 else $as_nop
13916 if test -n "$AR"; then
13917 ac_cv_prog_AR="$AR" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13921 do
13922 IFS=$as_save_IFS
13923 case $as_dir in #(((
13924 '') as_dir=./ ;;
13925 */) ;;
13926 *) as_dir=$as_dir/ ;;
13927 esac
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13930 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934 done
13935 done
13936 IFS=$as_save_IFS
13937
13938 fi
13939 fi
13940 AR=$ac_cv_prog_AR
13941 if test -n "$AR"; then
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13943 printf "%s\n" "$AR" >&6; }
13944 else
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 printf "%s\n" "no" >&6; }
13947 fi
13948
13949
13950 test -n "$AR" && break
13951 done
13952 fi
13953 if test -z "$AR"; then
13954 ac_ct_AR=$AR
13955 for ac_prog in ar gar
13956 do
13957 # Extract the first word of "$ac_prog", so it can be a program name with args.
13958 set dummy $ac_prog; ac_word=$2
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 printf %s "checking for $ac_word... " >&6; }
13961 if test ${ac_cv_prog_ac_ct_AR+y}
13962 then :
13963 printf %s "(cached) " >&6
13964 else $as_nop
13965 if test -n "$ac_ct_AR"; then
13966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13967 else
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $PATH
13970 do
13971 IFS=$as_save_IFS
13972 case $as_dir in #(((
13973 '') as_dir=./ ;;
13974 */) ;;
13975 *) as_dir=$as_dir/ ;;
13976 esac
13977 for ac_exec_ext in '' $ac_executable_extensions; do
13978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13979 ac_cv_prog_ac_ct_AR="$ac_prog"
13980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983 done
13984 done
13985 IFS=$as_save_IFS
13986
13987 fi
13988 fi
13989 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13990 if test -n "$ac_ct_AR"; then
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13992 printf "%s\n" "$ac_ct_AR" >&6; }
13993 else
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 printf "%s\n" "no" >&6; }
13996 fi
13997
13998
13999 test -n "$ac_ct_AR" && break
14000 done
14001
14002 if test "x$ac_ct_AR" = x; then
14003 AR=""
14004 else
14005 case $cross_compiling:$ac_tool_warned in
14006 yes:)
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14009 ac_tool_warned=yes ;;
14010 esac
14011 AR=$ac_ct_AR
14012 fi
14013 fi
14014
14015 for ac_prog in makeinfo
14016 do
14017 # Extract the first word of "$ac_prog", so it can be a program name with args.
14018 set dummy $ac_prog; ac_word=$2
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 printf %s "checking for $ac_word... " >&6; }
14021 if test ${ac_cv_prog_MAKEINFO+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else $as_nop
14025 if test -n "$MAKEINFO"; then
14026 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14027 else
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14030 do
14031 IFS=$as_save_IFS
14032 case $as_dir in #(((
14033 '') as_dir=./ ;;
14034 */) ;;
14035 *) as_dir=$as_dir/ ;;
14036 esac
14037 for ac_exec_ext in '' $ac_executable_extensions; do
14038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14039 ac_cv_prog_MAKEINFO="$ac_prog"
14040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14041 break 2
14042 fi
14043 done
14044 done
14045 IFS=$as_save_IFS
14046
14047 fi
14048 fi
14049 MAKEINFO=$ac_cv_prog_MAKEINFO
14050 if test -n "$MAKEINFO"; then
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14052 printf "%s\n" "$MAKEINFO" >&6; }
14053 else
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 printf "%s\n" "no" >&6; }
14056 fi
14057
14058
14059 test -n "$MAKEINFO" && break
14060 done
14061
14062 for ac_prog in gzip
14063 do
14064 # Extract the first word of "$ac_prog", so it can be a program name with args.
14065 set dummy $ac_prog; ac_word=$2
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067 printf %s "checking for $ac_word... " >&6; }
14068 if test ${ac_cv_prog_GZIP_PROGRAM+y}
14069 then :
14070 printf %s "(cached) " >&6
14071 else $as_nop
14072 if test -n "$GZIP_PROGRAM"; then
14073 ac_cv_prog_GZIP_PROGRAM="$GZIP_PROGRAM" # Let the user override the test.
14074 else
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14077 do
14078 IFS=$as_save_IFS
14079 case $as_dir in #(((
14080 '') as_dir=./ ;;
14081 */) ;;
14082 *) as_dir=$as_dir/ ;;
14083 esac
14084 for ac_exec_ext in '' $ac_executable_extensions; do
14085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14086 ac_cv_prog_GZIP_PROGRAM="$ac_prog"
14087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14088 break 2
14089 fi
14090 done
14091 done
14092 IFS=$as_save_IFS
14093
14094 fi
14095 fi
14096 GZIP_PROGRAM=$ac_cv_prog_GZIP_PROGRAM
14097 if test -n "$GZIP_PROGRAM"; then
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROGRAM" >&5
14099 printf "%s\n" "$GZIP_PROGRAM" >&6; }
14100 else
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 printf "%s\n" "no" >&6; }
14103 fi
14104
14105
14106 test -n "$GZIP_PROGRAM" && break
14107 done
14108
14109
14110 if test -z "$MAKEINFO" -o -z "$GZIP_PROGRAM"; then
14111 build_doc="No (requires makeinfo and gzip to build documents)"
14112 else
14113 build_doc=Yes
14114 fi
14115
14116 for ac_prog in ${build}-gcc ${build_alias}-gcc gcc cc
14117 do
14118 # Extract the first word of "$ac_prog", so it can be a program name with args.
14119 set dummy $ac_prog; ac_word=$2
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14121 printf %s "checking for $ac_word... " >&6; }
14122 if test ${ac_cv_prog_BUILD_CC+y}
14123 then :
14124 printf %s "(cached) " >&6
14125 else $as_nop
14126 if test -n "$BUILD_CC"; then
14127 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
14128 else
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14131 do
14132 IFS=$as_save_IFS
14133 case $as_dir in #(((
14134 '') as_dir=./ ;;
14135 */) ;;
14136 *) as_dir=$as_dir/ ;;
14137 esac
14138 for ac_exec_ext in '' $ac_executable_extensions; do
14139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14140 ac_cv_prog_BUILD_CC="$ac_prog"
14141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14142 break 2
14143 fi
14144 done
14145 done
14146 IFS=$as_save_IFS
14147
14148 fi
14149 fi
14150 BUILD_CC=$ac_cv_prog_BUILD_CC
14151 if test -n "$BUILD_CC"; then
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
14153 printf "%s\n" "$BUILD_CC" >&6; }
14154 else
14155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 printf "%s\n" "no" >&6; }
14157 fi
14158
14159
14160 test -n "$BUILD_CC" && break
14161 done
14162
14163
14164
14165 if test -z ${BUILD_GOSH+z}; then
14166 # Extract the first word of "gosh", so it can be a program name with args.
14167 set dummy gosh; ac_word=$2
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 printf %s "checking for $ac_word... " >&6; }
14170 if test ${ac_cv_path_BUILD_GOSH+y}
14171 then :
14172 printf %s "(cached) " >&6
14173 else $as_nop
14174 case $BUILD_GOSH in
14175 [\\/]* | ?:[\\/]*)
14176 ac_cv_path_BUILD_GOSH="$BUILD_GOSH" # Let the user override the test with a path.
14177 ;;
14178 *)
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14181 do
14182 IFS=$as_save_IFS
14183 case $as_dir in #(((
14184 '') as_dir=./ ;;
14185 */) ;;
14186 *) as_dir=$as_dir/ ;;
14187 esac
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14190 ac_cv_path_BUILD_GOSH="$as_dir$ac_word$ac_exec_ext"
14191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14192 break 2
14193 fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 test -z "$ac_cv_path_BUILD_GOSH" && ac_cv_path_BUILD_GOSH="gosh"
14199 ;;
14200 esac
14201 fi
14202 BUILD_GOSH=$ac_cv_path_BUILD_GOSH
14203 if test -n "$BUILD_GOSH"; then
14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_GOSH" >&5
14205 printf "%s\n" "$BUILD_GOSH" >&6; }
14206 else
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 printf "%s\n" "no" >&6; }
14209 fi
14210
14211
14212 fi
14213
14214 CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-label"
14215 DEFAULT_CFLAGS="$CFLAGS"
14216
14217
14218
14219
14220
14221 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
14222 if test "x$ac_cv_header_time_h" = xyes
14223 then :
14224 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
14225
14226 fi
14227 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14228 if test "x$ac_cv_header_sys_time_h" = xyes
14229 then :
14230 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14231
14232 fi
14233 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_sys_types_h" = xyes
14235 then :
14236 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
14237
14238 fi
14239 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
14240 if test "x$ac_cv_header_glob_h" = xyes
14241 then :
14242 printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
14243
14244 fi
14245 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14246 if test "x$ac_cv_header_dlfcn_h" = xyes
14247 then :
14248 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14249
14250 fi
14251 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14252 if test "x$ac_cv_header_getopt_h" = xyes
14253 then :
14254 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
14255
14256 fi
14257 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14258 if test "x$ac_cv_header_sched_h" = xyes
14259 then :
14260 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
14261
14262 fi
14263
14264 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14265 if test "x$ac_cv_header_unistd_h" = xyes
14266 then :
14267 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14268
14269 fi
14270 ac_fn_c_check_header_compile "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
14271 if test "x$ac_cv_header_rpc_types_h" = xyes
14272 then :
14273 printf "%s\n" "#define HAVE_RPC_TYPES_H 1" >>confdefs.h
14274
14275 fi
14276 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
14277 if test "x$ac_cv_header_malloc_h" = xyes
14278 then :
14279 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
14280
14281 fi
14282
14283 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14284 if test "x$ac_cv_header_syslog_h" = xyes
14285 then :
14286 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
14287
14288 fi
14289 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
14290 if test "x$ac_cv_header_crypt_h" = xyes
14291 then :
14292 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
14293
14294 fi
14295
14296 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
14297 if test "x$ac_cv_header_pty_h" = xyes
14298 then :
14299 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
14300
14301 fi
14302 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_util_h" = xyes
14304 then :
14305 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
14306
14307 fi
14308 ac_fn_c_check_header_compile "$LINENO" "bsd/libutil.h" "ac_cv_header_bsd_libutil_h" "$ac_includes_default"
14309 if test "x$ac_cv_header_bsd_libutil_h" = xyes
14310 then :
14311 printf "%s\n" "#define HAVE_BSD_LIBUTIL_H 1" >>confdefs.h
14312
14313 fi
14314 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
14315 if test "x$ac_cv_header_libutil_h" = xyes
14316 then :
14317 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
14318
14319 fi
14320 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
14321 if test "x$ac_cv_header_sys_loadavg_h" = xyes
14322 then :
14323 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
14324
14325 fi
14326 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_sys_resource_h" = xyes
14328 then :
14329 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
14330
14331 fi
14332
14333 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
14334 if test "x$ac_cv_header_sys_statvfs_h" = xyes
14335 then :
14336 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
14337
14338 fi
14339
14340 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14341 if test "x$ac_cv_header_sys_mman_h" = xyes
14342 then :
14343 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
14344
14345 fi
14346
14347
14348 ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
14349 if test "x$ac_cv_header_stdalign_h" = xyes
14350 then :
14351 printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h
14352
14353 fi
14354
14355
14356 ac_fn_c_check_header_compile "$LINENO" "fpu_control.h" "ac_cv_header_fpu_control_h" "$ac_includes_default"
14357 if test "x$ac_cv_header_fpu_control_h" = xyes
14358 then :
14359 printf "%s\n" "#define HAVE_FPU_CONTROL_H 1" >>confdefs.h
14360
14361 fi
14362
14363
14364 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
14365 if test "x$ac_cv_header_sys_inotify_h" = xyes
14366 then :
14367 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
14368
14369 fi
14370
14371
14372 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
14373 if test "x$ac_cv_header_sys_event_h" = xyes
14374 then :
14375 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
14376
14377 fi
14378
14379
14380 ac_fn_c_check_header_compile "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default"
14381 if test "x$ac_cv_header_sunmath_h" = xyes
14382 then :
14383 printf "%s\n" "#define HAVE_SUNMATH_H 1" >>confdefs.h
14384
14385 fi
14386
14387
14388 ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
14389 if test "x$ac_cv_header_crt_externs_h" = xyes
14390 then :
14391 printf "%s\n" "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
14392
14393 fi
14394
14395
14396 ac_fn_c_check_header_compile "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default"
14397 if test "x$ac_cv_header_libproc_h" = xyes
14398 then :
14399 printf "%s\n" "#define HAVE_LIBPROC_H 1" >>confdefs.h
14400
14401 fi
14402
14403
14404 case $host in #(
14405 i?86-apple-darwin*) :
14406
14407
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i386 defined" >&5
14409 printf %s "checking for i386 defined... " >&6; }
14410 if test ${ac_cv_defined_i386+y}
14411 then :
14412 printf %s "(cached) " >&6
14413 else $as_nop
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 int
14418 main (void)
14419 {
14420
14421 #ifdef i386
14422 int ok;
14423 (void)ok;
14424 #else
14425 choke me
14426 #endif
14427
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_c_try_compile "$LINENO"
14433 then :
14434 ac_cv_defined_i386=yes
14435 else $as_nop
14436 ac_cv_defined_i386=no
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14439 fi
14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_i386" >&5
14441 printf "%s\n" "$ac_cv_defined_i386" >&6; }
14442 if test $ac_cv_defined_i386 != "no"
14443 then :
14444
14445 printf "%s\n" "#define SCM_TARGET_I386 1" >>confdefs.h
14446
14447 fi ;; #(
14448 i?86-*) :
14449
14450
14451 printf "%s\n" "#define SCM_TARGET_I386 1" >>confdefs.h
14452 ;; #(
14453 x86_64-*) :
14454
14455
14456 printf "%s\n" "#define SCM_TARGET_X86_64 1" >>confdefs.h
14457 ;; #(
14458 alpha*) :
14459
14460 CFLAGS="$CFLAGS -mieee" ;; #(
14461 arm*) :
14462
14463
14464 printf "%s\n" "#define DOUBLE_ARMENDIAN 1" >>confdefs.h
14465 ;; #(
14466 *) :
14467 ;;
14468 esac
14469
14470 # Check whether --enable-largefile was given.
14471 if test ${enable_largefile+y}
14472 then :
14473 enableval=$enable_largefile;
14474 fi
14475
14476 if test "$enable_largefile" != no; then
14477
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14479 printf %s "checking for special C compiler options needed for large files... " >&6; }
14480 if test ${ac_cv_sys_largefile_CC+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else $as_nop
14484 ac_cv_sys_largefile_CC=no
14485 if test "$GCC" != yes; then
14486 ac_save_CC=$CC
14487 while :; do
14488 # IRIX 6.2 and later do not support large files by default,
14489 # so use the C compiler's -n32 option if that helps.
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/types.h>
14493 /* Check that off_t can represent 2**63 - 1 correctly.
14494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14495 since some C++ compilers masquerading as C compilers
14496 incorrectly reject 9223372036854775807. */
14497 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14499 && LARGE_OFF_T % 2147483647 == 1)
14500 ? 1 : -1];
14501 int
14502 main (void)
14503 {
14504
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"
14510 then :
14511 break
14512 fi
14513 rm -f core conftest.err conftest.$ac_objext conftest.beam
14514 CC="$CC -n32"
14515 if ac_fn_c_try_compile "$LINENO"
14516 then :
14517 ac_cv_sys_largefile_CC=' -n32'; break
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.beam
14520 break
14521 done
14522 CC=$ac_save_CC
14523 rm -f conftest.$ac_ext
14524 fi
14525 fi
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14527 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14528 if test "$ac_cv_sys_largefile_CC" != no; then
14529 CC=$CC$ac_cv_sys_largefile_CC
14530 fi
14531
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14533 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14534 if test ${ac_cv_sys_file_offset_bits+y}
14535 then :
14536 printf %s "(cached) " >&6
14537 else $as_nop
14538 while :; do
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 #include <sys/types.h>
14542 /* Check that off_t can represent 2**63 - 1 correctly.
14543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14544 since some C++ compilers masquerading as C compilers
14545 incorrectly reject 9223372036854775807. */
14546 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14548 && LARGE_OFF_T % 2147483647 == 1)
14549 ? 1 : -1];
14550 int
14551 main (void)
14552 {
14553
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_compile "$LINENO"
14559 then :
14560 ac_cv_sys_file_offset_bits=no; break
14561 fi
14562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #define _FILE_OFFSET_BITS 64
14566 #include <sys/types.h>
14567 /* Check that off_t can represent 2**63 - 1 correctly.
14568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14569 since some C++ compilers masquerading as C compilers
14570 incorrectly reject 9223372036854775807. */
14571 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14573 && LARGE_OFF_T % 2147483647 == 1)
14574 ? 1 : -1];
14575 int
14576 main (void)
14577 {
14578
14579 ;
14580 return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"
14584 then :
14585 ac_cv_sys_file_offset_bits=64; break
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14588 ac_cv_sys_file_offset_bits=unknown
14589 break
14590 done
14591 fi
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14593 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14594 case $ac_cv_sys_file_offset_bits in #(
14595 no | unknown) ;;
14596 *)
14597 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14598 ;;
14599 esac
14600 rm -rf conftest*
14601 if test $ac_cv_sys_file_offset_bits = unknown; then
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14603 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14604 if test ${ac_cv_sys_large_files+y}
14605 then :
14606 printf %s "(cached) " >&6
14607 else $as_nop
14608 while :; do
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 #include <sys/types.h>
14612 /* Check that off_t can represent 2**63 - 1 correctly.
14613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14614 since some C++ compilers masquerading as C compilers
14615 incorrectly reject 9223372036854775807. */
14616 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14618 && LARGE_OFF_T % 2147483647 == 1)
14619 ? 1 : -1];
14620 int
14621 main (void)
14622 {
14623
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_c_try_compile "$LINENO"
14629 then :
14630 ac_cv_sys_large_files=no; break
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 #define _LARGE_FILES 1
14636 #include <sys/types.h>
14637 /* Check that off_t can represent 2**63 - 1 correctly.
14638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14639 since some C++ compilers masquerading as C compilers
14640 incorrectly reject 9223372036854775807. */
14641 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14643 && LARGE_OFF_T % 2147483647 == 1)
14644 ? 1 : -1];
14645 int
14646 main (void)
14647 {
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"
14654 then :
14655 ac_cv_sys_large_files=1; break
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14658 ac_cv_sys_large_files=unknown
14659 break
14660 done
14661 fi
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14663 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14664 case $ac_cv_sys_large_files in #(
14665 no | unknown) ;;
14666 *)
14667 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14668 ;;
14669 esac
14670 rm -rf conftest*
14671 fi
14672 fi
14673
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14675 printf %s "checking for inline... " >&6; }
14676 if test ${ac_cv_c_inline+y}
14677 then :
14678 printf %s "(cached) " >&6
14679 else $as_nop
14680 ac_cv_c_inline=no
14681 for ac_kw in inline __inline__ __inline; do
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #ifndef __cplusplus
14685 typedef int foo_t;
14686 static $ac_kw foo_t static_foo (void) {return 0; }
14687 $ac_kw foo_t foo (void) {return 0; }
14688 #endif
14689
14690 _ACEOF
14691 if ac_fn_c_try_compile "$LINENO"
14692 then :
14693 ac_cv_c_inline=$ac_kw
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14696 test "$ac_cv_c_inline" != no && break
14697 done
14698
14699 fi
14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14701 printf "%s\n" "$ac_cv_c_inline" >&6; }
14702
14703 case $ac_cv_c_inline in
14704 inline | yes) ;;
14705 *)
14706 case $ac_cv_c_inline in
14707 no) ac_val=;;
14708 *) ac_val=$ac_cv_c_inline;;
14709 esac
14710 cat >>confdefs.h <<_ACEOF
14711 #ifndef __cplusplus
14712 #define inline $ac_val
14713 #endif
14714 _ACEOF
14715 ;;
14716 esac
14717
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14719 printf %s "checking whether byte ordering is bigendian... " >&6; }
14720 if test ${ac_cv_c_bigendian+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else $as_nop
14724 ac_cv_c_bigendian=unknown
14725 # See if we're dealing with a universal compiler.
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #ifndef __APPLE_CC__
14729 not a universal capable compiler
14730 #endif
14731 typedef int dummy;
14732
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"
14735 then :
14736
14737 # Check for potential -arch flags. It is not universal unless
14738 # there are at least two -arch flags with different values.
14739 ac_arch=
14740 ac_prev=
14741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14742 if test -n "$ac_prev"; then
14743 case $ac_word in
14744 i?86 | x86_64 | ppc | ppc64)
14745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14746 ac_arch=$ac_word
14747 else
14748 ac_cv_c_bigendian=universal
14749 break
14750 fi
14751 ;;
14752 esac
14753 ac_prev=
14754 elif test "x$ac_word" = "x-arch"; then
14755 ac_prev=arch
14756 fi
14757 done
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 if test $ac_cv_c_bigendian = unknown; then
14761 # See if sys/param.h defines the BYTE_ORDER macro.
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <sys/types.h>
14765 #include <sys/param.h>
14766
14767 int
14768 main (void)
14769 {
14770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14772 && LITTLE_ENDIAN)
14773 bogus endian macros
14774 #endif
14775
14776 ;
14777 return 0;
14778 }
14779 _ACEOF
14780 if ac_fn_c_try_compile "$LINENO"
14781 then :
14782 # It does; now see whether it defined to BIG_ENDIAN or not.
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <sys/types.h>
14786 #include <sys/param.h>
14787
14788 int
14789 main (void)
14790 {
14791 #if BYTE_ORDER != BIG_ENDIAN
14792 not big endian
14793 #endif
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"
14800 then :
14801 ac_cv_c_bigendian=yes
14802 else $as_nop
14803 ac_cv_c_bigendian=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14806 fi
14807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 fi
14809 if test $ac_cv_c_bigendian = unknown; then
14810 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 #include <limits.h>
14814
14815 int
14816 main (void)
14817 {
14818 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14819 bogus endian macros
14820 #endif
14821
14822 ;
14823 return 0;
14824 }
14825 _ACEOF
14826 if ac_fn_c_try_compile "$LINENO"
14827 then :
14828 # It does; now see whether it defined to _BIG_ENDIAN or not.
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 #include <limits.h>
14832
14833 int
14834 main (void)
14835 {
14836 #ifndef _BIG_ENDIAN
14837 not big endian
14838 #endif
14839
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 if ac_fn_c_try_compile "$LINENO"
14845 then :
14846 ac_cv_c_bigendian=yes
14847 else $as_nop
14848 ac_cv_c_bigendian=no
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14853 fi
14854 if test $ac_cv_c_bigendian = unknown; then
14855 # Compile a test program.
14856 if test "$cross_compiling" = yes
14857 then :
14858 # Try to guess by grepping values from an object file.
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 unsigned short int ascii_mm[] =
14862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14863 unsigned short int ascii_ii[] =
14864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14865 int use_ascii (int i) {
14866 return ascii_mm[i] + ascii_ii[i];
14867 }
14868 unsigned short int ebcdic_ii[] =
14869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14870 unsigned short int ebcdic_mm[] =
14871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14872 int use_ebcdic (int i) {
14873 return ebcdic_mm[i] + ebcdic_ii[i];
14874 }
14875 extern int foo;
14876
14877 int
14878 main (void)
14879 {
14880 return use_ascii (foo) == use_ebcdic (foo);
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"
14886 then :
14887 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14888 ac_cv_c_bigendian=yes
14889 fi
14890 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14891 if test "$ac_cv_c_bigendian" = unknown; then
14892 ac_cv_c_bigendian=no
14893 else
14894 # finding both strings is unlikely to happen, but who knows?
14895 ac_cv_c_bigendian=unknown
14896 fi
14897 fi
14898 fi
14899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14900 else $as_nop
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 $ac_includes_default
14904 int
14905 main (void)
14906 {
14907
14908 /* Are we little or big endian? From Harbison&Steele. */
14909 union
14910 {
14911 long int l;
14912 char c[sizeof (long int)];
14913 } u;
14914 u.l = 1;
14915 return u.c[sizeof (long int) - 1] == 1;
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 if ac_fn_c_try_run "$LINENO"
14922 then :
14923 ac_cv_c_bigendian=no
14924 else $as_nop
14925 ac_cv_c_bigendian=yes
14926 fi
14927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14928 conftest.$ac_objext conftest.beam conftest.$ac_ext
14929 fi
14930
14931 fi
14932 fi
14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14934 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
14935 case $ac_cv_c_bigendian in #(
14936 yes)
14937 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
14938 ;; #(
14939 no)
14940 ;; #(
14941 universal)
14942
14943 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14944
14945 ;; #(
14946 *)
14947 as_fn_error $? "unknown endianness
14948 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14949 esac
14950
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14952 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14953 if test ${ac_cv_struct_tm+y}
14954 then :
14955 printf %s "(cached) " >&6
14956 else $as_nop
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14959 #include <sys/types.h>
14960 #include <time.h>
14961
14962 int
14963 main (void)
14964 {
14965 struct tm tm;
14966 int *p = &tm.tm_sec;
14967 return !p;
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_compile "$LINENO"
14973 then :
14974 ac_cv_struct_tm=time.h
14975 else $as_nop
14976 ac_cv_struct_tm=sys/time.h
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14979 fi
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14981 printf "%s\n" "$ac_cv_struct_tm" >&6; }
14982 if test $ac_cv_struct_tm = sys/time.h; then
14983
14984 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
14985
14986 fi
14987
14988 # The cast to long int works around a bug in the HP C Compiler
14989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14991 # This bug is HP SR number 8606223364.
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14993 printf %s "checking size of long... " >&6; }
14994 if test ${ac_cv_sizeof_long+y}
14995 then :
14996 printf %s "(cached) " >&6
14997 else $as_nop
14998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
14999 then :
15000
15001 else $as_nop
15002 if test "$ac_cv_type_long" = yes; then
15003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15005 as_fn_error 77 "cannot compute sizeof (long)
15006 See \`config.log' for more details" "$LINENO" 5; }
15007 else
15008 ac_cv_sizeof_long=0
15009 fi
15010 fi
15011
15012 fi
15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15014 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
15015
15016
15017
15018 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
15019
15020
15021 # The cast to long int works around a bug in the HP C Compiler
15022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15024 # This bug is HP SR number 8606223364.
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15026 printf %s "checking size of int... " >&6; }
15027 if test ${ac_cv_sizeof_int+y}
15028 then :
15029 printf %s "(cached) " >&6
15030 else $as_nop
15031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
15032 then :
15033
15034 else $as_nop
15035 if test "$ac_cv_type_int" = yes; then
15036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15038 as_fn_error 77 "cannot compute sizeof (int)
15039 See \`config.log' for more details" "$LINENO" 5; }
15040 else
15041 ac_cv_sizeof_int=0
15042 fi
15043 fi
15044
15045 fi
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15047 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
15048
15049
15050
15051 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
15052
15053
15054 # The cast to long int works around a bug in the HP C Compiler
15055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15057 # This bug is HP SR number 8606223364.
15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5
15059 printf %s "checking size of intptr_t... " >&6; }
15060 if test ${ac_cv_sizeof_intptr_t+y}
15061 then :
15062 printf %s "(cached) " >&6
15063 else $as_nop
15064 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default"
15065 then :
15066
15067 else $as_nop
15068 if test "$ac_cv_type_intptr_t" = yes; then
15069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15071 as_fn_error 77 "cannot compute sizeof (intptr_t)
15072 See \`config.log' for more details" "$LINENO" 5; }
15073 else
15074 ac_cv_sizeof_intptr_t=0
15075 fi
15076 fi
15077
15078 fi
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5
15080 printf "%s\n" "$ac_cv_sizeof_intptr_t" >&6; }
15081
15082
15083
15084 printf "%s\n" "#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t" >>confdefs.h
15085
15086
15087 # The cast to long int works around a bug in the HP C Compiler
15088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15090 # This bug is HP SR number 8606223364.
15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
15092 printf %s "checking size of uintptr_t... " >&6; }
15093 if test ${ac_cv_sizeof_uintptr_t+y}
15094 then :
15095 printf %s "(cached) " >&6
15096 else $as_nop
15097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
15098 then :
15099
15100 else $as_nop
15101 if test "$ac_cv_type_uintptr_t" = yes; then
15102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15103 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15104 as_fn_error 77 "cannot compute sizeof (uintptr_t)
15105 See \`config.log' for more details" "$LINENO" 5; }
15106 else
15107 ac_cv_sizeof_uintptr_t=0
15108 fi
15109 fi
15110
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
15113 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
15114
15115
15116
15117 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
15118
15119
15120 # The cast to long int works around a bug in the HP C Compiler
15121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15123 # This bug is HP SR number 8606223364.
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15125 printf %s "checking size of size_t... " >&6; }
15126 if test ${ac_cv_sizeof_size_t+y}
15127 then :
15128 printf %s "(cached) " >&6
15129 else $as_nop
15130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
15131 then :
15132
15133 else $as_nop
15134 if test "$ac_cv_type_size_t" = yes; then
15135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15136 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15137 as_fn_error 77 "cannot compute sizeof (size_t)
15138 See \`config.log' for more details" "$LINENO" 5; }
15139 else
15140 ac_cv_sizeof_size_t=0
15141 fi
15142 fi
15143
15144 fi
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15146 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
15147
15148
15149
15150 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
15151
15152
15153 # The cast to long int works around a bug in the HP C Compiler
15154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15156 # This bug is HP SR number 8606223364.
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
15158 printf %s "checking size of ssize_t... " >&6; }
15159 if test ${ac_cv_sizeof_ssize_t+y}
15160 then :
15161 printf %s "(cached) " >&6
15162 else $as_nop
15163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"
15164 then :
15165
15166 else $as_nop
15167 if test "$ac_cv_type_ssize_t" = yes; then
15168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15169 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15170 as_fn_error 77 "cannot compute sizeof (ssize_t)
15171 See \`config.log' for more details" "$LINENO" 5; }
15172 else
15173 ac_cv_sizeof_ssize_t=0
15174 fi
15175 fi
15176
15177 fi
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
15179 printf "%s\n" "$ac_cv_sizeof_ssize_t" >&6; }
15180
15181
15182
15183 printf "%s\n" "#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t" >>confdefs.h
15184
15185
15186 # The cast to long int works around a bug in the HP C Compiler
15187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15189 # This bug is HP SR number 8606223364.
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
15191 printf %s "checking size of ptrdiff_t... " >&6; }
15192 if test ${ac_cv_sizeof_ptrdiff_t+y}
15193 then :
15194 printf %s "(cached) " >&6
15195 else $as_nop
15196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"
15197 then :
15198
15199 else $as_nop
15200 if test "$ac_cv_type_ptrdiff_t" = yes; then
15201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15203 as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
15204 See \`config.log' for more details" "$LINENO" 5; }
15205 else
15206 ac_cv_sizeof_ptrdiff_t=0
15207 fi
15208 fi
15209
15210 fi
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
15212 printf "%s\n" "$ac_cv_sizeof_ptrdiff_t" >&6; }
15213
15214
15215
15216 printf "%s\n" "#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t" >>confdefs.h
15217
15218
15219 # The cast to long int works around a bug in the HP C Compiler
15220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15222 # This bug is HP SR number 8606223364.
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15224 printf %s "checking size of off_t... " >&6; }
15225 if test ${ac_cv_sizeof_off_t+y}
15226 then :
15227 printf %s "(cached) " >&6
15228 else $as_nop
15229 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
15230 then :
15231
15232 else $as_nop
15233 if test "$ac_cv_type_off_t" = yes; then
15234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15236 as_fn_error 77 "cannot compute sizeof (off_t)
15237 See \`config.log' for more details" "$LINENO" 5; }
15238 else
15239 ac_cv_sizeof_off_t=0
15240 fi
15241 fi
15242
15243 fi
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15245 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
15246
15247
15248
15249 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
15250
15251
15252 # The cast to long int works around a bug in the HP C Compiler
15253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15255 # This bug is HP SR number 8606223364.
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15257 printf %s "checking size of double... " >&6; }
15258 if test ${ac_cv_sizeof_double+y}
15259 then :
15260 printf %s "(cached) " >&6
15261 else $as_nop
15262 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
15263 then :
15264
15265 else $as_nop
15266 if test "$ac_cv_type_double" = yes; then
15267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15268 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15269 as_fn_error 77 "cannot compute sizeof (double)
15270 See \`config.log' for more details" "$LINENO" 5; }
15271 else
15272 ac_cv_sizeof_double=0
15273 fi
15274 fi
15275
15276 fi
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15278 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
15279
15280
15281
15282 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
15283
15284
15285 # The cast to long int works around a bug in the HP C Compiler
15286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15288 # This bug is HP SR number 8606223364.
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15290 printf %s "checking size of float... " >&6; }
15291 if test ${ac_cv_sizeof_float+y}
15292 then :
15293 printf %s "(cached) " >&6
15294 else $as_nop
15295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
15296 then :
15297
15298 else $as_nop
15299 if test "$ac_cv_type_float" = yes; then
15300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15301 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15302 as_fn_error 77 "cannot compute sizeof (float)
15303 See \`config.log' for more details" "$LINENO" 5; }
15304 else
15305 ac_cv_sizeof_float=0
15306 fi
15307 fi
15308
15309 fi
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15311 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
15312
15313
15314
15315 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
15316
15317
15318 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15319 if test "x$ac_cv_type_long_long" = xyes
15320 then :
15321
15322 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
15323
15324
15325 fi
15326 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
15327 if test "x$ac_cv_type_long_double" = xyes
15328 then :
15329
15330 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15331
15332
15333 fi
15334
15335 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
15336 if test "x$ac_cv_type_struct_timespec" = xyes
15337 then :
15338
15339 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15340
15341
15342 fi
15343
15344
15345 if test "$GAUCHE_THREAD_TYPE" = pthreads; then
15346 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15347 "
15348 if test "x$ac_cv_type_pthread_spinlock_t" = xyes
15349 then :
15350
15351 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
15352
15353
15354 fi
15355
15356 fi
15357
15358 # The cast to long int works around a bug in the HP C Compiler
15359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15361 # This bug is HP SR number 8606223364.
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5
15363 printf %s "checking size of rlim_t... " >&6; }
15364 if test ${ac_cv_sizeof_rlim_t+y}
15365 then :
15366 printf %s "(cached) " >&6
15367 else $as_nop
15368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "
15369 #if HAVE_SYS_TIME_H
15370 # include <sys/time.h>
15371 #endif
15372 #if HAVE_SYS_RESOURCE_H
15373 # include <sys/resource.h>
15374 #endif
15375
15376 "
15377 then :
15378
15379 else $as_nop
15380 if test "$ac_cv_type_rlim_t" = yes; then
15381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15382 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15383 as_fn_error 77 "cannot compute sizeof (rlim_t)
15384 See \`config.log' for more details" "$LINENO" 5; }
15385 else
15386 ac_cv_sizeof_rlim_t=0
15387 fi
15388 fi
15389
15390 fi
15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5
15392 printf "%s\n" "$ac_cv_sizeof_rlim_t" >&6; }
15393
15394
15395
15396 printf "%s\n" "#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t" >>confdefs.h
15397
15398
15399
15400 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h>
15401 "
15402 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
15403 then :
15404
15405 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
15406
15407
15408 fi
15409 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
15410 "
15411 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15412 then :
15413
15414 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15415
15416
15417 fi
15418 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "#include <sys/stat.h>
15419 "
15420 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes
15421 then :
15422
15423 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIM 1" >>confdefs.h
15424
15425
15426 fi
15427
15428
15429 ac_fn_c_check_member "$LINENO" "struct group" "gr_passwd" "ac_cv_member_struct_group_gr_passwd" "#include <grp.h>
15430 "
15431 if test "x$ac_cv_member_struct_group_gr_passwd" = xyes
15432 then :
15433
15434 printf "%s\n" "#define HAVE_STRUCT_GROUP_GR_PASSWD 1" >>confdefs.h
15435
15436
15437 fi
15438
15439 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "#include <pwd.h>
15440 "
15441 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
15442 then :
15443
15444 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
15445
15446
15447 fi
15448 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "#include <pwd.h>
15449 "
15450 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
15451 then :
15452
15453 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
15454
15455
15456 fi
15457 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "#include <pwd.h>
15458 "
15459 if test "x$ac_cv_member_struct_passwd_pw_class" = xyes
15460 then :
15461
15462 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_CLASS 1" >>confdefs.h
15463
15464
15465 fi
15466
15467
15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking time_t is integral" >&5
15469 printf %s "checking time_t is integral... " >&6; }
15470 if test ${ac_cv_type_time_t_integral+y}
15471 then :
15472 printf %s "(cached) " >&6
15473 else $as_nop
15474
15475 if test "$cross_compiling" = yes
15476 then :
15477 ac_cv_type_time_t_integral=yes
15478 else $as_nop
15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h. */
15481
15482 #include <time.h>
15483 int main()
15484 {
15485 time_t t = 3.14;
15486 return (t == 3.14);
15487 }
15488 _ACEOF
15489 if ac_fn_c_try_run "$LINENO"
15490 then :
15491 ac_cv_type_time_t_integral=yes
15492 else $as_nop
15493 ac_cv_type_time_t_integral=no
15494 fi
15495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15496 conftest.$ac_objext conftest.beam conftest.$ac_ext
15497 fi
15498
15499 fi
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_time_t_integral" >&5
15501 printf "%s\n" "$ac_cv_type_time_t_integral" >&6; }
15502
15503 if test "$ac_cv_type_time_t_integral" = yes; then
15504
15505 printf "%s\n" "#define INTEGRAL_TIME_T 1" >>confdefs.h
15506
15507 fi
15508
15509
15510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
15511 printf %s "checking for sin in -lm... " >&6; }
15512 if test ${ac_cv_lib_m_sin+y}
15513 then :
15514 printf %s "(cached) " >&6
15515 else $as_nop
15516 ac_check_lib_save_LIBS=$LIBS
15517 LIBS="-lm $LIBS"
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520
15521 /* Override any GCC internal prototype to avoid an error.
15522 Use char because int might match the return type of a GCC
15523 builtin and then its argument prototype would still apply. */
15524 char sin ();
15525 int
15526 main (void)
15527 {
15528 return sin ();
15529 ;
15530 return 0;
15531 }
15532 _ACEOF
15533 if ac_fn_c_try_link "$LINENO"
15534 then :
15535 ac_cv_lib_m_sin=yes
15536 else $as_nop
15537 ac_cv_lib_m_sin=no
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LIBS=$ac_check_lib_save_LIBS
15542 fi
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
15544 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
15545 if test "x$ac_cv_lib_m_sin" = xyes
15546 then :
15547 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
15548
15549 LIBS="-lm $LIBS"
15550
15551 fi
15552
15553
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf in -lsunmath" >&5
15555 printf %s "checking for isinf in -lsunmath... " >&6; }
15556 if test ${ac_cv_lib_sunmath_isinf+y}
15557 then :
15558 printf %s "(cached) " >&6
15559 else $as_nop
15560 ac_check_lib_save_LIBS=$LIBS
15561 LIBS="-lsunmath $LIBS"
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564
15565 /* Override any GCC internal prototype to avoid an error.
15566 Use char because int might match the return type of a GCC
15567 builtin and then its argument prototype would still apply. */
15568 char isinf ();
15569 int
15570 main (void)
15571 {
15572 return isinf ();
15573 ;
15574 return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_link "$LINENO"
15578 then :
15579 ac_cv_lib_sunmath_isinf=yes
15580 else $as_nop
15581 ac_cv_lib_sunmath_isinf=no
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15586 fi
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_isinf" >&5
15588 printf "%s\n" "$ac_cv_lib_sunmath_isinf" >&6; }
15589 if test "x$ac_cv_lib_sunmath_isinf" = xyes
15590 then :
15591 printf "%s\n" "#define HAVE_LIBSUNMATH 1" >>confdefs.h
15592
15593 LIBS="-lsunmath $LIBS"
15594
15595 fi
15596
15597
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15599 printf %s "checking for clock_gettime in -lrt... " >&6; }
15600 if test ${ac_cv_lib_rt_clock_gettime+y}
15601 then :
15602 printf %s "(cached) " >&6
15603 else $as_nop
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lrt $LIBS"
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608
15609 /* Override any GCC internal prototype to avoid an error.
15610 Use char because int might match the return type of a GCC
15611 builtin and then its argument prototype would still apply. */
15612 char clock_gettime ();
15613 int
15614 main (void)
15615 {
15616 return clock_gettime ();
15617 ;
15618 return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_link "$LINENO"
15622 then :
15623 ac_cv_lib_rt_clock_gettime=yes
15624 else $as_nop
15625 ac_cv_lib_rt_clock_gettime=no
15626 fi
15627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15628 conftest$ac_exeext conftest.$ac_ext
15629 LIBS=$ac_check_lib_save_LIBS
15630 fi
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15632 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
15633 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
15634 then :
15635 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
15636
15637 LIBS="-lrt $LIBS"
15638
15639 fi
15640
15641
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_pidpath in -lproc" >&5
15643 printf %s "checking for proc_pidpath in -lproc... " >&6; }
15644 if test ${ac_cv_lib_proc_proc_pidpath+y}
15645 then :
15646 printf %s "(cached) " >&6
15647 else $as_nop
15648 ac_check_lib_save_LIBS=$LIBS
15649 LIBS="-lproc $LIBS"
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656 char proc_pidpath ();
15657 int
15658 main (void)
15659 {
15660 return proc_pidpath ();
15661 ;
15662 return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_link "$LINENO"
15666 then :
15667 ac_cv_lib_proc_proc_pidpath=yes
15668 else $as_nop
15669 ac_cv_lib_proc_proc_pidpath=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_proc_proc_pidpath" >&5
15676 printf "%s\n" "$ac_cv_lib_proc_proc_pidpath" >&6; }
15677 if test "x$ac_cv_lib_proc_proc_pidpath" = xyes
15678 then :
15679 printf "%s\n" "#define HAVE_LIBPROC 1" >>confdefs.h
15680
15681 LIBS="-lproc $LIBS"
15682
15683 fi
15684
15685
15686 case "$host" in
15687 *mingw*) LIBS="$LIBS -lnetapi32 -lshlwapi -lws2_32 -lbcrypt"
15688 ALTERNATIVE_GOSH="gosh-noconsole.exe"
15689 CFLAGS="$CFLAGS -DUNICODE -D__USE_MINGW_ANSI_STDIO" ;;
15690 *) ALTERNATIVE_GOSH="" ;;
15691 esac
15692
15693
15694 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15695 if test "x$ac_cv_type_size_t" = xyes
15696 then :
15697
15698 else $as_nop
15699
15700 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15701
15702 fi
15703
15704 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15705 # for constant arguments. Useless!
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15707 printf %s "checking for working alloca.h... " >&6; }
15708 if test ${ac_cv_working_alloca_h+y}
15709 then :
15710 printf %s "(cached) " >&6
15711 else $as_nop
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15714 #include <alloca.h>
15715 int
15716 main (void)
15717 {
15718 char *p = (char *) alloca (2 * sizeof (int));
15719 if (p) return 0;
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_link "$LINENO"
15725 then :
15726 ac_cv_working_alloca_h=yes
15727 else $as_nop
15728 ac_cv_working_alloca_h=no
15729 fi
15730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15731 conftest$ac_exeext conftest.$ac_ext
15732 fi
15733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15734 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
15735 if test $ac_cv_working_alloca_h = yes; then
15736
15737 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
15738
15739 fi
15740
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15742 printf %s "checking for alloca... " >&6; }
15743 if test ${ac_cv_func_alloca_works+y}
15744 then :
15745 printf %s "(cached) " >&6
15746 else $as_nop
15747 if test $ac_cv_working_alloca_h = yes; then
15748 ac_cv_func_alloca_works=yes
15749 else
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 #include <stdlib.h>
15753 #include <stddef.h>
15754 #ifndef alloca
15755 # ifdef __GNUC__
15756 # define alloca __builtin_alloca
15757 # elif defined _MSC_VER
15758 # include <malloc.h>
15759 # define alloca _alloca
15760 # else
15761 # ifdef __cplusplus
15762 extern "C"
15763 # endif
15764 void *alloca (size_t);
15765 # endif
15766 #endif
15767
15768 int
15769 main (void)
15770 {
15771 char *p = (char *) alloca (1);
15772 if (p) return 0;
15773 ;
15774 return 0;
15775 }
15776 _ACEOF
15777 if ac_fn_c_try_link "$LINENO"
15778 then :
15779 ac_cv_func_alloca_works=yes
15780 else $as_nop
15781 ac_cv_func_alloca_works=no
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15784 conftest$ac_exeext conftest.$ac_ext
15785 fi
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15787 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
15788 fi
15789
15790 if test $ac_cv_func_alloca_works = yes; then
15791
15792 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15793
15794 else
15795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15796 # that cause trouble. Some versions do not even contain alloca or
15797 # contain a buggy version. If you still want to use their alloca,
15798 # use ar to extract alloca.o from them instead of compiling alloca.c.
15799
15800 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15801
15802 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
15803
15804
15805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15806 printf %s "checking stack direction for C alloca... " >&6; }
15807 if test ${ac_cv_c_stack_direction+y}
15808 then :
15809 printf %s "(cached) " >&6
15810 else $as_nop
15811 if test "$cross_compiling" = yes
15812 then :
15813 ac_cv_c_stack_direction=0
15814 else $as_nop
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817 $ac_includes_default
15818 int
15819 find_stack_direction (int *addr, int depth)
15820 {
15821 int dir, dummy = 0;
15822 if (! addr)
15823 addr = &dummy;
15824 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15825 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15826 return dir + dummy;
15827 }
15828
15829 int
15830 main (int argc, char **argv)
15831 {
15832 return find_stack_direction (0, argc + !argv + 20) < 0;
15833 }
15834 _ACEOF
15835 if ac_fn_c_try_run "$LINENO"
15836 then :
15837 ac_cv_c_stack_direction=1
15838 else $as_nop
15839 ac_cv_c_stack_direction=-1
15840 fi
15841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15842 conftest.$ac_objext conftest.beam conftest.$ac_ext
15843 fi
15844
15845 fi
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15847 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
15848 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
15849
15850
15851 fi
15852
15853 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
15854 if test "x$ac_cv_func_isnan" = xyes
15855 then :
15856 printf "%s\n" "#define HAVE_ISNAN 1" >>confdefs.h
15857
15858 fi
15859 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
15860 if test "x$ac_cv_func_isinf" = xyes
15861 then :
15862 printf "%s\n" "#define HAVE_ISINF 1" >>confdefs.h
15863
15864 fi
15865 ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
15866 if test "x$ac_cv_func_trunc" = xyes
15867 then :
15868 printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
15869
15870 fi
15871 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
15872 if test "x$ac_cv_func_rint" = xyes
15873 then :
15874 printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h
15875
15876 fi
15877 ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma"
15878 if test "x$ac_cv_func_tgamma" = xyes
15879 then :
15880 printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h
15881
15882 fi
15883 ac_fn_c_check_func "$LINENO" "lgamma" "ac_cv_func_lgamma"
15884 if test "x$ac_cv_func_lgamma" = xyes
15885 then :
15886 printf "%s\n" "#define HAVE_LGAMMA 1" >>confdefs.h
15887
15888 fi
15889
15890 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
15891 if test "x$ac_cv_func_symlink" = xyes
15892 then :
15893 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
15894
15895 fi
15896 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
15897 if test "x$ac_cv_func_readlink" = xyes
15898 then :
15899 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
15900
15901 fi
15902 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
15903 if test "x$ac_cv_func_lchown" = xyes
15904 then :
15905 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
15906
15907 fi
15908 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
15909 if test "x$ac_cv_func_realpath" = xyes
15910 then :
15911 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
15912
15913 fi
15914 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15915 if test "x$ac_cv_func_nanosleep" = xyes
15916 then :
15917 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
15918
15919 fi
15920 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
15921 if test "x$ac_cv_func_usleep" = xyes
15922 then :
15923 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
15924
15925 fi
15926 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
15927 if test "x$ac_cv_func_utimensat" = xyes
15928 then :
15929 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
15930
15931 fi
15932
15933 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
15934 if test "x$ac_cv_func_random" = xyes
15935 then :
15936 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
15937
15938 fi
15939 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
15940 if test "x$ac_cv_func_srandom" = xyes
15941 then :
15942 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
15943
15944 fi
15945 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
15946 if test "x$ac_cv_func_lrand48" = xyes
15947 then :
15948 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
15949
15950 fi
15951 ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
15952 if test "x$ac_cv_func_srand48" = xyes
15953 then :
15954 printf "%s\n" "#define HAVE_SRAND48 1" >>confdefs.h
15955
15956 fi
15957
15958 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15959 if test "x$ac_cv_func_putenv" = xyes
15960 then :
15961 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15962
15963 fi
15964 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15965 if test "x$ac_cv_func_setenv" = xyes
15966 then :
15967 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15968
15969 fi
15970 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15971 if test "x$ac_cv_func_unsetenv" = xyes
15972 then :
15973 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
15974
15975 fi
15976 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
15977 if test "x$ac_cv_func_clearenv" = xyes
15978 then :
15979 printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h
15980
15981 fi
15982 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
15983 if test "x$ac_cv_func_getpgid" = xyes
15984 then :
15985 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
15986
15987 fi
15988 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
15989 if test "x$ac_cv_func_setgroups" = xyes
15990 then :
15991 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
15992
15993 fi
15994
15995 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
15996 if test "x$ac_cv_func_gethostname" = xyes
15997 then :
15998 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15999
16000 fi
16001 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
16002 if test "x$ac_cv_func_sethostname" = xyes
16003 then :
16004 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
16005
16006 fi
16007 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
16008 if test "x$ac_cv_func_getdomainname" = xyes
16009 then :
16010 printf "%s\n" "#define HAVE_GETDOMAINNAME 1" >>confdefs.h
16011
16012 fi
16013 ac_fn_c_check_func "$LINENO" "setdomainname" "ac_cv_func_setdomainname"
16014 if test "x$ac_cv_func_setdomainname" = xyes
16015 then :
16016 printf "%s\n" "#define HAVE_SETDOMAINNAME 1" >>confdefs.h
16017
16018 fi
16019
16020 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16021 if test "x$ac_cv_func_gettimeofday" = xyes
16022 then :
16023 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16024
16025 fi
16026 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16027 if test "x$ac_cv_func_getloadavg" = xyes
16028 then :
16029 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
16030
16031 fi
16032 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16033 if test "x$ac_cv_func_clock_gettime" = xyes
16034 then :
16035 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16036
16037 fi
16038 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
16039 if test "x$ac_cv_func_clock_getres" = xyes
16040 then :
16041 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
16042
16043 fi
16044
16045 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
16046 if test "x$ac_cv_func_syslog" = xyes
16047 then :
16048 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
16049
16050 fi
16051 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
16052 if test "x$ac_cv_func_setlogmask" = xyes
16053 then :
16054 printf "%s\n" "#define HAVE_SETLOGMASK 1" >>confdefs.h
16055
16056 fi
16057
16058 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
16059 if test "x$ac_cv_func_sigwait" = xyes
16060 then :
16061 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
16062
16063 fi
16064
16065 ac_fn_c_check_func "$LINENO" "fpsetprec" "ac_cv_func_fpsetprec"
16066 if test "x$ac_cv_func_fpsetprec" = xyes
16067 then :
16068 printf "%s\n" "#define HAVE_FPSETPREC 1" >>confdefs.h
16069
16070 fi
16071
16072 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
16073 if test "x$ac_cv_func_issetugid" = xyes
16074 then :
16075 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
16076
16077 fi
16078
16079 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16080 if test "x$ac_cv_func_strsignal" = xyes
16081 then :
16082 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
16083
16084 fi
16085
16086
16087 case "$host" in
16088 *mingw*) ;;
16089 *)
16090 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16091 if test "x$ac_cv_func_mkdtemp" = xyes
16092 then :
16093 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
16094
16095 fi
16096 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
16097 if test "x$ac_cv_func_mkstemp" = xyes
16098 then :
16099 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
16100
16101 fi
16102 ;;
16103 esac
16104
16105 case "$host" in
16106 *-hpux*|*mingw*)
16107
16108 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
16109 ;;
16110 *)
16111 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
16112 if test "x$ac_cv_func_select" = xyes
16113 then :
16114 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
16115
16116 fi
16117 ;;
16118 esac
16119
16120 case "$host" in
16121 *cygwin*)
16122 : ;;
16123 *)
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
16125 printf %s "checking for library containing openpty... " >&6; }
16126 if test ${ac_cv_search_openpty+y}
16127 then :
16128 printf %s "(cached) " >&6
16129 else $as_nop
16130 ac_func_search_save_LIBS=$LIBS
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16133
16134 /* Override any GCC internal prototype to avoid an error.
16135 Use char because int might match the return type of a GCC
16136 builtin and then its argument prototype would still apply. */
16137 char openpty ();
16138 int
16139 main (void)
16140 {
16141 return openpty ();
16142 ;
16143 return 0;
16144 }
16145 _ACEOF
16146 for ac_lib in '' util
16147 do
16148 if test -z "$ac_lib"; then
16149 ac_res="none required"
16150 else
16151 ac_res=-l$ac_lib
16152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16153 fi
16154 if ac_fn_c_try_link "$LINENO"
16155 then :
16156 ac_cv_search_openpty=$ac_res
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16159 conftest$ac_exeext
16160 if test ${ac_cv_search_openpty+y}
16161 then :
16162 break
16163 fi
16164 done
16165 if test ${ac_cv_search_openpty+y}
16166 then :
16167
16168 else $as_nop
16169 ac_cv_search_openpty=no
16170 fi
16171 rm conftest.$ac_ext
16172 LIBS=$ac_func_search_save_LIBS
16173 fi
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
16175 printf "%s\n" "$ac_cv_search_openpty" >&6; }
16176 ac_res=$ac_cv_search_openpty
16177 if test "$ac_res" != no
16178 then :
16179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16180
16181 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
16182
16183 fi
16184
16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing forkpty" >&5
16186 printf %s "checking for library containing forkpty... " >&6; }
16187 if test ${ac_cv_search_forkpty+y}
16188 then :
16189 printf %s "(cached) " >&6
16190 else $as_nop
16191 ac_func_search_save_LIBS=$LIBS
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194
16195 /* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
16198 char forkpty ();
16199 int
16200 main (void)
16201 {
16202 return forkpty ();
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 for ac_lib in '' util
16208 do
16209 if test -z "$ac_lib"; then
16210 ac_res="none required"
16211 else
16212 ac_res=-l$ac_lib
16213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16214 fi
16215 if ac_fn_c_try_link "$LINENO"
16216 then :
16217 ac_cv_search_forkpty=$ac_res
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16220 conftest$ac_exeext
16221 if test ${ac_cv_search_forkpty+y}
16222 then :
16223 break
16224 fi
16225 done
16226 if test ${ac_cv_search_forkpty+y}
16227 then :
16228
16229 else $as_nop
16230 ac_cv_search_forkpty=no
16231 fi
16232 rm conftest.$ac_ext
16233 LIBS=$ac_func_search_save_LIBS
16234 fi
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_forkpty" >&5
16236 printf "%s\n" "$ac_cv_search_forkpty" >&6; }
16237 ac_res=$ac_cv_search_forkpty
16238 if test "$ac_res" != no
16239 then :
16240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16241
16242 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
16243
16244 fi
16245
16246 ;;
16247 esac
16248
16249 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16250 if test "x$ac_cv_func_fcntl" = xyes
16251 then :
16252 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
16253
16254 fi
16255
16256
16257 case "$host" in
16258 *cygwin*)
16259 : ;;
16260 *)
16261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
16262 printf %s "checking for library containing crypt... " >&6; }
16263 if test ${ac_cv_search_crypt+y}
16264 then :
16265 printf %s "(cached) " >&6
16266 else $as_nop
16267 ac_func_search_save_LIBS=$LIBS
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270
16271 /* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16274 char crypt ();
16275 int
16276 main (void)
16277 {
16278 return crypt ();
16279 ;
16280 return 0;
16281 }
16282 _ACEOF
16283 for ac_lib in '' crypt
16284 do
16285 if test -z "$ac_lib"; then
16286 ac_res="none required"
16287 else
16288 ac_res=-l$ac_lib
16289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16290 fi
16291 if ac_fn_c_try_link "$LINENO"
16292 then :
16293 ac_cv_search_crypt=$ac_res
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16296 conftest$ac_exeext
16297 if test ${ac_cv_search_crypt+y}
16298 then :
16299 break
16300 fi
16301 done
16302 if test ${ac_cv_search_crypt+y}
16303 then :
16304
16305 else $as_nop
16306 ac_cv_search_crypt=no
16307 fi
16308 rm conftest.$ac_ext
16309 LIBS=$ac_func_search_save_LIBS
16310 fi
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16312 printf "%s\n" "$ac_cv_search_crypt" >&6; }
16313 ac_res=$ac_cv_search_crypt
16314 if test "$ac_res" != no
16315 then :
16316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16317
16318 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
16319
16320 fi
16321
16322 ;;
16323 esac
16324
16325 case "$host" in
16326 *mingw*)
16327 : ;;
16328 *)
16329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16330 printf %s "checking for library containing dlopen... " >&6; }
16331 if test ${ac_cv_search_dlopen+y}
16332 then :
16333 printf %s "(cached) " >&6
16334 else $as_nop
16335 ac_func_search_save_LIBS=$LIBS
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338
16339 /* Override any GCC internal prototype to avoid an error.
16340 Use char because int might match the return type of a GCC
16341 builtin and then its argument prototype would still apply. */
16342 char dlopen ();
16343 int
16344 main (void)
16345 {
16346 return dlopen ();
16347 ;
16348 return 0;
16349 }
16350 _ACEOF
16351 for ac_lib in '' dl
16352 do
16353 if test -z "$ac_lib"; then
16354 ac_res="none required"
16355 else
16356 ac_res=-l$ac_lib
16357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16358 fi
16359 if ac_fn_c_try_link "$LINENO"
16360 then :
16361 ac_cv_search_dlopen=$ac_res
16362 fi
16363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16364 conftest$ac_exeext
16365 if test ${ac_cv_search_dlopen+y}
16366 then :
16367 break
16368 fi
16369 done
16370 if test ${ac_cv_search_dlopen+y}
16371 then :
16372
16373 else $as_nop
16374 ac_cv_search_dlopen=no
16375 fi
16376 rm conftest.$ac_ext
16377 LIBS=$ac_func_search_save_LIBS
16378 fi
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16380 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
16381 ac_res=$ac_cv_search_dlopen
16382 if test "$ac_res" != no
16383 then :
16384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16385
16386 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
16387
16388 fi
16389
16390 ;;
16391 esac
16392
16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
16394 printf %s "checking for library containing sched_yield... " >&6; }
16395 if test ${ac_cv_search_sched_yield+y}
16396 then :
16397 printf %s "(cached) " >&6
16398 else $as_nop
16399 ac_func_search_save_LIBS=$LIBS
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h. */
16402
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16406 char sched_yield ();
16407 int
16408 main (void)
16409 {
16410 return sched_yield ();
16411 ;
16412 return 0;
16413 }
16414 _ACEOF
16415 for ac_lib in '' rt
16416 do
16417 if test -z "$ac_lib"; then
16418 ac_res="none required"
16419 else
16420 ac_res=-l$ac_lib
16421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16422 fi
16423 if ac_fn_c_try_link "$LINENO"
16424 then :
16425 ac_cv_search_sched_yield=$ac_res
16426 fi
16427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16428 conftest$ac_exeext
16429 if test ${ac_cv_search_sched_yield+y}
16430 then :
16431 break
16432 fi
16433 done
16434 if test ${ac_cv_search_sched_yield+y}
16435 then :
16436
16437 else $as_nop
16438 ac_cv_search_sched_yield=no
16439 fi
16440 rm conftest.$ac_ext
16441 LIBS=$ac_func_search_save_LIBS
16442 fi
16443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16444 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
16445 ac_res=$ac_cv_search_sched_yield
16446 if test "$ac_res" != no
16447 then :
16448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16449
16450 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
16451
16452 fi
16453
16454
16455 if test "$GAUCHE_THREAD_TYPE" = pthreads; then
16456 ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel"
16457 if test "x$ac_cv_func_pthread_cancel" = xyes
16458 then :
16459 printf "%s\n" "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
16460
16461 fi
16462
16463 fi
16464
16465
16466 case $host in #(
16467 *mingw*) :
16468 USE_WIN_RESOURCE_yes=""
16469 USE_WIN_RESOURCE_no="#" ;; #(
16470 *) :
16471 USE_WIN_RESOURCE_yes="#"
16472 USE_WIN_RESOURCE_no="" ;;
16473 esac
16474
16475
16476
16477
16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to make dynamic loadable module" >&5
16479 printf %s "checking how to make dynamic loadable module... " >&6; }
16480
16481 # A flag to indicate libgauche can be linked when building extension module.
16482 # It is required on cygwin; it has to be omitted on MacOS X; Other unices
16483 # generally don't care.
16484 ext_use_libgauche=no
16485
16486 # A flag to indicate we need to create a link with version numbers to
16487 # libgauche.so after building it.
16488 libgauche_version_link=yes
16489
16490 # A flag to indicate uvector.so should be added when linking extension module
16491 # that refers to uvector. It is required if we want to resolve all symbols,
16492 # and although it's the usual case, we can't add it on MacOS X, on which
16493 # we only build the static version of libgauche.
16494 ext_use_uvector=no
16495
16496 # We put additional information, such as whether we use Framework for
16497 # darwin, in this variable.
16498 xhost=$host
16499
16500 # On cygwin, we likely to need rebaseall to make dlls work with sys-fork.
16501 CYGWIN_FIXDLL=:
16502
16503 case $host in #(
16504 *freebsd2*) :
16505
16506 SHLIB_SO_CFLAGS="-fpic -fPIC"
16507 SHLIB_SO_LDFLAGS="-v;ld -Bshareable -o"
16508 SHLIB_SO_SUFFIX="so"
16509 SHLIB_MAIN_LDFLAGS=""
16510 SHLIB_OK=ok
16511 ;; #(
16512 *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*) :
16513
16514 SHLIB_SO_CFLAGS="-fPIC"
16515 SHLIB_SO_LDFLAGS="$rpath -shared -o"
16516 SHLIB_SO_SUFFIX="so"
16517 SHLIB_MAIN_LDFLAGS="-rdynamic"
16518 SHLIB_OK=ok
16519 ;; #(
16520 *netbsd*|*openbsd*) :
16521
16522 SHLIB_SO_CFLAGS="-fPIC -DPIC"
16523 SHLIB_SO_LDFLAGS="$rpath -shared -o"
16524 SHLIB_SO_SUFFIX="so"
16525 SHLIB_MAIN_LDFLAGS="-rdynamic"
16526 SHLIB_OK=ok
16527 ;; #(
16528 *darwin*) :
16529
16530 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
16531 case $host_os in #(
16532 darwin1.[012]) :
16533 FLAT_NAMESPACE="" ;; #(
16534 *) :
16535 FLAT_NAMESPACE="-flat_namespace" ;;
16536 esac
16537 case $host_os in #(
16538 darwin9.8.*) :
16539 ;; #(
16540 *) :
16541 SHLIB_MAIN_LDFLAGS="-Wl,-no_pie" ;;
16542 esac
16543 SHLIB_SO_CFLAGS="-no-cpp-precomp -fPIC -fno-common"
16544 SHLIB_SO_LDFLAGS="-bundle $FLAT_NAMESPACE -undefined suppress -o"
16545 SHLIB_SO_SUFFIX="so"
16546 SHLIB_DYLIB_LDFLAGS='-framework CoreServices -framework CoreFoundation -dynamiclib -o'
16547 if test "$ac_gauche_framework" = yes
16548 then :
16549
16550
16551 printf "%s\n" "#define GAUCHE_MACOSX_FRAMEWORK 1" >>confdefs.h
16552
16553 xhost="${host}-framework"
16554
16555 fi
16556 SHLIB_DYLIB_SUFFIX="dylib"
16557 SHLIB_LIBS_FOR_EXT=""
16558 SHLIB_OK=ok
16559 LINK_HELPER='$(srcdir)/link-dylib'
16560 ext_use_libgauche=no
16561 libgauche_version_link=no
16562 ;; #(
16563 mips-sgi-irix*) :
16564
16565 if test "$GCC" = yes
16566 then :
16567 SHLIB_SO_CFLAGS="-fPIC"
16568 else $as_nop
16569 SHLIB_SO_CFLAGS="-KPIC"
16570 fi
16571 SHLIB_SO_LDFLAGS="$rpath -shared -o"
16572 SHLIB_SO_SUFFIX="so"
16573 SHLIB_MAIN_LDFLAGS=""
16574 SHLIB_OK=ok
16575 ;; #(
16576 *solaris*) :
16577
16578 if test "$GCC" = yes
16579 then :
16580
16581 SHLIB_SO_CFLAGS="-fPIC"
16582 SHLIB_SO_LDFLAGS="-shared -o"
16583
16584 else $as_nop
16585
16586 SHLIB_SO_CFLAGS="-Kpic"
16587 SHLIB_SO_LDFLAGS="-G -o"
16588
16589 fi
16590 SHLIB_SO_SUFFIX="so"
16591 SHLIB_MAIN_LDFLAGS=""
16592 SHLIB_OK=ok
16593 ;; #(
16594 *hp*) :
16595
16596 if test "$GCC" = yes
16597 then :
16598
16599 SHLIB_SO_CFLAGS="-fPIC"
16600 SHLIB_SO_LDFLAGS="-shared -o"
16601
16602 else $as_nop
16603
16604 SHLIB_SO_CFLAGS="+z +Z"
16605 SHLIB_SO_LDFLAGS=";ld -b -o"
16606
16607 fi
16608 SHLIB_SO_SUFFIX="sl"
16609 SHLIB_MAIN_LDFLAGS=""
16610 SHLIB_OK=ok
16611 LINK_HELPER='$(srcdir)/link-hpux'
16612 ;; #(
16613 *cygwin*) :
16614
16615 SHLIB_SO_CFLAGS=""
16616 SHLIB_SO_LDFLAGS='-Wl,--export-all-symbols -Wl,--enable-auto-import -shared -o'
16617 SHLIB_SO_SUFFIX="dll"
16618 SHLIB_DYLIB_SUFFIX="dll"
16619 SHLIB_MAIN_LDFLAGS="-Wl,--enable-auto-import"
16620 SHLIB_OK=ok
16621 GOSH_USE_SHLIB=yes
16622 ext_use_uvector=yes
16623 ext_use_libgauche=yes
16624 libgauche_version_link=no
16625 CYGWIN_FIXDLL='$(srcdir)/src/cygwin-fixdll.sh'
16626 ;; #(
16627 *mingw*) :
16628
16629 SHLIB_SO_CFLAGS=""
16630 SHLIB_SO_LDFLAGS='-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -static-libgcc -shared -o'
16631 SHLIB_SO_SUFFIX="dll"
16632 SHLIB_DYLIB_SUFFIX="dll"
16633 SHLIB_MAIN_LDFLAGS="-Wl,--enable-auto-import -static-libgcc"
16634 SHLIB_OK=ok
16635 GOSH_USE_SHLIB=yes
16636 ext_use_uvector=yes
16637 ext_use_libgauche=yes
16638 libgauche_version_link=no
16639 ;; #(
16640 *) :
16641
16642 SHLIB_SO_CFLAGS=""
16643 SHLIB_SO_LDFLAGS=""
16644 SHLIB_SO_SUFFIX=""
16645 SHLIB_MAIN_LDFLAGS=""
16646 SHLIB_OK=unknown
16647 ;;
16648 esac
16649 if test -z "$SHLIB_DYLIB_LDFLAGS"
16650 then :
16651 SHLIB_DYLIB_LDFLAGS=$SHLIB_SO_LDFLAGS
16652 fi
16653 if test -z "$SHLIB_DYLIB_SUFFIX"
16654 then :
16655 SHLIB_DYLIB_SUFFIX=$SHLIB_SO_SUFFIX
16656 fi
16657 if test "$SHLIB_OK" = ok
16658 then :
16659 LIBGAUCHE_SO="$LIBGAUCHE.$SHLIB_DYLIB_SUFFIX"
16660 else $as_nop
16661 LIBGAUCHE_SO=
16662 fi
16663 if test "$ext_use_libgauche" = yes
16664 then :
16665 EXT_LIBGAUCHE="-l$LINKGAUCHE"
16666 else $as_nop
16667 EXT_LIBGAUCHE=
16668 fi
16669 if test "$ext_use_uvector" = yes
16670 then :
16671 EXT_UVECTOR='$(top_builddir)/ext/uvector/libgauche-uvector.$(SOEXT)'
16672 else $as_nop
16673 EXT_UVECTOR=
16674 fi
16675 if test "$libgauche_version_link" = yes -a "$SHLIB_OK" = ok
16676 then :
16677 MAKEVERSLINK='$(SHELL) ./makeverslink'
16678 else $as_nop
16679 MAKEVERSLINK=:
16680 fi
16681 if test "$install_common_commands" = yes
16682 then :
16683 INSTALL_COMMON_COMMANDS='$(SHELL) $(top_srcdir)/tools/install-shared-commands.sh'
16684 else $as_nop
16685 INSTALL_COMMON_COMMANDS=:
16686 fi
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701 printf "%s\n" "#define SHLIB_SO_SUFFIX \"$SHLIB_SO_SUFFIX\"" >>confdefs.h
16702
16703
16704
16705
16706
16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_OK" >&5
16708 printf "%s\n" "$SHLIB_OK" >&6; }
16709
16710 RPATH_FLAG=
16711 if test "$try_rpath" = "yes"; then
16712 cflags_save="$CFLAGS"
16713 CFLAGS="$CFLAGS -Wl,--rpath=/"
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker takes --rpath flag" >&5
16715 printf %s "checking linker takes --rpath flag... " >&6; }
16716 if test ${ac_cv_linker_rpath_flag+y}
16717 then :
16718 printf %s "(cached) " >&6
16719 else $as_nop
16720
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 int main(void) {return 0;}
16724 _ACEOF
16725 if ac_fn_c_try_link "$LINENO"
16726 then :
16727 ac_cv_linker_rpath_flag=yes
16728 else $as_nop
16729 ac_cv_linker_rpath_flag=no
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16732 conftest$ac_exeext conftest.$ac_ext
16733
16734 fi
16735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linker_rpath_flag" >&5
16736 printf "%s\n" "$ac_cv_linker_rpath_flag" >&6; }
16737 CFLAGS="$cflags_save"
16738 if test "$ac_cv_linker_rpath_flag" = "yes"; then
16739 RPATH_FLAG='-Wl,--rpath='
16740 else
16741 # solaris' ld uses -R instead of --rpath
16742 CFLAGS="$CFLAGS -Wl,-R,/"
16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h. */
16745 int main(void) {return 0;}
16746 _ACEOF
16747 if ac_fn_c_try_link "$LINENO"
16748 then :
16749 ac_cv_linker_rpath_flag=yes
16750 else $as_nop
16751 ac_cv_linker_rpath_flag=no
16752 fi
16753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16754 conftest$ac_exeext conftest.$ac_ext
16755 CFLAGS="$cflags_save"
16756 if test "$ac_cv_linker_rpath_flag" = "yes"; then
16757 RPATH_FLAG='-Wl,-R,'
16758 fi
16759 fi
16760 if test "$RPATH_FLAG" != ""; then
16761 RPATH_TMP=$RPATH_FLAG'"`pwd`"'
16762 RPATH_REAL=$RPATH_FLAG'"$(ARCH_INSTALL_DIR)"'
16763 fi
16764 fi
16765
16766
16767
16768
16769 cflags_save="$CFLAGS"
16770 CFLAGS="$CFLAGS -Wl,--soname,libgauche.so.0"
16771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker takes --soname flag" >&5
16772 printf %s "checking linker takes --soname flag... " >&6; }
16773 if test ${ac_cv_linker_soname_flag+y}
16774 then :
16775 printf %s "(cached) " >&6
16776 else $as_nop
16777
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16780 int main(void) {return 0;}
16781 _ACEOF
16782 if ac_fn_c_try_link "$LINENO"
16783 then :
16784 ac_cv_linker_soname_flag=yes
16785 else $as_nop
16786 ac_cv_linker_soname_flag=no
16787 fi
16788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16789 conftest$ac_exeext conftest.$ac_ext
16790
16791 fi
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linker_soname_flag" >&5
16793 printf "%s\n" "$ac_cv_linker_soname_flag" >&6; }
16794 CFLAGS="$cflags_save"
16795 if test "$ac_cv_linker_soname_flag" = "yes"; then
16796 SONAME_FLAG="-Wl,--soname,$LIBGAUCHE.so.0.$GAUCHE_MICRO_VERSION"
16797 fi
16798
16799
16800
16801 # Check whether --enable-heuristic-optimization was given.
16802 if test ${enable_heuristic_optimization+y}
16803 then :
16804 enableval=$enable_heuristic_optimization; USE_HEURISTIC_OPTIMIZATION=$enableval
16805 else $as_nop
16806 USE_HEURISTIC_OPTIMIZATION=yes
16807 fi
16808
16809 if test "x$USE_HEURISTIC_OPTIMIZATION" = xyes
16810 then :
16811
16812 case "$target" in #(
16813 i686-*) :
16814 I686OPT="-DUSE_I686_PREFETCH" ;; #(
16815 *) :
16816 ;;
16817 esac
16818 case "$CC" in #(
16819 gcc*) :
16820 case "$target" in #(
16821 *mingw*) :
16822 ;; #(
16823 *) :
16824 GCCOPT="-fomit-frame-pointer" ;;
16825 esac
16826 case "$target" in #(
16827 i586-*) :
16828 GCCOPT="$GCCOPT -march=i586" ;; #(
16829 i686-*) :
16830 GCCOPT="$GCCOPT -march=i686" ;; #(
16831 *) :
16832 ;;
16833 esac ;; #(
16834 *) :
16835 ;;
16836 esac
16837 fi
16838 OPTFLAGS="$GCCOPT $I686OPT"
16839
16840
16841
16842
16843
16844 # ext/net -------------------------------------------------
16845
16846 # Check whether --enable-ipv6 was given.
16847 if test ${enable_ipv6+y}
16848 then :
16849 enableval=$enable_ipv6;
16850 case $enableval in #(
16851 no) :
16852 enable_ipv6=no ;; #(
16853 *) :
16854 enable_ipv6=yes ;;
16855 esac
16856
16857 else $as_nop
16858 enable_ipv6=yes
16859 fi
16860
16861
16862 if test $enable_ipv6 = yes
16863 then :
16864
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
16866 printf %s "checking for IPv6... " >&6; }
16867 if test ${ac_cv_ipv6+y}
16868 then :
16869 printf %s "(cached) " >&6
16870 else $as_nop
16871
16872 case "$target" in #(
16873 *mingw*) :
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 #include <winsock2.h>
16877 #include <ws2tcpip.h>
16878 int
16879 main (void)
16880 {
16881
16882 socket(AF_INET6, SOCK_STREAM, 0);
16883
16884 ;
16885 return 0;
16886 }
16887 _ACEOF
16888 if ac_fn_c_try_compile "$LINENO"
16889 then :
16890 ac_cv_ipv6=yes
16891 else $as_nop
16892 ac_cv_ipv6=no
16893 fi
16894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
16895 *) :
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 #ifdef HAVE_SYS_TYPES_H
16899 #include <sys/types.h>
16900 #endif
16901 #include <sys/socket.h>
16902 int
16903 main (void)
16904 {
16905
16906 socket(AF_INET6, SOCK_STREAM, 0);
16907
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 if ac_fn_c_try_compile "$LINENO"
16913 then :
16914 ac_cv_ipv6=yes
16915 else $as_nop
16916 ac_cv_ipv6=no
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16919 ;;
16920 esac
16921
16922 fi
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6" >&5
16924 printf "%s\n" "$ac_cv_ipv6" >&6; }
16925 if test "$ac_cv_ipv6" = yes
16926 then :
16927
16928
16929 printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h
16930
16931
16932 fi
16933
16934 fi
16935
16936 case "$target" in #(
16937 *mingw*) :
16938 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <windows.h>
16939 "
16940 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
16941 then :
16942
16943 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16944
16945
16946 fi
16947 ;; #(
16948 *) :
16949 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
16950 "
16951 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
16952 then :
16953
16954 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
16955
16956
16957 fi
16958 ;;
16959 esac
16960
16961 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
16962 #ifdef HAVE_SYS_TYPES_H
16963 #include <sys/types.h>
16964 #endif
16965 #include <sys/socket.h>
16966
16967 "
16968 if test "x$ac_cv_header_net_if_h" = xyes
16969 then :
16970 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
16971
16972 fi
16973
16974 ac_fn_c_check_type "$LINENO" "struct ifreq" "ac_cv_type_struct_ifreq" "
16975 #ifdef HAVE_SYS_TYPES_H
16976 #include <sys/types.h>
16977 #endif
16978 #include <sys/socket.h>
16979 #ifdef HAVE_NET_IF_H
16980 #include <net/if.h>
16981 #endif
16982
16983 "
16984 if test "x$ac_cv_type_struct_ifreq" = xyes
16985 then :
16986
16987 printf "%s\n" "#define HAVE_STRUCT_IFREQ 1" >>confdefs.h
16988
16989
16990 fi
16991
16992
16993 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifindex" "ac_cv_member_struct_ifreq_ifr_ifindex" "
16994 #ifdef HAVE_SYS_TYPES_H
16995 #include <sys/types.h>
16996 #endif
16997 #include <sys/socket.h>
16998 #ifdef HAVE_NET_IF_H
16999 #include <net/if.h>
17000 #endif
17001
17002 "
17003 if test "x$ac_cv_member_struct_ifreq_ifr_ifindex" = xyes
17004 then :
17005
17006 printf "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_IFINDEX 1" >>confdefs.h
17007
17008
17009 fi
17010 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_index" "ac_cv_member_struct_ifreq_ifr_index" "
17011 #ifdef HAVE_SYS_TYPES_H
17012 #include <sys/types.h>
17013 #endif
17014 #include <sys/socket.h>
17015 #ifdef HAVE_NET_IF_H
17016 #include <net/if.h>
17017 #endif
17018
17019 "
17020 if test "x$ac_cv_member_struct_ifreq_ifr_index" = xyes
17021 then :
17022
17023 printf "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_INDEX 1" >>confdefs.h
17024
17025
17026 fi
17027 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "
17028 #ifdef HAVE_SYS_TYPES_H
17029 #include <sys/types.h>
17030 #endif
17031 #include <sys/socket.h>
17032 #ifdef HAVE_NET_IF_H
17033 #include <net/if.h>
17034 #endif
17035
17036 "
17037 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
17038 then :
17039
17040 printf "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1" >>confdefs.h
17041
17042
17043 fi
17044
17045
17046 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17047 #ifdef HAVE_SYS_TYPES_H
17048 #include <sys/types.h>
17049 #endif
17050 #include <sys/un.h>
17051
17052 "
17053 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
17054 then :
17055
17056 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
17057
17058
17059 fi
17060
17061 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
17062 #ifdef HAVE_SYS_TYPES_H
17063 #include <sys/types.h>
17064 #endif
17065 #include <netinet/in.h>
17066
17067 "
17068 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
17069 then :
17070
17071 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
17072
17073
17074 fi
17075 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
17076 #ifdef HAVE_SYS_TYPES_H
17077 #include <sys/types.h>
17078 #endif
17079 #include <netinet/in.h>
17080
17081 "
17082 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
17083 then :
17084
17085 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
17086
17087
17088 fi
17089
17090
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shutdown" >&5
17092 printf %s "checking for library containing shutdown... " >&6; }
17093 if test ${ac_cv_search_shutdown+y}
17094 then :
17095 printf %s "(cached) " >&6
17096 else $as_nop
17097 ac_func_search_save_LIBS=$LIBS
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17104 char shutdown ();
17105 int
17106 main (void)
17107 {
17108 return shutdown ();
17109 ;
17110 return 0;
17111 }
17112 _ACEOF
17113 for ac_lib in '' socket
17114 do
17115 if test -z "$ac_lib"; then
17116 ac_res="none required"
17117 else
17118 ac_res=-l$ac_lib
17119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17120 fi
17121 if ac_fn_c_try_link "$LINENO"
17122 then :
17123 ac_cv_search_shutdown=$ac_res
17124 fi
17125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17126 conftest$ac_exeext
17127 if test ${ac_cv_search_shutdown+y}
17128 then :
17129 break
17130 fi
17131 done
17132 if test ${ac_cv_search_shutdown+y}
17133 then :
17134
17135 else $as_nop
17136 ac_cv_search_shutdown=no
17137 fi
17138 rm conftest.$ac_ext
17139 LIBS=$ac_func_search_save_LIBS
17140 fi
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shutdown" >&5
17142 printf "%s\n" "$ac_cv_search_shutdown" >&6; }
17143 ac_res=$ac_cv_search_shutdown
17144 if test "$ac_res" != no
17145 then :
17146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17147
17148 fi
17149
17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
17151 printf %s "checking for library containing gethostbyname_r... " >&6; }
17152 if test ${ac_cv_search_gethostbyname_r+y}
17153 then :
17154 printf %s "(cached) " >&6
17155 else $as_nop
17156 ac_func_search_save_LIBS=$LIBS
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 char gethostbyname_r ();
17164 int
17165 main (void)
17166 {
17167 return gethostbyname_r ();
17168 ;
17169 return 0;
17170 }
17171 _ACEOF
17172 for ac_lib in '' nsl
17173 do
17174 if test -z "$ac_lib"; then
17175 ac_res="none required"
17176 else
17177 ac_res=-l$ac_lib
17178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17179 fi
17180 if ac_fn_c_try_link "$LINENO"
17181 then :
17182 ac_cv_search_gethostbyname_r=$ac_res
17183 fi
17184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17185 conftest$ac_exeext
17186 if test ${ac_cv_search_gethostbyname_r+y}
17187 then :
17188 break
17189 fi
17190 done
17191 if test ${ac_cv_search_gethostbyname_r+y}
17192 then :
17193
17194 else $as_nop
17195 ac_cv_search_gethostbyname_r=no
17196 fi
17197 rm conftest.$ac_ext
17198 LIBS=$ac_func_search_save_LIBS
17199 fi
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
17201 printf "%s\n" "$ac_cv_search_gethostbyname_r" >&6; }
17202 ac_res=$ac_cv_search_gethostbyname_r
17203 if test "$ac_res" != no
17204 then :
17205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17206
17207 fi
17208
17209
17210 case "$target" in #(
17211 *-*-netbsd*) :
17212 ac_cv_func_gethostbyname_r=no ;; #(
17213 *) :
17214 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
17215 if test "x$ac_cv_func_gethostbyname_r" = xyes
17216 then :
17217
17218 fi
17219 ;;
17220 esac
17221
17222 if test $ac_cv_func_gethostbyname_r = 'yes'
17223 then :
17224
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for gethostbyname_r" >&5
17226 printf %s "checking number of arguments for gethostbyname_r... " >&6; }
17227 if test ${ac_cv_func_gethostbyname_r_nargs+y}
17228 then :
17229 printf %s "(cached) " >&6
17230 else $as_nop
17231
17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233 /* end confdefs.h. */
17234 #include <netdb.h>
17235 int
17236 main (void)
17237 {
17238
17239 char *n; struct hostent *h, *r; char buf4096; int len=4096; int err;
17240 (void)gethostbyname_r(n, h, buf, len, &r, &err);
17241
17242 ;
17243 return 0;
17244 }
17245 _ACEOF
17246 if ac_fn_c_try_compile "$LINENO"
17247 then :
17248 ac_cv_func_gethostbyname_r_nargs=6
17249 else $as_nop
17250
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 #include <netdb.h>
17254 int
17255 main (void)
17256 {
17257
17258 char *n; struct hostent *h; char buf4096; int len=4096; int err;
17259 (void)gethostbyname_r(n, h, buf, len, &err);
17260
17261 ;
17262 return 0;
17263 }
17264 _ACEOF
17265 if ac_fn_c_try_compile "$LINENO"
17266 then :
17267 ac_cv_func_gethostbyname_r_nargs=5
17268 else $as_nop
17269
17270 ac_cv_func_gethostbyname_r=no
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17273 fi
17274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17275 fi
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname_r_nargs" >&5
17277 printf "%s\n" "$ac_cv_func_gethostbyname_r_nargs" >&6; }
17278
17279 fi
17280
17281 if test $ac_cv_func_gethostbyname_r != no
17282 then :
17283
17284
17285 printf "%s\n" "#define GETHOSTBYNAME_R_NUMARGS $ac_cv_func_gethostbyname_r_nargs" >>confdefs.h
17286
17287
17288 fi
17289
17290 case "$target" in #(
17291 *-*-dragonfly*|*-*-netbsd*) :
17292 ac_cv_func_gethostbyaddr_r='no' ;; #(
17293 *) :
17294 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
17295 if test "x$ac_cv_func_gethostbyaddr_r" = xyes
17296 then :
17297
17298 fi
17299 ;;
17300 esac
17301
17302 if test $ac_cv_func_gethostbyaddr_r = 'yes'
17303 then :
17304
17305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for gethostbyaddr_r" >&5
17306 printf %s "checking number of arguments for gethostbyaddr_r... " >&6; }
17307 if test ${ac_cv_func_gethostbyaddr_r_nargs+y}
17308 then :
17309 printf %s "(cached) " >&6
17310 else $as_nop
17311
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 #include <netdb.h>
17315 int
17316 main (void)
17317 {
17318
17319 char *n; int addrlen, type; struct hostent *h, *r; char buf4096; int len=4096; int err;
17320 (void)gethostbyaddr_r(n, addrlen, type, h, buf, len, &r, &err);
17321
17322 ;
17323 return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_compile "$LINENO"
17327 then :
17328 ac_cv_func_gethostbyaddr_r_nargs=8
17329 else $as_nop
17330
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17333 #include <netdb.h>
17334 int
17335 main (void)
17336 {
17337
17338 char *n; int addrlen, type; struct hostent *h; char buf4096; int len=4096; int err;
17339 (void)gethostbyaddr_r(n, addrlen, type, h, buf, len, &err);
17340
17341 ;
17342 return 0;
17343 }
17344 _ACEOF
17345 if ac_fn_c_try_compile "$LINENO"
17346 then :
17347 ac_cv_func_gethostbyaddr_r_nargs=7
17348 else $as_nop
17349
17350 ac_cv_func_gethostbyaddr_r=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17355 fi
17356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr_r_nargs" >&5
17357 printf "%s\n" "$ac_cv_func_gethostbyaddr_r_nargs" >&6; }
17358
17359 fi
17360
17361 if test $ac_cv_func_gethostbyaddr_r != no
17362 then :
17363
17364
17365 printf "%s\n" "#define GETHOSTBYADDR_R_NUMARGS $ac_cv_func_gethostbyaddr_r_nargs" >>confdefs.h
17366
17367
17368 fi
17369
17370 case "$target" in #(
17371 *-*-netbsd*) :
17372 ac_cv_func_getprotobyname_r=no ;; #(
17373 *) :
17374 ac_fn_c_check_func "$LINENO" "getprotobyname_r" "ac_cv_func_getprotobyname_r"
17375 if test "x$ac_cv_func_getprotobyname_r" = xyes
17376 then :
17377
17378 fi
17379 ;;
17380 esac
17381
17382 if test $ac_cv_func_getprotobyname_r = 'yes'
17383 then :
17384
17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getprotobyname_r" >&5
17386 printf %s "checking number of arguments for getprotobyname_r... " >&6; }
17387 if test ${ac_cv_func_getprotobyname_r_nargs+y}
17388 then :
17389 printf %s "(cached) " >&6
17390 else $as_nop
17391
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 #include <netdb.h>
17395 int
17396 main (void)
17397 {
17398
17399 char *n; struct protoent *h, *r; char buf4096; int len=4096;
17400 (void)getprotobyname_r(n, h, buf, len, &r);
17401
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_compile "$LINENO"
17407 then :
17408 ac_cv_func_getprotobyname_r_nargs=5
17409 else $as_nop
17410
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17413 #include <netdb.h>
17414 int
17415 main (void)
17416 {
17417
17418 char *n; struct protoent *h; char buf4096; int len=4096;
17419 (void)getprotobyname_r(n, h, buf, len);
17420
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_c_try_compile "$LINENO"
17426 then :
17427 ac_cv_func_getprotobyname_r_nargs=4
17428 else $as_nop
17429
17430 ac_cv_func_getprotobyname_r=no
17431 fi
17432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17433 fi
17434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17435 fi
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname_r_nargs" >&5
17437 printf "%s\n" "$ac_cv_func_getprotobyname_r_nargs" >&6; }
17438
17439 fi
17440
17441 if test $ac_cv_func_getprotobyname_r != no
17442 then :
17443
17444
17445 printf "%s\n" "#define GETPROTOBYNAME_R_NUMARGS $ac_cv_func_getprotobyname_r_nargs" >>confdefs.h
17446
17447
17448 fi
17449
17450 case "$target" in #(
17451 *-*-netbsd*) :
17452 ac_cv_func_getprotobynumber_r=no ;; #(
17453 *) :
17454 ac_fn_c_check_func "$LINENO" "getprotobynumber_r" "ac_cv_func_getprotobynumber_r"
17455 if test "x$ac_cv_func_getprotobynumber_r" = xyes
17456 then :
17457
17458 fi
17459 ;;
17460 esac
17461
17462 if test $ac_cv_func_getprotobynumber_r = 'yes'
17463 then :
17464
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getprotobynumber_r" >&5
17466 printf %s "checking number of arguments for getprotobynumber_r... " >&6; }
17467 if test ${ac_cv_func_getprotobynumber_r_nargs+y}
17468 then :
17469 printf %s "(cached) " >&6
17470 else $as_nop
17471
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474 #include <netdb.h>
17475 int
17476 main (void)
17477 {
17478
17479 int n; struct protoent *h, *r; char buf4096; int len=4096;
17480 (void)getprotobynumber_r(n, h, buf, len, &r);
17481
17482 ;
17483 return 0;
17484 }
17485 _ACEOF
17486 if ac_fn_c_try_compile "$LINENO"
17487 then :
17488 ac_cv_func_getprotobynumber_r_nargs=5
17489 else $as_nop
17490
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 #include <netdb.h>
17494 int
17495 main (void)
17496 {
17497
17498 int n; struct protoent *h; char buf4096; int len=4096;
17499 (void)getprotobynumber_r(n, h, buf, len);
17500
17501 ;
17502 return 0;
17503 }
17504 _ACEOF
17505 if ac_fn_c_try_compile "$LINENO"
17506 then :
17507 ac_cv_func_getprotobynumber_r_nargs=4
17508 else $as_nop
17509
17510 ac_cv_func_getprotobynumber_r=no
17511 fi
17512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17513 fi
17514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17515 fi
17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobynumber_r_nargs" >&5
17517 printf "%s\n" "$ac_cv_func_getprotobynumber_r_nargs" >&6; }
17518
17519 fi
17520
17521 if test $ac_cv_func_getprotobynumber_r != no
17522 then :
17523
17524
17525 printf "%s\n" "#define GETPROTOBYNUMBER_R_NUMARGS $ac_cv_func_getprotobynumber_r_nargs" >>confdefs.h
17526
17527
17528 fi
17529
17530 case "$target" in #(
17531 *-*-netbsd*) :
17532 ac_cv_func_getservbyname_r=no ;; #(
17533 *) :
17534 ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r"
17535 if test "x$ac_cv_func_getservbyname_r" = xyes
17536 then :
17537
17538 fi
17539 ;;
17540 esac
17541
17542 ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r"
17543 if test "x$ac_cv_func_getservbyname_r" = xyes
17544 then :
17545
17546 fi
17547
17548 if test $ac_cv_func_getservbyname_r = 'yes'
17549 then :
17550
17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyname_r" >&5
17552 printf %s "checking number of arguments for getservbyname_r... " >&6; }
17553 if test ${ac_cv_func_getservbyname_r_nargs+y}
17554 then :
17555 printf %s "(cached) " >&6
17556 else $as_nop
17557
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 #include <netdb.h>
17561 int
17562 main (void)
17563 {
17564
17565 char *n, *p; struct servent *h, *r; char buf4096; int len=4096;
17566 (void)getservbyname_r(n, p, h, buf, len, &r);
17567
17568 ;
17569 return 0;
17570 }
17571 _ACEOF
17572 if ac_fn_c_try_compile "$LINENO"
17573 then :
17574 ac_cv_func_getservbyname_r_nargs=6
17575 else $as_nop
17576
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17579 #include <netdb.h>
17580 int
17581 main (void)
17582 {
17583
17584 char *n, *p; struct servent *h; char buf4096; int len=4096;
17585 (void)getservbyname_r(n, p, h, buf, len);
17586
17587 ;
17588 return 0;
17589 }
17590 _ACEOF
17591 if ac_fn_c_try_compile "$LINENO"
17592 then :
17593 ac_cv_func_getservbyname_r_nargs=5
17594 else $as_nop
17595
17596 ac_cv_func_getservbyname_r=no
17597 fi
17598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17599 fi
17600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17601 fi
17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname_r_nargs" >&5
17603 printf "%s\n" "$ac_cv_func_getservbyname_r_nargs" >&6; }
17604
17605 fi
17606
17607 if test $ac_cv_func_getservbyname_r != no
17608 then :
17609
17610
17611 printf "%s\n" "#define GETSERVBYNAME_R_NUMARGS $ac_cv_func_getservbyname_r_nargs" >>confdefs.h
17612
17613
17614 fi
17615
17616 case "$target" in #(
17617 *-*-netbsd*) :
17618 ac_cv_func_getservbyport_r=no ;; #(
17619 *) :
17620 ac_fn_c_check_func "$LINENO" "getservbyport_r" "ac_cv_func_getservbyport_r"
17621 if test "x$ac_cv_func_getservbyport_r" = xyes
17622 then :
17623
17624 fi
17625 ;;
17626 esac
17627
17628 if test $ac_cv_func_getservbyport_r = 'yes'
17629 then :
17630
17631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyport_r" >&5
17632 printf %s "checking number of arguments for getservbyport_r... " >&6; }
17633 if test ${ac_cv_func_getservbyport_r_nargs+y}
17634 then :
17635 printf %s "(cached) " >&6
17636 else $as_nop
17637
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17640 #include <netdb.h>
17641 int
17642 main (void)
17643 {
17644
17645 int n; char *p; struct servent *h, *r; char buf4096; int len=4096;
17646 (void)getservbyport_r(n, p, h, buf, len, &r);
17647
17648 ;
17649 return 0;
17650 }
17651 _ACEOF
17652 if ac_fn_c_try_compile "$LINENO"
17653 then :
17654 ac_cv_func_getservbyport_r_nargs=6
17655 else $as_nop
17656
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <netdb.h>
17660 int
17661 main (void)
17662 {
17663
17664 int n; char *p; struct servent *h; char buf4096; int len=4096;
17665 (void)getservbyport_r(n, p, h, buf, len);
17666
17667 ;
17668 return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_compile "$LINENO"
17672 then :
17673 ac_cv_func_getservbyport_r_nargs=5
17674 else $as_nop
17675
17676 ac_cv_func_getservbyport_r=no
17677 fi
17678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17679 fi
17680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17681 fi
17682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport_r_nargs" >&5
17683 printf "%s\n" "$ac_cv_func_getservbyport_r_nargs" >&6; }
17684
17685 fi
17686
17687 if test $ac_cv_func_getservbyport_r != no
17688 then :
17689
17690
17691 printf "%s\n" "#define GETSERVBYPORT_R_NUMARGS $ac_cv_func_getservbyport_r_nargs" >>confdefs.h
17692
17693
17694 fi
17695
17696 case "$target" in #(
17697 *mingw*) :
17698 LIBS="$LIBS -lws2_32"
17699 EXT_LIBS="$EXT_LIBS -lws2_32" ;; #(
17700 *) :
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17702 printf %s "checking for socklen_t... " >&6; }
17703 if test ${ac_cv_ax_type_socklen_t+y}
17704 then :
17705 printf %s "(cached) " >&6
17706 else $as_nop
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <sys/types.h>
17710 #include <sys/socket.h>
17711 int
17712 main (void)
17713 {
17714 socklen_t len = (socklen_t) 42; return (!len);
17715 ;
17716 return 0;
17717 }
17718 _ACEOF
17719 if ac_fn_c_try_compile "$LINENO"
17720 then :
17721 ac_cv_ax_type_socklen_t=yes
17722 else $as_nop
17723 ac_cv_ax_type_socklen_t=no
17724 fi
17725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17726
17727 fi
17728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ax_type_socklen_t" >&5
17729 printf "%s\n" "$ac_cv_ax_type_socklen_t" >&6; }
17730 if test $ac_cv_ax_type_socklen_t != yes; then
17731
17732 printf "%s\n" "#define socklen_t int" >>confdefs.h
17733
17734 fi
17735 ;;
17736 esac
17737
17738
17739
17740
17741 EXT_LIBS=
17742 # Those *.ac's may add libraries to EXT_LIBS.
17743
17744 # ext/charconv --------------------------------------------
17745
17746
17747 ac_cv_use_iconv=yes
17748 ICONV_NAME=iconv
17749 ICONV_LIB=
17750 ICONV_CPPFLAGS=
17751 ICONV_LDFLAGS=
17752
17753
17754 # Check whether --with-iconv was given.
17755 if test ${with_iconv+y}
17756 then :
17757 withval=$with_iconv;
17758 case $with_iconv in #(
17759 no) :
17760 ac_cv_use_iconv=no ;; #(
17761 yes) :
17762 ;; #(
17763 *) :
17764 ICONV_CPPFLAGS="-I$with_iconv/include"
17765 ICONV_LDFLAGS="-L$with_iconv/lib" ;;
17766 esac
17767
17768 fi
17769
17770
17771
17772 # Check whether --with-iconv-lib was given.
17773 if test ${with_iconv_lib+y}
17774 then :
17775 withval=$with_iconv_lib;
17776 ICONV_NAME="$with_iconv_lib"; ICONV_LIB="-l$with_iconv_lib"
17777
17778 fi
17779
17780
17781
17782 if test "$ac_cv_use_iconv" != no
17783 then :
17784
17785 save_cppflags=$CPPFLAGS
17786 CPPFLAGS="$CPPFLAGS $ICONV_CPPFLAGS"
17787 as_ac_Header=`printf "%s\n" "ac_cv_header_$ICONV_NAME.h" | $as_tr_sh`
17788 ac_fn_c_check_header_compile "$LINENO" "$ICONV_NAME.h" "$as_ac_Header" "$ac_includes_default"
17789 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17790 then :
17791
17792 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
17793
17794 else $as_nop
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find $ICONV_NAME.h so I turned off using iconv; you may want to use --with-iconv=PATH.\"" >&5
17796 printf "%s\n" "$as_me: WARNING: \"Can't find $ICONV_NAME.h so I turned off using iconv; you may want to use --with-iconv=PATH.\"" >&2;}
17797 ac_cv_use_iconv=no
17798 fi
17799
17800 CPPFLAGS=$save_cppflags
17801 fi
17802
17803
17804 if test "$ac_cv_use_iconv" = yes
17805 then :
17806
17807 if test "$ICONV_LIB" = ""
17808 then :
17809
17810 save_cflags="$CFLAGS"
17811 save_ldflags="$LDFLAGS"
17812 save_libs="$LIBS"
17813 CFLAGS="$CFLAGS $ICONV_CPPFLAGS"
17814 LDFLAGS="$LDFLAGS $ICONV_LDFLAGS"
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 #include <$ICONV_NAME.h>
17818 int
17819 main (void)
17820 {
17821 iconv_t r = iconv_open("", "");
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"
17827 then :
17828 dont_need_iconv=yes
17829 else $as_nop
17830 dont_need_iconv=no
17831
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17834 conftest$ac_exeext conftest.$ac_ext
17835 if test "$dont_need_iconv" = no
17836 then :
17837
17838 LIBS="$LIBS -liconv"
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841 #include <$ICONV_NAME.h>
17842 int
17843 main (void)
17844 {
17845 iconv_t r = iconv_open("", "");
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 if ac_fn_c_try_link "$LINENO"
17851 then :
17852 ICONV_LIB="-liconv"
17853 else $as_nop
17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find library of iconv_open so I turned off using iconv; you may want to use --with-iconv-lib\"" >&5
17855 printf "%s\n" "$as_me: WARNING: \"Can't find library of iconv_open so I turned off using iconv; you may want to use --with-iconv-lib\"" >&2;}
17856 ac_cv_use_iconv=no
17857 fi
17858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17859 conftest$ac_exeext conftest.$ac_ext
17860
17861 fi
17862 CFLAGS="$save_cflags"
17863 LDFLAGS="$save_ldflags"
17864 LIBS="$save_libs"
17865
17866 fi
17867
17868 fi
17869
17870 if test "$ac_cv_use_iconv" = yes
17871 then :
17872
17873 case "$target" in #(
17874 *mingw*) :
17875 ICONV_LIB="-Wl,-dn,$ICONV_LIB,-dy" ;; #(
17876 *) :
17877 ;;
17878 esac
17879
17880
17881 printf "%s\n" "#define USE_ICONV /**/" >>confdefs.h
17882
17883 EXT_LIBS="$EXT_LIBS $ICONV_LIB"
17884
17885 fi
17886
17887
17888
17889
17890
17891
17892
17893 # ext/dbm -------------------------------------------------
17894
17895 ac_config_headers="$ac_config_headers ext/dbm/dbmconf.h"
17896
17897
17898
17899 DBMS=gdbm,ndbm,odbm
17900
17901 # Check whether --with-dbm was given.
17902 if test ${with_dbm+y}
17903 then :
17904 withval=$with_dbm;
17905 case $with_dbm in #(
17906 no) :
17907 DBMS="" ;; #(
17908 yes) :
17909 ;; #(
17910 *) :
17911 DBMS="$with_dbm" ;;
17912 esac
17913
17914 fi
17915
17916
17917
17918 if echo $DBMS | tr "," "\012" | grep -q gdbm
17919 then :
17920
17921 for ac_header in gdbm.h
17922 do :
17923 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
17924 if test "x$ac_cv_header_gdbm_h" = xyes
17925 then :
17926 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
17927
17928 DBM_ARCHFILES=dbm--gdbm.$SHLIB_SO_SUFFIX
17929 DBM_SCMFILES=gdbm.sci
17930 DBM_OBJECTS=' $(gdbm_OBJECTS)'
17931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
17932 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
17933 if test ${ac_cv_lib_gdbm_gdbm_open+y}
17934 then :
17935 printf %s "(cached) " >&6
17936 else $as_nop
17937 ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lgdbm $LIBS"
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17945 char gdbm_open ();
17946 int
17947 main (void)
17948 {
17949 return gdbm_open ();
17950 ;
17951 return 0;
17952 }
17953 _ACEOF
17954 if ac_fn_c_try_link "$LINENO"
17955 then :
17956 ac_cv_lib_gdbm_gdbm_open=yes
17957 else $as_nop
17958 ac_cv_lib_gdbm_gdbm_open=no
17959 fi
17960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17961 conftest$ac_exeext conftest.$ac_ext
17962 LIBS=$ac_check_lib_save_LIBS
17963 fi
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
17965 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
17966 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
17967 then :
17968 GDBMLIB="-lgdbm"
17969 fi
17970
17971
17972 fi
17973
17974 done
17975
17976 fi
17977 if echo $DBMS | tr "," "\012" | grep -q ndbm
17978 then :
17979
17980
17981 NDBM_HEADER=""
17982 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
17983 if test "x$ac_cv_header_ndbm_h" = xyes
17984 then :
17985
17986 NDBM_HEADER="ndbm.h"
17987
17988 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
17989
17990
17991 for ac_func in dbm_open
17992 do :
17993 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
17994 if test "x$ac_cv_func_dbm_open" = xyes
17995 then :
17996 printf "%s\n" "#define HAVE_DBM_OPEN 1" >>confdefs.h
17997 NDBMLIB=""
17998 else $as_nop
17999
18000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
18001 printf %s "checking for dbm_open in -lndbm... " >&6; }
18002 if test ${ac_cv_lib_ndbm_dbm_open+y}
18003 then :
18004 printf %s "(cached) " >&6
18005 else $as_nop
18006 ac_check_lib_save_LIBS=$LIBS
18007 LIBS="-lndbm $LIBS"
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014 char dbm_open ();
18015 int
18016 main (void)
18017 {
18018 return dbm_open ();
18019 ;
18020 return 0;
18021 }
18022 _ACEOF
18023 if ac_fn_c_try_link "$LINENO"
18024 then :
18025 ac_cv_lib_ndbm_dbm_open=yes
18026 else $as_nop
18027 ac_cv_lib_ndbm_dbm_open=no
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18032 fi
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
18034 printf "%s\n" "$ac_cv_lib_ndbm_dbm_open" >&6; }
18035 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes
18036 then :
18037 NDBMLIB="-lndbm"
18038 else $as_nop
18039
18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5
18041 printf %s "checking for dbm_open in -ldbm... " >&6; }
18042 if test ${ac_cv_lib_dbm_dbm_open+y}
18043 then :
18044 printf %s "(cached) " >&6
18045 else $as_nop
18046 ac_check_lib_save_LIBS=$LIBS
18047 LIBS="-ldbm $LIBS"
18048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054 char dbm_open ();
18055 int
18056 main (void)
18057 {
18058 return dbm_open ();
18059 ;
18060 return 0;
18061 }
18062 _ACEOF
18063 if ac_fn_c_try_link "$LINENO"
18064 then :
18065 ac_cv_lib_dbm_dbm_open=yes
18066 else $as_nop
18067 ac_cv_lib_dbm_dbm_open=no
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18070 conftest$ac_exeext conftest.$ac_ext
18071 LIBS=$ac_check_lib_save_LIBS
18072 fi
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5
18074 printf "%s\n" "$ac_cv_lib_dbm_dbm_open" >&6; }
18075 if test "x$ac_cv_lib_dbm_dbm_open" = xyes
18076 then :
18077 NDBMLIB="-ldbm"
18078 else $as_nop
18079
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm" >&5
18081 printf %s "checking for dbm_open in -lgdbm... " >&6; }
18082 if test ${ac_cv_lib_gdbm_dbm_open+y}
18083 then :
18084 printf %s "(cached) " >&6
18085 else $as_nop
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lgdbm $LIBS"
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18090
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18094 char dbm_open ();
18095 int
18096 main (void)
18097 {
18098 return dbm_open ();
18099 ;
18100 return 0;
18101 }
18102 _ACEOF
18103 if ac_fn_c_try_link "$LINENO"
18104 then :
18105 ac_cv_lib_gdbm_dbm_open=yes
18106 else $as_nop
18107 ac_cv_lib_gdbm_dbm_open=no
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18112 fi
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbm_open" >&5
18114 printf "%s\n" "$ac_cv_lib_gdbm_dbm_open" >&6; }
18115 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes
18116 then :
18117 NDBMLIB="-lgdbm"
18118 else $as_nop
18119
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5
18121 printf %s "checking for dbm_open in -lgdbm_compat... " >&6; }
18122 if test ${ac_cv_lib_gdbm_compat_dbm_open+y}
18123 then :
18124 printf %s "(cached) " >&6
18125 else $as_nop
18126 ac_check_lib_save_LIBS=$LIBS
18127 LIBS="-lgdbm_compat -lgdbm $LIBS"
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130
18131 /* Override any GCC internal prototype to avoid an error.
18132 Use char because int might match the return type of a GCC
18133 builtin and then its argument prototype would still apply. */
18134 char dbm_open ();
18135 int
18136 main (void)
18137 {
18138 return dbm_open ();
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_link "$LINENO"
18144 then :
18145 ac_cv_lib_gdbm_compat_dbm_open=yes
18146 else $as_nop
18147 ac_cv_lib_gdbm_compat_dbm_open=no
18148 fi
18149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18150 conftest$ac_exeext conftest.$ac_ext
18151 LIBS=$ac_check_lib_save_LIBS
18152 fi
18153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5
18154 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbm_open" >&6; }
18155 if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes
18156 then :
18157 NDBMLIB="-lgdbm -lgdbm_compat"
18158 else $as_nop
18159
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ndbm header is found but its library isn't. disabling ndbm." >&5
18161 printf "%s\n" "$as_me: ndbm header is found but its library isn't. disabling ndbm." >&6;}
18162 NDBM_HEADER=""
18163 fi
18164
18165
18166 fi
18167
18168
18169 fi
18170
18171
18172 fi
18173
18174
18175 fi
18176
18177 done
18178
18179 else $as_nop
18180
18181 unset ac_cv_header_gdbm_ndbm_h; ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
18182 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
18183 then :
18184
18185 NDBM_HEADER="gdbm/ndbm.h"
18186
18187 printf "%s\n" "#define HAVE_GDBM_SLASH_NDBM_H 1" >>confdefs.h
18188
18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm" >&5
18190 printf %s "checking for dbm_open in -lgdbm... " >&6; }
18191 if test ${ac_cv_lib_gdbm_dbm_open+y}
18192 then :
18193 printf %s "(cached) " >&6
18194 else $as_nop
18195 ac_check_lib_save_LIBS=$LIBS
18196 LIBS="-lgdbm $LIBS"
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18203 char dbm_open ();
18204 int
18205 main (void)
18206 {
18207 return dbm_open ();
18208 ;
18209 return 0;
18210 }
18211 _ACEOF
18212 if ac_fn_c_try_link "$LINENO"
18213 then :
18214 ac_cv_lib_gdbm_dbm_open=yes
18215 else $as_nop
18216 ac_cv_lib_gdbm_dbm_open=no
18217 fi
18218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18219 conftest$ac_exeext conftest.$ac_ext
18220 LIBS=$ac_check_lib_save_LIBS
18221 fi
18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbm_open" >&5
18223 printf "%s\n" "$ac_cv_lib_gdbm_dbm_open" >&6; }
18224 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes
18225 then :
18226 NDBMLIB="-lgdbm"
18227 else $as_nop
18228
18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5
18230 printf %s "checking for dbm_open in -lgdbm_compat... " >&6; }
18231 if test ${ac_cv_lib_gdbm_compat_dbm_open+y}
18232 then :
18233 printf %s "(cached) " >&6
18234 else $as_nop
18235 ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-lgdbm_compat -lgdbm $LIBS"
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239
18240 /* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18243 char dbm_open ();
18244 int
18245 main (void)
18246 {
18247 return dbm_open ();
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 if ac_fn_c_try_link "$LINENO"
18253 then :
18254 ac_cv_lib_gdbm_compat_dbm_open=yes
18255 else $as_nop
18256 ac_cv_lib_gdbm_compat_dbm_open=no
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18259 conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18261 fi
18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5
18263 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbm_open" >&6; }
18264 if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes
18265 then :
18266 NDBMLIB="-lgdbm -lgdbm_compat"
18267 else $as_nop
18268
18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ndbm header is found but its library isn't. disabling ndbm." >&5
18270 printf "%s\n" "$as_me: ndbm header is found but its library isn't. disabling ndbm." >&6;}
18271 NDBM_HEADER=""
18272 fi
18273
18274
18275 fi
18276
18277
18278 else $as_nop
18279
18280 unset ac_cv_header_gdbm_ndbm_h; ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
18281 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
18282 then :
18283
18284 NDBM_HEADER="gdbm-ndbm.h"
18285
18286 printf "%s\n" "#define HAVE_GDBM_MINUS_NDBM_H 1" >>confdefs.h
18287
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm" >&5
18289 printf %s "checking for dbm_open in -lgdbm... " >&6; }
18290 if test ${ac_cv_lib_gdbm_dbm_open+y}
18291 then :
18292 printf %s "(cached) " >&6
18293 else $as_nop
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-lgdbm $LIBS"
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18302 char dbm_open ();
18303 int
18304 main (void)
18305 {
18306 return dbm_open ();
18307 ;
18308 return 0;
18309 }
18310 _ACEOF
18311 if ac_fn_c_try_link "$LINENO"
18312 then :
18313 ac_cv_lib_gdbm_dbm_open=yes
18314 else $as_nop
18315 ac_cv_lib_gdbm_dbm_open=no
18316 fi
18317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18320 fi
18321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbm_open" >&5
18322 printf "%s\n" "$ac_cv_lib_gdbm_dbm_open" >&6; }
18323 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes
18324 then :
18325 NDBMLIB="-lgdbm"
18326 else $as_nop
18327
18328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5
18329 printf %s "checking for dbm_open in -lgdbm_compat... " >&6; }
18330 if test ${ac_cv_lib_gdbm_compat_dbm_open+y}
18331 then :
18332 printf %s "(cached) " >&6
18333 else $as_nop
18334 ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lgdbm_compat -lgdbm $LIBS"
18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18338
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18342 char dbm_open ();
18343 int
18344 main (void)
18345 {
18346 return dbm_open ();
18347 ;
18348 return 0;
18349 }
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"
18352 then :
18353 ac_cv_lib_gdbm_compat_dbm_open=yes
18354 else $as_nop
18355 ac_cv_lib_gdbm_compat_dbm_open=no
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18358 conftest$ac_exeext conftest.$ac_ext
18359 LIBS=$ac_check_lib_save_LIBS
18360 fi
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5
18362 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbm_open" >&6; }
18363 if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes
18364 then :
18365 NDBMLIB="-lgdbm -lgdbm_compat"
18366 else $as_nop
18367
18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ndbm header is found but its library isn't. disabling ndbm." >&5
18369 printf "%s\n" "$as_me: ndbm header is found but its library isn't. disabling ndbm." >&6;}
18370 NDBM_HEADER=""
18371 fi
18372
18373
18374 fi
18375
18376
18377 fi
18378
18379 fi
18380
18381 fi
18382
18383 if test "$NDBM_HEADER" != ""
18384 then :
18385
18386 DBM_ARCHFILES="dbm--ndbm.$SHLIB_SO_SUFFIX $DBM_ARCHFILES"
18387 DBM_SCMFILES="ndbm.sci $DBM_SCMFILES"
18388 DBM_OBJECTS=' $(ndbm_OBJECTS)'$DBM_OBJECTS
18389
18390 fi
18391
18392
18393 fi
18394
18395 if echo $DBMS | tr "," "\012" | grep -q odbm
18396 then :
18397
18398
18399 ODBM_HEADER=""
18400 ac_fn_c_check_header_compile "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
18401 if test "x$ac_cv_header_dbm_h" = xyes
18402 then :
18403
18404 ODBM_HEADER="dbm.h"
18405
18406 printf "%s\n" "#define HAVE_DBM_H 1" >>confdefs.h
18407
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -ldbm" >&5
18409 printf %s "checking for dbminit in -ldbm... " >&6; }
18410 if test ${ac_cv_lib_dbm_dbminit+y}
18411 then :
18412 printf %s "(cached) " >&6
18413 else $as_nop
18414 ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-ldbm $LIBS"
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18418
18419 /* Override any GCC internal prototype to avoid an error.
18420 Use char because int might match the return type of a GCC
18421 builtin and then its argument prototype would still apply. */
18422 char dbminit ();
18423 int
18424 main (void)
18425 {
18426 return dbminit ();
18427 ;
18428 return 0;
18429 }
18430 _ACEOF
18431 if ac_fn_c_try_link "$LINENO"
18432 then :
18433 ac_cv_lib_dbm_dbminit=yes
18434 else $as_nop
18435 ac_cv_lib_dbm_dbminit=no
18436 fi
18437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18438 conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18440 fi
18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbminit" >&5
18442 printf "%s\n" "$ac_cv_lib_dbm_dbminit" >&6; }
18443 if test "x$ac_cv_lib_dbm_dbminit" = xyes
18444 then :
18445 ODBMLIB="-ldbm"
18446 else $as_nop
18447
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm" >&5
18449 printf %s "checking for dbminit in -lgdbm... " >&6; }
18450 if test ${ac_cv_lib_gdbm_dbminit+y}
18451 then :
18452 printf %s "(cached) " >&6
18453 else $as_nop
18454 ac_check_lib_save_LIBS=$LIBS
18455 LIBS="-lgdbm $LIBS"
18456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18458
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18462 char dbminit ();
18463 int
18464 main (void)
18465 {
18466 return dbminit ();
18467 ;
18468 return 0;
18469 }
18470 _ACEOF
18471 if ac_fn_c_try_link "$LINENO"
18472 then :
18473 ac_cv_lib_gdbm_dbminit=yes
18474 else $as_nop
18475 ac_cv_lib_gdbm_dbminit=no
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18480 fi
18481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbminit" >&5
18482 printf "%s\n" "$ac_cv_lib_gdbm_dbminit" >&6; }
18483 if test "x$ac_cv_lib_gdbm_dbminit" = xyes
18484 then :
18485 ODBMLIB="-lgdbm"
18486 else $as_nop
18487
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm_compat" >&5
18489 printf %s "checking for dbminit in -lgdbm_compat... " >&6; }
18490 if test ${ac_cv_lib_gdbm_compat_dbminit+y}
18491 then :
18492 printf %s "(cached) " >&6
18493 else $as_nop
18494 ac_check_lib_save_LIBS=$LIBS
18495 LIBS="-lgdbm_compat -lgdbm $LIBS"
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18502 char dbminit ();
18503 int
18504 main (void)
18505 {
18506 return dbminit ();
18507 ;
18508 return 0;
18509 }
18510 _ACEOF
18511 if ac_fn_c_try_link "$LINENO"
18512 then :
18513 ac_cv_lib_gdbm_compat_dbminit=yes
18514 else $as_nop
18515 ac_cv_lib_gdbm_compat_dbminit=no
18516 fi
18517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18518 conftest$ac_exeext conftest.$ac_ext
18519 LIBS=$ac_check_lib_save_LIBS
18520 fi
18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbminit" >&5
18522 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbminit" >&6; }
18523 if test "x$ac_cv_lib_gdbm_compat_dbminit" = xyes
18524 then :
18525 ODBMLIB="-lgdbm -lgdbm_compat"
18526 else $as_nop
18527
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: odbm header is found but its library isn't. disabling odbm." >&5
18529 printf "%s\n" "$as_me: odbm header is found but its library isn't. disabling odbm." >&6;}
18530 ODBM_HEADER=""
18531 fi
18532
18533
18534 fi
18535
18536
18537 fi
18538
18539
18540 else $as_nop
18541
18542 unset ac_cv_header_gdbm_dbm_h; ac_fn_c_check_header_compile "$LINENO" "gdbm/dbm.h" "ac_cv_header_gdbm_dbm_h" "$ac_includes_default"
18543 if test "x$ac_cv_header_gdbm_dbm_h" = xyes
18544 then :
18545
18546 ODBM_HEADER="gdbm/dbm.h"
18547
18548 printf "%s\n" "#define HAVE_GDBM_SLASH_DBM_H 1" >>confdefs.h
18549
18550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm" >&5
18551 printf %s "checking for dbminit in -lgdbm... " >&6; }
18552 if test ${ac_cv_lib_gdbm_dbminit+y}
18553 then :
18554 printf %s "(cached) " >&6
18555 else $as_nop
18556 ac_check_lib_save_LIBS=$LIBS
18557 LIBS="-lgdbm $LIBS"
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18560
18561 /* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18564 char dbminit ();
18565 int
18566 main (void)
18567 {
18568 return dbminit ();
18569 ;
18570 return 0;
18571 }
18572 _ACEOF
18573 if ac_fn_c_try_link "$LINENO"
18574 then :
18575 ac_cv_lib_gdbm_dbminit=yes
18576 else $as_nop
18577 ac_cv_lib_gdbm_dbminit=no
18578 fi
18579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18580 conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18582 fi
18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbminit" >&5
18584 printf "%s\n" "$ac_cv_lib_gdbm_dbminit" >&6; }
18585 if test "x$ac_cv_lib_gdbm_dbminit" = xyes
18586 then :
18587 ODBMLIB="-lgdbm"
18588 else $as_nop
18589
18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm_compat" >&5
18591 printf %s "checking for dbminit in -lgdbm_compat... " >&6; }
18592 if test ${ac_cv_lib_gdbm_compat_dbminit+y}
18593 then :
18594 printf %s "(cached) " >&6
18595 else $as_nop
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lgdbm_compat -lgdbm $LIBS"
18598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599 /* end confdefs.h. */
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604 char dbminit ();
18605 int
18606 main (void)
18607 {
18608 return dbminit ();
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 if ac_fn_c_try_link "$LINENO"
18614 then :
18615 ac_cv_lib_gdbm_compat_dbminit=yes
18616 else $as_nop
18617 ac_cv_lib_gdbm_compat_dbminit=no
18618 fi
18619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18622 fi
18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbminit" >&5
18624 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbminit" >&6; }
18625 if test "x$ac_cv_lib_gdbm_compat_dbminit" = xyes
18626 then :
18627 ODBMLIB="-lgdbm -lgdbm_compat"
18628 else $as_nop
18629
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: odbm header is found but its library isn't. disabling odbm." >&5
18631 printf "%s\n" "$as_me: odbm header is found but its library isn't. disabling odbm." >&6;}
18632 ODBM_HEADER=""
18633 fi
18634
18635
18636 fi
18637
18638
18639 else $as_nop
18640
18641 unset ac_cv_header_gdbm_dbm_h; ac_fn_c_check_header_compile "$LINENO" "gdbm-dbm.h" "ac_cv_header_gdbm_dbm_h" "$ac_includes_default"
18642 if test "x$ac_cv_header_gdbm_dbm_h" = xyes
18643 then :
18644
18645 ODBM_HEADER="gdbm-dbm.h"
18646
18647 printf "%s\n" "#define HAVE_GDBM_MINUS_DBM_H 1" >>confdefs.h
18648
18649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm" >&5
18650 printf %s "checking for dbminit in -lgdbm... " >&6; }
18651 if test ${ac_cv_lib_gdbm_dbminit+y}
18652 then :
18653 printf %s "(cached) " >&6
18654 else $as_nop
18655 ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-lgdbm $LIBS"
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18659
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663 char dbminit ();
18664 int
18665 main (void)
18666 {
18667 return dbminit ();
18668 ;
18669 return 0;
18670 }
18671 _ACEOF
18672 if ac_fn_c_try_link "$LINENO"
18673 then :
18674 ac_cv_lib_gdbm_dbminit=yes
18675 else $as_nop
18676 ac_cv_lib_gdbm_dbminit=no
18677 fi
18678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18679 conftest$ac_exeext conftest.$ac_ext
18680 LIBS=$ac_check_lib_save_LIBS
18681 fi
18682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbminit" >&5
18683 printf "%s\n" "$ac_cv_lib_gdbm_dbminit" >&6; }
18684 if test "x$ac_cv_lib_gdbm_dbminit" = xyes
18685 then :
18686 ODBMLIB="-lgdbm"
18687 else $as_nop
18688
18689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbminit in -lgdbm_compat" >&5
18690 printf %s "checking for dbminit in -lgdbm_compat... " >&6; }
18691 if test ${ac_cv_lib_gdbm_compat_dbminit+y}
18692 then :
18693 printf %s "(cached) " >&6
18694 else $as_nop
18695 ac_check_lib_save_LIBS=$LIBS
18696 LIBS="-lgdbm_compat -lgdbm $LIBS"
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 char dbminit ();
18704 int
18705 main (void)
18706 {
18707 return dbminit ();
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 if ac_fn_c_try_link "$LINENO"
18713 then :
18714 ac_cv_lib_gdbm_compat_dbminit=yes
18715 else $as_nop
18716 ac_cv_lib_gdbm_compat_dbminit=no
18717 fi
18718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbminit" >&5
18723 printf "%s\n" "$ac_cv_lib_gdbm_compat_dbminit" >&6; }
18724 if test "x$ac_cv_lib_gdbm_compat_dbminit" = xyes
18725 then :
18726 ODBMLIB="-lgdbm -lgdbm_compat"
18727 else $as_nop
18728
18729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: odbm header is found but its library isn't. disabling odbm." >&5
18730 printf "%s\n" "$as_me: odbm header is found but its library isn't. disabling odbm." >&6;}
18731 ODBM_HEADER=""
18732 fi
18733
18734
18735 fi
18736
18737
18738 fi
18739
18740 fi
18741
18742 fi
18743
18744 if test "$ODBM_HEADER" != ""
18745 then :
18746
18747 DBM_ARCHFILES="dbm--odbm.$SHLIB_SO_SUFFIX $DBM_ARCHFILES"
18748 DBM_SCMFILES="odbm.sci $DBM_SCMFILES"
18749 DBM_OBJECTS='$(odbm_OBJECTS)'$DBM_OBJECTS
18750
18751 fi
18752
18753
18754 fi
18755
18756
18757
18758
18759
18760
18761
18762 EXT_LIBS="$EXT_LIBS $GDBMLIB $NDBMLIB $ODBMLIB"
18763
18764
18765
18766
18767 ac_cv_use_zlib=yes
18768 ZLIB_CPPFLAGS=
18769 ZLIB_LDFLAGS=
18770
18771
18772 # Check whether --with-zlib was given.
18773 if test ${with_zlib+y}
18774 then :
18775 withval=$with_zlib;
18776 case $with_zlib in #(
18777 no) :
18778 ac_cv_use_zlib=no ;; #(
18779 yes) :
18780 ;; #(
18781 *) :
18782 ZLIB_CPPFLAGS="-I$with_zlib/include"
18783 ZLIB_LDFLAGS="-L$with_zlib/lib" ;;
18784 esac
18785
18786 fi
18787
18788
18789
18790 if test "$ac_cv_use_zlib" != no
18791 then :
18792
18793 save_cppflags=$CPPFLAGS
18794 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
18795 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18796 if test "x$ac_cv_header_zlib_h" = xyes
18797 then :
18798
18799 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
18800
18801 else $as_nop
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find zlib.h so I turned off using zlib; you may want to use --with-zlib=PATH.\"" >&5
18803 printf "%s\n" "$as_me: WARNING: \"Can't find zlib.h so I turned off using zlib; you may want to use --with-zlib=PATH.\"" >&2;}
18804 ac_cv_use_zlib=no
18805 fi
18806
18807 CPPFLAGS=$save_cppflags
18808
18809 fi
18810
18811
18812 if test "$ac_cv_use_zlib" = yes
18813 then :
18814
18815 save_cflags="$CFLAGS"
18816 save_ldflags="$LDFLAGS"
18817 save_libs="$LIBS"
18818 CFLAGS="$CFLAGS $ZLIB_CPPFLAGS"
18819 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
18820 LIBS="$LIBS -lz"
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18823 #include <zlib.h>
18824 int
18825 main (void)
18826 {
18827 const char *r = zlibVersion();
18828 ;
18829 return 0;
18830 }
18831 _ACEOF
18832 if ac_fn_c_try_link "$LINENO"
18833 then :
18834 ZLIB_LIB="-lz"
18835 else $as_nop
18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Can't find libz so I turned off using zlib; you may want to use --with-zlib=PATH\"" >&5
18837 printf "%s\n" "$as_me: WARNING: \"Can't find libz so I turned off using zlib; you may want to use --with-zlib=PATH\"" >&2;}
18838 ac_cv_use_zlib=no
18839 fi
18840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18841 conftest$ac_exeext conftest.$ac_ext
18842 CFLAGS="$save_cflags"
18843 LDFLAGS="$save_ldflags"
18844 LIBS="$save_libs"
18845
18846 fi
18847
18848 if test "$ac_cv_use_zlib" = yes
18849 then :
18850
18851 case "$target" in #(
18852 *mingw*) :
18853 ZLIB_LIB="-Wl,-dn,$ZLIB_LIB,-dy" ;; #(
18854 *) :
18855 ;;
18856 esac
18857
18858
18859 printf "%s\n" "#define USE_ZLIB /**/" >>confdefs.h
18860
18861 ZLIB_ARCHFILES=rfc--zlib.$SHLIB_SO_SUFFIX
18862
18863 ZLIB_SCMFILES=zlib.sci
18864
18865 ZLIB_OBJECTS="gauche-zlib.$OBJEXT rfc--zlib.$OBJEXT"
18866
18867 EXT_LIBS="$EXT_LIBS $ZLIB_LIB"
18868
18869 fi
18870
18871
18872
18873
18874
18875
18876
18877 TLSLIBS=mbedtls
18878 tls_explicitly_disabled=no
18879
18880 # Check whether --with-tls was given.
18881 if test ${with_tls+y}
18882 then :
18883 withval=$with_tls;
18884 case $with_tls in #(
18885 no|none) :
18886 TLSLIBS=""
18887 tls_explicitly_disabled=yes ;; #(
18888 yes) :
18889 ;; #(
18890 *) :
18891 TLSLIBS="$with_tls" ;;
18892 esac
18893
18894 fi
18895
18896
18897
18898 use_mbed=no
18899 use_mbed_internal=no
18900
18901 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_yes="#"
18902 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_no=
18903
18904 for tls in `echo $TLSLIBS | tr ',' ' '`
18905 do
18906 case $tls in #(
18907 mbedtls) :
18908 if test $use_mbed_internal = yes
18909 then :
18910
18911 as_fn_error $? "You can only specify either one of 'mbedtls' or
18912 'mbedtls-internal' in --with-tls option" "$LINENO" 5
18913
18914 else $as_nop
18915
18916 use_mbed=yes
18917
18918 fi ;; #(
18919 mbedtls-internal) :
18920 if test $use_mbed = yes
18921 then :
18922
18923 as_fn_error $? "You can only specify either one of 'mbedtls' or
18924 'mbedtls-internal' in --with-tls option" "$LINENO" 5
18925
18926 else $as_nop
18927
18928 use_mbed=yes
18929 use_mbed_internal=yes
18930 MBEDTLS_CFLAGS="-I ../../tools/tls/include"
18931 MBEDTLS_LDFLAGS="-L ../../tools/tls"
18932 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_yes=
18933 GAUCHE_TLS_SWITCH_MBEDTLS_INTERNAL_no="#"
18934 case $host in #(
18935 *mingw*) :
18936
18937 if cmake -G 2>&1 | grep -q 'MSYS Makefiles'
18938 then :
18939
18940 MBEDTLS_CMAKE_OPTIONS="-G'MSYS Makefiles'"
18941
18942 fi
18943 ;; #(
18944 *) :
18945 ;;
18946 esac
18947
18948 fi ;; #(
18949 *) :
18950
18951 as_fn_error $? "Invalid ---with-tls choice; it must be either
18952 mbedtls or mbedtls-internal." "$LINENO" 5
18953 ;;
18954 esac
18955 done
18956
18957
18958
18959
18960 # Check whether --enable-tls was given.
18961 if test ${enable_tls+y}
18962 then :
18963 enableval=$enable_tls;
18964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-tls is obsoleted. Use --with-tls." >&5
18965 printf "%s\n" "$as_me: WARNING: --enable-tls is obsoleted. Use --with-tls." >&2;}
18966 case $enableval in #(
18967 no|none) :
18968 TLSLIBS="" ;; #(
18969 yes) :
18970 ;; #(
18971 *) :
18972 TLSLIBS="$enableval" ;;
18973 esac
18974
18975 fi
18976
18977
18978
18979 GAUCHE_TLS_SWITCH_MBEDTLS="#"
18980 GAUCHE_TLS_SWITCH_NONE=
18981
18982 if test $use_mbed = yes
18983 then :
18984
18985 if test $use_mbed_internal = yes
18986 then :
18987
18988 MBEDTLS_LIBS="${MBEDTLS_LDFLAGS} -lmbedtls -lmbedx509 -lmbedcrypto"
18989
18990 else $as_nop
18991
18992 CFLAGS_SAVE=$CFLAGS
18993 CFLAGS="$MBEDTLS_CFLAGS $CFLAGS"
18994 ac_fn_c_check_header_compile "$LINENO" "mbedtls/version.h" "ac_cv_header_mbedtls_version_h" "$ac_includes_default"
18995 if test "x$ac_cv_header_mbedtls_version_h" = xyes
18996 then :
18997
18998 else $as_nop
18999 mbedtls_unavailable=yes
19000 fi
19001
19002 CFLAGS=${CFLAGS_SAVE}
19003
19004 LDFLAGS_SAVE=${LDFLAGS}
19005 LIBS_SAVE=${LIBS}
19006 LDFLAGS="${LDFLAGS} ${MBEDTLS_LDFLAGS}"
19007 MBEDTLS_LIBS=""
19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mbedtls_ctr_drbg_init" >&5
19009 printf %s "checking for library containing mbedtls_ctr_drbg_init... " >&6; }
19010 if test ${ac_cv_search_mbedtls_ctr_drbg_init+y}
19011 then :
19012 printf %s "(cached) " >&6
19013 else $as_nop
19014 ac_func_search_save_LIBS=$LIBS
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021 char mbedtls_ctr_drbg_init ();
19022 int
19023 main (void)
19024 {
19025 return mbedtls_ctr_drbg_init ();
19026 ;
19027 return 0;
19028 }
19029 _ACEOF
19030 for ac_lib in '' mbedcrypto
19031 do
19032 if test -z "$ac_lib"; then
19033 ac_res="none required"
19034 else
19035 ac_res=-l$ac_lib
19036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19037 fi
19038 if ac_fn_c_try_link "$LINENO"
19039 then :
19040 ac_cv_search_mbedtls_ctr_drbg_init=$ac_res
19041 fi
19042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19043 conftest$ac_exeext
19044 if test ${ac_cv_search_mbedtls_ctr_drbg_init+y}
19045 then :
19046 break
19047 fi
19048 done
19049 if test ${ac_cv_search_mbedtls_ctr_drbg_init+y}
19050 then :
19051
19052 else $as_nop
19053 ac_cv_search_mbedtls_ctr_drbg_init=no
19054 fi
19055 rm conftest.$ac_ext
19056 LIBS=$ac_func_search_save_LIBS
19057 fi
19058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mbedtls_ctr_drbg_init" >&5
19059 printf "%s\n" "$ac_cv_search_mbedtls_ctr_drbg_init" >&6; }
19060 ac_res=$ac_cv_search_mbedtls_ctr_drbg_init
19061 if test "$ac_res" != no
19062 then :
19063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19064 MBEDTLS_LIBS="-lmbedcrypto ${MBEDTLS_LIBS}"
19065 else $as_nop
19066 mbedtls_unavailable=yes
19067 fi
19068
19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mbedtls_x509_crt_init" >&5
19070 printf %s "checking for library containing mbedtls_x509_crt_init... " >&6; }
19071 if test ${ac_cv_search_mbedtls_x509_crt_init+y}
19072 then :
19073 printf %s "(cached) " >&6
19074 else $as_nop
19075 ac_func_search_save_LIBS=$LIBS
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082 char mbedtls_x509_crt_init ();
19083 int
19084 main (void)
19085 {
19086 return mbedtls_x509_crt_init ();
19087 ;
19088 return 0;
19089 }
19090 _ACEOF
19091 for ac_lib in '' mbedx509
19092 do
19093 if test -z "$ac_lib"; then
19094 ac_res="none required"
19095 else
19096 ac_res=-l$ac_lib
19097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19098 fi
19099 if ac_fn_c_try_link "$LINENO"
19100 then :
19101 ac_cv_search_mbedtls_x509_crt_init=$ac_res
19102 fi
19103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19104 conftest$ac_exeext
19105 if test ${ac_cv_search_mbedtls_x509_crt_init+y}
19106 then :
19107 break
19108 fi
19109 done
19110 if test ${ac_cv_search_mbedtls_x509_crt_init+y}
19111 then :
19112
19113 else $as_nop
19114 ac_cv_search_mbedtls_x509_crt_init=no
19115 fi
19116 rm conftest.$ac_ext
19117 LIBS=$ac_func_search_save_LIBS
19118 fi
19119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mbedtls_x509_crt_init" >&5
19120 printf "%s\n" "$ac_cv_search_mbedtls_x509_crt_init" >&6; }
19121 ac_res=$ac_cv_search_mbedtls_x509_crt_init
19122 if test "$ac_res" != no
19123 then :
19124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19125 MBEDTLS_LIBS="-lmbedx509 ${MBEDTLS_LIBS}"
19126 else $as_nop
19127 mbedtls_unavailable=yes
19128 fi
19129
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mbedtls_ssl_init" >&5
19131 printf %s "checking for library containing mbedtls_ssl_init... " >&6; }
19132 if test ${ac_cv_search_mbedtls_ssl_init+y}
19133 then :
19134 printf %s "(cached) " >&6
19135 else $as_nop
19136 ac_func_search_save_LIBS=$LIBS
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19143 char mbedtls_ssl_init ();
19144 int
19145 main (void)
19146 {
19147 return mbedtls_ssl_init ();
19148 ;
19149 return 0;
19150 }
19151 _ACEOF
19152 for ac_lib in '' mbedtls
19153 do
19154 if test -z "$ac_lib"; then
19155 ac_res="none required"
19156 else
19157 ac_res=-l$ac_lib
19158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19159 fi
19160 if ac_fn_c_try_link "$LINENO"
19161 then :
19162 ac_cv_search_mbedtls_ssl_init=$ac_res
19163 fi
19164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19165 conftest$ac_exeext
19166 if test ${ac_cv_search_mbedtls_ssl_init+y}
19167 then :
19168 break
19169 fi
19170 done
19171 if test ${ac_cv_search_mbedtls_ssl_init+y}
19172 then :
19173
19174 else $as_nop
19175 ac_cv_search_mbedtls_ssl_init=no
19176 fi
19177 rm conftest.$ac_ext
19178 LIBS=$ac_func_search_save_LIBS
19179 fi
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mbedtls_ssl_init" >&5
19181 printf "%s\n" "$ac_cv_search_mbedtls_ssl_init" >&6; }
19182 ac_res=$ac_cv_search_mbedtls_ssl_init
19183 if test "$ac_res" != no
19184 then :
19185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19186 MBEDTLS_LIBS="-lmbedtls ${MBEDTLS_LIBS}"
19187 else $as_nop
19188 mbedtls_unavailable=yes
19189 fi
19190
19191 LDFLAGS=${LDFLAGS_SAVE}
19192 LIBS=${LIBS_SAVE}
19193 MBEDTLS_LIBS="${MBEDTLS_LDFLAGS} ${MBEDTLS_LIBS}"
19194 EXT_LIBS="$EXT_LIBS $MBEDTLS_LIBS"
19195
19196 fi
19197
19198 if test "$mbedtls_unavailable" = yes
19199 then :
19200
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Can't find mbedtls headers and/or libraries." >&5
19202 printf "%s\n" "$as_me: Can't find mbedtls headers and/or libraries." >&6;}
19203
19204 else $as_nop
19205
19206
19207 printf "%s\n" "#define GAUCHE_USE_MBEDTLS 1" >>confdefs.h
19208
19209
19210
19211
19212 GAUCHE_TLS_TYPES="mbedtls $GAUCHE_TLS_TYPES"
19213 GAUCHE_TLS_SWITCH_MBEDTLS=
19214 GAUCHE_TLS_SWITCH_NONE="#"
19215
19216 fi
19217
19218 fi
19219
19220
19221
19222
19223 if test -n "$TLSLIBS"
19224 then :
19225
19226 SYSTEM_CERT_LIBS=""
19227 case $host in #(
19228 *mingw*) :
19229
19230
19231 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
19232
19233 SYSTEM_CERT_LIBS="-lcrypt32"
19234 ;; #(
19235 *) :
19236 ;;
19237 esac
19238 EXT_LIBS="$EXT_LIBS $SYSTEM_CERT_LIBS"
19239
19240
19241 fi
19242
19243
19244 # Check whether --with-ca-bundle was given.
19245 if test ${with_ca_bundle+y}
19246 then :
19247 withval=$with_ca_bundle;
19248 case $with_ca_bundle in #(
19249 check) :
19250
19251 printf "%s\n" "#define GAUCHE_CA_BUNDLE_CHECK 1" >>confdefs.h
19252
19253 TLS_CA_TYPE=check
19254 TLS_CA_PATH=
19255 ;; #(
19256 no) :
19257
19258 printf "%s\n" "#define GAUCHE_CA_BUNDLE_NONE 1" >>confdefs.h
19259
19260 TLS_CA_TYPE=none
19261 TLS_CA_PATH=
19262 ;; #(
19263 system) :
19264
19265 printf "%s\n" "#define GAUCHE_CA_BUNDLE_SYSTEM 1" >>confdefs.h
19266
19267 TLS_CA_TYPE=system
19268 TLS_CA_PATH=
19269 ;; #(
19270 *) :
19271
19272 printf "%s\n" "#define GAUCHE_CA_BUNDLE_FILE 1" >>confdefs.h
19273
19274
19275 printf "%s\n" "#define GAUCHE_CA_BUNDLE \"$with_ca_bundle\"" >>confdefs.h
19276
19277 TLS_CA_TYPE=file
19278 TLS_CA_PATH=$with_ca_bundle
19279
19280 ;;
19281 esac
19282
19283 else $as_nop
19284
19285 printf "%s\n" "#define GAUCHE_CA_BUNDLE_CHECK 1" >>confdefs.h
19286
19287 TLS_CA_TYPE=check
19288 TLS_CA_PATH=
19289
19290 fi
19291
19292
19293
19294
19295 #STATIC_LIBS=
19296 #for lib in $EXT_LIBS $LIBS; do
19297 # AS_IF([ echo "${STATIC_LIBS}" | grep -F -w -e "${lib}" > /dev/null 2>&1 ],
19298 # [], dnl lib is alreay in STATIC_LIBS. do nothing
19299 # [STATIC_LIBS="$STATIC_LIBS $lib"])
19300 #done
19301 STATIC_LIBS="$EXT_LIBS $LIBS"
19302 STATIC_LIBS="`echo $LIBGAUCHE_STATIC | sed s/^lib/-l/` $STATIC_LIBS"
19303 case $host in #(
19304 *darwin*) :
19305
19306 STATIC_LIBS="-framework CoreServices -framework CoreFoundation $STATIC_LIBS"
19307 ;; #(
19308 *) :
19309 ;;
19310 esac
19311
19312
19313 if test ${cross_compiling} = no ; then
19314 # self compile
19315 CROSS_COMPILING_yes="#"
19316 CROSS_COMPILING_no=
19317 else
19318 # cross compile
19319 CROSS_COMPILING_yes=
19320 CROSS_COMPILING_no="#"
19321 fi
19322
19323
19324
19325
19326
19327 subdirs="$subdirs gc"
19328
19329
19330 ac_config_files="$ac_config_files Makefile src/Makefile src/genconfig src/makeverslink lib/Makefile doc/gosh.1 doc/gauche-config.1 doc/gauche-cesconv.1 doc/gauche-install.1 doc/gauche-package.1 doc/Makefile ext/Makefile ext/Makefile.ext ext/bcrypt/Makefile ext/binary/Makefile ext/charconv/Makefile ext/charconv/iconv-adapter.h ext/data/Makefile ext/dbm/Makefile ext/digest/Makefile ext/fcntl/Makefile ext/file/Makefile ext/gauche/Makefile ext/mt-random/Makefile ext/native/Makefile ext/peg/Makefile ext/scheme/Makefile ext/sparse/Makefile ext/srfi/Makefile ext/sxml/Makefile ext/syslog/Makefile ext/tls/Makefile ext/termios/Makefile ext/text/Makefile ext/util/Makefile ext/uvector/Makefile ext/vport/Makefile ext/rfc/Makefile ext/zlib/Makefile ext/windows/Makefile examples/Makefile examples/standalone/Makefile gc/configure.gnu-gauche:tools/gc-configure.gnu-gauche.in Gauche.spec tools/Makefile tools/scoop/Makefile tools/tls/Makefile"
19331
19332 ac_config_commands="$ac_config_commands VERSION"
19333
19334 ac_config_commands="$ac_config_commands src/features"
19335
19336 cat >confcache <<\_ACEOF
19337 # This file is a shell script that caches the results of configure
19338 # tests run on this system so they can be shared between configure
19339 # scripts and configure runs, see configure's option --config-cache.
19340 # It is not useful on other systems. If it contains results you don't
19341 # want to keep, you may remove or edit it.
19342 #
19343 # config.status only pays attention to the cache file if you give it
19344 # the --recheck option to rerun configure.
19345 #
19346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19348 # following values.
19349
19350 _ACEOF
19351
19352 # The following way of writing the cache mishandles newlines in values,
19353 # but we know of no workaround that is simple, portable, and efficient.
19354 # So, we kill variables containing newlines.
19355 # Ultrix sh set writes to stderr and can't be redirected directly,
19356 # and sets the high bit in the cache file unless we assign to the vars.
19357 (
19358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19359 eval ac_val=\$$ac_var
19360 case $ac_val in #(
19361 *${as_nl}*)
19362 case $ac_var in #(
19363 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19364 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19365 esac
19366 case $ac_var in #(
19367 _ | IFS | as_nl) ;; #(
19368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19369 *) { eval $ac_var=; unset $ac_var;} ;;
19370 esac ;;
19371 esac
19372 done
19373
19374 (set) 2>&1 |
19375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19376 *${as_nl}ac_space=\ *)
19377 # `set' does not quote correctly, so add quotes: double-quote
19378 # substitution turns \\\\ into \\, and sed turns \\ into \.
19379 sed -n \
19380 "s/'/'\\\\''/g;
19381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19382 ;; #(
19383 *)
19384 # `set' quotes correctly as required by POSIX, so do not add quotes.
19385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19386 ;;
19387 esac |
19388 sort
19389 ) |
19390 sed '
19391 /^ac_cv_env_/b end
19392 t clear
19393 :clear
19394 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19395 t end
19396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19397 :end' >>confcache
19398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19399 if test -w "$cache_file"; then
19400 if test "x$cache_file" != "x/dev/null"; then
19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19402 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19403 if test ! -f "$cache_file" || test -h "$cache_file"; then
19404 cat confcache >"$cache_file"
19405 else
19406 case $cache_file in #(
19407 */* | ?:*)
19408 mv -f confcache "$cache_file"$$ &&
19409 mv -f "$cache_file"$$ "$cache_file" ;; #(
19410 *)
19411 mv -f confcache "$cache_file" ;;
19412 esac
19413 fi
19414 fi
19415 else
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19417 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19418 fi
19419 fi
19420 rm -f confcache
19421
19422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19423 # Let make expand exec_prefix.
19424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19425
19426 DEFS=-DHAVE_CONFIG_H
19427
19428 ac_libobjs=
19429 ac_ltlibobjs=
19430 U=
19431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19432 # 1. Remove the extension, and $U if already installed.
19433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19434 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19436 # will be set to the directory where LIBOBJS objects are built.
19437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19439 done
19440 LIBOBJS=$ac_libobjs
19441
19442 LTLIBOBJS=$ac_ltlibobjs
19443
19444
19445
19446
19447 : "${CONFIG_STATUS=./config.status}"
19448 ac_write_fail=0
19449 ac_clean_files_save=$ac_clean_files
19450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19452 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19453 as_write_fail=0
19454 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19455 #! $SHELL
19456 # Generated by $as_me.
19457 # Run this file to recreate the current configuration.
19458 # Compiler output produced by configure, useful for debugging
19459 # configure, is in config.log if it exists.
19460
19461 debug=false
19462 ac_cs_recheck=false
19463 ac_cs_silent=false
19464
19465 SHELL=\${CONFIG_SHELL-$SHELL}
19466 export SHELL
19467 _ASEOF
19468 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19469 ## -------------------- ##
19470 ## M4sh Initialization. ##
19471 ## -------------------- ##
19472
19473 # Be more Bourne compatible
19474 DUALCASE=1; export DUALCASE # for MKS sh
19475 as_nop=:
19476 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19477 then :
19478 emulate sh
19479 NULLCMD=:
19480 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19481 # is contrary to our usage. Disable this feature.
19482 alias -g '${1+"$@"}'='"$@"'
19483 setopt NO_GLOB_SUBST
19484 else $as_nop
19485 case `(set -o) 2>/dev/null` in #(
19486 *posix*) :
19487 set -o posix ;; #(
19488 *) :
19489 ;;
19490 esac
19491 fi
19492
19493
19494
19495 # Reset variables that may have inherited troublesome values from
19496 # the environment.
19497
19498 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19499 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19500 # side effect of setting IFS to empty, thus disabling word splitting.)
19501 # Quoting is to prevent editors from complaining about space-tab.
19502 as_nl='
19503 '
19504 export as_nl
19505 IFS=" "" $as_nl"
19506
19507 PS1='$ '
19508 PS2='> '
19509 PS4='+ '
19510
19511 # Ensure predictable behavior from utilities with locale-dependent output.
19512 LC_ALL=C
19513 export LC_ALL
19514 LANGUAGE=C
19515 export LANGUAGE
19516
19517 # We cannot yet rely on "unset" to work, but we need these variables
19518 # to be unset--not just set to an empty or harmless value--now, to
19519 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19520 # also avoids known problems related to "unset" and subshell syntax
19521 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19522 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19523 do eval test \${$as_var+y} \
19524 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19525 done
19526
19527 # Ensure that fds 0, 1, and 2 are open.
19528 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19529 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19530 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19531
19532 # The user is always right.
19533 if ${PATH_SEPARATOR+false} :; then
19534 PATH_SEPARATOR=:
19535 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19536 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19537 PATH_SEPARATOR=';'
19538 }
19539 fi
19540
19541
19542 # Find who we are. Look in the path if we contain no directory separator.
19543 as_myself=
19544 case $0 in #((
19545 *[\\/]* ) as_myself=$0 ;;
19546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19547 for as_dir in $PATH
19548 do
19549 IFS=$as_save_IFS
19550 case $as_dir in #(((
19551 '') as_dir=./ ;;
19552 */) ;;
19553 *) as_dir=$as_dir/ ;;
19554 esac
19555 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19556 done
19557 IFS=$as_save_IFS
19558
19559 ;;
19560 esac
19561 # We did not find ourselves, most probably we were run as `sh COMMAND'
19562 # in which case we are not to be found in the path.
19563 if test "x$as_myself" = x; then
19564 as_myself=$0
19565 fi
19566 if test ! -f "$as_myself"; then
19567 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19568 exit 1
19569 fi
19570
19571
19572
19573 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19574 # ----------------------------------------
19575 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19576 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19577 # script with STATUS, using 1 if that was 0.
19578 as_fn_error ()
19579 {
19580 as_status=$1; test $as_status -eq 0 && as_status=1
19581 if test "$4"; then
19582 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19584 fi
19585 printf "%s\n" "$as_me: error: $2" >&2
19586 as_fn_exit $as_status
19587 } # as_fn_error
19588
19589
19590
19591 # as_fn_set_status STATUS
19592 # -----------------------
19593 # Set $? to STATUS, without forking.
19594 as_fn_set_status ()
19595 {
19596 return $1
19597 } # as_fn_set_status
19598
19599 # as_fn_exit STATUS
19600 # -----------------
19601 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19602 as_fn_exit ()
19603 {
19604 set +e
19605 as_fn_set_status $1
19606 exit $1
19607 } # as_fn_exit
19608
19609 # as_fn_unset VAR
19610 # ---------------
19611 # Portably unset VAR.
19612 as_fn_unset ()
19613 {
19614 { eval $1=; unset $1;}
19615 }
19616 as_unset=as_fn_unset
19617
19618 # as_fn_append VAR VALUE
19619 # ----------------------
19620 # Append the text in VALUE to the end of the definition contained in VAR. Take
19621 # advantage of any shell optimizations that allow amortized linear growth over
19622 # repeated appends, instead of the typical quadratic growth present in naive
19623 # implementations.
19624 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19625 then :
19626 eval 'as_fn_append ()
19627 {
19628 eval $1+=\$2
19629 }'
19630 else $as_nop
19631 as_fn_append ()
19632 {
19633 eval $1=\$$1\$2
19634 }
19635 fi # as_fn_append
19636
19637 # as_fn_arith ARG...
19638 # ------------------
19639 # Perform arithmetic evaluation on the ARGs, and store the result in the
19640 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19641 # must be portable across $(()) and expr.
19642 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19643 then :
19644 eval 'as_fn_arith ()
19645 {
19646 as_val=$(( $* ))
19647 }'
19648 else $as_nop
19649 as_fn_arith ()
19650 {
19651 as_val=`expr "$@" || test $? -eq 1`
19652 }
19653 fi # as_fn_arith
19654
19655
19656 if expr a : '\(a\)' >/dev/null 2>&1 &&
19657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19658 as_expr=expr
19659 else
19660 as_expr=false
19661 fi
19662
19663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19664 as_basename=basename
19665 else
19666 as_basename=false
19667 fi
19668
19669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19670 as_dirname=dirname
19671 else
19672 as_dirname=false
19673 fi
19674
19675 as_me=`$as_basename -- "$0" ||
19676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19677 X"$0" : 'X\(//\)$' \| \
19678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19679 printf "%s\n" X/"$0" |
19680 sed '/^.*\/\([^/][^/]*\)\/*$/{
19681 s//\1/
19682 q
19683 }
19684 /^X\/\(\/\/\)$/{
19685 s//\1/
19686 q
19687 }
19688 /^X\/\(\/\).*/{
19689 s//\1/
19690 q
19691 }
19692 s/.*/./; q'`
19693
19694 # Avoid depending upon Character Ranges.
19695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19698 as_cr_digits='0123456789'
19699 as_cr_alnum=$as_cr_Letters$as_cr_digits
19700
19701
19702 # Determine whether it's possible to make 'echo' print without a newline.
19703 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19704 # for compatibility with existing Makefiles.
19705 ECHO_C= ECHO_N= ECHO_T=
19706 case `echo -n x` in #(((((
19707 -n*)
19708 case `echo 'xy\c'` in
19709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19710 xy) ECHO_C='\c';;
19711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19712 ECHO_T=' ';;
19713 esac;;
19714 *)
19715 ECHO_N='-n';;
19716 esac
19717
19718 # For backward compatibility with old third-party macros, we provide
19719 # the shell variables $as_echo and $as_echo_n. New code should use
19720 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19721 as_echo='printf %s\n'
19722 as_echo_n='printf %s'
19723
19724 rm -f conf$$ conf$$.exe conf$$.file
19725 if test -d conf$$.dir; then
19726 rm -f conf$$.dir/conf$$.file
19727 else
19728 rm -f conf$$.dir
19729 mkdir conf$$.dir 2>/dev/null
19730 fi
19731 if (echo >conf$$.file) 2>/dev/null; then
19732 if ln -s conf$$.file conf$$ 2>/dev/null; then
19733 as_ln_s='ln -s'
19734 # ... but there are two gotchas:
19735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19737 # In both cases, we have to default to `cp -pR'.
19738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19739 as_ln_s='cp -pR'
19740 elif ln conf$$.file conf$$ 2>/dev/null; then
19741 as_ln_s=ln
19742 else
19743 as_ln_s='cp -pR'
19744 fi
19745 else
19746 as_ln_s='cp -pR'
19747 fi
19748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19749 rmdir conf$$.dir 2>/dev/null
19750
19751
19752 # as_fn_mkdir_p
19753 # -------------
19754 # Create "$as_dir" as a directory, including parents if necessary.
19755 as_fn_mkdir_p ()
19756 {
19757
19758 case $as_dir in #(
19759 -*) as_dir=./$as_dir;;
19760 esac
19761 test -d "$as_dir" || eval $as_mkdir_p || {
19762 as_dirs=
19763 while :; do
19764 case $as_dir in #(
19765 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19766 *) as_qdir=$as_dir;;
19767 esac
19768 as_dirs="'$as_qdir' $as_dirs"
19769 as_dir=`$as_dirname -- "$as_dir" ||
19770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19771 X"$as_dir" : 'X\(//\)[^/]' \| \
19772 X"$as_dir" : 'X\(//\)$' \| \
19773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19774 printf "%s\n" X"$as_dir" |
19775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19776 s//\1/
19777 q
19778 }
19779 /^X\(\/\/\)[^/].*/{
19780 s//\1/
19781 q
19782 }
19783 /^X\(\/\/\)$/{
19784 s//\1/
19785 q
19786 }
19787 /^X\(\/\).*/{
19788 s//\1/
19789 q
19790 }
19791 s/.*/./; q'`
19792 test -d "$as_dir" && break
19793 done
19794 test -z "$as_dirs" || eval "mkdir $as_dirs"
19795 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19796
19797
19798 } # as_fn_mkdir_p
19799 if mkdir -p . 2>/dev/null; then
19800 as_mkdir_p='mkdir -p "$as_dir"'
19801 else
19802 test -d ./-p && rmdir ./-p
19803 as_mkdir_p=false
19804 fi
19805
19806
19807 # as_fn_executable_p FILE
19808 # -----------------------
19809 # Test if FILE is an executable regular file.
19810 as_fn_executable_p ()
19811 {
19812 test -f "$1" && test -x "$1"
19813 } # as_fn_executable_p
19814 as_test_x='test -x'
19815 as_executable_p=as_fn_executable_p
19816
19817 # Sed expression to map a string onto a valid CPP name.
19818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19819
19820 # Sed expression to map a string onto a valid variable name.
19821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19822
19823
19824 exec 6>&1
19825 ## ----------------------------------- ##
19826 ## Main body of $CONFIG_STATUS script. ##
19827 ## ----------------------------------- ##
19828 _ASEOF
19829 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19830
19831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19832 # Save the log message, to keep $0 and so on meaningful, and to
19833 # report actual input values of CONFIG_FILES etc. instead of their
19834 # values after options handling.
19835 ac_log="
19836 This file was extended by Gauche $as_me 0.9.15-p2, which was
19837 generated by GNU Autoconf 2.71. Invocation command line was
19838
19839 CONFIG_FILES = $CONFIG_FILES
19840 CONFIG_HEADERS = $CONFIG_HEADERS
19841 CONFIG_LINKS = $CONFIG_LINKS
19842 CONFIG_COMMANDS = $CONFIG_COMMANDS
19843 $ $0 $@
19844
19845 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19846 "
19847
19848 _ACEOF
19849
19850 case $ac_config_files in *"
19851 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19852 esac
19853
19854 case $ac_config_headers in *"
19855 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19856 esac
19857
19858
19859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19860 # Files that config.status was made for.
19861 config_files="$ac_config_files"
19862 config_headers="$ac_config_headers"
19863 config_commands="$ac_config_commands"
19864
19865 _ACEOF
19866
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868 ac_cs_usage="\
19869 \`$as_me' instantiates files and other configuration actions
19870 from templates according to the current configuration. Unless the files
19871 and actions are specified as TAGs, all are instantiated by default.
19872
19873 Usage: $0 [OPTION]... [TAG]...
19874
19875 -h, --help print this help, then exit
19876 -V, --version print version number and configuration settings, then exit
19877 --config print configuration, then exit
19878 -q, --quiet, --silent
19879 do not print progress messages
19880 -d, --debug don't remove temporary files
19881 --recheck update $as_me by reconfiguring in the same conditions
19882 --file=FILE[:TEMPLATE]
19883 instantiate the configuration file FILE
19884 --header=FILE[:TEMPLATE]
19885 instantiate the configuration header FILE
19886
19887 Configuration files:
19888 $config_files
19889
19890 Configuration headers:
19891 $config_headers
19892
19893 Configuration commands:
19894 $config_commands
19895
19896 Report bugs to <[email protected]>.
19897 Gauche home page: <https://practical-scheme.net/gauche/>."
19898
19899 _ACEOF
19900 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19901 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19903 ac_cs_config='$ac_cs_config_escaped'
19904 ac_cs_version="\\
19905 Gauche config.status 0.9.15-p2
19906 configured by $0, generated by GNU Autoconf 2.71,
19907 with options \\"\$ac_cs_config\\"
19908
19909 Copyright (C) 2021 Free Software Foundation, Inc.
19910 This config.status script is free software; the Free Software Foundation
19911 gives unlimited permission to copy, distribute and modify it."
19912
19913 ac_pwd='$ac_pwd'
19914 srcdir='$srcdir'
19915 INSTALL='$INSTALL'
19916 AWK='$AWK'
19917 test -n "\$AWK" || AWK=awk
19918 _ACEOF
19919
19920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19921 # The default lists apply if the user does not specify any file.
19922 ac_need_defaults=:
19923 while test $# != 0
19924 do
19925 case $1 in
19926 --*=?*)
19927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19929 ac_shift=:
19930 ;;
19931 --*=)
19932 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19933 ac_optarg=
19934 ac_shift=:
19935 ;;
19936 *)
19937 ac_option=$1
19938 ac_optarg=$2
19939 ac_shift=shift
19940 ;;
19941 esac
19942
19943 case $ac_option in
19944 # Handling of the options.
19945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19946 ac_cs_recheck=: ;;
19947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19948 printf "%s\n" "$ac_cs_version"; exit ;;
19949 --config | --confi | --conf | --con | --co | --c )
19950 printf "%s\n" "$ac_cs_config"; exit ;;
19951 --debug | --debu | --deb | --de | --d | -d )
19952 debug=: ;;
19953 --file | --fil | --fi | --f )
19954 $ac_shift
19955 case $ac_optarg in
19956 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19957 '') as_fn_error $? "missing file argument" ;;
19958 esac
19959 as_fn_append CONFIG_FILES " '$ac_optarg'"
19960 ac_need_defaults=false;;
19961 --header | --heade | --head | --hea )
19962 $ac_shift
19963 case $ac_optarg in
19964 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19965 esac
19966 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19967 ac_need_defaults=false;;
19968 --he | --h)
19969 # Conflict between --help and --header
19970 as_fn_error $? "ambiguous option: \`$1'
19971 Try \`$0 --help' for more information.";;
19972 --help | --hel | -h )
19973 printf "%s\n" "$ac_cs_usage"; exit ;;
19974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19976 ac_cs_silent=: ;;
19977
19978 # This is an error.
19979 -*) as_fn_error $? "unrecognized option: \`$1'
19980 Try \`$0 --help' for more information." ;;
19981
19982 *) as_fn_append ac_config_targets " $1"
19983 ac_need_defaults=false ;;
19984
19985 esac
19986 shift
19987 done
19988
19989 ac_configure_extra_args=
19990
19991 if $ac_cs_silent; then
19992 exec 6>/dev/null
19993 ac_configure_extra_args="$ac_configure_extra_args --silent"
19994 fi
19995
19996 _ACEOF
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 if \$ac_cs_recheck; then
19999 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20000 shift
20001 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20002 CONFIG_SHELL='$SHELL'
20003 export CONFIG_SHELL
20004 exec "\$@"
20005 fi
20006
20007 _ACEOF
20008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20009 exec 5>>config.log
20010 {
20011 echo
20012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20013 ## Running $as_me. ##
20014 _ASBOX
20015 printf "%s\n" "$ac_log"
20016 } >&5
20017
20018 _ACEOF
20019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020 #
20021 # INIT-COMMANDS
20022 #
20023
20024
20025 # The HP-UX ksh and POSIX shell print the target directory to stdout
20026 # if CDPATH is set.
20027 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20028
20029 sed_quote_subst='$sed_quote_subst'
20030 double_quote_subst='$double_quote_subst'
20031 delay_variable_subst='$delay_variable_subst'
20032 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20033 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20034 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20035 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20036 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20037 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20038 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20039 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20040 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20041 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20042 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20043 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20044 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20045 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20046 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20047 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20048 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20049 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20050 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20051 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20052 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20053 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20054 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20055 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20056 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20057 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20058 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20059 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20060 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20061 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20062 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20063 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20064 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20065 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20066 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20067 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20068 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20069 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20070 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20071 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20072 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20073 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20074 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20075 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20076 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20077 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20078 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20079 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20080 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20081 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20082 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20083 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20084 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20085 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20086 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20087 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20088 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20089 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20091 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20092 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20093 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20094 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20095 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20096 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20097 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20098 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20099 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20100 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20101 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20102 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20103 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20104 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20105 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20106 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20107 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20108 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20109 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20110 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20111 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20112 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20113 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20114 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20115 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20116 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20117 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20118 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20119 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20120 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20121 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20122 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20123 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20124 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20125 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20126 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20127 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20128 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20129 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20130 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20131 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20132 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20133 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20134 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20135 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20136 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20137 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20138 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20139 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20140 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20141 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20142 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20143 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20144 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20145 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20146 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20147 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20148 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20149 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20150 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20151 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20152 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20153 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20154 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20155 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20156 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20157 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20158 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20159 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20160 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20161 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20162 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20163 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20164 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20165 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20166 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20167
20168 LTCC='$LTCC'
20169 LTCFLAGS='$LTCFLAGS'
20170 compiler='$compiler_DEFAULT'
20171
20172 # A function that is used when there is no print builtin or printf.
20173 func_fallback_echo ()
20174 {
20175 eval 'cat <<_LTECHO_EOF
20176 \$1
20177 _LTECHO_EOF'
20178 }
20179
20180 # Quote evaled strings.
20181 for var in SHELL \
20182 ECHO \
20183 PATH_SEPARATOR \
20184 SED \
20185 GREP \
20186 EGREP \
20187 FGREP \
20188 LD \
20189 NM \
20190 LN_S \
20191 lt_SP2NL \
20192 lt_NL2SP \
20193 reload_flag \
20194 OBJDUMP \
20195 deplibs_check_method \
20196 file_magic_cmd \
20197 file_magic_glob \
20198 want_nocaseglob \
20199 DLLTOOL \
20200 sharedlib_from_linklib_cmd \
20201 AR \
20202 AR_FLAGS \
20203 archiver_list_spec \
20204 STRIP \
20205 RANLIB \
20206 CC \
20207 CFLAGS \
20208 compiler \
20209 lt_cv_sys_global_symbol_pipe \
20210 lt_cv_sys_global_symbol_to_cdecl \
20211 lt_cv_sys_global_symbol_to_import \
20212 lt_cv_sys_global_symbol_to_c_name_address \
20213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20214 lt_cv_nm_interface \
20215 nm_file_list_spec \
20216 lt_cv_truncate_bin \
20217 lt_prog_compiler_no_builtin_flag \
20218 lt_prog_compiler_pic \
20219 lt_prog_compiler_wl \
20220 lt_prog_compiler_static \
20221 lt_cv_prog_compiler_c_o \
20222 need_locks \
20223 MANIFEST_TOOL \
20224 DSYMUTIL \
20225 NMEDIT \
20226 LIPO \
20227 OTOOL \
20228 OTOOL64 \
20229 shrext_cmds \
20230 export_dynamic_flag_spec \
20231 whole_archive_flag_spec \
20232 compiler_needs_object \
20233 with_gnu_ld \
20234 allow_undefined_flag \
20235 no_undefined_flag \
20236 hardcode_libdir_flag_spec \
20237 hardcode_libdir_separator \
20238 exclude_expsyms \
20239 include_expsyms \
20240 file_list_spec \
20241 variables_saved_for_relink \
20242 libname_spec \
20243 library_names_spec \
20244 soname_spec \
20245 install_override_mode \
20246 finish_eval \
20247 old_striplib \
20248 striplib; do
20249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20250 *[\\\\\\\`\\"\\\$]*)
20251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20252 ;;
20253 *)
20254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20255 ;;
20256 esac
20257 done
20258
20259 # Double-quote double-evaled strings.
20260 for var in reload_cmds \
20261 old_postinstall_cmds \
20262 old_postuninstall_cmds \
20263 old_archive_cmds \
20264 extract_expsyms_cmds \
20265 old_archive_from_new_cmds \
20266 old_archive_from_expsyms_cmds \
20267 archive_cmds \
20268 archive_expsym_cmds \
20269 module_cmds \
20270 module_expsym_cmds \
20271 export_symbols_cmds \
20272 prelink_cmds \
20273 postlink_cmds \
20274 postinstall_cmds \
20275 postuninstall_cmds \
20276 finish_cmds \
20277 sys_lib_search_path_spec \
20278 configure_time_dlsearch_path \
20279 configure_time_lt_sys_library_path; do
20280 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20281 *[\\\\\\\`\\"\\\$]*)
20282 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20283 ;;
20284 *)
20285 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20286 ;;
20287 esac
20288 done
20289
20290 ac_aux_dir='$ac_aux_dir'
20291
20292 # See if we are running on zsh, and set the options that allow our
20293 # commands through without removal of \ escapes INIT.
20294 if test -n "\${ZSH_VERSION+set}"; then
20295 setopt NO_GLOB_SUBST
20296 fi
20297
20298
20299 PACKAGE='$PACKAGE'
20300 VERSION='$VERSION'
20301 RM='$RM'
20302 ofile='$ofile'
20303
20304
20305
20306 GAUCHE_VERSION="${GAUCHE_VERSION}"
20307
20308 _ACEOF
20309
20310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20311
20312 # Handling of arguments.
20313 for ac_config_target in $ac_config_targets
20314 do
20315 case $ac_config_target in
20316 "src/gauche/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gauche/config.h" ;;
20317 "src/gauche/priv/configP.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gauche/priv/configP.h" ;;
20318 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20319 "ext/dbm/dbmconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ext/dbm/dbmconf.h" ;;
20320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20321 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20322 "src/genconfig") CONFIG_FILES="$CONFIG_FILES src/genconfig" ;;
20323 "src/makeverslink") CONFIG_FILES="$CONFIG_FILES src/makeverslink" ;;
20324 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20325 "doc/gosh.1") CONFIG_FILES="$CONFIG_FILES doc/gosh.1" ;;
20326 "doc/gauche-config.1") CONFIG_FILES="$CONFIG_FILES doc/gauche-config.1" ;;
20327 "doc/gauche-cesconv.1") CONFIG_FILES="$CONFIG_FILES doc/gauche-cesconv.1" ;;
20328 "doc/gauche-install.1") CONFIG_FILES="$CONFIG_FILES doc/gauche-install.1" ;;
20329 "doc/gauche-package.1") CONFIG_FILES="$CONFIG_FILES doc/gauche-package.1" ;;
20330 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20331 "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
20332 "ext/Makefile.ext") CONFIG_FILES="$CONFIG_FILES ext/Makefile.ext" ;;
20333 "ext/bcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES ext/bcrypt/Makefile" ;;
20334 "ext/binary/Makefile") CONFIG_FILES="$CONFIG_FILES ext/binary/Makefile" ;;
20335 "ext/charconv/Makefile") CONFIG_FILES="$CONFIG_FILES ext/charconv/Makefile" ;;
20336 "ext/charconv/iconv-adapter.h") CONFIG_FILES="$CONFIG_FILES ext/charconv/iconv-adapter.h" ;;
20337 "ext/data/Makefile") CONFIG_FILES="$CONFIG_FILES ext/data/Makefile" ;;
20338 "ext/dbm/Makefile") CONFIG_FILES="$CONFIG_FILES ext/dbm/Makefile" ;;
20339 "ext/digest/Makefile") CONFIG_FILES="$CONFIG_FILES ext/digest/Makefile" ;;
20340 "ext/fcntl/Makefile") CONFIG_FILES="$CONFIG_FILES ext/fcntl/Makefile" ;;
20341 "ext/file/Makefile") CONFIG_FILES="$CONFIG_FILES ext/file/Makefile" ;;
20342 "ext/gauche/Makefile") CONFIG_FILES="$CONFIG_FILES ext/gauche/Makefile" ;;
20343 "ext/mt-random/Makefile") CONFIG_FILES="$CONFIG_FILES ext/mt-random/Makefile" ;;
20344 "ext/native/Makefile") CONFIG_FILES="$CONFIG_FILES ext/native/Makefile" ;;
20345 "ext/peg/Makefile") CONFIG_FILES="$CONFIG_FILES ext/peg/Makefile" ;;
20346 "ext/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES ext/scheme/Makefile" ;;
20347 "ext/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES ext/sparse/Makefile" ;;
20348 "ext/srfi/Makefile") CONFIG_FILES="$CONFIG_FILES ext/srfi/Makefile" ;;
20349 "ext/sxml/Makefile") CONFIG_FILES="$CONFIG_FILES ext/sxml/Makefile" ;;
20350 "ext/syslog/Makefile") CONFIG_FILES="$CONFIG_FILES ext/syslog/Makefile" ;;
20351 "ext/tls/Makefile") CONFIG_FILES="$CONFIG_FILES ext/tls/Makefile" ;;
20352 "ext/termios/Makefile") CONFIG_FILES="$CONFIG_FILES ext/termios/Makefile" ;;
20353 "ext/text/Makefile") CONFIG_FILES="$CONFIG_FILES ext/text/Makefile" ;;
20354 "ext/util/Makefile") CONFIG_FILES="$CONFIG_FILES ext/util/Makefile" ;;
20355 "ext/uvector/Makefile") CONFIG_FILES="$CONFIG_FILES ext/uvector/Makefile" ;;
20356 "ext/vport/Makefile") CONFIG_FILES="$CONFIG_FILES ext/vport/Makefile" ;;
20357 "ext/rfc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/rfc/Makefile" ;;
20358 "ext/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES ext/zlib/Makefile" ;;
20359 "ext/windows/Makefile") CONFIG_FILES="$CONFIG_FILES ext/windows/Makefile" ;;
20360 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20361 "examples/standalone/Makefile") CONFIG_FILES="$CONFIG_FILES examples/standalone/Makefile" ;;
20362 "gc/configure.gnu-gauche") CONFIG_FILES="$CONFIG_FILES gc/configure.gnu-gauche:tools/gc-configure.gnu-gauche.in" ;;
20363 "Gauche.spec") CONFIG_FILES="$CONFIG_FILES Gauche.spec" ;;
20364 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20365 "tools/scoop/Makefile") CONFIG_FILES="$CONFIG_FILES tools/scoop/Makefile" ;;
20366 "tools/tls/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tls/Makefile" ;;
20367 "VERSION") CONFIG_COMMANDS="$CONFIG_COMMANDS VERSION" ;;
20368 "src/features") CONFIG_COMMANDS="$CONFIG_COMMANDS src/features" ;;
20369
20370 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20371 esac
20372 done
20373
20374
20375 # If the user did not use the arguments to specify the items to instantiate,
20376 # then the envvar interface is used. Set only those that are not.
20377 # We use the long form for the default assignment because of an extremely
20378 # bizarre bug on SunOS 4.1.3.
20379 if $ac_need_defaults; then
20380 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20381 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20382 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20383 fi
20384
20385 # Have a temporary directory for convenience. Make it in the build tree
20386 # simply because there is no reason against having it here, and in addition,
20387 # creating and moving files from /tmp can sometimes cause problems.
20388 # Hook for its removal unless debugging.
20389 # Note that there is a small window in which the directory will not be cleaned:
20390 # after its creation but before its name has been assigned to `$tmp'.
20391 $debug ||
20392 {
20393 tmp= ac_tmp=
20394 trap 'exit_status=$?
20395 : "${ac_tmp:=$tmp}"
20396 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20397 ' 0
20398 trap 'as_fn_exit 1' 1 2 13 15
20399 }
20400 # Create a (secure) tmp directory for tmp files.
20401
20402 {
20403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20404 test -d "$tmp"
20405 } ||
20406 {
20407 tmp=./conf$$-$RANDOM
20408 (umask 077 && mkdir "$tmp")
20409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20410 ac_tmp=$tmp
20411
20412 # Set up the scripts for CONFIG_FILES section.
20413 # No need to generate them if there are no CONFIG_FILES.
20414 # This happens for instance with `./config.status config.h'.
20415 if test -n "$CONFIG_FILES"; then
20416
20417
20418 ac_cr=`echo X | tr X '\015'`
20419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20420 # But we know of no other shell where ac_cr would be empty at this
20421 # point, so we can use a bashism as a fallback.
20422 if test "x$ac_cr" = x; then
20423 eval ac_cr=\$\'\\r\'
20424 fi
20425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20427 ac_cs_awk_cr='\\r'
20428 else
20429 ac_cs_awk_cr=$ac_cr
20430 fi
20431
20432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20433 _ACEOF
20434
20435
20436 {
20437 echo "cat >conf$$subs.awk <<_ACEOF" &&
20438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20439 echo "_ACEOF"
20440 } >conf$$subs.sh ||
20441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20443 ac_delim='%!_!# '
20444 for ac_last_try in false false false false false :; do
20445 . ./conf$$subs.sh ||
20446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20447
20448 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20449 if test $ac_delim_n = $ac_delim_num; then
20450 break
20451 elif $ac_last_try; then
20452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20453 else
20454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20455 fi
20456 done
20457 rm -f conf$$subs.sh
20458
20459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20461 _ACEOF
20462 sed -n '
20463 h
20464 s/^/S["/; s/!.*/"]=/
20465 p
20466 g
20467 s/^[^!]*!//
20468 :repl
20469 t repl
20470 s/'"$ac_delim"'$//
20471 t delim
20472 :nl
20473 h
20474 s/\(.\{148\}\)..*/\1/
20475 t more1
20476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20477 p
20478 n
20479 b repl
20480 :more1
20481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20482 p
20483 g
20484 s/.\{148\}//
20485 t nl
20486 :delim
20487 h
20488 s/\(.\{148\}\)..*/\1/
20489 t more2
20490 s/["\\]/\\&/g; s/^/"/; s/$/"/
20491 p
20492 b
20493 :more2
20494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20495 p
20496 g
20497 s/.\{148\}//
20498 t delim
20499 ' <conf$$subs.awk | sed '
20500 /^[^""]/{
20501 N
20502 s/\n//
20503 }
20504 ' >>$CONFIG_STATUS || ac_write_fail=1
20505 rm -f conf$$subs.awk
20506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20507 _ACAWK
20508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20509 for (key in S) S_is_set[key] = 1
20510 FS = ""
20511
20512 }
20513 {
20514 line = $ 0
20515 nfields = split(line, field, "@")
20516 substed = 0
20517 len = length(field[1])
20518 for (i = 2; i < nfields; i++) {
20519 key = field[i]
20520 keylen = length(key)
20521 if (S_is_set[key]) {
20522 value = S[key]
20523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20524 len += length(value) + length(field[++i])
20525 substed = 1
20526 } else
20527 len += 1 + keylen
20528 }
20529
20530 print line
20531 }
20532
20533 _ACAWK
20534 _ACEOF
20535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20538 else
20539 cat
20540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20541 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20542 _ACEOF
20543
20544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20546 # trailing colons and then remove the whole line if VPATH becomes empty
20547 # (actually we leave an empty line to preserve line numbers).
20548 if test "x$srcdir" = x.; then
20549 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20550 h
20551 s///
20552 s/^/:/
20553 s/[ ]*$/:/
20554 s/:\$(srcdir):/:/g
20555 s/:\${srcdir}:/:/g
20556 s/:@srcdir@:/:/g
20557 s/^:*//
20558 s/:*$//
20559 x
20560 s/\(=[ ]*\).*/\1/
20561 G
20562 s/\n//
20563 s/^[^=]*=[ ]*$//
20564 }'
20565 fi
20566
20567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20568 fi # test -n "$CONFIG_FILES"
20569
20570 # Set up the scripts for CONFIG_HEADERS section.
20571 # No need to generate them if there are no CONFIG_HEADERS.
20572 # This happens for instance with `./config.status Makefile'.
20573 if test -n "$CONFIG_HEADERS"; then
20574 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20575 BEGIN {
20576 _ACEOF
20577
20578 # Transform confdefs.h into an awk script `defines.awk', embedded as
20579 # here-document in config.status, that substitutes the proper values into
20580 # config.h.in to produce config.h.
20581
20582 # Create a delimiter string that does not exist in confdefs.h, to ease
20583 # handling of long lines.
20584 ac_delim='%!_!# '
20585 for ac_last_try in false false :; do
20586 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20587 if test -z "$ac_tt"; then
20588 break
20589 elif $ac_last_try; then
20590 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20591 else
20592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20593 fi
20594 done
20595
20596 # For the awk script, D is an array of macro values keyed by name,
20597 # likewise P contains macro parameters if any. Preserve backslash
20598 # newline sequences.
20599
20600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20601 sed -n '
20602 s/.\{148\}/&'"$ac_delim"'/g
20603 t rset
20604 :rset
20605 s/^[ ]*#[ ]*define[ ][ ]*/ /
20606 t def
20607 d
20608 :def
20609 s/\\$//
20610 t bsnl
20611 s/["\\]/\\&/g
20612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20613 D["\1"]=" \3"/p
20614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20615 d
20616 :bsnl
20617 s/["\\]/\\&/g
20618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20619 D["\1"]=" \3\\\\\\n"\\/p
20620 t cont
20621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20622 t cont
20623 d
20624 :cont
20625 n
20626 s/.\{148\}/&'"$ac_delim"'/g
20627 t clear
20628 :clear
20629 s/\\$//
20630 t bsnlc
20631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20632 d
20633 :bsnlc
20634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20635 b cont
20636 ' <confdefs.h | sed '
20637 s/'"$ac_delim"'/"\\\
20638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20639
20640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20641 for (key in D) D_is_set[key] = 1
20642 FS = ""
20643 }
20644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20645 line = \$ 0
20646 split(line, arg, " ")
20647 if (arg[1] == "#") {
20648 defundef = arg[2]
20649 mac1 = arg[3]
20650 } else {
20651 defundef = substr(arg[1], 2)
20652 mac1 = arg[2]
20653 }
20654 split(mac1, mac2, "(") #)
20655 macro = mac2[1]
20656 prefix = substr(line, 1, index(line, defundef) - 1)
20657 if (D_is_set[macro]) {
20658 # Preserve the white space surrounding the "#".
20659 print prefix "define", macro P[macro] D[macro]
20660 next
20661 } else {
20662 # Replace #undef with comments. This is necessary, for example,
20663 # in the case of _POSIX_SOURCE, which is predefined and required
20664 # on some systems where configure will not decide to define it.
20665 if (defundef == "undef") {
20666 print "/*", prefix defundef, macro, "*/"
20667 next
20668 }
20669 }
20670 }
20671 { print }
20672 _ACAWK
20673 _ACEOF
20674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20675 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20676 fi # test -n "$CONFIG_HEADERS"
20677
20678
20679 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20680 shift
20681 for ac_tag
20682 do
20683 case $ac_tag in
20684 :[FHLC]) ac_mode=$ac_tag; continue;;
20685 esac
20686 case $ac_mode$ac_tag in
20687 :[FHL]*:*);;
20688 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20689 :[FH]-) ac_tag=-:-;;
20690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20691 esac
20692 ac_save_IFS=$IFS
20693 IFS=:
20694 set x $ac_tag
20695 IFS=$ac_save_IFS
20696 shift
20697 ac_file=$1
20698 shift
20699
20700 case $ac_mode in
20701 :L) ac_source=$1;;
20702 :[FH])
20703 ac_file_inputs=
20704 for ac_f
20705 do
20706 case $ac_f in
20707 -) ac_f="$ac_tmp/stdin";;
20708 *) # Look for the file first in the build tree, then in the source tree
20709 # (if the path is not absolute). The absolute path cannot be DOS-style,
20710 # because $ac_f cannot contain `:'.
20711 test -f "$ac_f" ||
20712 case $ac_f in
20713 [\\/$]*) false;;
20714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20715 esac ||
20716 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20717 esac
20718 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20719 as_fn_append ac_file_inputs " '$ac_f'"
20720 done
20721
20722 # Let's still pretend it is `configure' which instantiates (i.e., don't
20723 # use $as_me), people would be surprised to read:
20724 # /* config.h. Generated by config.status. */
20725 configure_input='Generated from '`
20726 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20727 `' by configure.'
20728 if test x"$ac_file" != x-; then
20729 configure_input="$ac_file. $configure_input"
20730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20731 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20732 fi
20733 # Neutralize special characters interpreted by sed in replacement strings.
20734 case $configure_input in #(
20735 *\&* | *\|* | *\\* )
20736 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20738 *) ac_sed_conf_input=$configure_input;;
20739 esac
20740
20741 case $ac_tag in
20742 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20744 esac
20745 ;;
20746 esac
20747
20748 ac_dir=`$as_dirname -- "$ac_file" ||
20749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20750 X"$ac_file" : 'X\(//\)[^/]' \| \
20751 X"$ac_file" : 'X\(//\)$' \| \
20752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20753 printf "%s\n" X"$ac_file" |
20754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20755 s//\1/
20756 q
20757 }
20758 /^X\(\/\/\)[^/].*/{
20759 s//\1/
20760 q
20761 }
20762 /^X\(\/\/\)$/{
20763 s//\1/
20764 q
20765 }
20766 /^X\(\/\).*/{
20767 s//\1/
20768 q
20769 }
20770 s/.*/./; q'`
20771 as_dir="$ac_dir"; as_fn_mkdir_p
20772 ac_builddir=.
20773
20774 case "$ac_dir" in
20775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20776 *)
20777 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20778 # A ".." for each directory in $ac_dir_suffix.
20779 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20780 case $ac_top_builddir_sub in
20781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20783 esac ;;
20784 esac
20785 ac_abs_top_builddir=$ac_pwd
20786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20787 # for backward compatibility:
20788 ac_top_builddir=$ac_top_build_prefix
20789
20790 case $srcdir in
20791 .) # We are building in place.
20792 ac_srcdir=.
20793 ac_top_srcdir=$ac_top_builddir_sub
20794 ac_abs_top_srcdir=$ac_pwd ;;
20795 [\\/]* | ?:[\\/]* ) # Absolute name.
20796 ac_srcdir=$srcdir$ac_dir_suffix;
20797 ac_top_srcdir=$srcdir
20798 ac_abs_top_srcdir=$srcdir ;;
20799 *) # Relative name.
20800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20801 ac_top_srcdir=$ac_top_build_prefix$srcdir
20802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20803 esac
20804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20805
20806
20807 case $ac_mode in
20808 :F)
20809 #
20810 # CONFIG_FILE
20811 #
20812
20813 case $INSTALL in
20814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20816 esac
20817 _ACEOF
20818
20819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20820 # If the template does not know about datarootdir, expand it.
20821 # FIXME: This hack should be removed a few years after 2.60.
20822 ac_datarootdir_hack=; ac_datarootdir_seen=
20823 ac_sed_dataroot='
20824 /datarootdir/ {
20825 p
20826 q
20827 }
20828 /@datadir@/p
20829 /@docdir@/p
20830 /@infodir@/p
20831 /@localedir@/p
20832 /@mandir@/p'
20833 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20834 *datarootdir*) ac_datarootdir_seen=yes;;
20835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20837 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20838 _ACEOF
20839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20840 ac_datarootdir_hack='
20841 s&@datadir@&$datadir&g
20842 s&@docdir@&$docdir&g
20843 s&@infodir@&$infodir&g
20844 s&@localedir@&$localedir&g
20845 s&@mandir@&$mandir&g
20846 s&\\\${datarootdir}&$datarootdir&g' ;;
20847 esac
20848 _ACEOF
20849
20850 # Neutralize VPATH when `$srcdir' = `.'.
20851 # Shell code in configure.ac might set extrasub.
20852 # FIXME: do we really want to maintain this feature?
20853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20854 ac_sed_extra="$ac_vpsub
20855 $extrasub
20856 _ACEOF
20857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858 :t
20859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20860 s|@configure_input@|$ac_sed_conf_input|;t t
20861 s&@top_builddir@&$ac_top_builddir_sub&;t t
20862 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20863 s&@srcdir@&$ac_srcdir&;t t
20864 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20865 s&@top_srcdir@&$ac_top_srcdir&;t t
20866 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20867 s&@builddir@&$ac_builddir&;t t
20868 s&@abs_builddir@&$ac_abs_builddir&;t t
20869 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20870 s&@INSTALL@&$ac_INSTALL&;t t
20871 $ac_datarootdir_hack
20872 "
20873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20874 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20875
20876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20877 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20879 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20881 which seems to be undefined. Please make sure it is defined" >&5
20882 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20883 which seems to be undefined. Please make sure it is defined" >&2;}
20884
20885 rm -f "$ac_tmp/stdin"
20886 case $ac_file in
20887 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20888 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20889 esac \
20890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20891 ;;
20892 :H)
20893 #
20894 # CONFIG_HEADER
20895 #
20896 if test x"$ac_file" != x-; then
20897 {
20898 printf "%s\n" "/* $configure_input */" >&1 \
20899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20900 } >"$ac_tmp/config.h" \
20901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20902 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20904 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20905 else
20906 rm -f "$ac_file"
20907 mv "$ac_tmp/config.h" "$ac_file" \
20908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20909 fi
20910 else
20911 printf "%s\n" "/* $configure_input */" >&1 \
20912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20913 || as_fn_error $? "could not create -" "$LINENO" 5
20914 fi
20915 ;;
20916
20917 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20918 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20919 ;;
20920 esac
20921
20922
20923 case $ac_file$ac_mode in
20924 "libtool":C)
20925
20926 # See if we are running on zsh, and set the options that allow our
20927 # commands through without removal of \ escapes.
20928 if test -n "${ZSH_VERSION+set}"; then
20929 setopt NO_GLOB_SUBST
20930 fi
20931
20932 cfgfile=${ofile}T
20933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20934 $RM "$cfgfile"
20935
20936 cat <<_LT_EOF >> "$cfgfile"
20937 #! $SHELL
20938 # Generated automatically by $as_me ($PACKAGE) $VERSION
20939 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20940
20941 # Provide generalized library-building support services.
20942 # Written by Gordon Matzigkeit, 1996
20943
20944 # Copyright (C) 2014 Free Software Foundation, Inc.
20945 # This is free software; see the source for copying conditions. There is NO
20946 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20947
20948 # GNU Libtool is free software; you can redistribute it and/or modify
20949 # it under the terms of the GNU General Public License as published by
20950 # the Free Software Foundation; either version 2 of of the License, or
20951 # (at your option) any later version.
20952 #
20953 # As a special exception to the GNU General Public License, if you
20954 # distribute this file as part of a program or library that is built
20955 # using GNU Libtool, you may include this file under the same
20956 # distribution terms that you use for the rest of that program.
20957 #
20958 # GNU Libtool is distributed in the hope that it will be useful, but
20959 # WITHOUT ANY WARRANTY; without even the implied warranty of
20960 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20961 # GNU General Public License for more details.
20962 #
20963 # You should have received a copy of the GNU General Public License
20964 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20965
20966
20967 # The names of the tagged configurations supported by this script.
20968 available_tags=''
20969
20970 # Configured defaults for sys_lib_dlsearch_path munging.
20971 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20972
20973 # ### BEGIN LIBTOOL CONFIG
20974
20975 # Which release of libtool.m4 was used?
20976 macro_version=$macro_version
20977 macro_revision=$macro_revision
20978
20979 # Whether or not to build shared libraries.
20980 build_libtool_libs=$enable_shared
20981
20982 # Whether or not to build static libraries.
20983 build_old_libs=$enable_static
20984
20985 # What type of objects to build.
20986 pic_mode=$pic_mode
20987
20988 # Whether or not to optimize for fast installation.
20989 fast_install=$enable_fast_install
20990
20991 # Shared archive member basename,for filename based shared library versioning on AIX.
20992 shared_archive_member_spec=$shared_archive_member_spec
20993
20994 # Shell to use when invoking shell scripts.
20995 SHELL=$lt_SHELL
20996
20997 # An echo program that protects backslashes.
20998 ECHO=$lt_ECHO
20999
21000 # The PATH separator for the build system.
21001 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21002
21003 # The host system.
21004 host_alias=$host_alias
21005 host=$host
21006 host_os=$host_os
21007
21008 # The build system.
21009 build_alias=$build_alias
21010 build=$build
21011 build_os=$build_os
21012
21013 # A sed program that does not truncate output.
21014 SED=$lt_SED
21015
21016 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21017 Xsed="\$SED -e 1s/^X//"
21018
21019 # A grep program that handles long lines.
21020 GREP=$lt_GREP
21021
21022 # An ERE matcher.
21023 EGREP=$lt_EGREP
21024
21025 # A literal string matcher.
21026 FGREP=$lt_FGREP
21027
21028 # A BSD- or MS-compatible name lister.
21029 NM=$lt_NM
21030
21031 # Whether we need soft or hard links.
21032 LN_S=$lt_LN_S
21033
21034 # What is the maximum length of a command?
21035 max_cmd_len=$max_cmd_len
21036
21037 # Object file suffix (normally "o").
21038 objext=$ac_objext
21039
21040 # Executable file suffix (normally "").
21041 exeext=$exeext
21042
21043 # whether the shell understands "unset".
21044 lt_unset=$lt_unset
21045
21046 # turn spaces into newlines.
21047 SP2NL=$lt_lt_SP2NL
21048
21049 # turn newlines into spaces.
21050 NL2SP=$lt_lt_NL2SP
21051
21052 # convert \$build file names to \$host format.
21053 to_host_file_cmd=$lt_cv_to_host_file_cmd
21054
21055 # convert \$build files to toolchain format.
21056 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21057
21058 # An object symbol dumper.
21059 OBJDUMP=$lt_OBJDUMP
21060
21061 # Method to check whether dependent libraries are shared objects.
21062 deplibs_check_method=$lt_deplibs_check_method
21063
21064 # Command to use when deplibs_check_method = "file_magic".
21065 file_magic_cmd=$lt_file_magic_cmd
21066
21067 # How to find potential files when deplibs_check_method = "file_magic".
21068 file_magic_glob=$lt_file_magic_glob
21069
21070 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21071 want_nocaseglob=$lt_want_nocaseglob
21072
21073 # DLL creation program.
21074 DLLTOOL=$lt_DLLTOOL
21075
21076 # Command to associate shared and link libraries.
21077 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21078
21079 # The archiver.
21080 AR=$lt_AR
21081
21082 # Flags to create an archive.
21083 AR_FLAGS=$lt_AR_FLAGS
21084
21085 # How to feed a file listing to the archiver.
21086 archiver_list_spec=$lt_archiver_list_spec
21087
21088 # A symbol stripping program.
21089 STRIP=$lt_STRIP
21090
21091 # Commands used to install an old-style archive.
21092 RANLIB=$lt_RANLIB
21093 old_postinstall_cmds=$lt_old_postinstall_cmds
21094 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21095
21096 # Whether to use a lock for old archive extraction.
21097 lock_old_archive_extraction=$lock_old_archive_extraction
21098
21099 # A C compiler.
21100 LTCC=$lt_CC
21101
21102 # LTCC compiler flags.
21103 LTCFLAGS=$lt_CFLAGS
21104
21105 # Take the output of nm and produce a listing of raw symbols and C names.
21106 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21107
21108 # Transform the output of nm in a proper C declaration.
21109 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21110
21111 # Transform the output of nm into a list of symbols to manually relocate.
21112 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21113
21114 # Transform the output of nm in a C name address pair.
21115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21116
21117 # Transform the output of nm in a C name address pair when lib prefix is needed.
21118 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21119
21120 # The name lister interface.
21121 nm_interface=$lt_lt_cv_nm_interface
21122
21123 # Specify filename containing input files for \$NM.
21124 nm_file_list_spec=$lt_nm_file_list_spec
21125
21126 # The root where to search for dependent libraries,and where our libraries should be installed.
21127 lt_sysroot=$lt_sysroot
21128
21129 # Command to truncate a binary pipe.
21130 lt_truncate_bin=$lt_lt_cv_truncate_bin
21131
21132 # The name of the directory that contains temporary libtool files.
21133 objdir=$objdir
21134
21135 # Used to examine libraries when file_magic_cmd begins with "file".
21136 MAGIC_CMD=$MAGIC_CMD
21137
21138 # Must we lock files when doing compilation?
21139 need_locks=$lt_need_locks
21140
21141 # Manifest tool.
21142 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21143
21144 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21145 DSYMUTIL=$lt_DSYMUTIL
21146
21147 # Tool to change global to local symbols on Mac OS X.
21148 NMEDIT=$lt_NMEDIT
21149
21150 # Tool to manipulate fat objects and archives on Mac OS X.
21151 LIPO=$lt_LIPO
21152
21153 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21154 OTOOL=$lt_OTOOL
21155
21156 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21157 OTOOL64=$lt_OTOOL64
21158
21159 # Old archive suffix (normally "a").
21160 libext=$libext
21161
21162 # Shared library suffix (normally ".so").
21163 shrext_cmds=$lt_shrext_cmds
21164
21165 # The commands to extract the exported symbol list from a shared archive.
21166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21167
21168 # Variables whose values should be saved in libtool wrapper scripts and
21169 # restored at link time.
21170 variables_saved_for_relink=$lt_variables_saved_for_relink
21171
21172 # Do we need the "lib" prefix for modules?
21173 need_lib_prefix=$need_lib_prefix
21174
21175 # Do we need a version for libraries?
21176 need_version=$need_version
21177
21178 # Library versioning type.
21179 version_type=$version_type
21180
21181 # Shared library runtime path variable.
21182 runpath_var=$runpath_var
21183
21184 # Shared library path variable.
21185 shlibpath_var=$shlibpath_var
21186
21187 # Is shlibpath searched before the hard-coded library search path?
21188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21189
21190 # Format of library name prefix.
21191 libname_spec=$lt_libname_spec
21192
21193 # List of archive names. First name is the real one, the rest are links.
21194 # The last name is the one that the linker finds with -lNAME
21195 library_names_spec=$lt_library_names_spec
21196
21197 # The coded name of the library, if different from the real name.
21198 soname_spec=$lt_soname_spec
21199
21200 # Permission mode override for installation of shared libraries.
21201 install_override_mode=$lt_install_override_mode
21202
21203 # Command to use after installation of a shared archive.
21204 postinstall_cmds=$lt_postinstall_cmds
21205
21206 # Command to use after uninstallation of a shared archive.
21207 postuninstall_cmds=$lt_postuninstall_cmds
21208
21209 # Commands used to finish a libtool library installation in a directory.
21210 finish_cmds=$lt_finish_cmds
21211
21212 # As "finish_cmds", except a single script fragment to be evaled but
21213 # not shown.
21214 finish_eval=$lt_finish_eval
21215
21216 # Whether we should hardcode library paths into libraries.
21217 hardcode_into_libs=$hardcode_into_libs
21218
21219 # Compile-time system search path for libraries.
21220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21221
21222 # Detected run-time system search path for libraries.
21223 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21224
21225 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21226 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21227
21228 # Whether dlopen is supported.
21229 dlopen_support=$enable_dlopen
21230
21231 # Whether dlopen of programs is supported.
21232 dlopen_self=$enable_dlopen_self
21233
21234 # Whether dlopen of statically linked programs is supported.
21235 dlopen_self_static=$enable_dlopen_self_static
21236
21237 # Commands to strip libraries.
21238 old_striplib=$lt_old_striplib
21239 striplib=$lt_striplib
21240
21241
21242 # The linker used to build libraries.
21243 LD=$lt_LD
21244
21245 # How to create reloadable object files.
21246 reload_flag=$lt_reload_flag
21247 reload_cmds=$lt_reload_cmds
21248
21249 # Commands used to build an old-style archive.
21250 old_archive_cmds=$lt_old_archive_cmds
21251
21252 # A language specific compiler.
21253 CC=$lt_compiler
21254
21255 # Is the compiler the GNU compiler?
21256 with_gcc=$GCC
21257
21258 # Compiler flag to turn off builtin functions.
21259 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21260
21261 # Additional compiler flags for building library objects.
21262 pic_flag=$lt_lt_prog_compiler_pic
21263
21264 # How to pass a linker flag through the compiler.
21265 wl=$lt_lt_prog_compiler_wl
21266
21267 # Compiler flag to prevent dynamic linking.
21268 link_static_flag=$lt_lt_prog_compiler_static
21269
21270 # Does compiler simultaneously support -c and -o options?
21271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21272
21273 # Whether or not to add -lc for building shared libraries.
21274 build_libtool_need_lc=$archive_cmds_need_lc
21275
21276 # Whether or not to disallow shared libs when runtime libs are static.
21277 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21278
21279 # Compiler flag to allow reflexive dlopens.
21280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21281
21282 # Compiler flag to generate shared objects directly from archives.
21283 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21284
21285 # Whether the compiler copes with passing no objects directly.
21286 compiler_needs_object=$lt_compiler_needs_object
21287
21288 # Create an old-style archive from a shared archive.
21289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21290
21291 # Create a temporary old-style archive to link instead of a shared archive.
21292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21293
21294 # Commands used to build a shared archive.
21295 archive_cmds=$lt_archive_cmds
21296 archive_expsym_cmds=$lt_archive_expsym_cmds
21297
21298 # Commands used to build a loadable module if different from building
21299 # a shared archive.
21300 module_cmds=$lt_module_cmds
21301 module_expsym_cmds=$lt_module_expsym_cmds
21302
21303 # Whether we are building with GNU ld or not.
21304 with_gnu_ld=$lt_with_gnu_ld
21305
21306 # Flag that allows shared libraries with undefined symbols to be built.
21307 allow_undefined_flag=$lt_allow_undefined_flag
21308
21309 # Flag that enforces no undefined symbols.
21310 no_undefined_flag=$lt_no_undefined_flag
21311
21312 # Flag to hardcode \$libdir into a binary during linking.
21313 # This must work even if \$libdir does not exist
21314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21315
21316 # Whether we need a single "-rpath" flag with a separated argument.
21317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21318
21319 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21320 # DIR into the resulting binary.
21321 hardcode_direct=$hardcode_direct
21322
21323 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21324 # DIR into the resulting binary and the resulting library dependency is
21325 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21326 # library is relocated.
21327 hardcode_direct_absolute=$hardcode_direct_absolute
21328
21329 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21330 # into the resulting binary.
21331 hardcode_minus_L=$hardcode_minus_L
21332
21333 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21334 # into the resulting binary.
21335 hardcode_shlibpath_var=$hardcode_shlibpath_var
21336
21337 # Set to "yes" if building a shared library automatically hardcodes DIR
21338 # into the library and all subsequent libraries and executables linked
21339 # against it.
21340 hardcode_automatic=$hardcode_automatic
21341
21342 # Set to yes if linker adds runtime paths of dependent libraries
21343 # to runtime path list.
21344 inherit_rpath=$inherit_rpath
21345
21346 # Whether libtool must link a program against all its dependency libraries.
21347 link_all_deplibs=$link_all_deplibs
21348
21349 # Set to "yes" if exported symbols are required.
21350 always_export_symbols=$always_export_symbols
21351
21352 # The commands to list exported symbols.
21353 export_symbols_cmds=$lt_export_symbols_cmds
21354
21355 # Symbols that should not be listed in the preloaded symbols.
21356 exclude_expsyms=$lt_exclude_expsyms
21357
21358 # Symbols that must always be exported.
21359 include_expsyms=$lt_include_expsyms
21360
21361 # Commands necessary for linking programs (against libraries) with templates.
21362 prelink_cmds=$lt_prelink_cmds
21363
21364 # Commands necessary for finishing linking programs.
21365 postlink_cmds=$lt_postlink_cmds
21366
21367 # Specify filename containing input files.
21368 file_list_spec=$lt_file_list_spec
21369
21370 # How to hardcode a shared library path into an executable.
21371 hardcode_action=$hardcode_action
21372
21373 # ### END LIBTOOL CONFIG
21374
21375 _LT_EOF
21376
21377 cat <<'_LT_EOF' >> "$cfgfile"
21378
21379 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21380
21381 # func_munge_path_list VARIABLE PATH
21382 # -----------------------------------
21383 # VARIABLE is name of variable containing _space_ separated list of
21384 # directories to be munged by the contents of PATH, which is string
21385 # having a format:
21386 # "DIR[:DIR]:"
21387 # string "DIR[ DIR]" will be prepended to VARIABLE
21388 # ":DIR[:DIR]"
21389 # string "DIR[ DIR]" will be appended to VARIABLE
21390 # "DIRP[:DIRP]::[DIRA:]DIRA"
21391 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21392 # "DIRA[ DIRA]" will be appended to VARIABLE
21393 # "DIR[:DIR]"
21394 # VARIABLE will be replaced by "DIR[ DIR]"
21395 func_munge_path_list ()
21396 {
21397 case x$2 in
21398 x)
21399 ;;
21400 *:)
21401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21402 ;;
21403 x:*)
21404 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21405 ;;
21406 *::*)
21407 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21408 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21409 ;;
21410 *)
21411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21412 ;;
21413 esac
21414 }
21415
21416
21417 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21418 func_cc_basename ()
21419 {
21420 for cc_temp in $*""; do
21421 case $cc_temp in
21422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21424 \-*) ;;
21425 *) break;;
21426 esac
21427 done
21428 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21429 }
21430
21431
21432 # ### END FUNCTIONS SHARED WITH CONFIGURE
21433
21434 _LT_EOF
21435
21436 case $host_os in
21437 aix3*)
21438 cat <<\_LT_EOF >> "$cfgfile"
21439 # AIX sometimes has problems with the GCC collect2 program. For some
21440 # reason, if we set the COLLECT_NAMES environment variable, the problems
21441 # vanish in a puff of smoke.
21442 if test set != "${COLLECT_NAMES+set}"; then
21443 COLLECT_NAMES=
21444 export COLLECT_NAMES
21445 fi
21446 _LT_EOF
21447 ;;
21448 esac
21449
21450
21451
21452 ltmain=$ac_aux_dir/ltmain.sh
21453
21454
21455 # We use sed instead of cat because bash on DJGPP gets confused if
21456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21457 # text mode, it properly converts lines to CR/LF. This bash problem
21458 # is reportedly fixed, but why not run on old versions too?
21459 sed '$q' "$ltmain" >> "$cfgfile" \
21460 || (rm -f "$cfgfile"; exit 1)
21461
21462 mv -f "$cfgfile" "$ofile" ||
21463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21464 chmod +x "$ofile"
21465
21466 ;;
21467 "VERSION":C) echo "${GAUCHE_VERSION}" > VERSION ;;
21468 "src/features":C) ${srcdir}/src/gen-features.sh ${ac_srcdir} ${ac_builddir} ${host} ;;
21469
21470 esac
21471 done # for ac_tag
21472
21473
21474 as_fn_exit 0
21475 _ACEOF
21476 ac_clean_files=$ac_clean_files_save
21477
21478 test $ac_write_fail = 0 ||
21479 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21480
21481
21482 # configure is writing to config.log, and then calls config.status.
21483 # config.status does its own redirection, appending to config.log.
21484 # Unfortunately, on DOS this fails, as config.log is still kept open
21485 # by configure, so config.status won't be able to write to it; its
21486 # output is simply discarded. So we exec the FD to /dev/null,
21487 # effectively closing config.log, so it can be properly (re)opened and
21488 # appended to by config.status. When coming back to configure, we
21489 # need to make the FD available again.
21490 if test "$no_create" != yes; then
21491 ac_cs_success=:
21492 ac_config_status_args=
21493 test "$silent" = yes &&
21494 ac_config_status_args="$ac_config_status_args --quiet"
21495 exec 5>/dev/null
21496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21497 exec 5>>config.log
21498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21499 # would make configure fail if this is the last instruction.
21500 $ac_cs_success || as_fn_exit 1
21501 fi
21502
21503 #
21504 # CONFIG_SUBDIRS section.
21505 #
21506 if test "$no_recursion" != yes; then
21507
21508 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21509 # so they do not pile up.
21510 ac_sub_configure_args=
21511 ac_prev=
21512 eval "set x $ac_configure_args"
21513 shift
21514 for ac_arg
21515 do
21516 if test -n "$ac_prev"; then
21517 ac_prev=
21518 continue
21519 fi
21520 case $ac_arg in
21521 -cache-file | --cache-file | --cache-fil | --cache-fi \
21522 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21523 ac_prev=cache_file ;;
21524 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21525 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21526 | --c=*)
21527 ;;
21528 --config-cache | -C)
21529 ;;
21530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21531 ac_prev=srcdir ;;
21532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21533 ;;
21534 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21535 ac_prev=prefix ;;
21536 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21537 ;;
21538 --disable-option-checking)
21539 ;;
21540 *)
21541 case $ac_arg in
21542 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21543 esac
21544 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21545 esac
21546 done
21547
21548 # Always prepend --prefix to ensure using the same prefix
21549 # in subdir configurations.
21550 ac_arg="--prefix=$prefix"
21551 case $ac_arg in
21552 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21553 esac
21554 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21555
21556 # Pass --silent
21557 if test "$silent" = yes; then
21558 ac_sub_configure_args="--silent $ac_sub_configure_args"
21559 fi
21560
21561 # Always prepend --disable-option-checking to silence warnings, since
21562 # different subdirs can have different --enable and --with options.
21563 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21564
21565 ac_popdir=`pwd`
21566 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21567
21568 # Do not complain, so a configure script can configure whichever
21569 # parts of a large source tree are present.
21570 test -d "$srcdir/$ac_dir" || continue
21571
21572 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21574 printf "%s\n" "$ac_msg" >&6
21575 as_dir="$ac_dir"; as_fn_mkdir_p
21576 ac_builddir=.
21577
21578 case "$ac_dir" in
21579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21580 *)
21581 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21582 # A ".." for each directory in $ac_dir_suffix.
21583 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21584 case $ac_top_builddir_sub in
21585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21587 esac ;;
21588 esac
21589 ac_abs_top_builddir=$ac_pwd
21590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21591 # for backward compatibility:
21592 ac_top_builddir=$ac_top_build_prefix
21593
21594 case $srcdir in
21595 .) # We are building in place.
21596 ac_srcdir=.
21597 ac_top_srcdir=$ac_top_builddir_sub
21598 ac_abs_top_srcdir=$ac_pwd ;;
21599 [\\/]* | ?:[\\/]* ) # Absolute name.
21600 ac_srcdir=$srcdir$ac_dir_suffix;
21601 ac_top_srcdir=$srcdir
21602 ac_abs_top_srcdir=$srcdir ;;
21603 *) # Relative name.
21604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21605 ac_top_srcdir=$ac_top_build_prefix$srcdir
21606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21607 esac
21608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21609
21610
21611 cd "$ac_dir"
21612
21613 # Check for configure.gnu first; this name is used for a wrapper for
21614 # Metaconfig's "Configure" on case-insensitive file systems.
21615 if test -f "$ac_srcdir/configure.gnu"; then
21616 ac_sub_configure=$ac_srcdir/configure.gnu
21617 elif test -f "$ac_srcdir/configure"; then
21618 ac_sub_configure=$ac_srcdir/configure
21619 else
21620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21621 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21622 ac_sub_configure=
21623 fi
21624
21625 # The recursion is here.
21626 if test -n "$ac_sub_configure"; then
21627 # Make the cache file name correct relative to the subdirectory.
21628 case $cache_file in
21629 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21630 *) # Relative name.
21631 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21632 esac
21633
21634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21635 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21636 # The eval makes quoting arguments work.
21637 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21638 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21639 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21640 fi
21641
21642 cd "$ac_popdir"
21643 done
21644 fi
21645 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21647 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21648 fi
21649
21650
21651
21652 OPTDBMS=`echo "$DBM_SCMFILES" | sed 's/\.sci//g'`
21653 if test "$ac_cv_use_zlib" = yes
21654 then :
21655 OPTZLIB=" zlib"
21656 else $as_nop
21657 OPTZLIB=" "
21658 fi
21659
21660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
21661 This Gauche has been configured with the following parameters:
21662 version: $GAUCHE_VERSION
21663 documentation: $build_doc
21664 slib: $SLIB_DIR
21665 thread: $GAUCHE_THREAD_TYPE
21666 tls/ssl: $GAUCHE_TLS_TYPES
21667 CA store: $TLS_CA_TYPE $TLS_CA_PATH
21668 optional modules: $OPTDBMS$OPTZLIB
21669 " >&5
21670 printf "%s\n" "
21671 This Gauche has been configured with the following parameters:
21672 version: $GAUCHE_VERSION
21673 documentation: $build_doc
21674 slib: $SLIB_DIR
21675 thread: $GAUCHE_THREAD_TYPE
21676 tls/ssl: $GAUCHE_TLS_TYPES
21677 CA store: $TLS_CA_TYPE $TLS_CA_PATH
21678 optional modules: $OPTDBMS$OPTZLIB
21679 " >&6; }
21680
21681 if test -z "$GAUCHE_TLS_TYPES" -a "$tls_explicitly_disabled" != yes
21682 then :
21683
21684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
21685 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21686 !!! No TLS support is configured. !!!
21687 !!! You won't be able to do TLS communication, such as connecting to !!!
21688 !!! websites with https. If this is not intended, check --with-tls !!!
21689 !!! configure option (type ./configure --help for the details). !!!
21690 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21691 " >&5
21692 printf "%s\n" "
21693 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21694 !!! No TLS support is configured. !!!
21695 !!! You won't be able to do TLS communication, such as connecting to !!!
21696 !!! websites with https. If this is not intended, check --with-tls !!!
21697 !!! configure option (type ./configure --help for the details). !!!
21698 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21699 " >&6; }
21700
21701 fi
21702