Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU APL 2.0.
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='GNU APL'
623 PACKAGE_TARNAME='apl'
624 PACKAGE_VERSION='2.0'
625 PACKAGE_STRING='GNU APL 2.0'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://www.gnu.org/software/apl/'
628
629 ac_default_prefix=/usr/local
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_unique_file="src"
663 ac_header_cxx_list=
664 ac_func_cxx_list=
665 ac_subst_vars='am__EXEEXT_FALSE
666 am__EXEEXT_TRUE
667 LTLIBOBJS
668 apl_BUILD_OS
669 apl_BUILD_DATE
670 RATIONAL_NUMBERS_WANTED
671 VISIBLE_MARKERS_WANTED
672 SHORT_VALUE_LENGTH_WANTED
673 APSERVER_PATH
674 APSERVER_PORT
675 APSERVER_TRANSPORT
676 CORE_COUNT_WANTED
677 SECURITY_LEVEL_WANTED
678 ASSERT_LEVEL_WANTED
679 VF_TRACING_WANTED
680 DYNAMIC_LOG_WANTED
681 GCOV_WANTED
682 GPROF_WANTED
683 VALUE_HISTORY_WANTED
684 PERFORMANCE_COUNTERS_WANTED
685 VALUE_CHECK_WANTED
686 ALT_MAP_WANTED
687 MAX_RANK_WANTED
688 apl_DEVELOP_FALSE
689 apl_DEVELOP_TRUE
690 DEVELOP_WANTED
691 CXX_WERROR
692 apl_TARGET_PYTHON_FALSE
693 apl_TARGET_PYTHON_TRUE
694 PYTHON_CFLAGS
695 apl_TARGET_LIBAPL_FALSE
696 apl_TARGET_LIBAPL_TRUE
697 apl_TARGET_ERLANG_FALSE
698 apl_TARGET_ERLANG_TRUE
699 apl_TARGET_ANDROID_FALSE
700 apl_TARGET_ANDROID_TRUE
701 HAVE_SEM_INIT_FALSE
702 HAVE_SEM_INIT_TRUE
703 apl_GTK3_FALSE
704 apl_GTK3_TRUE
705 GTK_CFLAGS
706 GTK_LDFLAGS
707 PKG_CONFIG
708 apl_GSL_FALSE
709 apl_GSL_TRUE
710 apl_PCRE_FALSE
711 apl_PCRE_TRUE
712 PCRE_CFLAGS
713 PCRE_LIBS
714 apl_POSTGRES_FALSE
715 apl_POSTGRES_TRUE
716 POSTGRESQL_LDFLAGS
717 POSTGRESQL_CFLAGS
718 POSTGRESQL_VERSION
719 PG_CONFIG
720 apl_SQLITE3_FALSE
721 apl_SQLITE3_TRUE
722 SQLITE3_VERSION
723 SQLITE3_LDFLAGS
724 SQLITE3_CFLAGS
725 apl_XCB_FALSE
726 apl_XCB_TRUE
727 apl_X11_FALSE
728 apl_X11_TRUE
729 XMKMF
730 POW_LIB
731 LIBOBJS
732 CXXCPP
733 LT_SYS_LIBRARY_PATH
734 OTOOL64
735 OTOOL
736 LIPO
737 NMEDIT
738 DSYMUTIL
739 MANIFEST_TOOL
740 RANLIB
741 am__fastdepCXX_FALSE
742 am__fastdepCXX_TRUE
743 CXXDEPMODE
744 ac_ct_CXX
745 CXXFLAGS
746 CXX
747 ac_ct_AR
748 AR
749 DLLTOOL
750 OBJDUMP
751 LN_S
752 NM
753 ac_ct_DUMPBIN
754 DUMPBIN
755 LD
756 FGREP
757 EGREP
758 GREP
759 SED
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 LIBTOOL
769 MAINT
770 MAINTAINER_MODE_FALSE
771 MAINTAINER_MODE_TRUE
772 AM_BACKSLASH
773 AM_DEFAULT_VERBOSITY
774 AM_DEFAULT_V
775 AM_V
776 CSCOPE
777 ETAGS
778 CTAGS
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__include
787 DEPDIR
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
817 CC
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 runstatedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL
857 am__quote'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_dependency_tracking
862 enable_silent_rules
863 enable_maintainer_mode
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_aix_soname
869 with_gnu_ld
870 with_sysroot
871 enable_libtool_lock
872 with_x
873 with_sqlite3
874 with_postgresql
875 with_pcre
876 with_gtk3
877 with_ctrld_del
878 with_android
879 with_erlang
880 with_libapl
881 with_python
882 with_optional_libs
883 '
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CC
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 CXX
893 CXXFLAGS
894 CCC
895 LT_SYS_LIBRARY_PATH
896 CXXCPP
897 XMKMF
898 CXX_WERROR
899 DEVELOP_WANTED
900 MAX_RANK_WANTED
901 ALT_MAP_WANTED
902 VALUE_CHECK_WANTED
903 PERFORMANCE_COUNTERS_WANTED
904 VALUE_HISTORY_WANTED
905 GPROF_WANTED
906 GCOV_WANTED
907 DYNAMIC_LOG_WANTED
908 VF_TRACING_WANTED
909 ASSERT_LEVEL_WANTED
910 SECURITY_LEVEL_WANTED
911 CORE_COUNT_WANTED
912 APSERVER_TRANSPORT
913 APSERVER_PORT
914 APSERVER_PATH
915 SHORT_VALUE_LENGTH_WANTED
916 VISIBLE_MARKERS_WANTED
917 RATIONAL_NUMBERS_WANTED'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 runstatedir='${localstatedir}/run'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
968
969 ac_prev=
970 ac_dashdash=
971 for ac_option
972 do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
978 fi
979
980 case $ac_option in
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
989
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
994
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1009
1010 -datadir | --datadir | --datadi | --datad)
1011 ac_prev=datadir ;;
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1014
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
1022 -disable-* | --disable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1047
1048 -enable-* | --enable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1083
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1088
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1118
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
1125 | --localstate | --localstat | --localsta | --localst | --locals)
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129 localstatedir=$ac_optarg ;;
1130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1135
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1156
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1192
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
1207 -runstatedir | --runstatedir | --runstatedi | --runstated \
1208 | --runstate | --runstat | --runsta | --runst | --runs \
1209 | --run | --ru | --r)
1210 ac_prev=runstatedir ;;
1211 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1212 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1213 | --run=* | --ru=* | --r=*)
1214 runstatedir=$ac_optarg ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
1220 sbindir=$ac_optarg ;;
1221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
1231 sharedstatedir=$ac_optarg ;;
1232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
1236 site=$ac_optarg ;;
1237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1260
1261 -with-* | --with-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: \`$ac_useropt'"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=\$ac_optarg ;;
1276
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error $? "invalid package name: \`$ac_useropt'"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information"
1313 ;;
1314
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321 esac
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1331 ;;
1332
1333 esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error $? "missing argument to $ac_option"
1339 fi
1340
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir runstatedir
1354 do
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 elif test "x$build_alias" != "x$host_alias"; then
1382 cross_compiling=yes
1383 fi
1384 fi
1385
1386 ac_tool_prefix=
1387 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389 test "$silent" = yes && exec 6>/dev/null
1390
1391
1392 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393 ac_ls_di=`ls -di .` &&
1394 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395 as_fn_error $? "working directory cannot be determined"
1396 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397 as_fn_error $? "pwd does not report name of working directory"
1398
1399
1400 # Find the source files, if location was not specified.
1401 if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409 printf "%s\n" X"$as_myself" |
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
1427 srcdir=$ac_confdir
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 srcdir=..
1430 fi
1431 else
1432 ac_srcdir_defaulted=no
1433 fi
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1437 fi
1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 ac_abs_confdir=`(
1440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445 fi
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1458
1459 #
1460 # Report the --help message.
1461 #
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures GNU APL 2.0 to adapt to many kinds of systems.
1467
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473 Defaults for the options are specified in brackets.
1474
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking ...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1491
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1496
1497 For better control, use the options below.
1498
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/apl]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1520 _ACEOF
1521
1522 cat <<\_ACEOF
1523
1524 Program names:
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1528
1529 X features:
1530 --x-includes=DIR X include files are in DIR
1531 --x-libraries=DIR X library files are in DIR
1532
1533 System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 _ACEOF
1537 fi
1538
1539 if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of GNU APL 2.0:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545 Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-dependency-tracking
1550 do not reject slow dependency extractors
1551 --disable-dependency-tracking
1552 speeds up one-time build
1553 --enable-silent-rules less verbose build output (undo: "make V=1")
1554 --disable-silent-rules verbose build output (undo: "make V=0")
1555 --enable-maintainer-mode
1556 enable make rules and dependencies not useful (and
1557 sometimes confusing) to the casual installer
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1568 both]
1569 --with-aix-soname=aix|svr4|both
1570 shared library versioning (aka "SONAME") variant to
1571 provide on AIX, [default=aix].
1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1573 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1574 compiler's sysroot if not specified).
1575 --with-x use the X Window System
1576 --with-sqlite3=[PATH] use SQLite 3 library [default=yes], optionally
1577 specify the PATH for sqlite3 library
1578 --with-postgresql=[PATH]
1579 use PostgreSQL library [default=yes], optionally
1580 specify the PATH to pg_config
1581 --with-pcre[=prefix] enable ⎕RE (needs libpcre2)
1582 --with-gtk3 enable ⎕GTK (interface to GTK+ version 3; needs
1583 libgtk-3 and more)
1584 --with-ctrld_del enable to use ^D as del-char, ^Z as EOT
1585 --with-android enable when compiling for Android
1586 --with-erlang enable to build the Erlang interface
1587 --with-libapl enable to build libapl.so
1588 --with-python enable to build python extension lib_gnu_apl.so
1589 --with-optional_libs disable to prevent the use of optional libraries
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1601 LT_SYS_LIBRARY_PATH
1602 User-defined run-time library search path.
1603 CXXCPP C++ preprocessor
1604 XMKMF Path to xmkmf, Makefile generator for X Window System
1605 CXX_WERROR turn all warnings into errors (compiler flag -Werror) default:
1606 no)
1607 DEVELOP_WANTED
1608 set development options (see README-2-configure) default: no
1609 MAX_RANK_WANTED
1610 the max. Rank of APL values (see README-2-configure) default: 8)
1611 ALT_MAP_WANTED
1612 Alt-key map profile (see README-2-configure) default: 0 (none))
1613 VALUE_CHECK_WANTED
1614 enable Value::check_value() (see README-2-configure) default: no
1615 PERFORMANCE_COUNTERS_WANTED
1616 enable performance counters (see README-2-configure) default: no
1617 VALUE_HISTORY_WANTED
1618 enable value events (a debug facility, see README-2-configure)
1619 default: no
1620 GPROF_WANTED
1621 enable gprof (-pg) (see README-2-configure) default: no
1622 GCOV_WANTED enable gcov (-fprofile-arcs and -ftest-coverage) (see
1623 README-2-configure) default: no
1624 DYNAMIC_LOG_WANTED
1625 enable dynamic logging (see README-2-configure) default: no
1626 VF_TRACING_WANTED
1627 enable tracing of value flags (see README-2-configure) default:
1628 no
1629 ASSERT_LEVEL_WANTED
1630 Assert level (see README-2-configure) default: 1)
1631 SECURITY_LEVEL_WANTED
1632 Assert level (see README-2-configure) default: 0)
1633 CORE_COUNT_WANTED
1634 Core count (see README-2-configure) default: 0)
1635 APSERVER_TRANSPORT
1636 APserver transport (see README-2-configure) default: TCP)
1637 APSERVER_PORT
1638 APserver transport (see README-2-configure) default: 16366)
1639 APSERVER_PATH
1640 APserver transport (see README-2-configure) default:
1641 /tmp/GNU-APL/APserver)
1642 SHORT_VALUE_LENGTH_WANTED
1643 Cellcount of short values (see README-2-configure) default: 12)
1644 VISIBLE_MARKERS_WANTED
1645 enable visible formatting markers (debug facility, see
1646 README-2-configure) default: no
1647 RATIONAL_NUMBERS_WANTED
1648 enable support for rational numbers (see README-2-configure)
1649 default: no
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to <[email protected]>.
1655 GNU APL home page: <https://www.gnu.org/software/apl/>.
1656 General help using GNU software: <https://www.gnu.org/gethelp/>.
1657 _ACEOF
1658 ac_status=$?
1659 fi
1660
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 continue
1667 ac_builddir=.
1668
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *)
1672 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1684
1685 case $srcdir in
1686 .) # We are building in place.
1687 ac_srcdir=.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1694 *) # Relative name.
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for configure.gnu first; this name is used for a wrapper for
1703 # Metaconfig's "Configure" on case-insensitive file systems.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1710 else
1711 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1714 done
1715 fi
1716
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1719 cat <<\_ACEOF
1720 GNU APL configure 2.0
1721 generated by GNU Autoconf 2.71
1722
1723 Copyright (C) 2021 Free Software Foundation, Inc.
1724 This configure script is free software; the Free Software Foundation
1725 gives unlimited permission to copy, distribute and modify it.
1726 _ACEOF
1727 exit
1728 fi
1729
1730 ## ------------------------ ##
1731 ## Autoconf initialization. ##
1732 ## ------------------------ ##
1733
1734 # ac_fn_c_try_compile LINENO
1735 # --------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest.beam
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 printf "%s\n" "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext
1760 then :
1761 ac_retval=0
1762 else $as_nop
1763 printf "%s\n" "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_compile
1772
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 printf %s "checking for $2... " >&6; }
1782 if eval test \${$3+y}
1783 then :
1784 printf %s "(cached) " >&6
1785 else $as_nop
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"
1792 then :
1793 eval "$3=yes"
1794 else $as_nop
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 printf "%s\n" "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_header_compile
1805
1806 # ac_fn_cxx_try_compile LINENO
1807 # ----------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_cxx_try_compile ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest.beam
1813 if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 printf "%s\n" "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext
1832 then :
1833 ac_retval=0
1834 else $as_nop
1835 printf "%s\n" "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839 fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_cxx_try_compile
1844
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_link ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 printf "%s\n" "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1865 fi
1866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 test -x conftest$ac_exeext
1873 }
1874 then :
1875 ac_retval=0
1876 else $as_nop
1877 printf "%s\n" "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890 } # ac_fn_c_try_link
1891
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 printf %s "checking for $2... " >&6; }
1900 if eval test \${$3+y}
1901 then :
1902 printf %s "(cached) " >&6
1903 else $as_nop
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1909
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below. */
1912
1913 #include <limits.h>
1914 #undef $2
1915
1916 /* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1919 #ifdef __cplusplus
1920 extern "C"
1921 #endif
1922 char $2 ();
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined __stub_$2 || defined __stub___$2
1927 choke me
1928 #endif
1929
1930 int
1931 main (void)
1932 {
1933 return $2 ();
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_link "$LINENO"
1939 then :
1940 eval "$3=yes"
1941 else $as_nop
1942 eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1945 conftest$ac_exeext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 printf "%s\n" "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_func
1953
1954 # ac_fn_cxx_try_cpp LINENO
1955 # ------------------------
1956 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_cxx_try_cpp ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 printf "%s\n" "$ac_try_echo"; } >&5
1967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } > conftest.i && {
1976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 }
1979 then :
1980 ac_retval=0
1981 else $as_nop
1982 printf "%s\n" "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986 fi
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1989
1990 } # ac_fn_cxx_try_cpp
1991
1992 # ac_fn_cxx_try_link LINENO
1993 # -------------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_link ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 printf "%s\n" "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2012 fi
2013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest$ac_exeext && {
2018 test "$cross_compiling" = yes ||
2019 test -x conftest$ac_exeext
2020 }
2021 then :
2022 ac_retval=0
2023 else $as_nop
2024 printf "%s\n" "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028 fi
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2036
2037 } # ac_fn_cxx_try_link
2038
2039 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2040 # ---------------------------------------------------------
2041 # Tests whether HEADER exists and can be compiled using the include files in
2042 # INCLUDES, setting the cache variable VAR accordingly.
2043 ac_fn_cxx_check_header_compile ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 printf %s "checking for $2... " >&6; }
2048 if eval test \${$3+y}
2049 then :
2050 printf %s "(cached) " >&6
2051 else $as_nop
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 #include <$2>
2056 _ACEOF
2057 if ac_fn_cxx_try_compile "$LINENO"
2058 then :
2059 eval "$3=yes"
2060 else $as_nop
2061 eval "$3=no"
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 printf "%s\n" "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_cxx_check_header_compile
2071
2072 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2073 # ---------------------------------------------
2074 # Tests whether TYPE exists after having included INCLUDES, setting cache
2075 # variable VAR accordingly.
2076 ac_fn_cxx_check_type ()
2077 {
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 printf %s "checking for $2... " >&6; }
2081 if eval test \${$3+y}
2082 then :
2083 printf %s "(cached) " >&6
2084 else $as_nop
2085 eval "$3=no"
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main (void)
2091 {
2092 if (sizeof ($2))
2093 return 0;
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_cxx_try_compile "$LINENO"
2099 then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main (void)
2105 {
2106 if (sizeof (($2)))
2107 return 0;
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_cxx_try_compile "$LINENO"
2113 then :
2114
2115 else $as_nop
2116 eval "$3=yes"
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 printf "%s\n" "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_cxx_check_type
2128
2129 # ac_fn_c_find_intX_t LINENO BITS VAR
2130 # -----------------------------------
2131 # Finds a signed integer type with width BITS, setting cache variable VAR
2132 # accordingly.
2133 ac_fn_c_find_intX_t ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2137 printf %s "checking for int$2_t... " >&6; }
2138 if eval test \${$3+y}
2139 then :
2140 printf %s "(cached) " >&6
2141 else $as_nop
2142 eval "$3=no"
2143 # Order is important - never check a type that is potentially smaller
2144 # than half of the expected target width.
2145 for ac_type in int$2_t 'int' 'long int' \
2146 'long long int' 'short int' 'signed char'; do
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $ac_includes_default
2150 enum { N = $2 / 2 - 1 };
2151 int
2152 main (void)
2153 {
2154 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2155 test_array [0] = 0;
2156 return test_array [0];
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_cxx_try_compile "$LINENO"
2163 then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $ac_includes_default
2167 enum { N = $2 / 2 - 1 };
2168 int
2169 main (void)
2170 {
2171 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2172 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2173 test_array [0] = 0;
2174 return test_array [0];
2175
2176 ;
2177 return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_cxx_try_compile "$LINENO"
2181 then :
2182
2183 else $as_nop
2184 case $ac_type in #(
2185 int$2_t) :
2186 eval "$3=yes" ;; #(
2187 *) :
2188 eval "$3=\$ac_type" ;;
2189 esac
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 if eval test \"x\$"$3"\" = x"no"
2195 then :
2196
2197 else $as_nop
2198 break
2199 fi
2200 done
2201 fi
2202 eval ac_res=\$$3
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 printf "%s\n" "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207 } # ac_fn_c_find_intX_t
2208
2209 # ac_fn_c_find_uintX_t LINENO BITS VAR
2210 # ------------------------------------
2211 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2212 # accordingly.
2213 ac_fn_c_find_uintX_t ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2217 printf %s "checking for uint$2_t... " >&6; }
2218 if eval test \${$3+y}
2219 then :
2220 printf %s "(cached) " >&6
2221 else $as_nop
2222 eval "$3=no"
2223 # Order is important - never check a type that is potentially smaller
2224 # than half of the expected target width.
2225 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2226 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 $ac_includes_default
2230 int
2231 main (void)
2232 {
2233 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2234 test_array [0] = 0;
2235 return test_array [0];
2236
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_cxx_try_compile "$LINENO"
2242 then :
2243 case $ac_type in #(
2244 uint$2_t) :
2245 eval "$3=yes" ;; #(
2246 *) :
2247 eval "$3=\$ac_type" ;;
2248 esac
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2251 if eval test \"x\$"$3"\" = x"no"
2252 then :
2253
2254 else $as_nop
2255 break
2256 fi
2257 done
2258 fi
2259 eval ac_res=\$$3
2260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 printf "%s\n" "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263
2264 } # ac_fn_c_find_uintX_t
2265
2266 # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2267 # ------------------------------------------------------
2268 # Tries to find if the field MEMBER exists in type AGGR, after including
2269 # INCLUDES, setting cache variable VAR accordingly.
2270 ac_fn_cxx_check_member ()
2271 {
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2274 printf %s "checking for $2.$3... " >&6; }
2275 if eval test \${$4+y}
2276 then :
2277 printf %s "(cached) " >&6
2278 else $as_nop
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $5
2282 int
2283 main (void)
2284 {
2285 static $2 ac_aggr;
2286 if (ac_aggr.$3)
2287 return 0;
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_cxx_try_compile "$LINENO"
2293 then :
2294 eval "$4=yes"
2295 else $as_nop
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $5
2299 int
2300 main (void)
2301 {
2302 static $2 ac_aggr;
2303 if (sizeof ac_aggr.$3)
2304 return 0;
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_cxx_try_compile "$LINENO"
2310 then :
2311 eval "$4=yes"
2312 else $as_nop
2313 eval "$4=no"
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2318 fi
2319 eval ac_res=\$$4
2320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 printf "%s\n" "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323
2324 } # ac_fn_cxx_check_member
2325
2326 # ac_fn_cxx_check_func LINENO FUNC VAR
2327 # ------------------------------------
2328 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2329 ac_fn_cxx_check_func ()
2330 {
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2333 printf %s "checking for $2... " >&6; }
2334 if eval test \${$3+y}
2335 then :
2336 printf %s "(cached) " >&6
2337 else $as_nop
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2342 #define $2 innocuous_$2
2343
2344 /* System header to define __stub macros and hopefully few prototypes,
2345 which can conflict with char $2 (); below. */
2346
2347 #include <limits.h>
2348 #undef $2
2349
2350 /* Override any GCC internal prototype to avoid an error.
2351 Use char because int might match the return type of a GCC
2352 builtin and then its argument prototype would still apply. */
2353 #ifdef __cplusplus
2354 extern "C"
2355 #endif
2356 char $2 ();
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined __stub_$2 || defined __stub___$2
2361 choke me
2362 #endif
2363
2364 int
2365 main (void)
2366 {
2367 return $2 ();
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_cxx_try_link "$LINENO"
2373 then :
2374 eval "$3=yes"
2375 else $as_nop
2376 eval "$3=no"
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2379 conftest$ac_exeext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$3
2382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 printf "%s\n" "$ac_res" >&6; }
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385
2386 } # ac_fn_cxx_check_func
2387
2388 # ac_fn_cxx_try_run LINENO
2389 # ------------------------
2390 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2391 # executables *can* be run.
2392 ac_fn_cxx_try_run ()
2393 {
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 if { { ac_try="$ac_link"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2401 printf "%s\n" "$ac_try_echo"; } >&5
2402 (eval "$ac_link") 2>&5
2403 ac_status=$?
2404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2405 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2406 { { case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409 esac
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 printf "%s\n" "$ac_try_echo"; } >&5
2412 (eval "$ac_try") 2>&5
2413 ac_status=$?
2414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; }; }
2416 then :
2417 ac_retval=0
2418 else $as_nop
2419 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2420 printf "%s\n" "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 ac_retval=$ac_status
2424 fi
2425 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427 as_fn_set_status $ac_retval
2428
2429 } # ac_fn_cxx_try_run
2430 ac_configure_args_raw=
2431 for ac_arg
2432 do
2433 case $ac_arg in
2434 *\'*)
2435 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 esac
2437 as_fn_append ac_configure_args_raw " '$ac_arg'"
2438 done
2439
2440 case $ac_configure_args_raw in
2441 *$as_nl*)
2442 ac_safe_unquote= ;;
2443 *)
2444 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2445 ac_unsafe_a="$ac_unsafe_z#~"
2446 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2447 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2448 esac
2449
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2453
2454 It was created by GNU APL $as_me 2.0, which was
2455 generated by GNU Autoconf 2.71. Invocation command line was
2456
2457 $ $0$ac_configure_args_raw
2458
2459 _ACEOF
2460 exec 5>>config.log
2461 {
2462 cat <<_ASUNAME
2463 ## --------- ##
2464 ## Platform. ##
2465 ## --------- ##
2466
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2472
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2475
2476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2483
2484 _ASUNAME
2485
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 case $as_dir in #(((
2491 '') as_dir=./ ;;
2492 */) ;;
2493 *) as_dir=$as_dir/ ;;
2494 esac
2495 printf "%s\n" "PATH: $as_dir"
2496 done
2497 IFS=$as_save_IFS
2498
2499 } >&5
2500
2501 cat >&5 <<_ACEOF
2502
2503
2504 ## ----------- ##
2505 ## Core tests. ##
2506 ## ----------- ##
2507
2508 _ACEOF
2509
2510
2511 # Keep a trace of the command line.
2512 # Strip out --no-create and --no-recursion so they do not pile up.
2513 # Strip out --silent because we don't want to record it for future runs.
2514 # Also quote any args containing shell meta-characters.
2515 # Make two passes to allow for proper duplicate-argument suppression.
2516 ac_configure_args=
2517 ac_configure_args0=
2518 ac_configure_args1=
2519 ac_must_keep_next=false
2520 for ac_pass in 1 2
2521 do
2522 for ac_arg
2523 do
2524 case $ac_arg in
2525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2527 | -silent | --silent | --silen | --sile | --sil)
2528 continue ;;
2529 *\'*)
2530 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 esac
2532 case $ac_pass in
2533 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2534 2)
2535 as_fn_append ac_configure_args1 " '$ac_arg'"
2536 if test $ac_must_keep_next = true; then
2537 ac_must_keep_next=false # Got value, back to normal.
2538 else
2539 case $ac_arg in
2540 *=* | --config-cache | -C | -disable-* | --disable-* \
2541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2543 | -with-* | --with-* | -without-* | --without-* | --x)
2544 case "$ac_configure_args0 " in
2545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2546 esac
2547 ;;
2548 -* ) ac_must_keep_next=true ;;
2549 esac
2550 fi
2551 as_fn_append ac_configure_args " '$ac_arg'"
2552 ;;
2553 esac
2554 done
2555 done
2556 { ac_configure_args0=; unset ac_configure_args0;}
2557 { ac_configure_args1=; unset ac_configure_args1;}
2558
2559 # When interrupted or exit'd, cleanup temporary files, and complete
2560 # config.log. We remove comments because anyway the quotes in there
2561 # would cause problems or look ugly.
2562 # WARNING: Use '\'' to represent an apostrophe within the trap.
2563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2564 trap 'exit_status=$?
2565 # Sanitize IFS.
2566 IFS=" "" $as_nl"
2567 # Save into config.log some information that might help in debugging.
2568 {
2569 echo
2570
2571 printf "%s\n" "## ---------------- ##
2572 ## Cache variables. ##
2573 ## ---------------- ##"
2574 echo
2575 # The following way of writing the cache mishandles newlines in values,
2576 (
2577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2578 eval ac_val=\$$ac_var
2579 case $ac_val in #(
2580 *${as_nl}*)
2581 case $ac_var in #(
2582 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2583 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2584 esac
2585 case $ac_var in #(
2586 _ | IFS | as_nl) ;; #(
2587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2588 *) { eval $ac_var=; unset $ac_var;} ;;
2589 esac ;;
2590 esac
2591 done
2592 (set) 2>&1 |
2593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2594 *${as_nl}ac_space=\ *)
2595 sed -n \
2596 "s/'\''/'\''\\\\'\'''\''/g;
2597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2598 ;; #(
2599 *)
2600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2601 ;;
2602 esac |
2603 sort
2604 )
2605 echo
2606
2607 printf "%s\n" "## ----------------- ##
2608 ## Output variables. ##
2609 ## ----------------- ##"
2610 echo
2611 for ac_var in $ac_subst_vars
2612 do
2613 eval ac_val=\$$ac_var
2614 case $ac_val in
2615 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616 esac
2617 printf "%s\n" "$ac_var='\''$ac_val'\''"
2618 done | sort
2619 echo
2620
2621 if test -n "$ac_subst_files"; then
2622 printf "%s\n" "## ------------------- ##
2623 ## File substitutions. ##
2624 ## ------------------- ##"
2625 echo
2626 for ac_var in $ac_subst_files
2627 do
2628 eval ac_val=\$$ac_var
2629 case $ac_val in
2630 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2631 esac
2632 printf "%s\n" "$ac_var='\''$ac_val'\''"
2633 done | sort
2634 echo
2635 fi
2636
2637 if test -s confdefs.h; then
2638 printf "%s\n" "## ----------- ##
2639 ## confdefs.h. ##
2640 ## ----------- ##"
2641 echo
2642 cat confdefs.h
2643 echo
2644 fi
2645 test "$ac_signal" != 0 &&
2646 printf "%s\n" "$as_me: caught signal $ac_signal"
2647 printf "%s\n" "$as_me: exit $exit_status"
2648 } >&5
2649 rm -f core *.core core.conftest.* &&
2650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2651 exit $exit_status
2652 ' 0
2653 for ac_signal in 1 2 13 15; do
2654 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2655 done
2656 ac_signal=0
2657
2658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2659 rm -f -r conftest* confdefs.h
2660
2661 printf "%s\n" "/* confdefs.h */" > confdefs.h
2662
2663 # Predefined preprocessor variables.
2664
2665 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2666
2667 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2668
2669 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2670
2671 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2672
2673 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2674
2675 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2676
2677
2678 # Let the site file select an alternate cache file if it wants to.
2679 # Prefer an explicitly selected file to automatically selected ones.
2680 if test -n "$CONFIG_SITE"; then
2681 ac_site_files="$CONFIG_SITE"
2682 elif test "x$prefix" != xNONE; then
2683 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2684 else
2685 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2686 fi
2687
2688 for ac_site_file in $ac_site_files
2689 do
2690 case $ac_site_file in #(
2691 */*) :
2692 ;; #(
2693 *) :
2694 ac_site_file=./$ac_site_file ;;
2695 esac
2696 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2698 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2699 sed 's/^/| /' "$ac_site_file" >&5
2700 . "$ac_site_file" \
2701 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2703 as_fn_error $? "failed to load site script $ac_site_file
2704 See \`config.log' for more details" "$LINENO" 5; }
2705 fi
2706 done
2707
2708 if test -r "$cache_file"; then
2709 # Some versions of bash will fail to source /dev/null (special files
2710 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2711 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2713 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2714 case $cache_file in
2715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2716 *) . "./$cache_file";;
2717 esac
2718 fi
2719 else
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2721 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2722 >$cache_file
2723 fi
2724
2725 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2726 # Test code for whether the C compiler supports C89 (global declarations)
2727 ac_c_conftest_c89_globals='
2728 /* Does the compiler advertise C89 conformance?
2729 Do not test the value of __STDC__, because some compilers set it to 0
2730 while being otherwise adequately conformant. */
2731 #if !defined __STDC__
2732 # error "Compiler does not advertise C89 conformance"
2733 #endif
2734
2735 #include <stddef.h>
2736 #include <stdarg.h>
2737 struct stat;
2738 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2739 struct buf { int x; };
2740 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2744 {
2745 return p[i];
2746 }
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2748 {
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2755 }
2756
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2758 function prototypes and stuff, but not \xHH hex character constants.
2759 These do not provoke an error unfortunately, instead are silently treated
2760 as an "x". The following induces an error, until -std is added to get
2761 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2762 array size at least. It is necessary to write \x00 == 0 to get something
2763 that is true only with -std. */
2764 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2765
2766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2767 inside strings and character constants. */
2768 #define FOO(x) '\''x'\''
2769 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2770
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2775 int, int);'
2776
2777 # Test code for whether the C compiler supports C89 (body of main).
2778 ac_c_conftest_c89_main='
2779 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2780 '
2781
2782 # Test code for whether the C compiler supports C99 (global declarations)
2783 ac_c_conftest_c99_globals='
2784 // Does the compiler advertise C99 conformance?
2785 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2786 # error "Compiler does not advertise C99 conformance"
2787 #endif
2788
2789 #include <stdbool.h>
2790 extern int puts (const char *);
2791 extern int printf (const char *, ...);
2792 extern int dprintf (int, const char *, ...);
2793 extern void *malloc (size_t);
2794
2795 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2796 // dprintf is used instead of fprintf to avoid needing to declare
2797 // FILE and stderr.
2798 #define debug(...) dprintf (2, __VA_ARGS__)
2799 #define showlist(...) puts (#__VA_ARGS__)
2800 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2801 static void
2802 test_varargs_macros (void)
2803 {
2804 int x = 1234;
2805 int y = 5678;
2806 debug ("Flag");
2807 debug ("X = %d\n", x);
2808 showlist (The first, second, and third items.);
2809 report (x>y, "x is %d but y is %d", x, y);
2810 }
2811
2812 // Check long long types.
2813 #define BIG64 18446744073709551615ull
2814 #define BIG32 4294967295ul
2815 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2816 #if !BIG_OK
2817 #error "your preprocessor is broken"
2818 #endif
2819 #if BIG_OK
2820 #else
2821 #error "your preprocessor is broken"
2822 #endif
2823 static long long int bignum = -9223372036854775807LL;
2824 static unsigned long long int ubignum = BIG64;
2825
2826 struct incomplete_array
2827 {
2828 int datasize;
2829 double data[];
2830 };
2831
2832 struct named_init {
2833 int number;
2834 const wchar_t *name;
2835 double average;
2836 };
2837
2838 typedef const char *ccp;
2839
2840 static inline int
2841 test_restrict (ccp restrict text)
2842 {
2843 // See if C++-style comments work.
2844 // Iterate through items via the restricted pointer.
2845 // Also check for declarations in for loops.
2846 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2847 continue;
2848 return 0;
2849 }
2850
2851 // Check varargs and va_copy.
2852 static bool
2853 test_varargs (const char *format, ...)
2854 {
2855 va_list args;
2856 va_start (args, format);
2857 va_list args_copy;
2858 va_copy (args_copy, args);
2859
2860 const char *str = "";
2861 int number = 0;
2862 float fnumber = 0;
2863
2864 while (*format)
2865 {
2866 switch (*format++)
2867 {
2868 case '\''s'\'': // string
2869 str = va_arg (args_copy, const char *);
2870 break;
2871 case '\''d'\'': // int
2872 number = va_arg (args_copy, int);
2873 break;
2874 case '\''f'\'': // float
2875 fnumber = va_arg (args_copy, double);
2876 break;
2877 default:
2878 break;
2879 }
2880 }
2881 va_end (args_copy);
2882 va_end (args);
2883
2884 return *str && number && fnumber;
2885 }
2886 '
2887
2888 # Test code for whether the C compiler supports C99 (body of main).
2889 ac_c_conftest_c99_main='
2890 // Check bool.
2891 _Bool success = false;
2892 success |= (argc != 0);
2893
2894 // Check restrict.
2895 if (test_restrict ("String literal") == 0)
2896 success = true;
2897 char *restrict newvar = "Another string";
2898
2899 // Check varargs.
2900 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2901 test_varargs_macros ();
2902
2903 // Check flexible array members.
2904 struct incomplete_array *ia =
2905 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2906 ia->datasize = 10;
2907 for (int i = 0; i < ia->datasize; ++i)
2908 ia->data[i] = i * 1.234;
2909
2910 // Check named initializers.
2911 struct named_init ni = {
2912 .number = 34,
2913 .name = L"Test wide string",
2914 .average = 543.34343,
2915 };
2916
2917 ni.number = 58;
2918
2919 int dynamic_array[ni.number];
2920 dynamic_array[0] = argv[0][0];
2921 dynamic_array[ni.number - 1] = 543;
2922
2923 // work around unused variable warnings
2924 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2925 || dynamic_array[ni.number - 1] != 543);
2926 '
2927
2928 # Test code for whether the C compiler supports C11 (global declarations)
2929 ac_c_conftest_c11_globals='
2930 // Does the compiler advertise C11 conformance?
2931 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2932 # error "Compiler does not advertise C11 conformance"
2933 #endif
2934
2935 // Check _Alignas.
2936 char _Alignas (double) aligned_as_double;
2937 char _Alignas (0) no_special_alignment;
2938 extern char aligned_as_int;
2939 char _Alignas (0) _Alignas (int) aligned_as_int;
2940
2941 // Check _Alignof.
2942 enum
2943 {
2944 int_alignment = _Alignof (int),
2945 int_array_alignment = _Alignof (int[100]),
2946 char_alignment = _Alignof (char)
2947 };
2948 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2949
2950 // Check _Noreturn.
2951 int _Noreturn does_not_return (void) { for (;;) continue; }
2952
2953 // Check _Static_assert.
2954 struct test_static_assert
2955 {
2956 int x;
2957 _Static_assert (sizeof (int) <= sizeof (long int),
2958 "_Static_assert does not work in struct");
2959 long int y;
2960 };
2961
2962 // Check UTF-8 literals.
2963 #define u8 syntax error!
2964 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2965
2966 // Check duplicate typedefs.
2967 typedef long *long_ptr;
2968 typedef long int *long_ptr;
2969 typedef long_ptr long_ptr;
2970
2971 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2972 struct anonymous
2973 {
2974 union {
2975 struct { int i; int j; };
2976 struct { int k; long int l; } w;
2977 };
2978 int m;
2979 } v1;
2980 '
2981
2982 # Test code for whether the C compiler supports C11 (body of main).
2983 ac_c_conftest_c11_main='
2984 _Static_assert ((offsetof (struct anonymous, i)
2985 == offsetof (struct anonymous, w.k)),
2986 "Anonymous union alignment botch");
2987 v1.i = 2;
2988 v1.w.k = 5;
2989 ok |= v1.i != 5;
2990 '
2991
2992 # Test code for whether the C compiler supports C11 (complete).
2993 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2994 ${ac_c_conftest_c99_globals}
2995 ${ac_c_conftest_c11_globals}
2996
2997 int
2998 main (int argc, char **argv)
2999 {
3000 int ok = 0;
3001 ${ac_c_conftest_c89_main}
3002 ${ac_c_conftest_c99_main}
3003 ${ac_c_conftest_c11_main}
3004 return ok;
3005 }
3006 "
3007
3008 # Test code for whether the C compiler supports C99 (complete).
3009 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3010 ${ac_c_conftest_c99_globals}
3011
3012 int
3013 main (int argc, char **argv)
3014 {
3015 int ok = 0;
3016 ${ac_c_conftest_c89_main}
3017 ${ac_c_conftest_c99_main}
3018 return ok;
3019 }
3020 "
3021
3022 # Test code for whether the C compiler supports C89 (complete).
3023 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3024
3025 int
3026 main (int argc, char **argv)
3027 {
3028 int ok = 0;
3029 ${ac_c_conftest_c89_main}
3030 return ok;
3031 }
3032 "
3033
3034 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3035 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3036 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3037 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3038 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3039 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3040 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3041 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3042 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3043 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3044 # Test code for whether the C++ compiler supports C++98 (global declarations)
3045 ac_cxx_conftest_cxx98_globals='
3046 // Does the compiler advertise C++98 conformance?
3047 #if !defined __cplusplus || __cplusplus < 199711L
3048 # error "Compiler does not advertise C++98 conformance"
3049 #endif
3050
3051 // These inclusions are to reject old compilers that
3052 // lack the unsuffixed header files.
3053 #include <cstdlib>
3054 #include <exception>
3055
3056 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3057 extern void assert (int);
3058 namespace std {
3059 extern int strcmp (const char *, const char *);
3060 }
3061
3062 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3063 using std::exception;
3064 using std::strcmp;
3065
3066 namespace {
3067
3068 void test_exception_syntax()
3069 {
3070 try {
3071 throw "test";
3072 } catch (const char *s) {
3073 // Extra parentheses suppress a warning when building autoconf itself,
3074 // due to lint rules shared with more typical C programs.
3075 assert (!(strcmp) (s, "test"));
3076 }
3077 }
3078
3079 template <typename T> struct test_template
3080 {
3081 T const val;
3082 explicit test_template(T t) : val(t) {}
3083 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3084 };
3085
3086 } // anonymous namespace
3087 '
3088
3089 # Test code for whether the C++ compiler supports C++98 (body of main)
3090 ac_cxx_conftest_cxx98_main='
3091 assert (argc);
3092 assert (! argv[0]);
3093 {
3094 test_exception_syntax ();
3095 test_template<double> tt (2.0);
3096 assert (tt.add (4) == 6.0);
3097 assert (true && !false);
3098 }
3099 '
3100
3101 # Test code for whether the C++ compiler supports C++11 (global declarations)
3102 ac_cxx_conftest_cxx11_globals='
3103 // Does the compiler advertise C++ 2011 conformance?
3104 #if !defined __cplusplus || __cplusplus < 201103L
3105 # error "Compiler does not advertise C++11 conformance"
3106 #endif
3107
3108 namespace cxx11test
3109 {
3110 constexpr int get_val() { return 20; }
3111
3112 struct testinit
3113 {
3114 int i;
3115 double d;
3116 };
3117
3118 class delegate
3119 {
3120 public:
3121 delegate(int n) : n(n) {}
3122 delegate(): delegate(2354) {}
3123
3124 virtual int getval() { return this->n; };
3125 protected:
3126 int n;
3127 };
3128
3129 class overridden : public delegate
3130 {
3131 public:
3132 overridden(int n): delegate(n) {}
3133 virtual int getval() override final { return this->n * 2; }
3134 };
3135
3136 class nocopy
3137 {
3138 public:
3139 nocopy(int i): i(i) {}
3140 nocopy() = default;
3141 nocopy(const nocopy&) = delete;
3142 nocopy & operator=(const nocopy&) = delete;
3143 private:
3144 int i;
3145 };
3146
3147 // for testing lambda expressions
3148 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3149 {
3150 return f(v);
3151 }
3152
3153 // for testing variadic templates and trailing return types
3154 template <typename V> auto sum(V first) -> V
3155 {
3156 return first;
3157 }
3158 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3159 {
3160 return first + sum(rest...);
3161 }
3162 }
3163 '
3164
3165 # Test code for whether the C++ compiler supports C++11 (body of main)
3166 ac_cxx_conftest_cxx11_main='
3167 {
3168 // Test auto and decltype
3169 auto a1 = 6538;
3170 auto a2 = 48573953.4;
3171 auto a3 = "String literal";
3172
3173 int total = 0;
3174 for (auto i = a3; *i; ++i) { total += *i; }
3175
3176 decltype(a2) a4 = 34895.034;
3177 }
3178 {
3179 // Test constexpr
3180 short sa[cxx11test::get_val()] = { 0 };
3181 }
3182 {
3183 // Test initializer lists
3184 cxx11test::testinit il = { 4323, 435234.23544 };
3185 }
3186 {
3187 // Test range-based for
3188 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3189 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3190 for (auto &x : array) { x += 23; }
3191 }
3192 {
3193 // Test lambda expressions
3194 using cxx11test::eval;
3195 assert (eval ([](int x) { return x*2; }, 21) == 42);
3196 double d = 2.0;
3197 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3198 assert (d == 5.0);
3199 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3200 assert (d == 5.0);
3201 }
3202 {
3203 // Test use of variadic templates
3204 using cxx11test::sum;
3205 auto a = sum(1);
3206 auto b = sum(1, 2);
3207 auto c = sum(1.0, 2.0, 3.0);
3208 }
3209 {
3210 // Test constructor delegation
3211 cxx11test::delegate d1;
3212 cxx11test::delegate d2();
3213 cxx11test::delegate d3(45);
3214 }
3215 {
3216 // Test override and final
3217 cxx11test::overridden o1(55464);
3218 }
3219 {
3220 // Test nullptr
3221 char *c = nullptr;
3222 }
3223 {
3224 // Test template brackets
3225 test_template<::test_template<int>> v(test_template<int>(12));
3226 }
3227 {
3228 // Unicode literals
3229 char const *utf8 = u8"UTF-8 string \u2500";
3230 char16_t const *utf16 = u"UTF-8 string \u2500";
3231 char32_t const *utf32 = U"UTF-32 string \u2500";
3232 }
3233 '
3234
3235 # Test code for whether the C compiler supports C++11 (complete).
3236 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3237 ${ac_cxx_conftest_cxx11_globals}
3238
3239 int
3240 main (int argc, char **argv)
3241 {
3242 int ok = 0;
3243 ${ac_cxx_conftest_cxx98_main}
3244 ${ac_cxx_conftest_cxx11_main}
3245 return ok;
3246 }
3247 "
3248
3249 # Test code for whether the C compiler supports C++98 (complete).
3250 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3251 int
3252 main (int argc, char **argv)
3253 {
3254 int ok = 0;
3255 ${ac_cxx_conftest_cxx98_main}
3256 return ok;
3257 }
3258 "
3259
3260 as_fn_append ac_header_cxx_list " vfork.h vfork_h HAVE_VFORK_H"
3261 as_fn_append ac_func_cxx_list " fork HAVE_FORK"
3262 as_fn_append ac_func_cxx_list " vfork HAVE_VFORK"
3263 as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3264 as_fn_append ac_func_cxx_list " alarm HAVE_ALARM"
3265 as_fn_append ac_header_cxx_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3266 as_fn_append ac_func_cxx_list " getpagesize HAVE_GETPAGESIZE"
3267
3268 # Auxiliary files required by this configure script.
3269 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
3270
3271 # Locations in which to look for auxiliary files.
3272 ac_aux_dir_candidates="${srcdir}/."
3273
3274 # Search for a directory containing all of the required auxiliary files,
3275 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3276 # If we don't find one directory that contains all the files we need,
3277 # we report the set of missing files from the *first* directory in
3278 # $ac_aux_dir_candidates and give up.
3279 ac_missing_aux_files=""
3280 ac_first_candidate=:
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 as_found=false
3284 for as_dir in $ac_aux_dir_candidates
3285 do
3286 IFS=$as_save_IFS
3287 case $as_dir in #(((
3288 '') as_dir=./ ;;
3289 */) ;;
3290 *) as_dir=$as_dir/ ;;
3291 esac
3292 as_found=:
3293
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3295 ac_aux_dir_found=yes
3296 ac_install_sh=
3297 for ac_aux in $ac_aux_files
3298 do
3299 # As a special case, if "install-sh" is required, that requirement
3300 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3301 # and $ac_install_sh is set appropriately for whichever one is found.
3302 if test x"$ac_aux" = x"install-sh"
3303 then
3304 if test -f "${as_dir}install-sh"; then
3305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3306 ac_install_sh="${as_dir}install-sh -c"
3307 elif test -f "${as_dir}install.sh"; then
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3309 ac_install_sh="${as_dir}install.sh -c"
3310 elif test -f "${as_dir}shtool"; then
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3312 ac_install_sh="${as_dir}shtool install -c"
3313 else
3314 ac_aux_dir_found=no
3315 if $ac_first_candidate; then
3316 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3317 else
3318 break
3319 fi
3320 fi
3321 else
3322 if test -f "${as_dir}${ac_aux}"; then
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3324 else
3325 ac_aux_dir_found=no
3326 if $ac_first_candidate; then
3327 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3328 else
3329 break
3330 fi
3331 fi
3332 fi
3333 done
3334 if test "$ac_aux_dir_found" = yes; then
3335 ac_aux_dir="$as_dir"
3336 break
3337 fi
3338 ac_first_candidate=false
3339
3340 as_found=false
3341 done
3342 IFS=$as_save_IFS
3343 if $as_found
3344 then :
3345
3346 else $as_nop
3347 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3348 fi
3349
3350
3351 # These three variables are undocumented and unsupported,
3352 # and are intended to be withdrawn in a future Autoconf release.
3353 # They can cause serious problems if a builder's source tree is in a directory
3354 # whose full name contains unusual characters.
3355 if test -f "${ac_aux_dir}config.guess"; then
3356 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3357 fi
3358 if test -f "${ac_aux_dir}config.sub"; then
3359 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3360 fi
3361 if test -f "$ac_aux_dir/configure"; then
3362 ac_configure="$SHELL ${ac_aux_dir}configure"
3363 fi
3364
3365 # Check that the precious variables saved in the cache have kept the same
3366 # value.
3367 ac_cache_corrupted=false
3368 for ac_var in $ac_precious_vars; do
3369 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3370 eval ac_new_set=\$ac_env_${ac_var}_set
3371 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3372 eval ac_new_val=\$ac_env_${ac_var}_value
3373 case $ac_old_set,$ac_new_set in
3374 set,)
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3376 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3377 ac_cache_corrupted=: ;;
3378 ,set)
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3380 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3381 ac_cache_corrupted=: ;;
3382 ,);;
3383 *)
3384 if test "x$ac_old_val" != "x$ac_new_val"; then
3385 # differences in whitespace do not lead to failure.
3386 ac_old_val_w=`echo x $ac_old_val`
3387 ac_new_val_w=`echo x $ac_new_val`
3388 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3390 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3391 ac_cache_corrupted=:
3392 else
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3394 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3395 eval $ac_var=\$ac_old_val
3396 fi
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3398 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3400 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3401 fi;;
3402 esac
3403 # Pass precious variables to config.status.
3404 if test "$ac_new_set" = set; then
3405 case $ac_new_val in
3406 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3407 *) ac_arg=$ac_var=$ac_new_val ;;
3408 esac
3409 case " $ac_configure_args " in
3410 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3411 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3412 esac
3413 fi
3414 done
3415 if $ac_cache_corrupted; then
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3419 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3420 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3421 and start over" "$LINENO" 5
3422 fi
3423 ## -------------------- ##
3424 ## Main body of script. ##
3425 ## -------------------- ##
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
3433
3434
3435
3436
3437
3438 { printf "%s\n" ; printf "%s\n" " *** core tests... ***"; printf "%s\n" ; }
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451 # Expand $ac_aux_dir to an absolute path.
3452 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488 IFS=$as_save_IFS
3489
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501
3502 fi
3503 if test -z "$ac_cv_prog_CC"; then
3504 ac_ct_CC=$CC
3505 # Extract the first word of "gcc", so it can be a program name with args.
3506 set dummy gcc; ac_word=$2
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 printf %s "checking for $ac_word... " >&6; }
3509 if test ${ac_cv_prog_ac_ct_CC+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 case $as_dir in #(((
3521 '') as_dir=./ ;;
3522 */) ;;
3523 *) as_dir=$as_dir/ ;;
3524 esac
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_ac_ct_CC="gcc"
3528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 printf "%s\n" "$ac_ct_CC" >&6; }
3541 else
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 printf "%s\n" "no" >&6; }
3544 fi
3545
3546 if test "x$ac_ct_CC" = x; then
3547 CC=""
3548 else
3549 case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555 CC=$ac_ct_CC
3556 fi
3557 else
3558 CC="$ac_cv_prog_CC"
3559 fi
3560
3561 if test -z "$CC"; then
3562 if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}cc; ac_word=$2
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 printf %s "checking for $ac_word... " >&6; }
3567 if test ${ac_cv_prog_CC+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else $as_nop
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 case $as_dir in #(((
3579 '') as_dir=./ ;;
3580 */) ;;
3581 *) as_dir=$as_dir/ ;;
3582 esac
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC="${ac_tool_prefix}cc"
3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 printf "%s\n" "$CC" >&6; }
3599 else
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3602 fi
3603
3604
3605 fi
3606 fi
3607 if test -z "$CC"; then
3608 # Extract the first word of "cc", so it can be a program name with args.
3609 set dummy cc; ac_word=$2
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 printf %s "checking for $ac_word... " >&6; }
3612 if test ${ac_cv_prog_CC+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else $as_nop
3616 if test -n "$CC"; then
3617 ac_cv_prog_CC="$CC" # Let the user override the test.
3618 else
3619 ac_prog_rejected=no
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3632 ac_prog_rejected=yes
3633 continue
3634 fi
3635 ac_cv_prog_CC="cc"
3636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 if test $ac_prog_rejected = yes; then
3644 # We found a bogon in the path, so make sure we never use it.
3645 set dummy $ac_cv_prog_CC
3646 shift
3647 if test $# != 0; then
3648 # We chose a different compiler from the bogus one.
3649 # However, it has the same basename, so the bogon will be chosen
3650 # first if we set CC to just the basename; use the full file name.
3651 shift
3652 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3653 fi
3654 fi
3655 fi
3656 fi
3657 CC=$ac_cv_prog_CC
3658 if test -n "$CC"; then
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 printf "%s\n" "$CC" >&6; }
3661 else
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 printf "%s\n" "no" >&6; }
3664 fi
3665
3666
3667 fi
3668 if test -z "$CC"; then
3669 if test -n "$ac_tool_prefix"; then
3670 for ac_prog in cl.exe
3671 do
3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 printf %s "checking for $ac_word... " >&6; }
3676 if test ${ac_cv_prog_CC+y}
3677 then :
3678 printf %s "(cached) " >&6
3679 else $as_nop
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3685 do
3686 IFS=$as_save_IFS
3687 case $as_dir in #(((
3688 '') as_dir=./ ;;
3689 */) ;;
3690 *) as_dir=$as_dir/ ;;
3691 esac
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 printf "%s\n" "$CC" >&6; }
3708 else
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 printf "%s\n" "no" >&6; }
3711 fi
3712
3713
3714 test -n "$CC" && break
3715 done
3716 fi
3717 if test -z "$CC"; then
3718 ac_ct_CC=$CC
3719 for ac_prog in cl.exe
3720 do
3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3722 set dummy $ac_prog; ac_word=$2
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 printf %s "checking for $ac_word... " >&6; }
3725 if test ${ac_cv_prog_ac_ct_CC+y}
3726 then :
3727 printf %s "(cached) " >&6
3728 else $as_nop
3729 if test -n "$ac_ct_CC"; then
3730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 case $as_dir in #(((
3737 '') as_dir=./ ;;
3738 */) ;;
3739 *) as_dir=$as_dir/ ;;
3740 esac
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3743 ac_cv_prog_ac_ct_CC="$ac_prog"
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3745 break 2
3746 fi
3747 done
3748 done
3749 IFS=$as_save_IFS
3750
3751 fi
3752 fi
3753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754 if test -n "$ac_ct_CC"; then
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756 printf "%s\n" "$ac_ct_CC" >&6; }
3757 else
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 printf "%s\n" "no" >&6; }
3760 fi
3761
3762
3763 test -n "$ac_ct_CC" && break
3764 done
3765
3766 if test "x$ac_ct_CC" = x; then
3767 CC=""
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 CC=$ac_ct_CC
3776 fi
3777 fi
3778
3779 fi
3780 if test -z "$CC"; then
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}clang; ac_word=$2
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 printf %s "checking for $ac_word... " >&6; }
3786 if test ${ac_cv_prog_CC+y}
3787 then :
3788 printf %s "(cached) " >&6
3789 else $as_nop
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 case $as_dir in #(((
3798 '') as_dir=./ ;;
3799 */) ;;
3800 *) as_dir=$as_dir/ ;;
3801 esac
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_CC="${ac_tool_prefix}clang"
3805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 CC=$ac_cv_prog_CC
3815 if test -n "$CC"; then
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 printf "%s\n" "$CC" >&6; }
3818 else
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 printf "%s\n" "no" >&6; }
3821 fi
3822
3823
3824 fi
3825 if test -z "$ac_cv_prog_CC"; then
3826 ac_ct_CC=$CC
3827 # Extract the first word of "clang", so it can be a program name with args.
3828 set dummy clang; ac_word=$2
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 printf %s "checking for $ac_word... " >&6; }
3831 if test ${ac_cv_prog_ac_ct_CC+y}
3832 then :
3833 printf %s "(cached) " >&6
3834 else $as_nop
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 case $as_dir in #(((
3843 '') as_dir=./ ;;
3844 */) ;;
3845 *) as_dir=$as_dir/ ;;
3846 esac
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CC="clang"
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860 if test -n "$ac_ct_CC"; then
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862 printf "%s\n" "$ac_ct_CC" >&6; }
3863 else
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 printf "%s\n" "no" >&6; }
3866 fi
3867
3868 if test "x$ac_ct_CC" = x; then
3869 CC=""
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 CC=$ac_ct_CC
3878 fi
3879 else
3880 CC="$ac_cv_prog_CC"
3881 fi
3882
3883 fi
3884
3885
3886 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "no acceptable C compiler found in \$PATH
3889 See \`config.log' for more details" "$LINENO" 5; }
3890
3891 # Provide some information about the compiler.
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3893 set X $ac_compile
3894 ac_compiler=$2
3895 for ac_option in --version -v -V -qversion -version; do
3896 { { ac_try="$ac_compiler $ac_option >&5"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 printf "%s\n" "$ac_try_echo"; } >&5
3903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3904 ac_status=$?
3905 if test -s conftest.err; then
3906 sed '10a\
3907 ... rest of stderr output deleted ...
3908 10q' conftest.err >conftest.er1
3909 cat conftest.er1 >&5
3910 fi
3911 rm -f conftest.er1 conftest.err
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 done
3915
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918
3919 int
3920 main (void)
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 ac_clean_files_save=$ac_clean_files
3928 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3929 # Try to create an executable without -o first, disregard a.out.
3930 # It will help us diagnose broken compilers, and finding out an intuition
3931 # of exeext.
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 printf %s "checking whether the C compiler works... " >&6; }
3934 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3935
3936 # The possible output files:
3937 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3938
3939 ac_rmfiles=
3940 for ac_file in $ac_files
3941 do
3942 case $ac_file in
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3945 esac
3946 done
3947 rm -f $ac_rmfiles
3948
3949 if { { ac_try="$ac_link_default"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 printf "%s\n" "$ac_try_echo"; } >&5
3956 (eval "$ac_link_default") 2>&5
3957 ac_status=$?
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 then :
3961 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3963 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3964 # so that the user can short-circuit this test for compilers unknown to
3965 # Autoconf.
3966 for ac_file in $ac_files ''
3967 do
3968 test -f "$ac_file" || continue
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3971 ;;
3972 [ab].out )
3973 # We found the default executable, but exeext='' is most
3974 # certainly right.
3975 break;;
3976 *.* )
3977 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3978 then :; else
3979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 fi
3981 # We set ac_cv_exeext here because the later test for it is not
3982 # safe: cross compilers may not add the suffix if given an `-o'
3983 # argument, so we may need to know it at that point already.
3984 # Even if this section looks crufty: it has the advantage of
3985 # actually working.
3986 break;;
3987 * )
3988 break;;
3989 esac
3990 done
3991 test "$ac_cv_exeext" = no && ac_cv_exeext=
3992
3993 else $as_nop
3994 ac_file=''
3995 fi
3996 if test -z "$ac_file"
3997 then :
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 printf "%s\n" "no" >&6; }
4000 printf "%s\n" "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error 77 "C compiler cannot create executables
4006 See \`config.log' for more details" "$LINENO" 5; }
4007 else $as_nop
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 printf "%s\n" "yes" >&6; }
4010 fi
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4012 printf %s "checking for C compiler default output file name... " >&6; }
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4014 printf "%s\n" "$ac_file" >&6; }
4015 ac_exeext=$ac_cv_exeext
4016
4017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4018 ac_clean_files=$ac_clean_files_save
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4020 printf %s "checking for suffix of executables... " >&6; }
4021 if { { ac_try="$ac_link"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 printf "%s\n" "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4029 ac_status=$?
4030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 then :
4033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4035 # work properly (i.e., refer to `conftest.exe'), while it won't with
4036 # `rm'.
4037 for ac_file in conftest.exe conftest conftest.*; do
4038 test -f "$ac_file" || continue
4039 case $ac_file in
4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 break;;
4043 * ) break;;
4044 esac
4045 done
4046 else $as_nop
4047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4050 See \`config.log' for more details" "$LINENO" 5; }
4051 fi
4052 rm -f conftest conftest$ac_cv_exeext
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4054 printf "%s\n" "$ac_cv_exeext" >&6; }
4055
4056 rm -f conftest.$ac_ext
4057 EXEEXT=$ac_cv_exeext
4058 ac_exeext=$EXEEXT
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <stdio.h>
4062 int
4063 main (void)
4064 {
4065 FILE *f = fopen ("conftest.out", "w");
4066 return ferror (f) || fclose (f) != 0;
4067
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 ac_clean_files="$ac_clean_files conftest.out"
4073 # Check that the compiler produces executables we can run. If not, either
4074 # the compiler is broken, or we cross compile.
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4076 printf %s "checking whether we are cross compiling... " >&6; }
4077 if test "$cross_compiling" != yes; then
4078 { { ac_try="$ac_link"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 printf "%s\n" "$ac_try_echo"; } >&5
4085 (eval "$ac_link") 2>&5
4086 ac_status=$?
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }
4089 if { ac_try='./conftest$ac_cv_exeext'
4090 { { case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 printf "%s\n" "$ac_try_echo"; } >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; }; then
4100 cross_compiling=no
4101 else
4102 if test "$cross_compiling" = maybe; then
4103 cross_compiling=yes
4104 else
4105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error 77 "cannot run C compiled programs.
4108 If you meant to cross compile, use \`--host'.
4109 See \`config.log' for more details" "$LINENO" 5; }
4110 fi
4111 fi
4112 fi
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4114 printf "%s\n" "$cross_compiling" >&6; }
4115
4116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4117 ac_clean_files=$ac_clean_files_save
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4119 printf %s "checking for suffix of object files... " >&6; }
4120 if test ${ac_cv_objext+y}
4121 then :
4122 printf %s "(cached) " >&6
4123 else $as_nop
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main (void)
4129 {
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.o conftest.obj
4136 if { { ac_try="$ac_compile"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 printf "%s\n" "$ac_try_echo"; } >&5
4143 (eval "$ac_compile") 2>&5
4144 ac_status=$?
4145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }
4147 then :
4148 for ac_file in conftest.o conftest.obj conftest.*; do
4149 test -f "$ac_file" || continue;
4150 case $ac_file in
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4153 break;;
4154 esac
4155 done
4156 else $as_nop
4157 printf "%s\n" "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "cannot compute suffix of object files: cannot compile
4163 See \`config.log' for more details" "$LINENO" 5; }
4164 fi
4165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4166 fi
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4168 printf "%s\n" "$ac_cv_objext" >&6; }
4169 OBJEXT=$ac_cv_objext
4170 ac_objext=$OBJEXT
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4172 printf %s "checking whether the compiler supports GNU C... " >&6; }
4173 if test ${ac_cv_c_compiler_gnu+y}
4174 then :
4175 printf %s "(cached) " >&6
4176 else $as_nop
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179
4180 int
4181 main (void)
4182 {
4183 #ifndef __GNUC__
4184 choke me
4185 #endif
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"
4192 then :
4193 ac_compiler_gnu=yes
4194 else $as_nop
4195 ac_compiler_gnu=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4199
4200 fi
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205 if test $ac_compiler_gnu = yes; then
4206 GCC=yes
4207 else
4208 GCC=
4209 fi
4210 ac_test_CFLAGS=${CFLAGS+y}
4211 ac_save_CFLAGS=$CFLAGS
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213 printf %s "checking whether $CC accepts -g... " >&6; }
4214 if test ${ac_cv_prog_cc_g+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else $as_nop
4218 ac_save_c_werror_flag=$ac_c_werror_flag
4219 ac_c_werror_flag=yes
4220 ac_cv_prog_cc_g=no
4221 CFLAGS="-g"
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224
4225 int
4226 main (void)
4227 {
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"
4234 then :
4235 ac_cv_prog_cc_g=yes
4236 else $as_nop
4237 CFLAGS=""
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240
4241 int
4242 main (void)
4243 {
4244
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"
4250 then :
4251
4252 else $as_nop
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4254 CFLAGS="-g"
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257
4258 int
4259 main (void)
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"
4267 then :
4268 ac_cv_prog_cc_g=yes
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4276 fi
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4279 if test $ac_test_CFLAGS; then
4280 CFLAGS=$ac_save_CFLAGS
4281 elif test $ac_cv_prog_cc_g = yes; then
4282 if test "$GCC" = yes; then
4283 CFLAGS="-g -O2"
4284 else
4285 CFLAGS="-g"
4286 fi
4287 else
4288 if test "$GCC" = yes; then
4289 CFLAGS="-O2"
4290 else
4291 CFLAGS=
4292 fi
4293 fi
4294 ac_prog_cc_stdc=no
4295 if test x$ac_prog_cc_stdc = xno
4296 then :
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4298 printf %s "checking for $CC option to enable C11 features... " >&6; }
4299 if test ${ac_cv_prog_cc_c11+y}
4300 then :
4301 printf %s "(cached) " >&6
4302 else $as_nop
4303 ac_cv_prog_cc_c11=no
4304 ac_save_CC=$CC
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 $ac_c_conftest_c11_program
4308 _ACEOF
4309 for ac_arg in '' -std=gnu11
4310 do
4311 CC="$ac_save_CC $ac_arg"
4312 if ac_fn_c_try_compile "$LINENO"
4313 then :
4314 ac_cv_prog_cc_c11=$ac_arg
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.beam
4317 test "x$ac_cv_prog_cc_c11" != "xno" && break
4318 done
4319 rm -f conftest.$ac_ext
4320 CC=$ac_save_CC
4321 fi
4322
4323 if test "x$ac_cv_prog_cc_c11" = xno
4324 then :
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4326 printf "%s\n" "unsupported" >&6; }
4327 else $as_nop
4328 if test "x$ac_cv_prog_cc_c11" = x
4329 then :
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4331 printf "%s\n" "none needed" >&6; }
4332 else $as_nop
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4334 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4335 CC="$CC $ac_cv_prog_cc_c11"
4336 fi
4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4338 ac_prog_cc_stdc=c11
4339 fi
4340 fi
4341 if test x$ac_prog_cc_stdc = xno
4342 then :
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4344 printf %s "checking for $CC option to enable C99 features... " >&6; }
4345 if test ${ac_cv_prog_cc_c99+y}
4346 then :
4347 printf %s "(cached) " >&6
4348 else $as_nop
4349 ac_cv_prog_cc_c99=no
4350 ac_save_CC=$CC
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 $ac_c_conftest_c99_program
4354 _ACEOF
4355 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4356 do
4357 CC="$ac_save_CC $ac_arg"
4358 if ac_fn_c_try_compile "$LINENO"
4359 then :
4360 ac_cv_prog_cc_c99=$ac_arg
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext conftest.beam
4363 test "x$ac_cv_prog_cc_c99" != "xno" && break
4364 done
4365 rm -f conftest.$ac_ext
4366 CC=$ac_save_CC
4367 fi
4368
4369 if test "x$ac_cv_prog_cc_c99" = xno
4370 then :
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 printf "%s\n" "unsupported" >&6; }
4373 else $as_nop
4374 if test "x$ac_cv_prog_cc_c99" = x
4375 then :
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 printf "%s\n" "none needed" >&6; }
4378 else $as_nop
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4380 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4381 CC="$CC $ac_cv_prog_cc_c99"
4382 fi
4383 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384 ac_prog_cc_stdc=c99
4385 fi
4386 fi
4387 if test x$ac_prog_cc_stdc = xno
4388 then :
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4390 printf %s "checking for $CC option to enable C89 features... " >&6; }
4391 if test ${ac_cv_prog_cc_c89+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else $as_nop
4395 ac_cv_prog_cc_c89=no
4396 ac_save_CC=$CC
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 $ac_c_conftest_c89_program
4400 _ACEOF
4401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4402 do
4403 CC="$ac_save_CC $ac_arg"
4404 if ac_fn_c_try_compile "$LINENO"
4405 then :
4406 ac_cv_prog_cc_c89=$ac_arg
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.beam
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
4410 done
4411 rm -f conftest.$ac_ext
4412 CC=$ac_save_CC
4413 fi
4414
4415 if test "x$ac_cv_prog_cc_c89" = xno
4416 then :
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4418 printf "%s\n" "unsupported" >&6; }
4419 else $as_nop
4420 if test "x$ac_cv_prog_cc_c89" = x
4421 then :
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4423 printf "%s\n" "none needed" >&6; }
4424 else $as_nop
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4427 CC="$CC $ac_cv_prog_cc_c89"
4428 fi
4429 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4430 ac_prog_cc_stdc=c89
4431 fi
4432 fi
4433
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4447 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4448 if test ${am_cv_prog_cc_c_o+y}
4449 then :
4450 printf %s "(cached) " >&6
4451 else $as_nop
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454
4455 int
4456 main (void)
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 # Make sure it works both with $CC and with simple cc.
4464 # Following AC_PROG_CC_C_O, we do the test twice because some
4465 # compilers refuse to overwrite an existing .o file with -o,
4466 # though they will create one.
4467 am_cv_prog_cc_c_o=yes
4468 for am_i in 1 2; do
4469 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4470 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } \
4474 && test -f conftest2.$ac_objext; then
4475 : OK
4476 else
4477 am_cv_prog_cc_c_o=no
4478 break
4479 fi
4480 done
4481 rm -f core conftest*
4482 unset am_i
4483 fi
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4485 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4486 if test "$am_cv_prog_cc_c_o" != yes; then
4487 # Losing compiler, so override with the script.
4488 # FIXME: It is wrong to rewrite CC.
4489 # But if we don't then we get into trouble of one sort or another.
4490 # A longer-term fix would be to have automake use am__CC in this case,
4491 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4492 CC="$am_aux_dir/compile $CC"
4493 fi
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500
4501
4502 ac_header= ac_cache=
4503 for ac_item in $ac_header_c_list
4504 do
4505 if test $ac_cache; then
4506 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4507 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4508 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4509 fi
4510 ac_header= ac_cache=
4511 elif test $ac_header; then
4512 ac_cache=$ac_item
4513 else
4514 ac_header=$ac_item
4515 fi
4516 done
4517
4518
4519
4520
4521
4522
4523
4524
4525 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4526 then :
4527
4528 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4529
4530 fi
4531
4532
4533
4534
4535
4536
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4538 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4539 if test ${ac_cv_safe_to_define___extensions__+y}
4540 then :
4541 printf %s "(cached) " >&6
4542 else $as_nop
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 # define __EXTENSIONS__ 1
4547 $ac_includes_default
4548 int
4549 main (void)
4550 {
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"
4557 then :
4558 ac_cv_safe_to_define___extensions__=yes
4559 else $as_nop
4560 ac_cv_safe_to_define___extensions__=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4563 fi
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4565 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4566
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4568 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4569 if test ${ac_cv_should_define__xopen_source+y}
4570 then :
4571 printf %s "(cached) " >&6
4572 else $as_nop
4573 ac_cv_should_define__xopen_source=no
4574 if test $ac_cv_header_wchar_h = yes
4575 then :
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 #include <wchar.h>
4580 mbstate_t x;
4581 int
4582 main (void)
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"
4590 then :
4591
4592 else $as_nop
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 #define _XOPEN_SOURCE 500
4597 #include <wchar.h>
4598 mbstate_t x;
4599 int
4600 main (void)
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"
4608 then :
4609 ac_cv_should_define__xopen_source=yes
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4614 fi
4615 fi
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4617 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4618
4619 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4620
4621 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4622
4623 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4624
4625 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4626
4627 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4628
4629 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4630
4631 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4632
4633 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4634
4635 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4636
4637 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4638
4639 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4640
4641 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4642
4643 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4644
4645 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4646
4647 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4648
4649 if test $ac_cv_header_minix_config_h = yes
4650 then :
4651 MINIX=yes
4652 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4653
4654 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4655
4656 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4657
4658 else $as_nop
4659 MINIX=
4660 fi
4661 if test $ac_cv_safe_to_define___extensions__ = yes
4662 then :
4663 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4664
4665 fi
4666 if test $ac_cv_should_define__xopen_source = yes
4667 then :
4668 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4669
4670 fi
4671
4672
4673 # always enable dependency tracking regardless of the user's choice.
4674 # This avoids stale .o files after SVN updates. enable_dependency_tracking
4675 # needs to be set early in order to be recognised!
4676 #
4677 # enable_dependency_tracking=no
4678
4679 am__api_version='1.16'
4680
4681
4682 # Find a good install program. We prefer a C program (faster),
4683 # so one script is as good as another. But avoid the broken or
4684 # incompatible versions:
4685 # SysV /etc/install, /usr/sbin/install
4686 # SunOS /usr/etc/install
4687 # IRIX /sbin/install
4688 # AIX /bin/install
4689 # AmigaOS /C/install, which installs bootblocks on floppy discs
4690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4693 # OS/2's system install, which has a completely different semantic
4694 # ./install, which can be erroneously created by make from ./install.sh.
4695 # Reject install programs that cannot install multiple files.
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4697 printf %s "checking for a BSD-compatible install... " >&6; }
4698 if test -z "$INSTALL"; then
4699 if test ${ac_cv_path_install+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else $as_nop
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 case $as_dir in #(((
4708 '') as_dir=./ ;;
4709 */) ;;
4710 *) as_dir=$as_dir/ ;;
4711 esac
4712 # Account for fact that we put trailing slashes in our PATH walk.
4713 case $as_dir in #((
4714 ./ | /[cC]/* | \
4715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4717 /usr/ucb/* ) ;;
4718 *)
4719 # OSF1 and SCO ODT 3.0 have their own names for install.
4720 # Don't use installbsd from OSF since it installs stuff as root
4721 # by default.
4722 for ac_prog in ginstall scoinst install; do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4725 if test $ac_prog = install &&
4726 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4727 # AIX install. It has an incompatible calling convention.
4728 :
4729 elif test $ac_prog = install &&
4730 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4731 # program-specific install script used by HP pwplus--don't use.
4732 :
4733 else
4734 rm -rf conftest.one conftest.two conftest.dir
4735 echo one > conftest.one
4736 echo two > conftest.two
4737 mkdir conftest.dir
4738 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4739 test -s conftest.one && test -s conftest.two &&
4740 test -s conftest.dir/conftest.one &&
4741 test -s conftest.dir/conftest.two
4742 then
4743 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4744 break 3
4745 fi
4746 fi
4747 fi
4748 done
4749 done
4750 ;;
4751 esac
4752
4753 done
4754 IFS=$as_save_IFS
4755
4756 rm -rf conftest.one conftest.two conftest.dir
4757
4758 fi
4759 if test ${ac_cv_path_install+y}; then
4760 INSTALL=$ac_cv_path_install
4761 else
4762 # As a last resort, use the slow shell script. Don't cache a
4763 # value for INSTALL within a source directory, because that will
4764 # break other packages using the cache if that directory is
4765 # removed, or if the value is a relative name.
4766 INSTALL=$ac_install_sh
4767 fi
4768 fi
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4770 printf "%s\n" "$INSTALL" >&6; }
4771
4772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4773 # It thinks the first close brace ends the variable substitution.
4774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4775
4776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4777
4778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4779
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4781 printf %s "checking whether build environment is sane... " >&6; }
4782 # Reject unsafe characters in $srcdir or the absolute working directory
4783 # name. Accept space and tab only in the latter.
4784 am_lf='
4785 '
4786 case `pwd` in
4787 *[\\\"\#\$\&\'\`$am_lf]*)
4788 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4789 esac
4790 case $srcdir in
4791 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4792 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4793 esac
4794
4795 # Do 'set' in a subshell so we don't clobber the current shell's
4796 # arguments. Must try -L first in case configure is actually a
4797 # symlink; some systems play weird games with the mod time of symlinks
4798 # (eg FreeBSD returns the mod time of the symlink's containing
4799 # directory).
4800 if (
4801 am_has_slept=no
4802 for am_try in 1 2; do
4803 echo "timestamp, slept: $am_has_slept" > conftest.file
4804 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4805 if test "$*" = "X"; then
4806 # -L didn't work.
4807 set X `ls -t "$srcdir/configure" conftest.file`
4808 fi
4809 if test "$*" != "X $srcdir/configure conftest.file" \
4810 && test "$*" != "X conftest.file $srcdir/configure"; then
4811
4812 # If neither matched, then we have a broken ls. This can happen
4813 # if, for instance, CONFIG_SHELL is bash and it inherits a
4814 # broken ls alias from the environment. This has actually
4815 # happened. Such a system could not be considered "sane".
4816 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4817 alias in your environment" "$LINENO" 5
4818 fi
4819 if test "$2" = conftest.file || test $am_try -eq 2; then
4820 break
4821 fi
4822 # Just in case.
4823 sleep 1
4824 am_has_slept=yes
4825 done
4826 test "$2" = conftest.file
4827 )
4828 then
4829 # Ok.
4830 :
4831 else
4832 as_fn_error $? "newly created file is older than distributed files!
4833 Check your system clock" "$LINENO" 5
4834 fi
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 printf "%s\n" "yes" >&6; }
4837 # If we didn't sleep, we still need to ensure time stamps of config.status and
4838 # generated files are strictly newer.
4839 am_sleep_pid=
4840 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4841 ( sleep 1 ) &
4842 am_sleep_pid=$!
4843 fi
4844
4845 rm -f conftest.file
4846
4847 test "$program_prefix" != NONE &&
4848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4849 # Use a double $ so make ignores it.
4850 test "$program_suffix" != NONE &&
4851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4852 # Double any \ or $.
4853 # By default was `s,x,x', remove it if useless.
4854 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4855 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4856
4857
4858 if test x"${MISSING+set}" != xset; then
4859 MISSING="\${SHELL} '$am_aux_dir/missing'"
4860 fi
4861 # Use eval to expand $SHELL
4862 if eval "$MISSING --is-lightweight"; then
4863 am_missing_run="$MISSING "
4864 else
4865 am_missing_run=
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4867 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4868 fi
4869
4870 if test x"${install_sh+set}" != xset; then
4871 case $am_aux_dir in
4872 *\ * | *\ *)
4873 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4874 *)
4875 install_sh="\${SHELL} $am_aux_dir/install-sh"
4876 esac
4877 fi
4878
4879 # Installed binaries are usually stripped using 'strip' when the user
4880 # run "make install-strip". However 'strip' might not be the right
4881 # tool to use in cross-compilation environments, therefore Automake
4882 # will honor the 'STRIP' environment variable to overrule this program.
4883 if test "$cross_compiling" != no; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}strip; ac_word=$2
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 printf %s "checking for $ac_word... " >&6; }
4889 if test ${ac_cv_prog_STRIP+y}
4890 then :
4891 printf %s "(cached) " >&6
4892 else $as_nop
4893 if test -n "$STRIP"; then
4894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 case $as_dir in #(((
4901 '') as_dir=./ ;;
4902 */) ;;
4903 *) as_dir=$as_dir/ ;;
4904 esac
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 STRIP=$ac_cv_prog_STRIP
4918 if test -n "$STRIP"; then
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4920 printf "%s\n" "$STRIP" >&6; }
4921 else
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 printf "%s\n" "no" >&6; }
4924 fi
4925
4926
4927 fi
4928 if test -z "$ac_cv_prog_STRIP"; then
4929 ac_ct_STRIP=$STRIP
4930 # Extract the first word of "strip", so it can be a program name with args.
4931 set dummy strip; ac_word=$2
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 printf %s "checking for $ac_word... " >&6; }
4934 if test ${ac_cv_prog_ac_ct_STRIP+y}
4935 then :
4936 printf %s "(cached) " >&6
4937 else $as_nop
4938 if test -n "$ac_ct_STRIP"; then
4939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944 IFS=$as_save_IFS
4945 case $as_dir in #(((
4946 '') as_dir=./ ;;
4947 */) ;;
4948 *) as_dir=$as_dir/ ;;
4949 esac
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_ac_ct_STRIP="strip"
4953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4963 if test -n "$ac_ct_STRIP"; then
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4965 printf "%s\n" "$ac_ct_STRIP" >&6; }
4966 else
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 printf "%s\n" "no" >&6; }
4969 fi
4970
4971 if test "x$ac_ct_STRIP" = x; then
4972 STRIP=":"
4973 else
4974 case $cross_compiling:$ac_tool_warned in
4975 yes:)
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4977 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4978 ac_tool_warned=yes ;;
4979 esac
4980 STRIP=$ac_ct_STRIP
4981 fi
4982 else
4983 STRIP="$ac_cv_prog_STRIP"
4984 fi
4985
4986 fi
4987 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4988
4989
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4991 printf %s "checking for a race-free mkdir -p... " >&6; }
4992 if test -z "$MKDIR_P"; then
4993 if test ${ac_cv_path_mkdir+y}
4994 then :
4995 printf %s "(cached) " >&6
4996 else $as_nop
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4999 do
5000 IFS=$as_save_IFS
5001 case $as_dir in #(((
5002 '') as_dir=./ ;;
5003 */) ;;
5004 *) as_dir=$as_dir/ ;;
5005 esac
5006 for ac_prog in mkdir gmkdir; do
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5009 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5010 'mkdir ('*'coreutils) '* | \
5011 'BusyBox '* | \
5012 'mkdir (fileutils) '4.1*)
5013 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
5014 break 3;;
5015 esac
5016 done
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022
5023 test -d ./--version && rmdir ./--version
5024 if test ${ac_cv_path_mkdir+y}; then
5025 MKDIR_P="$ac_cv_path_mkdir -p"
5026 else
5027 # As a last resort, use the slow shell script. Don't cache a
5028 # value for MKDIR_P within a source directory, because that will
5029 # break other packages using the cache if that directory is
5030 # removed, or if the value is a relative name.
5031 MKDIR_P="$ac_install_sh -d"
5032 fi
5033 fi
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5035 printf "%s\n" "$MKDIR_P" >&6; }
5036
5037 for ac_prog in gawk mawk nawk awk
5038 do
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 printf %s "checking for $ac_word... " >&6; }
5043 if test ${ac_cv_prog_AWK+y}
5044 then :
5045 printf %s "(cached) " >&6
5046 else $as_nop
5047 if test -n "$AWK"; then
5048 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 case $as_dir in #(((
5055 '') as_dir=./ ;;
5056 */) ;;
5057 *) as_dir=$as_dir/ ;;
5058 esac
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_AWK="$ac_prog"
5062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 AWK=$ac_cv_prog_AWK
5072 if test -n "$AWK"; then
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5074 printf "%s\n" "$AWK" >&6; }
5075 else
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 printf "%s\n" "no" >&6; }
5078 fi
5079
5080
5081 test -n "$AWK" && break
5082 done
5083
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5085 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5086 set x ${MAKE-make}
5087 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5088 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5089 then :
5090 printf %s "(cached) " >&6
5091 else $as_nop
5092 cat >conftest.make <<\_ACEOF
5093 SHELL = /bin/sh
5094 all:
5095 @echo '@@@%%%=$(MAKE)=@@@%%%'
5096 _ACEOF
5097 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5098 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5099 *@@@%%%=?*=@@@%%%*)
5100 eval ac_cv_prog_make_${ac_make}_set=yes;;
5101 *)
5102 eval ac_cv_prog_make_${ac_make}_set=no;;
5103 esac
5104 rm -f conftest.make
5105 fi
5106 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5108 printf "%s\n" "yes" >&6; }
5109 SET_MAKE=
5110 else
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 printf "%s\n" "no" >&6; }
5113 SET_MAKE="MAKE=${MAKE-make}"
5114 fi
5115
5116 rm -rf .tst 2>/dev/null
5117 mkdir .tst 2>/dev/null
5118 if test -d .tst; then
5119 am__leading_dot=.
5120 else
5121 am__leading_dot=_
5122 fi
5123 rmdir .tst 2>/dev/null
5124
5125 DEPDIR="${am__leading_dot}deps"
5126
5127 ac_config_commands="$ac_config_commands depfiles"
5128
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5130 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5131 cat > confinc.mk << 'END'
5132 am__doit:
5133 @echo this is the am__doit target >confinc.out
5134 .PHONY: am__doit
5135 END
5136 am__include="#"
5137 am__quote=
5138 # BSD make does it like this.
5139 echo '.include "confinc.mk" # ignored' > confmf.BSD
5140 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5141 echo 'include confinc.mk # ignored' > confmf.GNU
5142 _am_result=no
5143 for s in GNU BSD; do
5144 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5145 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 case $?:`cat confinc.out 2>/dev/null` in #(
5150 '0:this is the am__doit target') :
5151 case $s in #(
5152 BSD) :
5153 am__include='.include' am__quote='"' ;; #(
5154 *) :
5155 am__include='include' am__quote='' ;;
5156 esac ;; #(
5157 *) :
5158 ;;
5159 esac
5160 if test "$am__include" != "#"; then
5161 _am_result="yes ($s style)"
5162 break
5163 fi
5164 done
5165 rm -f confinc.* confmf.*
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5167 printf "%s\n" "${_am_result}" >&6; }
5168
5169 # Check whether --enable-dependency-tracking was given.
5170 if test ${enable_dependency_tracking+y}
5171 then :
5172 enableval=$enable_dependency_tracking;
5173 fi
5174
5175 if test "x$enable_dependency_tracking" != xno; then
5176 am_depcomp="$ac_aux_dir/depcomp"
5177 AMDEPBACKSLASH='\'
5178 am__nodep='_no'
5179 fi
5180 if test "x$enable_dependency_tracking" != xno; then
5181 AMDEP_TRUE=
5182 AMDEP_FALSE='#'
5183 else
5184 AMDEP_TRUE='#'
5185 AMDEP_FALSE=
5186 fi
5187
5188
5189 # Check whether --enable-silent-rules was given.
5190 if test ${enable_silent_rules+y}
5191 then :
5192 enableval=$enable_silent_rules;
5193 fi
5194
5195 case $enable_silent_rules in # (((
5196 yes) AM_DEFAULT_VERBOSITY=0;;
5197 no) AM_DEFAULT_VERBOSITY=1;;
5198 *) AM_DEFAULT_VERBOSITY=1;;
5199 esac
5200 am_make=${MAKE-make}
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5202 printf %s "checking whether $am_make supports nested variables... " >&6; }
5203 if test ${am_cv_make_support_nested_variables+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else $as_nop
5207 if printf "%s\n" 'TRUE=$(BAR$(V))
5208 BAR0=false
5209 BAR1=true
5210 V=1
5211 am__doit:
5212 @$(TRUE)
5213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5214 am_cv_make_support_nested_variables=yes
5215 else
5216 am_cv_make_support_nested_variables=no
5217 fi
5218 fi
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5220 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
5221 if test $am_cv_make_support_nested_variables = yes; then
5222 AM_V='$(V)'
5223 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5224 else
5225 AM_V=$AM_DEFAULT_VERBOSITY
5226 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5227 fi
5228 AM_BACKSLASH='\'
5229
5230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5232 # is not polluted with repeated "-I."
5233 am__isrc=' -I$(srcdir)'
5234 # test to see if srcdir already configured
5235 if test -f $srcdir/config.status; then
5236 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5237 fi
5238 fi
5239
5240 # test whether we have cygpath
5241 if test -z "$CYGPATH_W"; then
5242 if (cygpath --version) >/dev/null 2>/dev/null; then
5243 CYGPATH_W='cygpath -w'
5244 else
5245 CYGPATH_W=echo
5246 fi
5247 fi
5248
5249
5250 # Define the identity of the package.
5251 PACKAGE='apl'
5252 VERSION='2.0'
5253
5254
5255 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5256
5257
5258 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5259
5260 # Some tools Automake needs.
5261
5262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5263
5264
5265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5266
5267
5268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5269
5270
5271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5272
5273
5274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5275
5276 # For better backward compatibility. To be removed once Automake 1.9.x
5277 # dies out for good. For more background, see:
5278 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5279 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5280 mkdir_p='$(MKDIR_P)'
5281
5282 # We need awk for the "check" target (and possibly the TAP driver). The
5283 # system "awk" is bad on some platforms.
5284 # Always define AMTAR for backward compatibility. Yes, it's still used
5285 # in the wild :-( We should find a proper way to deprecate it ...
5286 AMTAR='$${TAR-tar}'
5287
5288
5289 # We'll loop over all known methods to create a tar archive until one works.
5290 _am_tools='gnutar pax cpio none'
5291
5292 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5293
5294
5295
5296
5297
5298 depcc="$CC" am_compiler_list=
5299
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5301 printf %s "checking dependency style of $depcc... " >&6; }
5302 if test ${am_cv_CC_dependencies_compiler_type+y}
5303 then :
5304 printf %s "(cached) " >&6
5305 else $as_nop
5306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5307 # We make a subdir and do the tests there. Otherwise we can end up
5308 # making bogus files that we don't know about and never remove. For
5309 # instance it was reported that on HP-UX the gcc test will end up
5310 # making a dummy file named 'D' -- because '-MD' means "put the output
5311 # in D".
5312 rm -rf conftest.dir
5313 mkdir conftest.dir
5314 # Copy depcomp to subdir because otherwise we won't find it if we're
5315 # using a relative directory.
5316 cp "$am_depcomp" conftest.dir
5317 cd conftest.dir
5318 # We will build objects and dependencies in a subdirectory because
5319 # it helps to detect inapplicable dependency modes. For instance
5320 # both Tru64's cc and ICC support -MD to output dependencies as a
5321 # side effect of compilation, but ICC will put the dependencies in
5322 # the current directory while Tru64 will put them in the object
5323 # directory.
5324 mkdir sub
5325
5326 am_cv_CC_dependencies_compiler_type=none
5327 if test "$am_compiler_list" = ""; then
5328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5329 fi
5330 am__universal=false
5331 case " $depcc " in #(
5332 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5333 esac
5334
5335 for depmode in $am_compiler_list; do
5336 # Setup a source with many dependencies, because some compilers
5337 # like to wrap large dependency lists on column 80 (with \), and
5338 # we should not choose a depcomp mode which is confused by this.
5339 #
5340 # We need to recreate these files for each test, as the compiler may
5341 # overwrite some of them when testing with obscure command lines.
5342 # This happens at least with the AIX C compiler.
5343 : > sub/conftest.c
5344 for i in 1 2 3 4 5 6; do
5345 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5347 # Solaris 10 /bin/sh.
5348 echo '/* dummy */' > sub/conftst$i.h
5349 done
5350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5351
5352 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5353 # mode. It turns out that the SunPro C++ compiler does not properly
5354 # handle '-M -o', and we need to detect this. Also, some Intel
5355 # versions had trouble with output in subdirs.
5356 am__obj=sub/conftest.${OBJEXT-o}
5357 am__minus_obj="-o $am__obj"
5358 case $depmode in
5359 gcc)
5360 # This depmode causes a compiler race in universal mode.
5361 test "$am__universal" = false || continue
5362 ;;
5363 nosideeffect)
5364 # After this tag, mechanisms are not by side-effect, so they'll
5365 # only be used when explicitly requested.
5366 if test "x$enable_dependency_tracking" = xyes; then
5367 continue
5368 else
5369 break
5370 fi
5371 ;;
5372 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5373 # This compiler won't grok '-c -o', but also, the minuso test has
5374 # not run yet. These depmodes are late enough in the game, and
5375 # so weak that their functioning should not be impacted.
5376 am__obj=conftest.${OBJEXT-o}
5377 am__minus_obj=
5378 ;;
5379 none) break ;;
5380 esac
5381 if depmode=$depmode \
5382 source=sub/conftest.c object=$am__obj \
5383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5385 >/dev/null 2>conftest.err &&
5386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5390 # icc doesn't choke on unknown options, it will just issue warnings
5391 # or remarks (even with -Werror). So we grep stderr for any message
5392 # that says an option was ignored or not supported.
5393 # When given -MP, icc 7.0 and 7.1 complain thusly:
5394 # icc: Command line warning: ignoring option '-M'; no argument required
5395 # The diagnosis changed in icc 8.0:
5396 # icc: Command line remark: option '-MP' not supported
5397 if (grep 'ignoring option' conftest.err ||
5398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5399 am_cv_CC_dependencies_compiler_type=$depmode
5400 break
5401 fi
5402 fi
5403 done
5404
5405 cd ..
5406 rm -rf conftest.dir
5407 else
5408 am_cv_CC_dependencies_compiler_type=none
5409 fi
5410
5411 fi
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5413 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5414 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5415
5416 if
5417 test "x$enable_dependency_tracking" != xno \
5418 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5419 am__fastdepCC_TRUE=
5420 am__fastdepCC_FALSE='#'
5421 else
5422 am__fastdepCC_TRUE='#'
5423 am__fastdepCC_FALSE=
5424 fi
5425
5426
5427 # Variables for tags utilities; see am/tags.am
5428 if test -z "$CTAGS"; then
5429 CTAGS=ctags
5430 fi
5431
5432 if test -z "$ETAGS"; then
5433 ETAGS=etags
5434 fi
5435
5436 if test -z "$CSCOPE"; then
5437 CSCOPE=cscope
5438 fi
5439
5440
5441
5442 # POSIX will say in a future version that running "rm -f" with no argument
5443 # is OK; and we want to be able to make that assumption in our Makefile
5444 # recipes. So use an aggressive probe to check that the usage we want is
5445 # actually supported "in the wild" to an acceptable degree.
5446 # See automake bug#10828.
5447 # To make any issue more visible, cause the running configure to be aborted
5448 # by default if the 'rm' program in use doesn't match our expectations; the
5449 # user can still override this though.
5450 if rm -f && rm -fr && rm -rf; then : OK; else
5451 cat >&2 <<'END'
5452 Oops!
5453
5454 Your 'rm' program seems unable to run without file operands specified
5455 on the command line, even when the '-f' option is present. This is contrary
5456 to the behaviour of most rm programs out there, and not conforming with
5457 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5458
5459 Please tell [email protected] about your system, including the value
5460 of your $PATH and any error possibly output before this message. This
5461 can help us improve future automake versions.
5462
5463 END
5464 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5465 echo 'Configuration will proceed anyway, since you have set the' >&2
5466 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5467 echo >&2
5468 else
5469 cat >&2 <<'END'
5470 Aborting the configuration process, to ensure you take notice of the issue.
5471
5472 You can download and install GNU coreutils to get an 'rm' implementation
5473 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5474
5475 If you want to complete the configuration process using your problematic
5476 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5477 to "yes", and re-run configure.
5478
5479 END
5480 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5481 fi
5482 fi
5483
5484
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5486 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5487 # Check whether --enable-maintainer-mode was given.
5488 if test ${enable_maintainer_mode+y}
5489 then :
5490 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5491 else $as_nop
5492 USE_MAINTAINER_MODE=no
5493 fi
5494
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5496 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
5497 if test $USE_MAINTAINER_MODE = yes; then
5498 MAINTAINER_MODE_TRUE=
5499 MAINTAINER_MODE_FALSE='#'
5500 else
5501 MAINTAINER_MODE_TRUE='#'
5502 MAINTAINER_MODE_FALSE=
5503 fi
5504
5505 MAINT=$MAINTAINER_MODE_TRUE
5506
5507
5508
5509
5510 ac_config_headers="$ac_config_headers config.h"
5511
5512
5513 # use g++ for tests
5514 #
5515 ac_ext=cpp
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520
5521
5522 # initialize libtool in dlopen mode
5523 #
5524 case `pwd` in
5525 *\ * | *\ *)
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5527 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5528 esac
5529
5530
5531
5532 macro_version='2.4.6'
5533 macro_revision='2.4.6'
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548 ltmain=$ac_aux_dir/ltmain.sh
5549
5550
5551
5552 # Make sure we can run config.sub.
5553 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5554 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5555
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5557 printf %s "checking build system type... " >&6; }
5558 if test ${ac_cv_build+y}
5559 then :
5560 printf %s "(cached) " >&6
5561 else $as_nop
5562 ac_build_alias=$build_alias
5563 test "x$ac_build_alias" = x &&
5564 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5565 test "x$ac_build_alias" = x &&
5566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5567 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5568 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5569
5570 fi
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5572 printf "%s\n" "$ac_cv_build" >&6; }
5573 case $ac_cv_build in
5574 *-*-*) ;;
5575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5576 esac
5577 build=$ac_cv_build
5578 ac_save_IFS=$IFS; IFS='-'
5579 set x $ac_cv_build
5580 shift
5581 build_cpu=$1
5582 build_vendor=$2
5583 shift; shift
5584 # Remember, the first character of IFS is used to create $*,
5585 # except with old shells:
5586 build_os=$*
5587 IFS=$ac_save_IFS
5588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5589
5590
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5592 printf %s "checking host system type... " >&6; }
5593 if test ${ac_cv_host+y}
5594 then :
5595 printf %s "(cached) " >&6
5596 else $as_nop
5597 if test "x$host_alias" = x; then
5598 ac_cv_host=$ac_cv_build
5599 else
5600 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5601 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5602 fi
5603
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5606 printf "%s\n" "$ac_cv_host" >&6; }
5607 case $ac_cv_host in
5608 *-*-*) ;;
5609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5610 esac
5611 host=$ac_cv_host
5612 ac_save_IFS=$IFS; IFS='-'
5613 set x $ac_cv_host
5614 shift
5615 host_cpu=$1
5616 host_vendor=$2
5617 shift; shift
5618 # Remember, the first character of IFS is used to create $*,
5619 # except with old shells:
5620 host_os=$*
5621 IFS=$ac_save_IFS
5622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5623
5624
5625 # Backslashify metacharacters that are still active within
5626 # double-quoted strings.
5627 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5628
5629 # Same as above, but do not quote variable references.
5630 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5631
5632 # Sed substitution to delay expansion of an escaped shell variable in a
5633 # double_quote_subst'ed string.
5634 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5635
5636 # Sed substitution to delay expansion of an escaped single quote.
5637 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5638
5639 # Sed substitution to avoid accidental globbing in evaled expressions
5640 no_glob_subst='s/\*/\\\*/g'
5641
5642 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5643 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5644 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5647 printf %s "checking how to print strings... " >&6; }
5648 # Test print first, because it will be a builtin if present.
5649 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5650 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5651 ECHO='print -r --'
5652 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5653 ECHO='printf %s\n'
5654 else
5655 # Use this function as a fallback that always works.
5656 func_fallback_echo ()
5657 {
5658 eval 'cat <<_LTECHO_EOF
5659 $1
5660 _LTECHO_EOF'
5661 }
5662 ECHO='func_fallback_echo'
5663 fi
5664
5665 # func_echo_all arg...
5666 # Invoke $ECHO with all args, space-separated.
5667 func_echo_all ()
5668 {
5669 $ECHO ""
5670 }
5671
5672 case $ECHO in
5673 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5674 printf "%s\n" "printf" >&6; } ;;
5675 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5676 printf "%s\n" "print -r" >&6; } ;;
5677 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5678 printf "%s\n" "cat" >&6; } ;;
5679 esac
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5695 printf %s "checking for a sed that does not truncate output... " >&6; }
5696 if test ${ac_cv_path_SED+y}
5697 then :
5698 printf %s "(cached) " >&6
5699 else $as_nop
5700 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5701 for ac_i in 1 2 3 4 5 6 7; do
5702 ac_script="$ac_script$as_nl$ac_script"
5703 done
5704 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5705 { ac_script=; unset ac_script;}
5706 if test -z "$SED"; then
5707 ac_path_SED_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 case $as_dir in #(((
5714 '') as_dir=./ ;;
5715 */) ;;
5716 *) as_dir=$as_dir/ ;;
5717 esac
5718 for ac_prog in sed gsed
5719 do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_SED" || continue
5723 # Check for GNU ac_path_SED and select it if it is found.
5724 # Check for GNU $ac_path_SED
5725 case `"$ac_path_SED" --version 2>&1` in
5726 *GNU*)
5727 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5728 *)
5729 ac_count=0
5730 printf %s 0123456789 >"conftest.in"
5731 while :
5732 do
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 printf "%s\n" '' >> "conftest.nl"
5737 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739 as_fn_arith $ac_count + 1 && ac_count=$as_val
5740 if test $ac_count -gt ${ac_path_SED_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_SED="$ac_path_SED"
5743 ac_path_SED_max=$ac_count
5744 fi
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5747 done
5748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 esac
5750
5751 $ac_path_SED_found && break 3
5752 done
5753 done
5754 done
5755 IFS=$as_save_IFS
5756 if test -z "$ac_cv_path_SED"; then
5757 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5758 fi
5759 else
5760 ac_cv_path_SED=$SED
5761 fi
5762
5763 fi
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5765 printf "%s\n" "$ac_cv_path_SED" >&6; }
5766 SED="$ac_cv_path_SED"
5767 rm -f conftest.sed
5768
5769 test -z "$SED" && SED=sed
5770 Xsed="$SED -e 1s/^X//"
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5783 printf %s "checking for grep that handles long lines and -e... " >&6; }
5784 if test ${ac_cv_path_GREP+y}
5785 then :
5786 printf %s "(cached) " >&6
5787 else $as_nop
5788 if test -z "$GREP"; then
5789 ac_path_GREP_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793 do
5794 IFS=$as_save_IFS
5795 case $as_dir in #(((
5796 '') as_dir=./ ;;
5797 */) ;;
5798 *) as_dir=$as_dir/ ;;
5799 esac
5800 for ac_prog in grep ggrep
5801 do
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5804 as_fn_executable_p "$ac_path_GREP" || continue
5805 # Check for GNU ac_path_GREP and select it if it is found.
5806 # Check for GNU $ac_path_GREP
5807 case `"$ac_path_GREP" --version 2>&1` in
5808 *GNU*)
5809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5810 *)
5811 ac_count=0
5812 printf %s 0123456789 >"conftest.in"
5813 while :
5814 do
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 printf "%s\n" 'GREP' >> "conftest.nl"
5819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_GREP="$ac_path_GREP"
5825 ac_path_GREP_max=$ac_count
5826 fi
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5829 done
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 esac
5832
5833 $ac_path_GREP_found && break 3
5834 done
5835 done
5836 done
5837 IFS=$as_save_IFS
5838 if test -z "$ac_cv_path_GREP"; then
5839 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840 fi
5841 else
5842 ac_cv_path_GREP=$GREP
5843 fi
5844
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5847 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5848 GREP="$ac_cv_path_GREP"
5849
5850
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5852 printf %s "checking for egrep... " >&6; }
5853 if test ${ac_cv_path_EGREP+y}
5854 then :
5855 printf %s "(cached) " >&6
5856 else $as_nop
5857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5858 then ac_cv_path_EGREP="$GREP -E"
5859 else
5860 if test -z "$EGREP"; then
5861 ac_path_EGREP_found=false
5862 # Loop through the user's path and test for each of PROGNAME-LIST
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5865 do
5866 IFS=$as_save_IFS
5867 case $as_dir in #(((
5868 '') as_dir=./ ;;
5869 */) ;;
5870 *) as_dir=$as_dir/ ;;
5871 esac
5872 for ac_prog in egrep
5873 do
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5876 as_fn_executable_p "$ac_path_EGREP" || continue
5877 # Check for GNU ac_path_EGREP and select it if it is found.
5878 # Check for GNU $ac_path_EGREP
5879 case `"$ac_path_EGREP" --version 2>&1` in
5880 *GNU*)
5881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5882 *)
5883 ac_count=0
5884 printf %s 0123456789 >"conftest.in"
5885 while :
5886 do
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 printf "%s\n" 'EGREP' >> "conftest.nl"
5891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_EGREP="$ac_path_EGREP"
5897 ac_path_EGREP_max=$ac_count
5898 fi
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5901 done
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5904
5905 $ac_path_EGREP_found && break 3
5906 done
5907 done
5908 done
5909 IFS=$as_save_IFS
5910 if test -z "$ac_cv_path_EGREP"; then
5911 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 fi
5913 else
5914 ac_cv_path_EGREP=$EGREP
5915 fi
5916
5917 fi
5918 fi
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5920 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5921 EGREP="$ac_cv_path_EGREP"
5922
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5925 printf %s "checking for fgrep... " >&6; }
5926 if test ${ac_cv_path_FGREP+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else $as_nop
5930 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5931 then ac_cv_path_FGREP="$GREP -F"
5932 else
5933 if test -z "$FGREP"; then
5934 ac_path_FGREP_found=false
5935 # Loop through the user's path and test for each of PROGNAME-LIST
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5938 do
5939 IFS=$as_save_IFS
5940 case $as_dir in #(((
5941 '') as_dir=./ ;;
5942 */) ;;
5943 *) as_dir=$as_dir/ ;;
5944 esac
5945 for ac_prog in fgrep
5946 do
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5949 as_fn_executable_p "$ac_path_FGREP" || continue
5950 # Check for GNU ac_path_FGREP and select it if it is found.
5951 # Check for GNU $ac_path_FGREP
5952 case `"$ac_path_FGREP" --version 2>&1` in
5953 *GNU*)
5954 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5955 *)
5956 ac_count=0
5957 printf %s 0123456789 >"conftest.in"
5958 while :
5959 do
5960 cat "conftest.in" "conftest.in" >"conftest.tmp"
5961 mv "conftest.tmp" "conftest.in"
5962 cp "conftest.in" "conftest.nl"
5963 printf "%s\n" 'FGREP' >> "conftest.nl"
5964 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966 as_fn_arith $ac_count + 1 && ac_count=$as_val
5967 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5968 # Best one so far, save it but keep looking for a better one
5969 ac_cv_path_FGREP="$ac_path_FGREP"
5970 ac_path_FGREP_max=$ac_count
5971 fi
5972 # 10*(2^10) chars as input seems more than enough
5973 test $ac_count -gt 10 && break
5974 done
5975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976 esac
5977
5978 $ac_path_FGREP_found && break 3
5979 done
5980 done
5981 done
5982 IFS=$as_save_IFS
5983 if test -z "$ac_cv_path_FGREP"; then
5984 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 fi
5986 else
5987 ac_cv_path_FGREP=$FGREP
5988 fi
5989
5990 fi
5991 fi
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5993 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5994 FGREP="$ac_cv_path_FGREP"
5995
5996
5997 test -z "$GREP" && GREP=grep
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 # Check whether --with-gnu-ld was given.
6018 if test ${with_gnu_ld+y}
6019 then :
6020 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6021 else $as_nop
6022 with_gnu_ld=no
6023 fi
6024
6025 ac_prog=ld
6026 if test yes = "$GCC"; then
6027 # Check if gcc -print-prog-name=ld gives a path.
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6029 printf %s "checking for ld used by $CC... " >&6; }
6030 case $host in
6031 *-*-mingw*)
6032 # gcc leaves a trailing carriage return, which upsets mingw
6033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6034 *)
6035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6036 esac
6037 case $ac_prog in
6038 # Accept absolute paths.
6039 [\\/]* | ?:[\\/]*)
6040 re_direlt='/[^/][^/]*/\.\./'
6041 # Canonicalize the pathname of ld
6042 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6043 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6044 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6045 done
6046 test -z "$LD" && LD=$ac_prog
6047 ;;
6048 "")
6049 # If it fails, then pretend we aren't using GCC.
6050 ac_prog=ld
6051 ;;
6052 *)
6053 # If it is relative, then search for the first ld in PATH.
6054 with_gnu_ld=unknown
6055 ;;
6056 esac
6057 elif test yes = "$with_gnu_ld"; then
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6059 printf %s "checking for GNU ld... " >&6; }
6060 else
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6062 printf %s "checking for non-GNU ld... " >&6; }
6063 fi
6064 if test ${lt_cv_path_LD+y}
6065 then :
6066 printf %s "(cached) " >&6
6067 else $as_nop
6068 if test -z "$LD"; then
6069 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6070 for ac_dir in $PATH; do
6071 IFS=$lt_save_ifs
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6074 lt_cv_path_LD=$ac_dir/$ac_prog
6075 # Check to see if the program is GNU ld. I'd rather use --version,
6076 # but apparently some variants of GNU ld only accept -v.
6077 # Break only if it was the GNU/non-GNU ld that we prefer.
6078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6079 *GNU* | *'with BFD'*)
6080 test no != "$with_gnu_ld" && break
6081 ;;
6082 *)
6083 test yes != "$with_gnu_ld" && break
6084 ;;
6085 esac
6086 fi
6087 done
6088 IFS=$lt_save_ifs
6089 else
6090 lt_cv_path_LD=$LD # Let the user override the test with a path.
6091 fi
6092 fi
6093
6094 LD=$lt_cv_path_LD
6095 if test -n "$LD"; then
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6097 printf "%s\n" "$LD" >&6; }
6098 else
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 printf "%s\n" "no" >&6; }
6101 fi
6102 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6104 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6105 if test ${lt_cv_prog_gnu_ld+y}
6106 then :
6107 printf %s "(cached) " >&6
6108 else $as_nop
6109 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6110 case `$LD -v 2>&1 </dev/null` in
6111 *GNU* | *'with BFD'*)
6112 lt_cv_prog_gnu_ld=yes
6113 ;;
6114 *)
6115 lt_cv_prog_gnu_ld=no
6116 ;;
6117 esac
6118 fi
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6120 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6121 with_gnu_ld=$lt_cv_prog_gnu_ld
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6132 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6133 if test ${lt_cv_path_NM+y}
6134 then :
6135 printf %s "(cached) " >&6
6136 else $as_nop
6137 if test -n "$NM"; then
6138 # Let the user override the test.
6139 lt_cv_path_NM=$NM
6140 else
6141 lt_nm_to_check=${ac_tool_prefix}nm
6142 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6143 lt_nm_to_check="$lt_nm_to_check nm"
6144 fi
6145 for lt_tmp_nm in $lt_nm_to_check; do
6146 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6147 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6148 IFS=$lt_save_ifs
6149 test -z "$ac_dir" && ac_dir=.
6150 tmp_nm=$ac_dir/$lt_tmp_nm
6151 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6152 # Check to see if the nm accepts a BSD-compat flag.
6153 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6154 # nm: unknown option "B" ignored
6155 # Tru64's nm complains that /dev/null is an invalid object file
6156 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6157 case $build_os in
6158 mingw*) lt_bad_file=conftest.nm/nofile ;;
6159 *) lt_bad_file=/dev/null ;;
6160 esac
6161 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6162 *$lt_bad_file* | *'Invalid file or object type'*)
6163 lt_cv_path_NM="$tmp_nm -B"
6164 break 2
6165 ;;
6166 *)
6167 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6168 */dev/null*)
6169 lt_cv_path_NM="$tmp_nm -p"
6170 break 2
6171 ;;
6172 *)
6173 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6174 continue # so that we can try to find one that supports BSD flags
6175 ;;
6176 esac
6177 ;;
6178 esac
6179 fi
6180 done
6181 IFS=$lt_save_ifs
6182 done
6183 : ${lt_cv_path_NM=no}
6184 fi
6185 fi
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6187 printf "%s\n" "$lt_cv_path_NM" >&6; }
6188 if test no != "$lt_cv_path_NM"; then
6189 NM=$lt_cv_path_NM
6190 else
6191 # Didn't find any BSD compatible name lister, look for dumpbin.
6192 if test -n "$DUMPBIN"; then :
6193 # Let the user override the test.
6194 else
6195 if test -n "$ac_tool_prefix"; then
6196 for ac_prog in dumpbin "link -dump"
6197 do
6198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 printf %s "checking for $ac_word... " >&6; }
6202 if test ${ac_cv_prog_DUMPBIN+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 if test -n "$DUMPBIN"; then
6207 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212 IFS=$as_save_IFS
6213 case $as_dir in #(((
6214 '') as_dir=./ ;;
6215 */) ;;
6216 *) as_dir=$as_dir/ ;;
6217 esac
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 DUMPBIN=$ac_cv_prog_DUMPBIN
6231 if test -n "$DUMPBIN"; then
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6233 printf "%s\n" "$DUMPBIN" >&6; }
6234 else
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 printf "%s\n" "no" >&6; }
6237 fi
6238
6239
6240 test -n "$DUMPBIN" && break
6241 done
6242 fi
6243 if test -z "$DUMPBIN"; then
6244 ac_ct_DUMPBIN=$DUMPBIN
6245 for ac_prog in dumpbin "link -dump"
6246 do
6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
6248 set dummy $ac_prog; ac_word=$2
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 printf %s "checking for $ac_word... " >&6; }
6251 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6252 then :
6253 printf %s "(cached) " >&6
6254 else $as_nop
6255 if test -n "$ac_ct_DUMPBIN"; then
6256 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 case $as_dir in #(((
6263 '') as_dir=./ ;;
6264 */) ;;
6265 *) as_dir=$as_dir/ ;;
6266 esac
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6280 if test -n "$ac_ct_DUMPBIN"; then
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6282 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6283 else
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 printf "%s\n" "no" >&6; }
6286 fi
6287
6288
6289 test -n "$ac_ct_DUMPBIN" && break
6290 done
6291
6292 if test "x$ac_ct_DUMPBIN" = x; then
6293 DUMPBIN=":"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 DUMPBIN=$ac_ct_DUMPBIN
6302 fi
6303 fi
6304
6305 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6306 *COFF*)
6307 DUMPBIN="$DUMPBIN -symbols -headers"
6308 ;;
6309 *)
6310 DUMPBIN=:
6311 ;;
6312 esac
6313 fi
6314
6315 if test : != "$DUMPBIN"; then
6316 NM=$DUMPBIN
6317 fi
6318 fi
6319 test -z "$NM" && NM=nm
6320
6321
6322
6323
6324
6325
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6327 printf %s "checking the name lister ($NM) interface... " >&6; }
6328 if test ${lt_cv_nm_interface+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else $as_nop
6332 lt_cv_nm_interface="BSD nm"
6333 echo "int some_variable = 0;" > conftest.$ac_ext
6334 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6335 (eval "$ac_compile" 2>conftest.err)
6336 cat conftest.err >&5
6337 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6338 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6339 cat conftest.err >&5
6340 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6341 cat conftest.out >&5
6342 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6343 lt_cv_nm_interface="MS dumpbin"
6344 fi
6345 rm -f conftest*
6346 fi
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6348 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6349
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6351 printf %s "checking whether ln -s works... " >&6; }
6352 LN_S=$as_ln_s
6353 if test "$LN_S" = "ln -s"; then
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6355 printf "%s\n" "yes" >&6; }
6356 else
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6358 printf "%s\n" "no, using $LN_S" >&6; }
6359 fi
6360
6361 # find the maximum length of command line arguments
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6363 printf %s "checking the maximum length of command line arguments... " >&6; }
6364 if test ${lt_cv_sys_max_cmd_len+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else $as_nop
6368 i=0
6369 teststring=ABCD
6370
6371 case $build_os in
6372 msdosdjgpp*)
6373 # On DJGPP, this test can blow up pretty badly due to problems in libc
6374 # (any single argument exceeding 2000 bytes causes a buffer overrun
6375 # during glob expansion). Even if it were fixed, the result of this
6376 # check would be larger than it should be.
6377 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6378 ;;
6379
6380 gnu*)
6381 # Under GNU Hurd, this test is not required because there is
6382 # no limit to the length of command line arguments.
6383 # Libtool will interpret -1 as no limit whatsoever
6384 lt_cv_sys_max_cmd_len=-1;
6385 ;;
6386
6387 cygwin* | mingw* | cegcc*)
6388 # On Win9x/ME, this test blows up -- it succeeds, but takes
6389 # about 5 minutes as the teststring grows exponentially.
6390 # Worse, since 9x/ME are not pre-emptively multitasking,
6391 # you end up with a "frozen" computer, even though with patience
6392 # the test eventually succeeds (with a max line length of 256k).
6393 # Instead, let's just punt: use the minimum linelength reported by
6394 # all of the supported platforms: 8192 (on NT/2K/XP).
6395 lt_cv_sys_max_cmd_len=8192;
6396 ;;
6397
6398 mint*)
6399 # On MiNT this can take a long time and run out of memory.
6400 lt_cv_sys_max_cmd_len=8192;
6401 ;;
6402
6403 amigaos*)
6404 # On AmigaOS with pdksh, this test takes hours, literally.
6405 # So we just punt and use a minimum line length of 8192.
6406 lt_cv_sys_max_cmd_len=8192;
6407 ;;
6408
6409 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6410 # This has been around since 386BSD, at least. Likely further.
6411 if test -x /sbin/sysctl; then
6412 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6413 elif test -x /usr/sbin/sysctl; then
6414 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6415 else
6416 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6417 fi
6418 # And add a safety zone
6419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6421 ;;
6422
6423 interix*)
6424 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6425 lt_cv_sys_max_cmd_len=196608
6426 ;;
6427
6428 os2*)
6429 # The test takes a long time on OS/2.
6430 lt_cv_sys_max_cmd_len=8192
6431 ;;
6432
6433 osf*)
6434 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6435 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6436 # nice to cause kernel panics so lets avoid the loop below.
6437 # First set a reasonable default.
6438 lt_cv_sys_max_cmd_len=16384
6439 #
6440 if test -x /sbin/sysconfig; then
6441 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6442 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6443 esac
6444 fi
6445 ;;
6446 sco3.2v5*)
6447 lt_cv_sys_max_cmd_len=102400
6448 ;;
6449 sysv5* | sco5v6* | sysv4.2uw2*)
6450 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6451 if test -n "$kargmax"; then
6452 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6453 else
6454 lt_cv_sys_max_cmd_len=32768
6455 fi
6456 ;;
6457 *)
6458 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6459 if test -n "$lt_cv_sys_max_cmd_len" && \
6460 test undefined != "$lt_cv_sys_max_cmd_len"; then
6461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6463 else
6464 # Make teststring a little bigger before we do anything with it.
6465 # a 1K string should be a reasonable start.
6466 for i in 1 2 3 4 5 6 7 8; do
6467 teststring=$teststring$teststring
6468 done
6469 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6470 # If test is not a shell built-in, we'll probably end up computing a
6471 # maximum length that is only half of the actual maximum length, but
6472 # we can't tell.
6473 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6474 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6475 test 17 != "$i" # 1/2 MB should be enough
6476 do
6477 i=`expr $i + 1`
6478 teststring=$teststring$teststring
6479 done
6480 # Only check the string length outside the loop.
6481 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6482 teststring=
6483 # Add a significant safety factor because C++ compilers can tack on
6484 # massive amounts of additional arguments before passing them to the
6485 # linker. It appears as though 1/2 is a usable value.
6486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6487 fi
6488 ;;
6489 esac
6490
6491 fi
6492
6493 if test -n "$lt_cv_sys_max_cmd_len"; then
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6495 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6496 else
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6498 printf "%s\n" "none" >&6; }
6499 fi
6500 max_cmd_len=$lt_cv_sys_max_cmd_len
6501
6502
6503
6504
6505
6506
6507 : ${CP="cp -f"}
6508 : ${MV="mv -f"}
6509 : ${RM="rm -f"}
6510
6511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512 lt_unset=unset
6513 else
6514 lt_unset=false
6515 fi
6516
6517
6518
6519
6520
6521 # test EBCDIC or ASCII
6522 case `echo X|tr X '\101'` in
6523 A) # ASCII based system
6524 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6525 lt_SP2NL='tr \040 \012'
6526 lt_NL2SP='tr \015\012 \040\040'
6527 ;;
6528 *) # EBCDIC based system
6529 lt_SP2NL='tr \100 \n'
6530 lt_NL2SP='tr \r\n \100\100'
6531 ;;
6532 esac
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6543 printf %s "checking how to convert $build file names to $host format... " >&6; }
6544 if test ${lt_cv_to_host_file_cmd+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else $as_nop
6548 case $host in
6549 *-*-mingw* )
6550 case $build in
6551 *-*-mingw* ) # actually msys
6552 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6553 ;;
6554 *-*-cygwin* )
6555 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6556 ;;
6557 * ) # otherwise, assume *nix
6558 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6559 ;;
6560 esac
6561 ;;
6562 *-*-cygwin* )
6563 case $build in
6564 *-*-mingw* ) # actually msys
6565 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6566 ;;
6567 *-*-cygwin* )
6568 lt_cv_to_host_file_cmd=func_convert_file_noop
6569 ;;
6570 * ) # otherwise, assume *nix
6571 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6572 ;;
6573 esac
6574 ;;
6575 * ) # unhandled hosts (and "normal" native builds)
6576 lt_cv_to_host_file_cmd=func_convert_file_noop
6577 ;;
6578 esac
6579
6580 fi
6581
6582 to_host_file_cmd=$lt_cv_to_host_file_cmd
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6584 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6585
6586
6587
6588
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6591 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6592 if test ${lt_cv_to_tool_file_cmd+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else $as_nop
6596 #assume ordinary cross tools, or native build.
6597 lt_cv_to_tool_file_cmd=func_convert_file_noop
6598 case $host in
6599 *-*-mingw* )
6600 case $build in
6601 *-*-mingw* ) # actually msys
6602 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6603 ;;
6604 esac
6605 ;;
6606 esac
6607
6608 fi
6609
6610 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6612 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6613
6614
6615
6616
6617
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6619 printf %s "checking for $LD option to reload object files... " >&6; }
6620 if test ${lt_cv_ld_reload_flag+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else $as_nop
6624 lt_cv_ld_reload_flag='-r'
6625 fi
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6627 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6628 reload_flag=$lt_cv_ld_reload_flag
6629 case $reload_flag in
6630 "" | " "*) ;;
6631 *) reload_flag=" $reload_flag" ;;
6632 esac
6633 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6634 case $host_os in
6635 cygwin* | mingw* | pw32* | cegcc*)
6636 if test yes != "$GCC"; then
6637 reload_cmds=false
6638 fi
6639 ;;
6640 darwin*)
6641 if test yes = "$GCC"; then
6642 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6643 else
6644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6645 fi
6646 ;;
6647 esac
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_OBJDUMP+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else $as_nop
6666 if test -n "$OBJDUMP"; then
6667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 OBJDUMP=$ac_cv_prog_OBJDUMP
6691 if test -n "$OBJDUMP"; then
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6693 printf "%s\n" "$OBJDUMP" >&6; }
6694 else
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 printf "%s\n" "no" >&6; }
6697 fi
6698
6699
6700 fi
6701 if test -z "$ac_cv_prog_OBJDUMP"; then
6702 ac_ct_OBJDUMP=$OBJDUMP
6703 # Extract the first word of "objdump", so it can be a program name with args.
6704 set dummy objdump; ac_word=$2
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706 printf %s "checking for $ac_word... " >&6; }
6707 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else $as_nop
6711 if test -n "$ac_ct_OBJDUMP"; then
6712 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 case $as_dir in #(((
6719 '') as_dir=./ ;;
6720 */) ;;
6721 *) as_dir=$as_dir/ ;;
6722 esac
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6736 if test -n "$ac_ct_OBJDUMP"; then
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6738 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6739 else
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 printf "%s\n" "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_OBJDUMP" = x; then
6745 OBJDUMP="false"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 OBJDUMP=$ac_ct_OBJDUMP
6754 fi
6755 else
6756 OBJDUMP="$ac_cv_prog_OBJDUMP"
6757 fi
6758
6759 test -z "$OBJDUMP" && OBJDUMP=objdump
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6770 printf %s "checking how to recognize dependent libraries... " >&6; }
6771 if test ${lt_cv_deplibs_check_method+y}
6772 then :
6773 printf %s "(cached) " >&6
6774 else $as_nop
6775 lt_cv_file_magic_cmd='$MAGIC_CMD'
6776 lt_cv_file_magic_test_file=
6777 lt_cv_deplibs_check_method='unknown'
6778 # Need to set the preceding variable on all platforms that support
6779 # interlibrary dependencies.
6780 # 'none' -- dependencies not supported.
6781 # 'unknown' -- same as none, but documents that we really don't know.
6782 # 'pass_all' -- all dependencies passed with no checks.
6783 # 'test_compile' -- check by making test program.
6784 # 'file_magic [[regex]]' -- check by looking for files in library path
6785 # that responds to the $file_magic_cmd with a given extended regex.
6786 # If you have 'file' or equivalent on your system and you're not sure
6787 # whether 'pass_all' will *always* work, you probably want this one.
6788
6789 case $host_os in
6790 aix[4-9]*)
6791 lt_cv_deplibs_check_method=pass_all
6792 ;;
6793
6794 beos*)
6795 lt_cv_deplibs_check_method=pass_all
6796 ;;
6797
6798 bsdi[45]*)
6799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6800 lt_cv_file_magic_cmd='/usr/bin/file -L'
6801 lt_cv_file_magic_test_file=/shlib/libc.so
6802 ;;
6803
6804 cygwin*)
6805 # func_win32_libid is a shell function defined in ltmain.sh
6806 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6807 lt_cv_file_magic_cmd='func_win32_libid'
6808 ;;
6809
6810 mingw* | pw32*)
6811 # Base MSYS/MinGW do not provide the 'file' command needed by
6812 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6813 # unless we find 'file', for example because we are cross-compiling.
6814 if ( file / ) >/dev/null 2>&1; then
6815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6816 lt_cv_file_magic_cmd='func_win32_libid'
6817 else
6818 # Keep this pattern in sync with the one in func_win32_libid.
6819 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6820 lt_cv_file_magic_cmd='$OBJDUMP -f'
6821 fi
6822 ;;
6823
6824 cegcc*)
6825 # use the weaker test based on 'objdump'. See mingw*.
6826 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6827 lt_cv_file_magic_cmd='$OBJDUMP -f'
6828 ;;
6829
6830 darwin* | rhapsody*)
6831 lt_cv_deplibs_check_method=pass_all
6832 ;;
6833
6834 freebsd* | dragonfly*)
6835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6836 case $host_cpu in
6837 i*86 )
6838 # Not sure whether the presence of OpenBSD here was a mistake.
6839 # Let's accept both of them until this is cleared up.
6840 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6841 lt_cv_file_magic_cmd=/usr/bin/file
6842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6843 ;;
6844 esac
6845 else
6846 lt_cv_deplibs_check_method=pass_all
6847 fi
6848 ;;
6849
6850 haiku*)
6851 lt_cv_deplibs_check_method=pass_all
6852 ;;
6853
6854 hpux10.20* | hpux11*)
6855 lt_cv_file_magic_cmd=/usr/bin/file
6856 case $host_cpu in
6857 ia64*)
6858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6859 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6860 ;;
6861 hppa*64*)
6862 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]'
6863 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6864 ;;
6865 *)
6866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6867 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6868 ;;
6869 esac
6870 ;;
6871
6872 interix[3-9]*)
6873 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6875 ;;
6876
6877 irix5* | irix6* | nonstopux*)
6878 case $LD in
6879 *-32|*"-32 ") libmagic=32-bit;;
6880 *-n32|*"-n32 ") libmagic=N32;;
6881 *-64|*"-64 ") libmagic=64-bit;;
6882 *) libmagic=never-match;;
6883 esac
6884 lt_cv_deplibs_check_method=pass_all
6885 ;;
6886
6887 # This must be glibc/ELF.
6888 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6889 lt_cv_deplibs_check_method=pass_all
6890 ;;
6891
6892 netbsd* | netbsdelf*-gnu)
6893 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6895 else
6896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6897 fi
6898 ;;
6899
6900 newos6*)
6901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6902 lt_cv_file_magic_cmd=/usr/bin/file
6903 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6904 ;;
6905
6906 *nto* | *qnx*)
6907 lt_cv_deplibs_check_method=pass_all
6908 ;;
6909
6910 openbsd* | bitrig*)
6911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6913 else
6914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6915 fi
6916 ;;
6917
6918 osf3* | osf4* | osf5*)
6919 lt_cv_deplibs_check_method=pass_all
6920 ;;
6921
6922 rdos*)
6923 lt_cv_deplibs_check_method=pass_all
6924 ;;
6925
6926 solaris*)
6927 lt_cv_deplibs_check_method=pass_all
6928 ;;
6929
6930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6931 lt_cv_deplibs_check_method=pass_all
6932 ;;
6933
6934 sysv4 | sysv4.3*)
6935 case $host_vendor in
6936 motorola)
6937 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]'
6938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6939 ;;
6940 ncr)
6941 lt_cv_deplibs_check_method=pass_all
6942 ;;
6943 sequent)
6944 lt_cv_file_magic_cmd='/bin/file'
6945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6946 ;;
6947 sni)
6948 lt_cv_file_magic_cmd='/bin/file'
6949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6950 lt_cv_file_magic_test_file=/lib/libc.so
6951 ;;
6952 siemens)
6953 lt_cv_deplibs_check_method=pass_all
6954 ;;
6955 pc)
6956 lt_cv_deplibs_check_method=pass_all
6957 ;;
6958 esac
6959 ;;
6960
6961 tpf*)
6962 lt_cv_deplibs_check_method=pass_all
6963 ;;
6964 os2*)
6965 lt_cv_deplibs_check_method=pass_all
6966 ;;
6967 esac
6968
6969 fi
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6971 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6972
6973 file_magic_glob=
6974 want_nocaseglob=no
6975 if test "$build" = "$host"; then
6976 case $host_os in
6977 mingw* | pw32*)
6978 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6979 want_nocaseglob=yes
6980 else
6981 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6982 fi
6983 ;;
6984 esac
6985 fi
6986
6987 file_magic_cmd=$lt_cv_file_magic_cmd
6988 deplibs_check_method=$lt_cv_deplibs_check_method
6989 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7014 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 printf %s "checking for $ac_word... " >&6; }
7017 if test ${ac_cv_prog_DLLTOOL+y}
7018 then :
7019 printf %s "(cached) " >&6
7020 else $as_nop
7021 if test -n "$DLLTOOL"; then
7022 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 case $as_dir in #(((
7029 '') as_dir=./ ;;
7030 */) ;;
7031 *) as_dir=$as_dir/ ;;
7032 esac
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 DLLTOOL=$ac_cv_prog_DLLTOOL
7046 if test -n "$DLLTOOL"; then
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7048 printf "%s\n" "$DLLTOOL" >&6; }
7049 else
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 printf "%s\n" "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_DLLTOOL"; then
7057 ac_ct_DLLTOOL=$DLLTOOL
7058 # Extract the first word of "dlltool", so it can be a program name with args.
7059 set dummy dlltool; ac_word=$2
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 printf %s "checking for $ac_word... " >&6; }
7062 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7063 then :
7064 printf %s "(cached) " >&6
7065 else $as_nop
7066 if test -n "$ac_ct_DLLTOOL"; then
7067 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 case $as_dir in #(((
7074 '') as_dir=./ ;;
7075 */) ;;
7076 *) as_dir=$as_dir/ ;;
7077 esac
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7091 if test -n "$ac_ct_DLLTOOL"; then
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7093 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7094 else
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 printf "%s\n" "no" >&6; }
7097 fi
7098
7099 if test "x$ac_ct_DLLTOOL" = x; then
7100 DLLTOOL="false"
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108 DLLTOOL=$ac_ct_DLLTOOL
7109 fi
7110 else
7111 DLLTOOL="$ac_cv_prog_DLLTOOL"
7112 fi
7113
7114 test -z "$DLLTOOL" && DLLTOOL=dlltool
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7126 printf %s "checking how to associate runtime and link libraries... " >&6; }
7127 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else $as_nop
7131 lt_cv_sharedlib_from_linklib_cmd='unknown'
7132
7133 case $host_os in
7134 cygwin* | mingw* | pw32* | cegcc*)
7135 # two different shell functions defined in ltmain.sh;
7136 # decide which one to use based on capabilities of $DLLTOOL
7137 case `$DLLTOOL --help 2>&1` in
7138 *--identify-strict*)
7139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7140 ;;
7141 *)
7142 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7143 ;;
7144 esac
7145 ;;
7146 *)
7147 # fallback: assume linklib IS sharedlib
7148 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7149 ;;
7150 esac
7151
7152 fi
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7154 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7155 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7156 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170 ac_ext=cpp
7171 ac_cpp='$CXXCPP $CPPFLAGS'
7172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7175 if test -z "$CXX"; then
7176 if test -n "$CCC"; then
7177 CXX=$CCC
7178 else
7179 if test -n "$ac_tool_prefix"; then
7180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7181 do
7182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 printf %s "checking for $ac_word... " >&6; }
7186 if test ${ac_cv_prog_CXX+y}
7187 then :
7188 printf %s "(cached) " >&6
7189 else $as_nop
7190 if test -n "$CXX"; then
7191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 case $as_dir in #(((
7198 '') as_dir=./ ;;
7199 */) ;;
7200 *) as_dir=$as_dir/ ;;
7201 esac
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208 done
7209 done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 CXX=$ac_cv_prog_CXX
7215 if test -n "$CXX"; then
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7217 printf "%s\n" "$CXX" >&6; }
7218 else
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 printf "%s\n" "no" >&6; }
7221 fi
7222
7223
7224 test -n "$CXX" && break
7225 done
7226 fi
7227 if test -z "$CXX"; then
7228 ac_ct_CXX=$CXX
7229 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
7230 do
7231 # Extract the first word of "$ac_prog", so it can be a program name with args.
7232 set dummy $ac_prog; ac_word=$2
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 printf %s "checking for $ac_word... " >&6; }
7235 if test ${ac_cv_prog_ac_ct_CXX+y}
7236 then :
7237 printf %s "(cached) " >&6
7238 else $as_nop
7239 if test -n "$ac_ct_CXX"; then
7240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245 IFS=$as_save_IFS
7246 case $as_dir in #(((
7247 '') as_dir=./ ;;
7248 */) ;;
7249 *) as_dir=$as_dir/ ;;
7250 esac
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_ac_ct_CXX="$ac_prog"
7254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7264 if test -n "$ac_ct_CXX"; then
7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7266 printf "%s\n" "$ac_ct_CXX" >&6; }
7267 else
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 printf "%s\n" "no" >&6; }
7270 fi
7271
7272
7273 test -n "$ac_ct_CXX" && break
7274 done
7275
7276 if test "x$ac_ct_CXX" = x; then
7277 CXX="g++"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 CXX=$ac_ct_CXX
7286 fi
7287 fi
7288
7289 fi
7290 fi
7291 # Provide some information about the compiler.
7292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7293 set X $ac_compile
7294 ac_compiler=$2
7295 for ac_option in --version -v -V -qversion; do
7296 { { ac_try="$ac_compiler $ac_option >&5"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7302 printf "%s\n" "$ac_try_echo"; } >&5
7303 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7304 ac_status=$?
7305 if test -s conftest.err; then
7306 sed '10a\
7307 ... rest of stderr output deleted ...
7308 10q' conftest.err >conftest.er1
7309 cat conftest.er1 >&5
7310 fi
7311 rm -f conftest.er1 conftest.err
7312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313 test $ac_status = 0; }
7314 done
7315
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
7317 printf %s "checking whether the compiler supports GNU C++... " >&6; }
7318 if test ${ac_cv_cxx_compiler_gnu+y}
7319 then :
7320 printf %s "(cached) " >&6
7321 else $as_nop
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324
7325 int
7326 main (void)
7327 {
7328 #ifndef __GNUC__
7329 choke me
7330 #endif
7331
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 if ac_fn_cxx_try_compile "$LINENO"
7337 then :
7338 ac_compiler_gnu=yes
7339 else $as_nop
7340 ac_compiler_gnu=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7344
7345 fi
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7347 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
7348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7349
7350 if test $ac_compiler_gnu = yes; then
7351 GXX=yes
7352 else
7353 GXX=
7354 fi
7355 ac_test_CXXFLAGS=${CXXFLAGS+y}
7356 ac_save_CXXFLAGS=$CXXFLAGS
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7358 printf %s "checking whether $CXX accepts -g... " >&6; }
7359 if test ${ac_cv_prog_cxx_g+y}
7360 then :
7361 printf %s "(cached) " >&6
7362 else $as_nop
7363 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7364 ac_cxx_werror_flag=yes
7365 ac_cv_prog_cxx_g=no
7366 CXXFLAGS="-g"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369
7370 int
7371 main (void)
7372 {
7373
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_cxx_try_compile "$LINENO"
7379 then :
7380 ac_cv_prog_cxx_g=yes
7381 else $as_nop
7382 CXXFLAGS=""
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385
7386 int
7387 main (void)
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_cxx_try_compile "$LINENO"
7395 then :
7396
7397 else $as_nop
7398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7399 CXXFLAGS="-g"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402
7403 int
7404 main (void)
7405 {
7406
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_cxx_try_compile "$LINENO"
7412 then :
7413 ac_cv_prog_cxx_g=yes
7414 fi
7415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7421 fi
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7423 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
7424 if test $ac_test_CXXFLAGS; then
7425 CXXFLAGS=$ac_save_CXXFLAGS
7426 elif test $ac_cv_prog_cxx_g = yes; then
7427 if test "$GXX" = yes; then
7428 CXXFLAGS="-g -O2"
7429 else
7430 CXXFLAGS="-g"
7431 fi
7432 else
7433 if test "$GXX" = yes; then
7434 CXXFLAGS="-O2"
7435 else
7436 CXXFLAGS=
7437 fi
7438 fi
7439 ac_prog_cxx_stdcxx=no
7440 if test x$ac_prog_cxx_stdcxx = xno
7441 then :
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
7443 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
7444 if test ${ac_cv_prog_cxx_11+y}
7445 then :
7446 printf %s "(cached) " >&6
7447 else $as_nop
7448 ac_cv_prog_cxx_11=no
7449 ac_save_CXX=$CXX
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 $ac_cxx_conftest_cxx11_program
7453 _ACEOF
7454 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
7455 do
7456 CXX="$ac_save_CXX $ac_arg"
7457 if ac_fn_cxx_try_compile "$LINENO"
7458 then :
7459 ac_cv_prog_cxx_cxx11=$ac_arg
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.beam
7462 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7463 done
7464 rm -f conftest.$ac_ext
7465 CXX=$ac_save_CXX
7466 fi
7467
7468 if test "x$ac_cv_prog_cxx_cxx11" = xno
7469 then :
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7471 printf "%s\n" "unsupported" >&6; }
7472 else $as_nop
7473 if test "x$ac_cv_prog_cxx_cxx11" = x
7474 then :
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7476 printf "%s\n" "none needed" >&6; }
7477 else $as_nop
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7479 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7480 CXX="$CXX $ac_cv_prog_cxx_cxx11"
7481 fi
7482 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7483 ac_prog_cxx_stdcxx=cxx11
7484 fi
7485 fi
7486 if test x$ac_prog_cxx_stdcxx = xno
7487 then :
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7489 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
7490 if test ${ac_cv_prog_cxx_98+y}
7491 then :
7492 printf %s "(cached) " >&6
7493 else $as_nop
7494 ac_cv_prog_cxx_98=no
7495 ac_save_CXX=$CXX
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 $ac_cxx_conftest_cxx98_program
7499 _ACEOF
7500 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7501 do
7502 CXX="$ac_save_CXX $ac_arg"
7503 if ac_fn_cxx_try_compile "$LINENO"
7504 then :
7505 ac_cv_prog_cxx_cxx98=$ac_arg
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext conftest.beam
7508 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7509 done
7510 rm -f conftest.$ac_ext
7511 CXX=$ac_save_CXX
7512 fi
7513
7514 if test "x$ac_cv_prog_cxx_cxx98" = xno
7515 then :
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7517 printf "%s\n" "unsupported" >&6; }
7518 else $as_nop
7519 if test "x$ac_cv_prog_cxx_cxx98" = x
7520 then :
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7522 printf "%s\n" "none needed" >&6; }
7523 else $as_nop
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7525 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7526 CXX="$CXX $ac_cv_prog_cxx_cxx98"
7527 fi
7528 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7529 ac_prog_cxx_stdcxx=cxx98
7530 fi
7531 fi
7532
7533 ac_ext=cpp
7534 ac_cpp='$CXXCPP $CPPFLAGS'
7535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7538
7539 depcc="$CXX" am_compiler_list=
7540
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7542 printf %s "checking dependency style of $depcc... " >&6; }
7543 if test ${am_cv_CXX_dependencies_compiler_type+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else $as_nop
7547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7548 # We make a subdir and do the tests there. Otherwise we can end up
7549 # making bogus files that we don't know about and never remove. For
7550 # instance it was reported that on HP-UX the gcc test will end up
7551 # making a dummy file named 'D' -- because '-MD' means "put the output
7552 # in D".
7553 rm -rf conftest.dir
7554 mkdir conftest.dir
7555 # Copy depcomp to subdir because otherwise we won't find it if we're
7556 # using a relative directory.
7557 cp "$am_depcomp" conftest.dir
7558 cd conftest.dir
7559 # We will build objects and dependencies in a subdirectory because
7560 # it helps to detect inapplicable dependency modes. For instance
7561 # both Tru64's cc and ICC support -MD to output dependencies as a
7562 # side effect of compilation, but ICC will put the dependencies in
7563 # the current directory while Tru64 will put them in the object
7564 # directory.
7565 mkdir sub
7566
7567 am_cv_CXX_dependencies_compiler_type=none
7568 if test "$am_compiler_list" = ""; then
7569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7570 fi
7571 am__universal=false
7572 case " $depcc " in #(
7573 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7574 esac
7575
7576 for depmode in $am_compiler_list; do
7577 # Setup a source with many dependencies, because some compilers
7578 # like to wrap large dependency lists on column 80 (with \), and
7579 # we should not choose a depcomp mode which is confused by this.
7580 #
7581 # We need to recreate these files for each test, as the compiler may
7582 # overwrite some of them when testing with obscure command lines.
7583 # This happens at least with the AIX C compiler.
7584 : > sub/conftest.c
7585 for i in 1 2 3 4 5 6; do
7586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7587 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7588 # Solaris 10 /bin/sh.
7589 echo '/* dummy */' > sub/conftst$i.h
7590 done
7591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7592
7593 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7594 # mode. It turns out that the SunPro C++ compiler does not properly
7595 # handle '-M -o', and we need to detect this. Also, some Intel
7596 # versions had trouble with output in subdirs.
7597 am__obj=sub/conftest.${OBJEXT-o}
7598 am__minus_obj="-o $am__obj"
7599 case $depmode in
7600 gcc)
7601 # This depmode causes a compiler race in universal mode.
7602 test "$am__universal" = false || continue
7603 ;;
7604 nosideeffect)
7605 # After this tag, mechanisms are not by side-effect, so they'll
7606 # only be used when explicitly requested.
7607 if test "x$enable_dependency_tracking" = xyes; then
7608 continue
7609 else
7610 break
7611 fi
7612 ;;
7613 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7614 # This compiler won't grok '-c -o', but also, the minuso test has
7615 # not run yet. These depmodes are late enough in the game, and
7616 # so weak that their functioning should not be impacted.
7617 am__obj=conftest.${OBJEXT-o}
7618 am__minus_obj=
7619 ;;
7620 none) break ;;
7621 esac
7622 if depmode=$depmode \
7623 source=sub/conftest.c object=$am__obj \
7624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7626 >/dev/null 2>conftest.err &&
7627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7631 # icc doesn't choke on unknown options, it will just issue warnings
7632 # or remarks (even with -Werror). So we grep stderr for any message
7633 # that says an option was ignored or not supported.
7634 # When given -MP, icc 7.0 and 7.1 complain thusly:
7635 # icc: Command line warning: ignoring option '-M'; no argument required
7636 # The diagnosis changed in icc 8.0:
7637 # icc: Command line remark: option '-MP' not supported
7638 if (grep 'ignoring option' conftest.err ||
7639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7640 am_cv_CXX_dependencies_compiler_type=$depmode
7641 break
7642 fi
7643 fi
7644 done
7645
7646 cd ..
7647 rm -rf conftest.dir
7648 else
7649 am_cv_CXX_dependencies_compiler_type=none
7650 fi
7651
7652 fi
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7654 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7655 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7656
7657 if
7658 test "x$enable_dependency_tracking" != xno \
7659 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7660 am__fastdepCXX_TRUE=
7661 am__fastdepCXX_FALSE='#'
7662 else
7663 am__fastdepCXX_TRUE='#'
7664 am__fastdepCXX_FALSE=
7665 fi
7666
7667
7668
7669 if test -n "$ac_tool_prefix"; then
7670 for ac_prog in ar
7671 do
7672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 printf %s "checking for $ac_word... " >&6; }
7676 if test ${ac_cv_prog_AR+y}
7677 then :
7678 printf %s "(cached) " >&6
7679 else $as_nop
7680 if test -n "$AR"; then
7681 ac_cv_prog_AR="$AR" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 case $as_dir in #(((
7688 '') as_dir=./ ;;
7689 */) ;;
7690 *) as_dir=$as_dir/ ;;
7691 esac
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 AR=$ac_cv_prog_AR
7705 if test -n "$AR"; then
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7707 printf "%s\n" "$AR" >&6; }
7708 else
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 printf "%s\n" "no" >&6; }
7711 fi
7712
7713
7714 test -n "$AR" && break
7715 done
7716 fi
7717 if test -z "$AR"; then
7718 ac_ct_AR=$AR
7719 for ac_prog in ar
7720 do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 printf %s "checking for $ac_word... " >&6; }
7725 if test ${ac_cv_prog_ac_ct_AR+y}
7726 then :
7727 printf %s "(cached) " >&6
7728 else $as_nop
7729 if test -n "$ac_ct_AR"; then
7730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 case $as_dir in #(((
7737 '') as_dir=./ ;;
7738 */) ;;
7739 *) as_dir=$as_dir/ ;;
7740 esac
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_ac_ct_AR="$ac_prog"
7744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7754 if test -n "$ac_ct_AR"; then
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7756 printf "%s\n" "$ac_ct_AR" >&6; }
7757 else
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 printf "%s\n" "no" >&6; }
7760 fi
7761
7762
7763 test -n "$ac_ct_AR" && break
7764 done
7765
7766 if test "x$ac_ct_AR" = x; then
7767 AR="false"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 AR=$ac_ct_AR
7776 fi
7777 fi
7778
7779 : ${AR=ar}
7780 : ${AR_FLAGS=cr}
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7793 printf %s "checking for archiver @FILE support... " >&6; }
7794 if test ${lt_cv_ar_at_file+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else $as_nop
7798 lt_cv_ar_at_file=no
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801
7802 int
7803 main (void)
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_cxx_try_compile "$LINENO"
7811 then :
7812 echo conftest.$ac_objext > conftest.lst
7813 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7815 (eval $lt_ar_try) 2>&5
7816 ac_status=$?
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }
7819 if test 0 -eq "$ac_status"; then
7820 # Ensure the archiver fails upon bogus file names.
7821 rm -f conftest.$ac_objext libconftest.a
7822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7823 (eval $lt_ar_try) 2>&5
7824 ac_status=$?
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }
7827 if test 0 -ne "$ac_status"; then
7828 lt_cv_ar_at_file=@
7829 fi
7830 fi
7831 rm -f conftest.* libconftest.a
7832
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7835
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7838 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7839
7840 if test no = "$lt_cv_ar_at_file"; then
7841 archiver_list_spec=
7842 else
7843 archiver_list_spec=$lt_cv_ar_at_file
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}strip; ac_word=$2
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 printf %s "checking for $ac_word... " >&6; }
7857 if test ${ac_cv_prog_STRIP+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
7861 if test -n "$STRIP"; then
7862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867 IFS=$as_save_IFS
7868 case $as_dir in #(((
7869 '') as_dir=./ ;;
7870 */) ;;
7871 *) as_dir=$as_dir/ ;;
7872 esac
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 STRIP=$ac_cv_prog_STRIP
7886 if test -n "$STRIP"; then
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7888 printf "%s\n" "$STRIP" >&6; }
7889 else
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 printf "%s\n" "no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_STRIP"; then
7897 ac_ct_STRIP=$STRIP
7898 # Extract the first word of "strip", so it can be a program name with args.
7899 set dummy strip; ac_word=$2
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 printf %s "checking for $ac_word... " >&6; }
7902 if test ${ac_cv_prog_ac_ct_STRIP+y}
7903 then :
7904 printf %s "(cached) " >&6
7905 else $as_nop
7906 if test -n "$ac_ct_STRIP"; then
7907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 case $as_dir in #(((
7914 '') as_dir=./ ;;
7915 */) ;;
7916 *) as_dir=$as_dir/ ;;
7917 esac
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_ac_ct_STRIP="strip"
7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7931 if test -n "$ac_ct_STRIP"; then
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7933 printf "%s\n" "$ac_ct_STRIP" >&6; }
7934 else
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 printf "%s\n" "no" >&6; }
7937 fi
7938
7939 if test "x$ac_ct_STRIP" = x; then
7940 STRIP=":"
7941 else
7942 case $cross_compiling:$ac_tool_warned in
7943 yes:)
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7946 ac_tool_warned=yes ;;
7947 esac
7948 STRIP=$ac_ct_STRIP
7949 fi
7950 else
7951 STRIP="$ac_cv_prog_STRIP"
7952 fi
7953
7954 test -z "$STRIP" && STRIP=:
7955
7956
7957
7958
7959
7960
7961 if test -n "$ac_tool_prefix"; then
7962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 printf %s "checking for $ac_word... " >&6; }
7966 if test ${ac_cv_prog_RANLIB+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else $as_nop
7970 if test -n "$RANLIB"; then
7971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976 IFS=$as_save_IFS
7977 case $as_dir in #(((
7978 '') as_dir=./ ;;
7979 */) ;;
7980 *) as_dir=$as_dir/ ;;
7981 esac
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 RANLIB=$ac_cv_prog_RANLIB
7995 if test -n "$RANLIB"; then
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7997 printf "%s\n" "$RANLIB" >&6; }
7998 else
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 printf "%s\n" "no" >&6; }
8001 fi
8002
8003
8004 fi
8005 if test -z "$ac_cv_prog_RANLIB"; then
8006 ac_ct_RANLIB=$RANLIB
8007 # Extract the first word of "ranlib", so it can be a program name with args.
8008 set dummy ranlib; ac_word=$2
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 printf %s "checking for $ac_word... " >&6; }
8011 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8012 then :
8013 printf %s "(cached) " >&6
8014 else $as_nop
8015 if test -n "$ac_ct_RANLIB"; then
8016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021 IFS=$as_save_IFS
8022 case $as_dir in #(((
8023 '') as_dir=./ ;;
8024 */) ;;
8025 *) as_dir=$as_dir/ ;;
8026 esac
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_RANLIB="ranlib"
8030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033 done
8034 done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8040 if test -n "$ac_ct_RANLIB"; then
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8042 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8043 else
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 printf "%s\n" "no" >&6; }
8046 fi
8047
8048 if test "x$ac_ct_RANLIB" = x; then
8049 RANLIB=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 RANLIB=$ac_ct_RANLIB
8058 fi
8059 else
8060 RANLIB="$ac_cv_prog_RANLIB"
8061 fi
8062
8063 test -z "$RANLIB" && RANLIB=:
8064
8065
8066
8067
8068
8069
8070 # Determine commands to create old-style static archives.
8071 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8072 old_postinstall_cmds='chmod 644 $oldlib'
8073 old_postuninstall_cmds=
8074
8075 if test -n "$RANLIB"; then
8076 case $host_os in
8077 bitrig* | openbsd*)
8078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8079 ;;
8080 *)
8081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8082 ;;
8083 esac
8084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8085 fi
8086
8087 case $host_os in
8088 darwin*)
8089 lock_old_archive_extraction=yes ;;
8090 *)
8091 lock_old_archive_extraction=no ;;
8092 esac
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 # If no C compiler was specified, use CC.
8133 LTCC=${LTCC-"$CC"}
8134
8135 # If no C compiler flags were specified, use CFLAGS.
8136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8137
8138 # Allow CC to be a program name with arguments.
8139 compiler=$CC
8140
8141
8142 # Check for command to grab the raw symbol name followed by C symbol from nm.
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8144 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8145 if test ${lt_cv_sys_global_symbol_pipe+y}
8146 then :
8147 printf %s "(cached) " >&6
8148 else $as_nop
8149
8150 # These are sane defaults that work on at least a few old systems.
8151 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8152
8153 # Character class describing NM global symbol codes.
8154 symcode='[BCDEGRST]'
8155
8156 # Regexp to match symbols that can be accessed directly from C.
8157 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8158
8159 # Define system-specific variables.
8160 case $host_os in
8161 aix*)
8162 symcode='[BCDT]'
8163 ;;
8164 cygwin* | mingw* | pw32* | cegcc*)
8165 symcode='[ABCDGISTW]'
8166 ;;
8167 hpux*)
8168 if test ia64 = "$host_cpu"; then
8169 symcode='[ABCDEGRST]'
8170 fi
8171 ;;
8172 irix* | nonstopux*)
8173 symcode='[BCDEGRST]'
8174 ;;
8175 osf*)
8176 symcode='[BCDEGQRST]'
8177 ;;
8178 solaris*)
8179 symcode='[BDRT]'
8180 ;;
8181 sco3.2v5*)
8182 symcode='[DT]'
8183 ;;
8184 sysv4.2uw2*)
8185 symcode='[DT]'
8186 ;;
8187 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8188 symcode='[ABDT]'
8189 ;;
8190 sysv4)
8191 symcode='[DFNSTU]'
8192 ;;
8193 esac
8194
8195 # If we're using GNU nm, then use its standard symbol codes.
8196 case `$NM -V 2>&1` in
8197 *GNU* | *'with BFD'*)
8198 symcode='[ABCDGIRSTW]' ;;
8199 esac
8200
8201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8202 # Gets list of data symbols to import.
8203 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8204 # Adjust the below global symbol transforms to fixup imported variables.
8205 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8206 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8207 lt_c_name_lib_hook="\
8208 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8209 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8210 else
8211 # Disable hooks by default.
8212 lt_cv_sys_global_symbol_to_import=
8213 lt_cdecl_hook=
8214 lt_c_name_hook=
8215 lt_c_name_lib_hook=
8216 fi
8217
8218 # Transform an extracted symbol line into a proper C declaration.
8219 # Some systems (esp. on ia64) link data and code symbols differently,
8220 # so use this general approach.
8221 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8222 $lt_cdecl_hook\
8223 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8224 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8225
8226 # Transform an extracted symbol line into symbol name and symbol address
8227 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8228 $lt_c_name_hook\
8229 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8230 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8231
8232 # Transform an extracted symbol line into symbol name with lib prefix and
8233 # symbol address.
8234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8235 $lt_c_name_lib_hook\
8236 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8237 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8238 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8239
8240 # Handle CRLF in mingw tool chain
8241 opt_cr=
8242 case $build_os in
8243 mingw*)
8244 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8245 ;;
8246 esac
8247
8248 # Try without a prefix underscore, then with it.
8249 for ac_symprfx in "" "_"; do
8250
8251 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8252 symxfrm="\\1 $ac_symprfx\\2 \\2"
8253
8254 # Write the raw and C identifiers.
8255 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8256 # Fake it for dumpbin and say T for any non-static function,
8257 # D for any global variable and I for any imported variable.
8258 # Also find C++ and __fastcall symbols from MSVC++,
8259 # which start with @ or ?.
8260 lt_cv_sys_global_symbol_pipe="$AWK '"\
8261 " {last_section=section; section=\$ 3};"\
8262 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8263 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8264 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8265 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8266 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8267 " \$ 0!~/External *\|/{next};"\
8268 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8269 " {if(hide[section]) next};"\
8270 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8271 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8272 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8273 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8274 " ' prfx=^$ac_symprfx"
8275 else
8276 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8277 fi
8278 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8279
8280 # Check to see that the pipe works correctly.
8281 pipe_works=no
8282
8283 rm -f conftest*
8284 cat > conftest.$ac_ext <<_LT_EOF
8285 #ifdef __cplusplus
8286 extern "C" {
8287 #endif
8288 char nm_test_var;
8289 void nm_test_func(void);
8290 void nm_test_func(void){}
8291 #ifdef __cplusplus
8292 }
8293 #endif
8294 int main(){nm_test_var='a';nm_test_func();return(0);}
8295 _LT_EOF
8296
8297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8298 (eval $ac_compile) 2>&5
8299 ac_status=$?
8300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8301 test $ac_status = 0; }; then
8302 # Now try to grab the symbols.
8303 nlist=conftest.nm
8304 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8305 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8306 # Try sorting and uniquifying the output.
8307 if sort "$nlist" | uniq > "$nlist"T; then
8308 mv -f "$nlist"T "$nlist"
8309 else
8310 rm -f "$nlist"T
8311 fi
8312
8313 # Make sure that we snagged all the symbols we need.
8314 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8315 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8316 cat <<_LT_EOF > conftest.$ac_ext
8317 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8318 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8319 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8320 relocations are performed -- see ld's documentation on pseudo-relocs. */
8321 # define LT_DLSYM_CONST
8322 #elif defined __osf__
8323 /* This system does not cope well with relocations in const data. */
8324 # define LT_DLSYM_CONST
8325 #else
8326 # define LT_DLSYM_CONST const
8327 #endif
8328
8329 #ifdef __cplusplus
8330 extern "C" {
8331 #endif
8332
8333 _LT_EOF
8334 # Now generate the symbol file.
8335 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8336
8337 cat <<_LT_EOF >> conftest.$ac_ext
8338
8339 /* The mapping between symbol names and symbols. */
8340 LT_DLSYM_CONST struct {
8341 const char *name;
8342 void *address;
8343 }
8344 lt__PROGRAM__LTX_preloaded_symbols[] =
8345 {
8346 { "@PROGRAM@", (void *) 0 },
8347 _LT_EOF
8348 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8349 cat <<\_LT_EOF >> conftest.$ac_ext
8350 {0, (void *) 0}
8351 };
8352
8353 /* This works around a problem in FreeBSD linker */
8354 #ifdef FREEBSD_WORKAROUND
8355 static const void *lt_preloaded_setup() {
8356 return lt__PROGRAM__LTX_preloaded_symbols;
8357 }
8358 #endif
8359
8360 #ifdef __cplusplus
8361 }
8362 #endif
8363 _LT_EOF
8364 # Now try linking the two files.
8365 mv conftest.$ac_objext conftstm.$ac_objext
8366 lt_globsym_save_LIBS=$LIBS
8367 lt_globsym_save_CFLAGS=$CFLAGS
8368 LIBS=conftstm.$ac_objext
8369 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8371 (eval $ac_link) 2>&5
8372 ac_status=$?
8373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8374 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8375 pipe_works=yes
8376 fi
8377 LIBS=$lt_globsym_save_LIBS
8378 CFLAGS=$lt_globsym_save_CFLAGS
8379 else
8380 echo "cannot find nm_test_func in $nlist" >&5
8381 fi
8382 else
8383 echo "cannot find nm_test_var in $nlist" >&5
8384 fi
8385 else
8386 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8387 fi
8388 else
8389 echo "$progname: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 fi
8392 rm -rf conftest* conftst*
8393
8394 # Do not use the global_symbol_pipe unless it works.
8395 if test yes = "$pipe_works"; then
8396 break
8397 else
8398 lt_cv_sys_global_symbol_pipe=
8399 fi
8400 done
8401
8402 fi
8403
8404 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8405 lt_cv_sys_global_symbol_to_cdecl=
8406 fi
8407 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8409 printf "%s\n" "failed" >&6; }
8410 else
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8412 printf "%s\n" "ok" >&6; }
8413 fi
8414
8415 # Response file support.
8416 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8417 nm_file_list_spec='@'
8418 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8419 nm_file_list_spec='@'
8420 fi
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8459 printf %s "checking for sysroot... " >&6; }
8460
8461 # Check whether --with-sysroot was given.
8462 if test ${with_sysroot+y}
8463 then :
8464 withval=$with_sysroot;
8465 else $as_nop
8466 with_sysroot=no
8467 fi
8468
8469
8470 lt_sysroot=
8471 case $with_sysroot in #(
8472 yes)
8473 if test yes = "$GCC"; then
8474 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8475 fi
8476 ;; #(
8477 /*)
8478 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8479 ;; #(
8480 no|'')
8481 ;; #(
8482 *)
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8484 printf "%s\n" "$with_sysroot" >&6; }
8485 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8486 ;;
8487 esac
8488
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8490 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8491
8492
8493
8494
8495
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8497 printf %s "checking for a working dd... " >&6; }
8498 if test ${ac_cv_path_lt_DD+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else $as_nop
8502 printf 0123456789abcdef0123456789abcdef >conftest.i
8503 cat conftest.i conftest.i >conftest2.i
8504 : ${lt_DD:=$DD}
8505 if test -z "$lt_DD"; then
8506 ac_path_lt_DD_found=false
8507 # Loop through the user's path and test for each of PROGNAME-LIST
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511 IFS=$as_save_IFS
8512 case $as_dir in #(((
8513 '') as_dir=./ ;;
8514 */) ;;
8515 *) as_dir=$as_dir/ ;;
8516 esac
8517 for ac_prog in dd
8518 do
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8521 as_fn_executable_p "$ac_path_lt_DD" || continue
8522 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8523 cmp -s conftest.i conftest.out \
8524 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8525 fi
8526 $ac_path_lt_DD_found && break 3
8527 done
8528 done
8529 done
8530 IFS=$as_save_IFS
8531 if test -z "$ac_cv_path_lt_DD"; then
8532 :
8533 fi
8534 else
8535 ac_cv_path_lt_DD=$lt_DD
8536 fi
8537
8538 rm -f conftest.i conftest2.i conftest.out
8539 fi
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8541 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8542
8543
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8545 printf %s "checking how to truncate binary pipes... " >&6; }
8546 if test ${lt_cv_truncate_bin+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 printf 0123456789abcdef0123456789abcdef >conftest.i
8551 cat conftest.i conftest.i >conftest2.i
8552 lt_cv_truncate_bin=
8553 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8554 cmp -s conftest.i conftest.out \
8555 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8556 fi
8557 rm -f conftest.i conftest2.i conftest.out
8558 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8559 fi
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8561 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8562
8563
8564
8565
8566
8567
8568
8569 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8570 func_cc_basename ()
8571 {
8572 for cc_temp in $*""; do
8573 case $cc_temp in
8574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8576 \-*) ;;
8577 *) break;;
8578 esac
8579 done
8580 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8581 }
8582
8583 # Check whether --enable-libtool-lock was given.
8584 if test ${enable_libtool_lock+y}
8585 then :
8586 enableval=$enable_libtool_lock;
8587 fi
8588
8589 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8590
8591 # Some flags need to be propagated to the compiler or linker for good
8592 # libtool support.
8593 case $host in
8594 ia64-*-hpux*)
8595 # Find out what ABI is being produced by ac_compile, and set mode
8596 # options accordingly.
8597 echo 'int i;' > conftest.$ac_ext
8598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8599 (eval $ac_compile) 2>&5
8600 ac_status=$?
8601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8602 test $ac_status = 0; }; then
8603 case `/usr/bin/file conftest.$ac_objext` in
8604 *ELF-32*)
8605 HPUX_IA64_MODE=32
8606 ;;
8607 *ELF-64*)
8608 HPUX_IA64_MODE=64
8609 ;;
8610 esac
8611 fi
8612 rm -rf conftest*
8613 ;;
8614 *-*-irix6*)
8615 # Find out what ABI is being produced by ac_compile, and set linker
8616 # options accordingly.
8617 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8619 (eval $ac_compile) 2>&5
8620 ac_status=$?
8621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8622 test $ac_status = 0; }; then
8623 if test yes = "$lt_cv_prog_gnu_ld"; then
8624 case `/usr/bin/file conftest.$ac_objext` in
8625 *32-bit*)
8626 LD="${LD-ld} -melf32bsmip"
8627 ;;
8628 *N32*)
8629 LD="${LD-ld} -melf32bmipn32"
8630 ;;
8631 *64-bit*)
8632 LD="${LD-ld} -melf64bmip"
8633 ;;
8634 esac
8635 else
8636 case `/usr/bin/file conftest.$ac_objext` in
8637 *32-bit*)
8638 LD="${LD-ld} -32"
8639 ;;
8640 *N32*)
8641 LD="${LD-ld} -n32"
8642 ;;
8643 *64-bit*)
8644 LD="${LD-ld} -64"
8645 ;;
8646 esac
8647 fi
8648 fi
8649 rm -rf conftest*
8650 ;;
8651
8652 mips64*-*linux*)
8653 # Find out what ABI is being produced by ac_compile, and set linker
8654 # options accordingly.
8655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8657 (eval $ac_compile) 2>&5
8658 ac_status=$?
8659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8660 test $ac_status = 0; }; then
8661 emul=elf
8662 case `/usr/bin/file conftest.$ac_objext` in
8663 *32-bit*)
8664 emul="${emul}32"
8665 ;;
8666 *64-bit*)
8667 emul="${emul}64"
8668 ;;
8669 esac
8670 case `/usr/bin/file conftest.$ac_objext` in
8671 *MSB*)
8672 emul="${emul}btsmip"
8673 ;;
8674 *LSB*)
8675 emul="${emul}ltsmip"
8676 ;;
8677 esac
8678 case `/usr/bin/file conftest.$ac_objext` in
8679 *N32*)
8680 emul="${emul}n32"
8681 ;;
8682 esac
8683 LD="${LD-ld} -m $emul"
8684 fi
8685 rm -rf conftest*
8686 ;;
8687
8688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8690 # Find out what ABI is being produced by ac_compile, and set linker
8691 # options accordingly. Note that the listed cases only cover the
8692 # situations where additional linker options are needed (such as when
8693 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8694 # vice versa); the common cases where no linker options are needed do
8695 # not appear in the list.
8696 echo 'int i;' > conftest.$ac_ext
8697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8698 (eval $ac_compile) 2>&5
8699 ac_status=$?
8700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701 test $ac_status = 0; }; then
8702 case `/usr/bin/file conftest.o` in
8703 *32-bit*)
8704 case $host in
8705 x86_64-*kfreebsd*-gnu)
8706 LD="${LD-ld} -m elf_i386_fbsd"
8707 ;;
8708 x86_64-*linux*)
8709 case `/usr/bin/file conftest.o` in
8710 *x86-64*)
8711 LD="${LD-ld} -m elf32_x86_64"
8712 ;;
8713 *)
8714 LD="${LD-ld} -m elf_i386"
8715 ;;
8716 esac
8717 ;;
8718 powerpc64le-*linux*)
8719 LD="${LD-ld} -m elf32lppclinux"
8720 ;;
8721 powerpc64-*linux*)
8722 LD="${LD-ld} -m elf32ppclinux"
8723 ;;
8724 s390x-*linux*)
8725 LD="${LD-ld} -m elf_s390"
8726 ;;
8727 sparc64-*linux*)
8728 LD="${LD-ld} -m elf32_sparc"
8729 ;;
8730 esac
8731 ;;
8732 *64-bit*)
8733 case $host in
8734 x86_64-*kfreebsd*-gnu)
8735 LD="${LD-ld} -m elf_x86_64_fbsd"
8736 ;;
8737 x86_64-*linux*)
8738 LD="${LD-ld} -m elf_x86_64"
8739 ;;
8740 powerpcle-*linux*)
8741 LD="${LD-ld} -m elf64lppc"
8742 ;;
8743 powerpc-*linux*)
8744 LD="${LD-ld} -m elf64ppc"
8745 ;;
8746 s390*-*linux*|s390*-*tpf*)
8747 LD="${LD-ld} -m elf64_s390"
8748 ;;
8749 sparc*-*linux*)
8750 LD="${LD-ld} -m elf64_sparc"
8751 ;;
8752 esac
8753 ;;
8754 esac
8755 fi
8756 rm -rf conftest*
8757 ;;
8758
8759 *-*-sco3.2v5*)
8760 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8761 SAVE_CFLAGS=$CFLAGS
8762 CFLAGS="$CFLAGS -belf"
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8764 printf %s "checking whether the C compiler needs -belf... " >&6; }
8765 if test ${lt_cv_cc_needs_belf+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else $as_nop
8769 ac_ext=c
8770 ac_cpp='$CPP $CPPFLAGS'
8771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777
8778 int
8779 main (void)
8780 {
8781
8782 ;
8783 return 0;
8784 }
8785 _ACEOF
8786 if ac_fn_c_try_link "$LINENO"
8787 then :
8788 lt_cv_cc_needs_belf=yes
8789 else $as_nop
8790 lt_cv_cc_needs_belf=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8793 conftest$ac_exeext conftest.$ac_ext
8794 ac_ext=c
8795 ac_cpp='$CPP $CPPFLAGS'
8796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799
8800 fi
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8802 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8803 if test yes != "$lt_cv_cc_needs_belf"; then
8804 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8805 CFLAGS=$SAVE_CFLAGS
8806 fi
8807 ;;
8808 *-*solaris*)
8809 # Find out what ABI is being produced by ac_compile, and set linker
8810 # options accordingly.
8811 echo 'int i;' > conftest.$ac_ext
8812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8813 (eval $ac_compile) 2>&5
8814 ac_status=$?
8815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816 test $ac_status = 0; }; then
8817 case `/usr/bin/file conftest.o` in
8818 *64-bit*)
8819 case $lt_cv_prog_gnu_ld in
8820 yes*)
8821 case $host in
8822 i?86-*-solaris*|x86_64-*-solaris*)
8823 LD="${LD-ld} -m elf_x86_64"
8824 ;;
8825 sparc*-*-solaris*)
8826 LD="${LD-ld} -m elf64_sparc"
8827 ;;
8828 esac
8829 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8830 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8831 LD=${LD-ld}_sol2
8832 fi
8833 ;;
8834 *)
8835 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8836 LD="${LD-ld} -64"
8837 fi
8838 ;;
8839 esac
8840 ;;
8841 esac
8842 fi
8843 rm -rf conftest*
8844 ;;
8845 esac
8846
8847 need_locks=$enable_libtool_lock
8848
8849 if test -n "$ac_tool_prefix"; then
8850 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8851 set dummy ${ac_tool_prefix}mt; ac_word=$2
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 printf %s "checking for $ac_word... " >&6; }
8854 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else $as_nop
8858 if test -n "$MANIFEST_TOOL"; then
8859 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8860 else
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864 IFS=$as_save_IFS
8865 case $as_dir in #(((
8866 '') as_dir=./ ;;
8867 */) ;;
8868 *) as_dir=$as_dir/ ;;
8869 esac
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876 done
8877 done
8878 IFS=$as_save_IFS
8879
8880 fi
8881 fi
8882 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8883 if test -n "$MANIFEST_TOOL"; then
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8885 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8886 else
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 printf "%s\n" "no" >&6; }
8889 fi
8890
8891
8892 fi
8893 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8894 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8895 # Extract the first word of "mt", so it can be a program name with args.
8896 set dummy mt; ac_word=$2
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 printf %s "checking for $ac_word... " >&6; }
8899 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else $as_nop
8903 if test -n "$ac_ct_MANIFEST_TOOL"; then
8904 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909 IFS=$as_save_IFS
8910 case $as_dir in #(((
8911 '') as_dir=./ ;;
8912 */) ;;
8913 *) as_dir=$as_dir/ ;;
8914 esac
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8928 if test -n "$ac_ct_MANIFEST_TOOL"; then
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8930 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8931 else
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 printf "%s\n" "no" >&6; }
8934 fi
8935
8936 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8937 MANIFEST_TOOL=":"
8938 else
8939 case $cross_compiling:$ac_tool_warned in
8940 yes:)
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned=yes ;;
8944 esac
8945 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8946 fi
8947 else
8948 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8949 fi
8950
8951 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8953 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8954 if test ${lt_cv_path_mainfest_tool+y}
8955 then :
8956 printf %s "(cached) " >&6
8957 else $as_nop
8958 lt_cv_path_mainfest_tool=no
8959 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8960 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8961 cat conftest.err >&5
8962 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8963 lt_cv_path_mainfest_tool=yes
8964 fi
8965 rm -f conftest*
8966 fi
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8968 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8969 if test yes != "$lt_cv_path_mainfest_tool"; then
8970 MANIFEST_TOOL=:
8971 fi
8972
8973
8974
8975
8976
8977
8978 case $host_os in
8979 rhapsody* | darwin*)
8980 if test -n "$ac_tool_prefix"; then
8981 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8982 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 printf %s "checking for $ac_word... " >&6; }
8985 if test ${ac_cv_prog_DSYMUTIL+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else $as_nop
8989 if test -n "$DSYMUTIL"; then
8990 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995 IFS=$as_save_IFS
8996 case $as_dir in #(((
8997 '') as_dir=./ ;;
8998 */) ;;
8999 *) as_dir=$as_dir/ ;;
9000 esac
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007 done
9008 done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9014 if test -n "$DSYMUTIL"; then
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9016 printf "%s\n" "$DSYMUTIL" >&6; }
9017 else
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 printf "%s\n" "no" >&6; }
9020 fi
9021
9022
9023 fi
9024 if test -z "$ac_cv_prog_DSYMUTIL"; then
9025 ac_ct_DSYMUTIL=$DSYMUTIL
9026 # Extract the first word of "dsymutil", so it can be a program name with args.
9027 set dummy dsymutil; ac_word=$2
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 printf %s "checking for $ac_word... " >&6; }
9030 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else $as_nop
9034 if test -n "$ac_ct_DSYMUTIL"; then
9035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040 IFS=$as_save_IFS
9041 case $as_dir in #(((
9042 '') as_dir=./ ;;
9043 */) ;;
9044 *) as_dir=$as_dir/ ;;
9045 esac
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9050 break 2
9051 fi
9052 done
9053 done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9059 if test -n "$ac_ct_DSYMUTIL"; then
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9061 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9062 else
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 printf "%s\n" "no" >&6; }
9065 fi
9066
9067 if test "x$ac_ct_DSYMUTIL" = x; then
9068 DSYMUTIL=":"
9069 else
9070 case $cross_compiling:$ac_tool_warned in
9071 yes:)
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9074 ac_tool_warned=yes ;;
9075 esac
9076 DSYMUTIL=$ac_ct_DSYMUTIL
9077 fi
9078 else
9079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9080 fi
9081
9082 if test -n "$ac_tool_prefix"; then
9083 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 printf %s "checking for $ac_word... " >&6; }
9087 if test ${ac_cv_prog_NMEDIT+y}
9088 then :
9089 printf %s "(cached) " >&6
9090 else $as_nop
9091 if test -n "$NMEDIT"; then
9092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097 IFS=$as_save_IFS
9098 case $as_dir in #(((
9099 '') as_dir=./ ;;
9100 */) ;;
9101 *) as_dir=$as_dir/ ;;
9102 esac
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9107 break 2
9108 fi
9109 done
9110 done
9111 IFS=$as_save_IFS
9112
9113 fi
9114 fi
9115 NMEDIT=$ac_cv_prog_NMEDIT
9116 if test -n "$NMEDIT"; then
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9118 printf "%s\n" "$NMEDIT" >&6; }
9119 else
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 printf "%s\n" "no" >&6; }
9122 fi
9123
9124
9125 fi
9126 if test -z "$ac_cv_prog_NMEDIT"; then
9127 ac_ct_NMEDIT=$NMEDIT
9128 # Extract the first word of "nmedit", so it can be a program name with args.
9129 set dummy nmedit; ac_word=$2
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 printf %s "checking for $ac_word... " >&6; }
9132 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9133 then :
9134 printf %s "(cached) " >&6
9135 else $as_nop
9136 if test -n "$ac_ct_NMEDIT"; then
9137 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9138 else
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142 IFS=$as_save_IFS
9143 case $as_dir in #(((
9144 '') as_dir=./ ;;
9145 */) ;;
9146 *) as_dir=$as_dir/ ;;
9147 esac
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9150 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9152 break 2
9153 fi
9154 done
9155 done
9156 IFS=$as_save_IFS
9157
9158 fi
9159 fi
9160 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9161 if test -n "$ac_ct_NMEDIT"; then
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9163 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9164 else
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9167 fi
9168
9169 if test "x$ac_ct_NMEDIT" = x; then
9170 NMEDIT=":"
9171 else
9172 case $cross_compiling:$ac_tool_warned in
9173 yes:)
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9176 ac_tool_warned=yes ;;
9177 esac
9178 NMEDIT=$ac_ct_NMEDIT
9179 fi
9180 else
9181 NMEDIT="$ac_cv_prog_NMEDIT"
9182 fi
9183
9184 if test -n "$ac_tool_prefix"; then
9185 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9186 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 printf %s "checking for $ac_word... " >&6; }
9189 if test ${ac_cv_prog_LIPO+y}
9190 then :
9191 printf %s "(cached) " >&6
9192 else $as_nop
9193 if test -n "$LIPO"; then
9194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199 IFS=$as_save_IFS
9200 case $as_dir in #(((
9201 '') as_dir=./ ;;
9202 */) ;;
9203 *) as_dir=$as_dir/ ;;
9204 esac
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211 done
9212 done
9213 IFS=$as_save_IFS
9214
9215 fi
9216 fi
9217 LIPO=$ac_cv_prog_LIPO
9218 if test -n "$LIPO"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9220 printf "%s\n" "$LIPO" >&6; }
9221 else
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9224 fi
9225
9226
9227 fi
9228 if test -z "$ac_cv_prog_LIPO"; then
9229 ac_ct_LIPO=$LIPO
9230 # Extract the first word of "lipo", so it can be a program name with args.
9231 set dummy lipo; ac_word=$2
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 printf %s "checking for $ac_word... " >&6; }
9234 if test ${ac_cv_prog_ac_ct_LIPO+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else $as_nop
9238 if test -n "$ac_ct_LIPO"; then
9239 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9240 else
9241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 for as_dir in $PATH
9243 do
9244 IFS=$as_save_IFS
9245 case $as_dir in #(((
9246 '') as_dir=./ ;;
9247 */) ;;
9248 *) as_dir=$as_dir/ ;;
9249 esac
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_ac_ct_LIPO="lipo"
9253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256 done
9257 done
9258 IFS=$as_save_IFS
9259
9260 fi
9261 fi
9262 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9263 if test -n "$ac_ct_LIPO"; then
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9265 printf "%s\n" "$ac_ct_LIPO" >&6; }
9266 else
9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 printf "%s\n" "no" >&6; }
9269 fi
9270
9271 if test "x$ac_ct_LIPO" = x; then
9272 LIPO=":"
9273 else
9274 case $cross_compiling:$ac_tool_warned in
9275 yes:)
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9277 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9278 ac_tool_warned=yes ;;
9279 esac
9280 LIPO=$ac_ct_LIPO
9281 fi
9282 else
9283 LIPO="$ac_cv_prog_LIPO"
9284 fi
9285
9286 if test -n "$ac_tool_prefix"; then
9287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9288 set dummy ${ac_tool_prefix}otool; ac_word=$2
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 printf %s "checking for $ac_word... " >&6; }
9291 if test ${ac_cv_prog_OTOOL+y}
9292 then :
9293 printf %s "(cached) " >&6
9294 else $as_nop
9295 if test -n "$OTOOL"; then
9296 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301 IFS=$as_save_IFS
9302 case $as_dir in #(((
9303 '') as_dir=./ ;;
9304 */) ;;
9305 *) as_dir=$as_dir/ ;;
9306 esac
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9309 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313 done
9314 done
9315 IFS=$as_save_IFS
9316
9317 fi
9318 fi
9319 OTOOL=$ac_cv_prog_OTOOL
9320 if test -n "$OTOOL"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9322 printf "%s\n" "$OTOOL" >&6; }
9323 else
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9326 fi
9327
9328
9329 fi
9330 if test -z "$ac_cv_prog_OTOOL"; then
9331 ac_ct_OTOOL=$OTOOL
9332 # Extract the first word of "otool", so it can be a program name with args.
9333 set dummy otool; ac_word=$2
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 printf %s "checking for $ac_word... " >&6; }
9336 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else $as_nop
9340 if test -n "$ac_ct_OTOOL"; then
9341 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346 IFS=$as_save_IFS
9347 case $as_dir in #(((
9348 '') as_dir=./ ;;
9349 */) ;;
9350 *) as_dir=$as_dir/ ;;
9351 esac
9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9354 ac_cv_prog_ac_ct_OTOOL="otool"
9355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9356 break 2
9357 fi
9358 done
9359 done
9360 IFS=$as_save_IFS
9361
9362 fi
9363 fi
9364 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9365 if test -n "$ac_ct_OTOOL"; then
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9367 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9368 else
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 printf "%s\n" "no" >&6; }
9371 fi
9372
9373 if test "x$ac_ct_OTOOL" = x; then
9374 OTOOL=":"
9375 else
9376 case $cross_compiling:$ac_tool_warned in
9377 yes:)
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9379 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9380 ac_tool_warned=yes ;;
9381 esac
9382 OTOOL=$ac_ct_OTOOL
9383 fi
9384 else
9385 OTOOL="$ac_cv_prog_OTOOL"
9386 fi
9387
9388 if test -n "$ac_tool_prefix"; then
9389 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9390 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 printf %s "checking for $ac_word... " >&6; }
9393 if test ${ac_cv_prog_OTOOL64+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else $as_nop
9397 if test -n "$OTOOL64"; then
9398 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9399 else
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9402 do
9403 IFS=$as_save_IFS
9404 case $as_dir in #(((
9405 '') as_dir=./ ;;
9406 */) ;;
9407 *) as_dir=$as_dir/ ;;
9408 esac
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415 done
9416 done
9417 IFS=$as_save_IFS
9418
9419 fi
9420 fi
9421 OTOOL64=$ac_cv_prog_OTOOL64
9422 if test -n "$OTOOL64"; then
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9424 printf "%s\n" "$OTOOL64" >&6; }
9425 else
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 printf "%s\n" "no" >&6; }
9428 fi
9429
9430
9431 fi
9432 if test -z "$ac_cv_prog_OTOOL64"; then
9433 ac_ct_OTOOL64=$OTOOL64
9434 # Extract the first word of "otool64", so it can be a program name with args.
9435 set dummy otool64; ac_word=$2
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9437 printf %s "checking for $ac_word... " >&6; }
9438 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9439 then :
9440 printf %s "(cached) " >&6
9441 else $as_nop
9442 if test -n "$ac_ct_OTOOL64"; then
9443 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9444 else
9445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 for as_dir in $PATH
9447 do
9448 IFS=$as_save_IFS
9449 case $as_dir in #(((
9450 '') as_dir=./ ;;
9451 */) ;;
9452 *) as_dir=$as_dir/ ;;
9453 esac
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9456 ac_cv_prog_ac_ct_OTOOL64="otool64"
9457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9458 break 2
9459 fi
9460 done
9461 done
9462 IFS=$as_save_IFS
9463
9464 fi
9465 fi
9466 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9467 if test -n "$ac_ct_OTOOL64"; then
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9469 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9470 else
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 printf "%s\n" "no" >&6; }
9473 fi
9474
9475 if test "x$ac_ct_OTOOL64" = x; then
9476 OTOOL64=":"
9477 else
9478 case $cross_compiling:$ac_tool_warned in
9479 yes:)
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9482 ac_tool_warned=yes ;;
9483 esac
9484 OTOOL64=$ac_ct_OTOOL64
9485 fi
9486 else
9487 OTOOL64="$ac_cv_prog_OTOOL64"
9488 fi
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9517 printf %s "checking for -single_module linker flag... " >&6; }
9518 if test ${lt_cv_apple_cc_single_mod+y}
9519 then :
9520 printf %s "(cached) " >&6
9521 else $as_nop
9522 lt_cv_apple_cc_single_mod=no
9523 if test -z "$LT_MULTI_MODULE"; then
9524 # By default we will add the -single_module flag. You can override
9525 # by either setting the environment variable LT_MULTI_MODULE
9526 # non-empty at configure time, or by adding -multi_module to the
9527 # link flags.
9528 rm -rf libconftest.dylib*
9529 echo "int foo(void){return 1;}" > conftest.c
9530 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9531 -dynamiclib -Wl,-single_module conftest.c" >&5
9532 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9533 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9534 _lt_result=$?
9535 # If there is a non-empty error log, and "single_module"
9536 # appears in it, assume the flag caused a linker warning
9537 if test -s conftest.err && $GREP single_module conftest.err; then
9538 cat conftest.err >&5
9539 # Otherwise, if the output was created with a 0 exit code from
9540 # the compiler, it worked.
9541 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9542 lt_cv_apple_cc_single_mod=yes
9543 else
9544 cat conftest.err >&5
9545 fi
9546 rm -rf libconftest.dylib*
9547 rm -f conftest.*
9548 fi
9549 fi
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9551 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9552
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9554 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9555 if test ${lt_cv_ld_exported_symbols_list+y}
9556 then :
9557 printf %s "(cached) " >&6
9558 else $as_nop
9559 lt_cv_ld_exported_symbols_list=no
9560 save_LDFLAGS=$LDFLAGS
9561 echo "_main" > conftest.sym
9562 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565
9566 int
9567 main (void)
9568 {
9569
9570 ;
9571 return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"
9575 then :
9576 lt_cv_ld_exported_symbols_list=yes
9577 else $as_nop
9578 lt_cv_ld_exported_symbols_list=no
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LDFLAGS=$save_LDFLAGS
9583
9584 fi
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9586 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9587
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9589 printf %s "checking for -force_load linker flag... " >&6; }
9590 if test ${lt_cv_ld_force_load+y}
9591 then :
9592 printf %s "(cached) " >&6
9593 else $as_nop
9594 lt_cv_ld_force_load=no
9595 cat > conftest.c << _LT_EOF
9596 int forced_loaded() { return 2;}
9597 _LT_EOF
9598 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9599 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9600 echo "$AR cr libconftest.a conftest.o" >&5
9601 $AR cr libconftest.a conftest.o 2>&5
9602 echo "$RANLIB libconftest.a" >&5
9603 $RANLIB libconftest.a 2>&5
9604 cat > conftest.c << _LT_EOF
9605 int main() { return 0;}
9606 _LT_EOF
9607 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9608 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9609 _lt_result=$?
9610 if test -s conftest.err && $GREP force_load conftest.err; then
9611 cat conftest.err >&5
9612 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9613 lt_cv_ld_force_load=yes
9614 else
9615 cat conftest.err >&5
9616 fi
9617 rm -f conftest.err libconftest.a conftest conftest.c
9618 rm -rf conftest.dSYM
9619
9620 fi
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9622 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9623 case $host_os in
9624 rhapsody* | darwin1.[012])
9625 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9626 darwin1.*)
9627 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9628 darwin*) # darwin 5.x on
9629 # if running on 10.5 or later, the deployment target defaults
9630 # to the OS version, if on x86, and 10.4, the deployment
9631 # target defaults to 10.4. Don't you love it?
9632 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9633 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9634 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9635 10.[012][,.]*)
9636 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9637 *)
9638 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9639 esac
9640 ;;
9641 esac
9642 if test yes = "$lt_cv_apple_cc_single_mod"; then
9643 _lt_dar_single_mod='$single_module'
9644 fi
9645 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9646 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9647 else
9648 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9649 fi
9650 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9651 _lt_dsymutil='~$DSYMUTIL $lib || :'
9652 else
9653 _lt_dsymutil=
9654 fi
9655 ;;
9656 esac
9657
9658 # func_munge_path_list VARIABLE PATH
9659 # -----------------------------------
9660 # VARIABLE is name of variable containing _space_ separated list of
9661 # directories to be munged by the contents of PATH, which is string
9662 # having a format:
9663 # "DIR[:DIR]:"
9664 # string "DIR[ DIR]" will be prepended to VARIABLE
9665 # ":DIR[:DIR]"
9666 # string "DIR[ DIR]" will be appended to VARIABLE
9667 # "DIRP[:DIRP]::[DIRA:]DIRA"
9668 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9669 # "DIRA[ DIRA]" will be appended to VARIABLE
9670 # "DIR[:DIR]"
9671 # VARIABLE will be replaced by "DIR[ DIR]"
9672 func_munge_path_list ()
9673 {
9674 case x$2 in
9675 x)
9676 ;;
9677 *:)
9678 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9679 ;;
9680 x:*)
9681 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9682 ;;
9683 *::*)
9684 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9685 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9686 ;;
9687 *)
9688 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9689 ;;
9690 esac
9691 }
9692
9693 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9694 "
9695 if test "x$ac_cv_header_dlfcn_h" = xyes
9696 then :
9697 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9698
9699 fi
9700
9701
9702
9703 func_stripname_cnf ()
9704 {
9705 case $2 in
9706 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9707 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9708 esac
9709 } # func_stripname_cnf
9710
9711
9712
9713
9714
9715 # Set options
9716 enable_dlopen=yes
9717
9718
9719
9720
9721 enable_win32_dll=no
9722
9723
9724 # Check whether --enable-shared was given.
9725 if test ${enable_shared+y}
9726 then :
9727 enableval=$enable_shared; p=${PACKAGE-default}
9728 case $enableval in
9729 yes) enable_shared=yes ;;
9730 no) enable_shared=no ;;
9731 *)
9732 enable_shared=no
9733 # Look at the argument we got. We use all the common list separators.
9734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9735 for pkg in $enableval; do
9736 IFS=$lt_save_ifs
9737 if test "X$pkg" = "X$p"; then
9738 enable_shared=yes
9739 fi
9740 done
9741 IFS=$lt_save_ifs
9742 ;;
9743 esac
9744 else $as_nop
9745 enable_shared=yes
9746 fi
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756 # Check whether --enable-static was given.
9757 if test ${enable_static+y}
9758 then :
9759 enableval=$enable_static; p=${PACKAGE-default}
9760 case $enableval in
9761 yes) enable_static=yes ;;
9762 no) enable_static=no ;;
9763 *)
9764 enable_static=no
9765 # Look at the argument we got. We use all the common list separators.
9766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9767 for pkg in $enableval; do
9768 IFS=$lt_save_ifs
9769 if test "X$pkg" = "X$p"; then
9770 enable_static=yes
9771 fi
9772 done
9773 IFS=$lt_save_ifs
9774 ;;
9775 esac
9776 else $as_nop
9777 enable_static=yes
9778 fi
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789 # Check whether --with-pic was given.
9790 if test ${with_pic+y}
9791 then :
9792 withval=$with_pic; lt_p=${PACKAGE-default}
9793 case $withval in
9794 yes|no) pic_mode=$withval ;;
9795 *)
9796 pic_mode=default
9797 # Look at the argument we got. We use all the common list separators.
9798 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9799 for lt_pkg in $withval; do
9800 IFS=$lt_save_ifs
9801 if test "X$lt_pkg" = "X$lt_p"; then
9802 pic_mode=yes
9803 fi
9804 done
9805 IFS=$lt_save_ifs
9806 ;;
9807 esac
9808 else $as_nop
9809 pic_mode=default
9810 fi
9811
9812
9813
9814
9815
9816
9817
9818
9819 # Check whether --enable-fast-install was given.
9820 if test ${enable_fast_install+y}
9821 then :
9822 enableval=$enable_fast_install; p=${PACKAGE-default}
9823 case $enableval in
9824 yes) enable_fast_install=yes ;;
9825 no) enable_fast_install=no ;;
9826 *)
9827 enable_fast_install=no
9828 # Look at the argument we got. We use all the common list separators.
9829 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9830 for pkg in $enableval; do
9831 IFS=$lt_save_ifs
9832 if test "X$pkg" = "X$p"; then
9833 enable_fast_install=yes
9834 fi
9835 done
9836 IFS=$lt_save_ifs
9837 ;;
9838 esac
9839 else $as_nop
9840 enable_fast_install=yes
9841 fi
9842
9843
9844
9845
9846
9847
9848
9849
9850 shared_archive_member_spec=
9851 case $host,$enable_shared in
9852 power*-*-aix[5-9]*,yes)
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9854 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9855
9856 # Check whether --with-aix-soname was given.
9857 if test ${with_aix_soname+y}
9858 then :
9859 withval=$with_aix_soname; case $withval in
9860 aix|svr4|both)
9861 ;;
9862 *)
9863 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9864 ;;
9865 esac
9866 lt_cv_with_aix_soname=$with_aix_soname
9867 else $as_nop
9868 if test ${lt_cv_with_aix_soname+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else $as_nop
9872 lt_cv_with_aix_soname=aix
9873 fi
9874
9875 with_aix_soname=$lt_cv_with_aix_soname
9876 fi
9877
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9879 printf "%s\n" "$with_aix_soname" >&6; }
9880 if test aix != "$with_aix_soname"; then
9881 # For the AIX way of multilib, we name the shared archive member
9882 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9883 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9884 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9885 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9886 if test 64 = "${OBJECT_MODE-32}"; then
9887 shared_archive_member_spec=shr_64
9888 else
9889 shared_archive_member_spec=shr
9890 fi
9891 fi
9892 ;;
9893 *)
9894 with_aix_soname=aix
9895 ;;
9896 esac
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 # This can be used to rebuild libtool when needed
9908 LIBTOOL_DEPS=$ltmain
9909
9910 # Always use our own libtool.
9911 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942 test -z "$LN_S" && LN_S="ln -s"
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957 if test -n "${ZSH_VERSION+set}"; then
9958 setopt NO_GLOB_SUBST
9959 fi
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9962 printf %s "checking for objdir... " >&6; }
9963 if test ${lt_cv_objdir+y}
9964 then :
9965 printf %s "(cached) " >&6
9966 else $as_nop
9967 rm -f .libs 2>/dev/null
9968 mkdir .libs 2>/dev/null
9969 if test -d .libs; then
9970 lt_cv_objdir=.libs
9971 else
9972 # MS-DOS does not allow filenames that begin with a dot.
9973 lt_cv_objdir=_libs
9974 fi
9975 rmdir .libs 2>/dev/null
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9978 printf "%s\n" "$lt_cv_objdir" >&6; }
9979 objdir=$lt_cv_objdir
9980
9981
9982
9983
9984
9985 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9986
9987
9988
9989
9990 case $host_os in
9991 aix3*)
9992 # AIX sometimes has problems with the GCC collect2 program. For some
9993 # reason, if we set the COLLECT_NAMES environment variable, the problems
9994 # vanish in a puff of smoke.
9995 if test set != "${COLLECT_NAMES+set}"; then
9996 COLLECT_NAMES=
9997 export COLLECT_NAMES
9998 fi
9999 ;;
10000 esac
10001
10002 # Global variables:
10003 ofile=libtool
10004 can_build_shared=yes
10005
10006 # All known linkers require a '.a' archive for static linking (except MSVC,
10007 # which needs '.lib').
10008 libext=a
10009
10010 with_gnu_ld=$lt_cv_prog_gnu_ld
10011
10012 old_CC=$CC
10013 old_CFLAGS=$CFLAGS
10014
10015 # Set sane defaults for various variables
10016 test -z "$CC" && CC=cc
10017 test -z "$LTCC" && LTCC=$CC
10018 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10019 test -z "$LD" && LD=ld
10020 test -z "$ac_objext" && ac_objext=o
10021
10022 func_cc_basename $compiler
10023 cc_basename=$func_cc_basename_result
10024
10025
10026 # Only perform the check for file, if the check method requires it
10027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10028 case $deplibs_check_method in
10029 file_magic*)
10030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10032 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10033 if test ${lt_cv_path_MAGIC_CMD+y}
10034 then :
10035 printf %s "(cached) " >&6
10036 else $as_nop
10037 case $MAGIC_CMD in
10038 [\\/*] | ?:[\\/]*)
10039 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10040 ;;
10041 *)
10042 lt_save_MAGIC_CMD=$MAGIC_CMD
10043 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10045 for ac_dir in $ac_dummy; do
10046 IFS=$lt_save_ifs
10047 test -z "$ac_dir" && ac_dir=.
10048 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10049 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10050 if test -n "$file_magic_test_file"; then
10051 case $deplibs_check_method in
10052 "file_magic "*)
10053 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10054 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10056 $EGREP "$file_magic_regex" > /dev/null; then
10057 :
10058 else
10059 cat <<_LT_EOF 1>&2
10060
10061 *** Warning: the command libtool uses to detect shared libraries,
10062 *** $file_magic_cmd, produces output that libtool cannot recognize.
10063 *** The result is that libtool may fail to recognize shared libraries
10064 *** as such. This will affect the creation of libtool libraries that
10065 *** depend on shared libraries, but programs linked with such libtool
10066 *** libraries will work regardless of this problem. Nevertheless, you
10067 *** may want to report the problem to your system manager and/or to
10068 *** [email protected]
10069
10070 _LT_EOF
10071 fi ;;
10072 esac
10073 fi
10074 break
10075 fi
10076 done
10077 IFS=$lt_save_ifs
10078 MAGIC_CMD=$lt_save_MAGIC_CMD
10079 ;;
10080 esac
10081 fi
10082
10083 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10084 if test -n "$MAGIC_CMD"; then
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10086 printf "%s\n" "$MAGIC_CMD" >&6; }
10087 else
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 printf "%s\n" "no" >&6; }
10090 fi
10091
10092
10093
10094
10095
10096 if test -z "$lt_cv_path_MAGIC_CMD"; then
10097 if test -n "$ac_tool_prefix"; then
10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10099 printf %s "checking for file... " >&6; }
10100 if test ${lt_cv_path_MAGIC_CMD+y}
10101 then :
10102 printf %s "(cached) " >&6
10103 else $as_nop
10104 case $MAGIC_CMD in
10105 [\\/*] | ?:[\\/]*)
10106 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10107 ;;
10108 *)
10109 lt_save_MAGIC_CMD=$MAGIC_CMD
10110 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10112 for ac_dir in $ac_dummy; do
10113 IFS=$lt_save_ifs
10114 test -z "$ac_dir" && ac_dir=.
10115 if test -f "$ac_dir/file"; then
10116 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10117 if test -n "$file_magic_test_file"; then
10118 case $deplibs_check_method in
10119 "file_magic "*)
10120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10121 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10123 $EGREP "$file_magic_regex" > /dev/null; then
10124 :
10125 else
10126 cat <<_LT_EOF 1>&2
10127
10128 *** Warning: the command libtool uses to detect shared libraries,
10129 *** $file_magic_cmd, produces output that libtool cannot recognize.
10130 *** The result is that libtool may fail to recognize shared libraries
10131 *** as such. This will affect the creation of libtool libraries that
10132 *** depend on shared libraries, but programs linked with such libtool
10133 *** libraries will work regardless of this problem. Nevertheless, you
10134 *** may want to report the problem to your system manager and/or to
10135 *** [email protected]
10136
10137 _LT_EOF
10138 fi ;;
10139 esac
10140 fi
10141 break
10142 fi
10143 done
10144 IFS=$lt_save_ifs
10145 MAGIC_CMD=$lt_save_MAGIC_CMD
10146 ;;
10147 esac
10148 fi
10149
10150 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10151 if test -n "$MAGIC_CMD"; then
10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10153 printf "%s\n" "$MAGIC_CMD" >&6; }
10154 else
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 printf "%s\n" "no" >&6; }
10157 fi
10158
10159
10160 else
10161 MAGIC_CMD=:
10162 fi
10163 fi
10164
10165 fi
10166 ;;
10167 esac
10168
10169 # Use C for the default configuration in the libtool script
10170
10171 lt_save_CC=$CC
10172 ac_ext=c
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
10179 # Source file extension for C test sources.
10180 ac_ext=c
10181
10182 # Object file extension for compiled C test sources.
10183 objext=o
10184 objext=$objext
10185
10186 # Code to be used in simple compile tests
10187 lt_simple_compile_test_code="int some_variable = 0;"
10188
10189 # Code to be used in simple link tests
10190 lt_simple_link_test_code='int main(){return(0);}'
10191
10192
10193
10194
10195
10196
10197
10198 # If no C compiler was specified, use CC.
10199 LTCC=${LTCC-"$CC"}
10200
10201 # If no C compiler flags were specified, use CFLAGS.
10202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10203
10204 # Allow CC to be a program name with arguments.
10205 compiler=$CC
10206
10207 # Save the default compiler, since it gets overwritten when the other
10208 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10209 compiler_DEFAULT=$CC
10210
10211 # save warnings/boilerplate of simple test code
10212 ac_outfile=conftest.$ac_objext
10213 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10215 _lt_compiler_boilerplate=`cat conftest.err`
10216 $RM conftest*
10217
10218 ac_outfile=conftest.$ac_objext
10219 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10221 _lt_linker_boilerplate=`cat conftest.err`
10222 $RM -r conftest*
10223
10224
10225 ## CAVEAT EMPTOR:
10226 ## There is no encapsulation within the following macros, do not change
10227 ## the running order or otherwise move them around unless you know exactly
10228 ## what you are doing...
10229 if test -n "$compiler"; then
10230
10231 lt_prog_compiler_no_builtin_flag=
10232
10233 if test yes = "$GCC"; then
10234 case $cc_basename in
10235 nvcc*)
10236 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10237 *)
10238 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10239 esac
10240
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10242 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10243 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10244 then :
10245 printf %s "(cached) " >&6
10246 else $as_nop
10247 lt_cv_prog_compiler_rtti_exceptions=no
10248 ac_outfile=conftest.$ac_objext
10249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10250 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10251 # Insert the option either (1) after the last *FLAGS variable, or
10252 # (2) before a word containing "conftest.", or (3) at the end.
10253 # Note that $ac_compile itself does not contain backslashes and begins
10254 # with a dollar sign (not a hyphen), so the echo should work correctly.
10255 # The option is referenced via a variable to avoid confusing sed.
10256 lt_compile=`echo "$ac_compile" | $SED \
10257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10259 -e 's:$: $lt_compiler_flag:'`
10260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10261 (eval "$lt_compile" 2>conftest.err)
10262 ac_status=$?
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 if (exit $ac_status) && test -s "$ac_outfile"; then
10266 # The compiler can only warn and ignore the option if not recognized
10267 # So say no if there are warnings other than the usual output.
10268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10271 lt_cv_prog_compiler_rtti_exceptions=yes
10272 fi
10273 fi
10274 $RM conftest*
10275
10276 fi
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10278 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10279
10280 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10282 else
10283 :
10284 fi
10285
10286 fi
10287
10288
10289
10290
10291
10292
10293 lt_prog_compiler_wl=
10294 lt_prog_compiler_pic=
10295 lt_prog_compiler_static=
10296
10297
10298 if test yes = "$GCC"; then
10299 lt_prog_compiler_wl='-Wl,'
10300 lt_prog_compiler_static='-static'
10301
10302 case $host_os in
10303 aix*)
10304 # All AIX code is PIC.
10305 if test ia64 = "$host_cpu"; then
10306 # AIX 5 now supports IA64 processor
10307 lt_prog_compiler_static='-Bstatic'
10308 fi
10309 lt_prog_compiler_pic='-fPIC'
10310 ;;
10311
10312 amigaos*)
10313 case $host_cpu in
10314 powerpc)
10315 # see comment about AmigaOS4 .so support
10316 lt_prog_compiler_pic='-fPIC'
10317 ;;
10318 m68k)
10319 # FIXME: we need at least 68020 code to build shared libraries, but
10320 # adding the '-m68020' flag to GCC prevents building anything better,
10321 # like '-m68040'.
10322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10323 ;;
10324 esac
10325 ;;
10326
10327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10328 # PIC is the default for these OSes.
10329 ;;
10330
10331 mingw* | cygwin* | pw32* | os2* | cegcc*)
10332 # This hack is so that the source file can tell whether it is being
10333 # built for inclusion in a dll (and should export symbols for example).
10334 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10335 # (--disable-auto-import) libraries
10336 lt_prog_compiler_pic='-DDLL_EXPORT'
10337 case $host_os in
10338 os2*)
10339 lt_prog_compiler_static='$wl-static'
10340 ;;
10341 esac
10342 ;;
10343
10344 darwin* | rhapsody*)
10345 # PIC is the default on this platform
10346 # Common symbols not allowed in MH_DYLIB files
10347 lt_prog_compiler_pic='-fno-common'
10348 ;;
10349
10350 haiku*)
10351 # PIC is the default for Haiku.
10352 # The "-static" flag exists, but is broken.
10353 lt_prog_compiler_static=
10354 ;;
10355
10356 hpux*)
10357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10359 # sets the default TLS model and affects inlining.
10360 case $host_cpu in
10361 hppa*64*)
10362 # +Z the default
10363 ;;
10364 *)
10365 lt_prog_compiler_pic='-fPIC'
10366 ;;
10367 esac
10368 ;;
10369
10370 interix[3-9]*)
10371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10372 # Instead, we relocate shared libraries at runtime.
10373 ;;
10374
10375 msdosdjgpp*)
10376 # Just because we use GCC doesn't mean we suddenly get shared libraries
10377 # on systems that don't support them.
10378 lt_prog_compiler_can_build_shared=no
10379 enable_shared=no
10380 ;;
10381
10382 *nto* | *qnx*)
10383 # QNX uses GNU C++, but need to define -shared option too, otherwise
10384 # it will coredump.
10385 lt_prog_compiler_pic='-fPIC -shared'
10386 ;;
10387
10388 sysv4*MP*)
10389 if test -d /usr/nec; then
10390 lt_prog_compiler_pic=-Kconform_pic
10391 fi
10392 ;;
10393
10394 *)
10395 lt_prog_compiler_pic='-fPIC'
10396 ;;
10397 esac
10398
10399 case $cc_basename in
10400 nvcc*) # Cuda Compiler Driver 2.2
10401 lt_prog_compiler_wl='-Xlinker '
10402 if test -n "$lt_prog_compiler_pic"; then
10403 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10404 fi
10405 ;;
10406 esac
10407 else
10408 # PORTME Check for flag to pass linker flags through the system compiler.
10409 case $host_os in
10410 aix*)
10411 lt_prog_compiler_wl='-Wl,'
10412 if test ia64 = "$host_cpu"; then
10413 # AIX 5 now supports IA64 processor
10414 lt_prog_compiler_static='-Bstatic'
10415 else
10416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10417 fi
10418 ;;
10419
10420 darwin* | rhapsody*)
10421 # PIC is the default on this platform
10422 # Common symbols not allowed in MH_DYLIB files
10423 lt_prog_compiler_pic='-fno-common'
10424 case $cc_basename in
10425 nagfor*)
10426 # NAG Fortran compiler
10427 lt_prog_compiler_wl='-Wl,-Wl,,'
10428 lt_prog_compiler_pic='-PIC'
10429 lt_prog_compiler_static='-Bstatic'
10430 ;;
10431 esac
10432 ;;
10433
10434 mingw* | cygwin* | pw32* | os2* | cegcc*)
10435 # This hack is so that the source file can tell whether it is being
10436 # built for inclusion in a dll (and should export symbols for example).
10437 lt_prog_compiler_pic='-DDLL_EXPORT'
10438 case $host_os in
10439 os2*)
10440 lt_prog_compiler_static='$wl-static'
10441 ;;
10442 esac
10443 ;;
10444
10445 hpux9* | hpux10* | hpux11*)
10446 lt_prog_compiler_wl='-Wl,'
10447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10448 # not for PA HP-UX.
10449 case $host_cpu in
10450 hppa*64*|ia64*)
10451 # +Z the default
10452 ;;
10453 *)
10454 lt_prog_compiler_pic='+Z'
10455 ;;
10456 esac
10457 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10458 lt_prog_compiler_static='$wl-a ${wl}archive'
10459 ;;
10460
10461 irix5* | irix6* | nonstopux*)
10462 lt_prog_compiler_wl='-Wl,'
10463 # PIC (with -KPIC) is the default.
10464 lt_prog_compiler_static='-non_shared'
10465 ;;
10466
10467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10468 case $cc_basename in
10469 # old Intel for x86_64, which still supported -KPIC.
10470 ecc*)
10471 lt_prog_compiler_wl='-Wl,'
10472 lt_prog_compiler_pic='-KPIC'
10473 lt_prog_compiler_static='-static'
10474 ;;
10475 # flang / f18. f95 an alias for gfortran or flang on Debian
10476 flang* | f18* | f95*)
10477 lt_prog_compiler_wl='-Wl,'
10478 lt_prog_compiler_pic='-fPIC'
10479 lt_prog_compiler_static='-static'
10480 ;;
10481 # icc used to be incompatible with GCC.
10482 # ICC 10 doesn't accept -KPIC any more.
10483 icc* | ifort*)
10484 lt_prog_compiler_wl='-Wl,'
10485 lt_prog_compiler_pic='-fPIC'
10486 lt_prog_compiler_static='-static'
10487 ;;
10488 # Lahey Fortran 8.1.
10489 lf95*)
10490 lt_prog_compiler_wl='-Wl,'
10491 lt_prog_compiler_pic='--shared'
10492 lt_prog_compiler_static='--static'
10493 ;;
10494 nagfor*)
10495 # NAG Fortran compiler
10496 lt_prog_compiler_wl='-Wl,-Wl,,'
10497 lt_prog_compiler_pic='-PIC'
10498 lt_prog_compiler_static='-Bstatic'
10499 ;;
10500 tcc*)
10501 # Fabrice Bellard et al's Tiny C Compiler
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_pic='-fPIC'
10504 lt_prog_compiler_static='-static'
10505 ;;
10506 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10507 # Portland Group compilers (*not* the Pentium gcc compiler,
10508 # which looks to be a dead project)
10509 lt_prog_compiler_wl='-Wl,'
10510 lt_prog_compiler_pic='-fpic'
10511 lt_prog_compiler_static='-Bstatic'
10512 ;;
10513 ccc*)
10514 lt_prog_compiler_wl='-Wl,'
10515 # All Alpha code is PIC.
10516 lt_prog_compiler_static='-non_shared'
10517 ;;
10518 xl* | bgxl* | bgf* | mpixl*)
10519 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10520 lt_prog_compiler_wl='-Wl,'
10521 lt_prog_compiler_pic='-qpic'
10522 lt_prog_compiler_static='-qstaticlink'
10523 ;;
10524 *)
10525 case `$CC -V 2>&1 | sed 5q` in
10526 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10527 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10528 lt_prog_compiler_pic='-KPIC'
10529 lt_prog_compiler_static='-Bstatic'
10530 lt_prog_compiler_wl=''
10531 ;;
10532 *Sun\ F* | *Sun*Fortran*)
10533 lt_prog_compiler_pic='-KPIC'
10534 lt_prog_compiler_static='-Bstatic'
10535 lt_prog_compiler_wl='-Qoption ld '
10536 ;;
10537 *Sun\ C*)
10538 # Sun C 5.9
10539 lt_prog_compiler_pic='-KPIC'
10540 lt_prog_compiler_static='-Bstatic'
10541 lt_prog_compiler_wl='-Wl,'
10542 ;;
10543 *Intel*\ [CF]*Compiler*)
10544 lt_prog_compiler_wl='-Wl,'
10545 lt_prog_compiler_pic='-fPIC'
10546 lt_prog_compiler_static='-static'
10547 ;;
10548 *Portland\ Group*)
10549 lt_prog_compiler_wl='-Wl,'
10550 lt_prog_compiler_pic='-fpic'
10551 lt_prog_compiler_static='-Bstatic'
10552 ;;
10553 esac
10554 ;;
10555 esac
10556 ;;
10557
10558 newsos6)
10559 lt_prog_compiler_pic='-KPIC'
10560 lt_prog_compiler_static='-Bstatic'
10561 ;;
10562
10563 *nto* | *qnx*)
10564 # QNX uses GNU C++, but need to define -shared option too, otherwise
10565 # it will coredump.
10566 lt_prog_compiler_pic='-fPIC -shared'
10567 ;;
10568
10569 osf3* | osf4* | osf5*)
10570 lt_prog_compiler_wl='-Wl,'
10571 # All OSF/1 code is PIC.
10572 lt_prog_compiler_static='-non_shared'
10573 ;;
10574
10575 rdos*)
10576 lt_prog_compiler_static='-non_shared'
10577 ;;
10578
10579 solaris*)
10580 lt_prog_compiler_pic='-KPIC'
10581 lt_prog_compiler_static='-Bstatic'
10582 case $cc_basename in
10583 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10584 lt_prog_compiler_wl='-Qoption ld ';;
10585 *)
10586 lt_prog_compiler_wl='-Wl,';;
10587 esac
10588 ;;
10589
10590 sunos4*)
10591 lt_prog_compiler_wl='-Qoption ld '
10592 lt_prog_compiler_pic='-PIC'
10593 lt_prog_compiler_static='-Bstatic'
10594 ;;
10595
10596 sysv4 | sysv4.2uw2* | sysv4.3*)
10597 lt_prog_compiler_wl='-Wl,'
10598 lt_prog_compiler_pic='-KPIC'
10599 lt_prog_compiler_static='-Bstatic'
10600 ;;
10601
10602 sysv4*MP*)
10603 if test -d /usr/nec; then
10604 lt_prog_compiler_pic='-Kconform_pic'
10605 lt_prog_compiler_static='-Bstatic'
10606 fi
10607 ;;
10608
10609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10610 lt_prog_compiler_wl='-Wl,'
10611 lt_prog_compiler_pic='-KPIC'
10612 lt_prog_compiler_static='-Bstatic'
10613 ;;
10614
10615 unicos*)
10616 lt_prog_compiler_wl='-Wl,'
10617 lt_prog_compiler_can_build_shared=no
10618 ;;
10619
10620 uts4*)
10621 lt_prog_compiler_pic='-pic'
10622 lt_prog_compiler_static='-Bstatic'
10623 ;;
10624
10625 *)
10626 lt_prog_compiler_can_build_shared=no
10627 ;;
10628 esac
10629 fi
10630
10631 case $host_os in
10632 # For platforms that do not support PIC, -DPIC is meaningless:
10633 *djgpp*)
10634 lt_prog_compiler_pic=
10635 ;;
10636 *)
10637 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10638 ;;
10639 esac
10640
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10642 printf %s "checking for $compiler option to produce PIC... " >&6; }
10643 if test ${lt_cv_prog_compiler_pic+y}
10644 then :
10645 printf %s "(cached) " >&6
10646 else $as_nop
10647 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10648 fi
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10650 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10651 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10652
10653 #
10654 # Check to make sure the PIC flag actually works.
10655 #
10656 if test -n "$lt_prog_compiler_pic"; then
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10658 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10659 if test ${lt_cv_prog_compiler_pic_works+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else $as_nop
10663 lt_cv_prog_compiler_pic_works=no
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10667 # Insert the option either (1) after the last *FLAGS variable, or
10668 # (2) before a word containing "conftest.", or (3) at the end.
10669 # Note that $ac_compile itself does not contain backslashes and begins
10670 # with a dollar sign (not a hyphen), so the echo should work correctly.
10671 # The option is referenced via a variable to avoid confusing sed.
10672 lt_compile=`echo "$ac_compile" | $SED \
10673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10675 -e 's:$: $lt_compiler_flag:'`
10676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10677 (eval "$lt_compile" 2>conftest.err)
10678 ac_status=$?
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 if (exit $ac_status) && test -s "$ac_outfile"; then
10682 # The compiler can only warn and ignore the option if not recognized
10683 # So say no if there are warnings other than the usual output.
10684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10687 lt_cv_prog_compiler_pic_works=yes
10688 fi
10689 fi
10690 $RM conftest*
10691
10692 fi
10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10694 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10695
10696 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10697 case $lt_prog_compiler_pic in
10698 "" | " "*) ;;
10699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10700 esac
10701 else
10702 lt_prog_compiler_pic=
10703 lt_prog_compiler_can_build_shared=no
10704 fi
10705
10706 fi
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718 #
10719 # Check to make sure the static flag actually works.
10720 #
10721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10723 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10724 if test ${lt_cv_prog_compiler_static_works+y}
10725 then :
10726 printf %s "(cached) " >&6
10727 else $as_nop
10728 lt_cv_prog_compiler_static_works=no
10729 save_LDFLAGS=$LDFLAGS
10730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10731 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10733 # The linker can only warn and ignore the option if not recognized
10734 # So say no if there are warnings
10735 if test -s conftest.err; then
10736 # Append any errors to the config.log.
10737 cat conftest.err 1>&5
10738 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10740 if diff conftest.exp conftest.er2 >/dev/null; then
10741 lt_cv_prog_compiler_static_works=yes
10742 fi
10743 else
10744 lt_cv_prog_compiler_static_works=yes
10745 fi
10746 fi
10747 $RM -r conftest*
10748 LDFLAGS=$save_LDFLAGS
10749
10750 fi
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10752 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10753
10754 if test yes = "$lt_cv_prog_compiler_static_works"; then
10755 :
10756 else
10757 lt_prog_compiler_static=
10758 fi
10759
10760
10761
10762
10763
10764
10765
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10767 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10768 if test ${lt_cv_prog_compiler_c_o+y}
10769 then :
10770 printf %s "(cached) " >&6
10771 else $as_nop
10772 lt_cv_prog_compiler_c_o=no
10773 $RM -r conftest 2>/dev/null
10774 mkdir conftest
10775 cd conftest
10776 mkdir out
10777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10778
10779 lt_compiler_flag="-o out/conftest2.$ac_objext"
10780 # Insert the option either (1) after the last *FLAGS variable, or
10781 # (2) before a word containing "conftest.", or (3) at the end.
10782 # Note that $ac_compile itself does not contain backslashes and begins
10783 # with a dollar sign (not a hyphen), so the echo should work correctly.
10784 lt_compile=`echo "$ac_compile" | $SED \
10785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10787 -e 's:$: $lt_compiler_flag:'`
10788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10789 (eval "$lt_compile" 2>out/conftest.err)
10790 ac_status=$?
10791 cat out/conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10794 then
10795 # The compiler can only warn and ignore the option if not recognized
10796 # So say no if there are warnings
10797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10800 lt_cv_prog_compiler_c_o=yes
10801 fi
10802 fi
10803 chmod u+w . 2>&5
10804 $RM conftest*
10805 # SGI C++ compiler will create directory out/ii_files/ for
10806 # template instantiation
10807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10808 $RM out/* && rmdir out
10809 cd ..
10810 $RM -r conftest
10811 $RM conftest*
10812
10813 fi
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10815 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10816
10817
10818
10819
10820
10821
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10823 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10824 if test ${lt_cv_prog_compiler_c_o+y}
10825 then :
10826 printf %s "(cached) " >&6
10827 else $as_nop
10828 lt_cv_prog_compiler_c_o=no
10829 $RM -r conftest 2>/dev/null
10830 mkdir conftest
10831 cd conftest
10832 mkdir out
10833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10834
10835 lt_compiler_flag="-o out/conftest2.$ac_objext"
10836 # Insert the option either (1) after the last *FLAGS variable, or
10837 # (2) before a word containing "conftest.", or (3) at the end.
10838 # Note that $ac_compile itself does not contain backslashes and begins
10839 # with a dollar sign (not a hyphen), so the echo should work correctly.
10840 lt_compile=`echo "$ac_compile" | $SED \
10841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10843 -e 's:$: $lt_compiler_flag:'`
10844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10845 (eval "$lt_compile" 2>out/conftest.err)
10846 ac_status=$?
10847 cat out/conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10850 then
10851 # The compiler can only warn and ignore the option if not recognized
10852 # So say no if there are warnings
10853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10856 lt_cv_prog_compiler_c_o=yes
10857 fi
10858 fi
10859 chmod u+w . 2>&5
10860 $RM conftest*
10861 # SGI C++ compiler will create directory out/ii_files/ for
10862 # template instantiation
10863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10864 $RM out/* && rmdir out
10865 cd ..
10866 $RM -r conftest
10867 $RM conftest*
10868
10869 fi
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10871 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10872
10873
10874
10875
10876 hard_links=nottested
10877 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10878 # do not overwrite the value of need_locks provided by the user
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10880 printf %s "checking if we can lock with hard links... " >&6; }
10881 hard_links=yes
10882 $RM conftest*
10883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10884 touch conftest.a
10885 ln conftest.a conftest.b 2>&5 || hard_links=no
10886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10888 printf "%s\n" "$hard_links" >&6; }
10889 if test no = "$hard_links"; then
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10891 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10892 need_locks=warn
10893 fi
10894 else
10895 need_locks=no
10896 fi
10897
10898
10899
10900
10901
10902
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10905
10906 runpath_var=
10907 allow_undefined_flag=
10908 always_export_symbols=no
10909 archive_cmds=
10910 archive_expsym_cmds=
10911 compiler_needs_object=no
10912 enable_shared_with_static_runtimes=no
10913 export_dynamic_flag_spec=
10914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10915 hardcode_automatic=no
10916 hardcode_direct=no
10917 hardcode_direct_absolute=no
10918 hardcode_libdir_flag_spec=
10919 hardcode_libdir_separator=
10920 hardcode_minus_L=no
10921 hardcode_shlibpath_var=unsupported
10922 inherit_rpath=no
10923 link_all_deplibs=unknown
10924 module_cmds=
10925 module_expsym_cmds=
10926 old_archive_from_new_cmds=
10927 old_archive_from_expsyms_cmds=
10928 thread_safe_flag_spec=
10929 whole_archive_flag_spec=
10930 # include_expsyms should be a list of space-separated symbols to be *always*
10931 # included in the symbol list
10932 include_expsyms=
10933 # exclude_expsyms can be an extended regexp of symbols to exclude
10934 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10935 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10936 # as well as any symbol that contains 'd'.
10937 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10939 # platforms (ab)use it in PIC code, but their linkers get confused if
10940 # the symbol is explicitly referenced. Since portable code cannot
10941 # rely on this symbol name, it's probably fine to never include it in
10942 # preloaded symbol tables.
10943 # Exclude shared library initialization/finalization symbols.
10944 extract_expsyms_cmds=
10945
10946 case $host_os in
10947 cygwin* | mingw* | pw32* | cegcc*)
10948 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10949 # When not using gcc, we currently assume that we are using
10950 # Microsoft Visual C++.
10951 if test yes != "$GCC"; then
10952 with_gnu_ld=no
10953 fi
10954 ;;
10955 interix*)
10956 # we just hope/assume this is gcc and not c89 (= MSVC++)
10957 with_gnu_ld=yes
10958 ;;
10959 openbsd* | bitrig*)
10960 with_gnu_ld=no
10961 ;;
10962 linux* | k*bsd*-gnu | gnu*)
10963 link_all_deplibs=no
10964 ;;
10965 esac
10966
10967 ld_shlibs=yes
10968
10969 # On some targets, GNU ld is compatible enough with the native linker
10970 # that we're better off using the native interface for both.
10971 lt_use_gnu_ld_interface=no
10972 if test yes = "$with_gnu_ld"; then
10973 case $host_os in
10974 aix*)
10975 # The AIX port of GNU ld has always aspired to compatibility
10976 # with the native linker. However, as the warning in the GNU ld
10977 # block says, versions before 2.19.5* couldn't really create working
10978 # shared libraries, regardless of the interface used.
10979 case `$LD -v 2>&1` in
10980 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10981 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10982 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10983 *)
10984 lt_use_gnu_ld_interface=yes
10985 ;;
10986 esac
10987 ;;
10988 *)
10989 lt_use_gnu_ld_interface=yes
10990 ;;
10991 esac
10992 fi
10993
10994 if test yes = "$lt_use_gnu_ld_interface"; then
10995 # If archive_cmds runs LD, not CC, wlarc should be empty
10996 wlarc='$wl'
10997
10998 # Set some defaults for GNU ld with shared library support. These
10999 # are reset later if shared libraries are not supported. Putting them
11000 # here allows them to be overridden if necessary.
11001 runpath_var=LD_RUN_PATH
11002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11003 export_dynamic_flag_spec='$wl--export-dynamic'
11004 # ancient GNU ld didn't support --whole-archive et. al.
11005 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11006 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11007 else
11008 whole_archive_flag_spec=
11009 fi
11010 supports_anon_versioning=no
11011 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11012 *GNU\ gold*) supports_anon_versioning=yes ;;
11013 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11014 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11015 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11016 *\ 2.11.*) ;; # other 2.11 versions
11017 *) supports_anon_versioning=yes ;;
11018 esac
11019
11020 # See if GNU ld supports shared libraries.
11021 case $host_os in
11022 aix[3-9]*)
11023 # On AIX/PPC, the GNU linker is very broken
11024 if test ia64 != "$host_cpu"; then
11025 ld_shlibs=no
11026 cat <<_LT_EOF 1>&2
11027
11028 *** Warning: the GNU linker, at least up to release 2.19, is reported
11029 *** to be unable to reliably create shared libraries on AIX.
11030 *** Therefore, libtool is disabling shared libraries support. If you
11031 *** really care for shared libraries, you may want to install binutils
11032 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11033 *** You will then need to restart the configuration process.
11034
11035 _LT_EOF
11036 fi
11037 ;;
11038
11039 amigaos*)
11040 case $host_cpu in
11041 powerpc)
11042 # see comment about AmigaOS4 .so support
11043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11044 archive_expsym_cmds=''
11045 ;;
11046 m68k)
11047 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)'
11048 hardcode_libdir_flag_spec='-L$libdir'
11049 hardcode_minus_L=yes
11050 ;;
11051 esac
11052 ;;
11053
11054 beos*)
11055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11056 allow_undefined_flag=unsupported
11057 # Joseph Beckenbach <[email protected]> says some releases of gcc
11058 # support --undefined. This deserves some investigation. FIXME
11059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11060 else
11061 ld_shlibs=no
11062 fi
11063 ;;
11064
11065 cygwin* | mingw* | pw32* | cegcc*)
11066 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11067 # as there is no search path for DLLs.
11068 hardcode_libdir_flag_spec='-L$libdir'
11069 export_dynamic_flag_spec='$wl--export-all-symbols'
11070 allow_undefined_flag=unsupported
11071 always_export_symbols=no
11072 enable_shared_with_static_runtimes=yes
11073 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'
11074 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11075
11076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11078 # If the export-symbols file already is a .def file, use it as
11079 # is; otherwise, prepend EXPORTS...
11080 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11081 cp $export_symbols $output_objdir/$soname.def;
11082 else
11083 echo EXPORTS > $output_objdir/$soname.def;
11084 cat $export_symbols >> $output_objdir/$soname.def;
11085 fi~
11086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11087 else
11088 ld_shlibs=no
11089 fi
11090 ;;
11091
11092 haiku*)
11093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11094 link_all_deplibs=yes
11095 ;;
11096
11097 os2*)
11098 hardcode_libdir_flag_spec='-L$libdir'
11099 hardcode_minus_L=yes
11100 allow_undefined_flag=unsupported
11101 shrext_cmds=.dll
11102 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11105 $ECHO EXPORTS >> $output_objdir/$libname.def~
11106 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11107 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11108 emximp -o $lib $output_objdir/$libname.def'
11109 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11110 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11111 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11112 $ECHO EXPORTS >> $output_objdir/$libname.def~
11113 prefix_cmds="$SED"~
11114 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11115 prefix_cmds="$prefix_cmds -e 1d";
11116 fi~
11117 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11118 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11120 emximp -o $lib $output_objdir/$libname.def'
11121 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11122 enable_shared_with_static_runtimes=yes
11123 ;;
11124
11125 interix[3-9]*)
11126 hardcode_direct=no
11127 hardcode_shlibpath_var=no
11128 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11129 export_dynamic_flag_spec='$wl-E'
11130 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11131 # Instead, shared libraries are loaded at an image base (0x10000000 by
11132 # default) and relocated if they conflict, which is a slow very memory
11133 # consuming and fragmenting process. To avoid this, we pick a random,
11134 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11135 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11137 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'
11138 ;;
11139
11140 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11141 tmp_diet=no
11142 if test linux-dietlibc = "$host_os"; then
11143 case $cc_basename in
11144 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11145 esac
11146 fi
11147 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11148 && test no = "$tmp_diet"
11149 then
11150 tmp_addflag=' $pic_flag'
11151 tmp_sharedflag='-shared'
11152 case $cc_basename,$host_cpu in
11153 pgcc*) # Portland Group C compiler
11154 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'
11155 tmp_addflag=' $pic_flag'
11156 ;;
11157 pgf77* | pgf90* | pgf95* | pgfortran*)
11158 # Portland Group f77 and f90 compilers
11159 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'
11160 tmp_addflag=' $pic_flag -Mnomain' ;;
11161 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11162 tmp_addflag=' -i_dynamic' ;;
11163 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11164 tmp_addflag=' -i_dynamic -nofor_main' ;;
11165 ifc* | ifort*) # Intel Fortran compiler
11166 tmp_addflag=' -nofor_main' ;;
11167 lf95*) # Lahey Fortran 8.1
11168 whole_archive_flag_spec=
11169 tmp_sharedflag='--shared' ;;
11170 nagfor*) # NAGFOR 5.3
11171 tmp_sharedflag='-Wl,-shared' ;;
11172 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11173 tmp_sharedflag='-qmkshrobj'
11174 tmp_addflag= ;;
11175 nvcc*) # Cuda Compiler Driver 2.2
11176 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'
11177 compiler_needs_object=yes
11178 ;;
11179 esac
11180 case `$CC -V 2>&1 | sed 5q` in
11181 *Sun\ C*) # Sun C 5.9
11182 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'
11183 compiler_needs_object=yes
11184 tmp_sharedflag='-G' ;;
11185 *Sun\ F*) # Sun Fortran 8.3
11186 tmp_sharedflag='-G' ;;
11187 esac
11188 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11189
11190 if test yes = "$supports_anon_versioning"; then
11191 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11193 echo "local: *; };" >> $output_objdir/$libname.ver~
11194 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11195 fi
11196
11197 case $cc_basename in
11198 tcc*)
11199 export_dynamic_flag_spec='-rdynamic'
11200 ;;
11201 xlf* | bgf* | bgxlf* | mpixlf*)
11202 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11203 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11205 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11206 if test yes = "$supports_anon_versioning"; then
11207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11209 echo "local: *; };" >> $output_objdir/$libname.ver~
11210 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11211 fi
11212 ;;
11213 esac
11214 else
11215 ld_shlibs=no
11216 fi
11217 ;;
11218
11219 netbsd* | netbsdelf*-gnu)
11220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11222 wlarc=
11223 else
11224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11225 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11226 fi
11227 ;;
11228
11229 solaris*)
11230 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11231 ld_shlibs=no
11232 cat <<_LT_EOF 1>&2
11233
11234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11235 *** create shared libraries on Solaris systems. Therefore, libtool
11236 *** is disabling shared libraries support. We urge you to upgrade GNU
11237 *** binutils to release 2.9.1 or newer. Another option is to modify
11238 *** your PATH or compiler configuration so that the native linker is
11239 *** used, and then restart.
11240
11241 _LT_EOF
11242 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11244 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11245 else
11246 ld_shlibs=no
11247 fi
11248 ;;
11249
11250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11251 case `$LD -v 2>&1` in
11252 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11253 ld_shlibs=no
11254 cat <<_LT_EOF 1>&2
11255
11256 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11257 *** reliably create shared libraries on SCO systems. Therefore, libtool
11258 *** is disabling shared libraries support. We urge you to upgrade GNU
11259 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11260 *** your PATH or compiler configuration so that the native linker is
11261 *** used, and then restart.
11262
11263 _LT_EOF
11264 ;;
11265 *)
11266 # For security reasons, it is highly recommended that you always
11267 # use absolute paths for naming shared libraries, and exclude the
11268 # DT_RUNPATH tag from executables and libraries. But doing so
11269 # requires that you compile everything twice, which is a pain.
11270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11274 else
11275 ld_shlibs=no
11276 fi
11277 ;;
11278 esac
11279 ;;
11280
11281 sunos4*)
11282 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11283 wlarc=
11284 hardcode_direct=yes
11285 hardcode_shlibpath_var=no
11286 ;;
11287
11288 *)
11289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11292 else
11293 ld_shlibs=no
11294 fi
11295 ;;
11296 esac
11297
11298 if test no = "$ld_shlibs"; then
11299 runpath_var=
11300 hardcode_libdir_flag_spec=
11301 export_dynamic_flag_spec=
11302 whole_archive_flag_spec=
11303 fi
11304 else
11305 # PORTME fill in a description of your system's linker (not GNU ld)
11306 case $host_os in
11307 aix3*)
11308 allow_undefined_flag=unsupported
11309 always_export_symbols=yes
11310 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'
11311 # Note: this linker hardcodes the directories in LIBPATH if there
11312 # are no directories specified by -L.
11313 hardcode_minus_L=yes
11314 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11315 # Neither direct hardcoding nor static linking is supported with a
11316 # broken collect2.
11317 hardcode_direct=unsupported
11318 fi
11319 ;;
11320
11321 aix[4-9]*)
11322 if test ia64 = "$host_cpu"; then
11323 # On IA64, the linker does run time linking by default, so we don't
11324 # have to do anything special.
11325 aix_use_runtimelinking=no
11326 exp_sym_flag='-Bexport'
11327 no_entry_flag=
11328 else
11329 # If we're using GNU nm, then we don't want the "-C" option.
11330 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11331 # Without the "-l" option, or with the "-B" option, AIX nm treats
11332 # weak defined symbols like other global defined symbols, whereas
11333 # GNU nm marks them as "W".
11334 # While the 'weak' keyword is ignored in the Export File, we need
11335 # it in the Import File for the 'aix-soname' feature, so we have
11336 # to replace the "-B" option with "-P" for AIX nm.
11337 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11338 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'
11339 else
11340 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'
11341 fi
11342 aix_use_runtimelinking=no
11343
11344 # Test if we are trying to use run time linking or normal
11345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11346 # have runtime linking enabled, and use it for executables.
11347 # For shared libraries, we enable/disable runtime linking
11348 # depending on the kind of the shared library created -
11349 # when "with_aix_soname,aix_use_runtimelinking" is:
11350 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11351 # "aix,yes" lib.so shared, rtl:yes, for executables
11352 # lib.a static archive
11353 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11354 # lib.a(lib.so.V) shared, rtl:no, for executables
11355 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11356 # lib.a(lib.so.V) shared, rtl:no
11357 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11358 # lib.a static archive
11359 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11360 for ld_flag in $LDFLAGS; do
11361 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11362 aix_use_runtimelinking=yes
11363 break
11364 fi
11365 done
11366 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11367 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11368 # so we don't have lib.a shared libs to link our executables.
11369 # We have to force runtime linking in this case.
11370 aix_use_runtimelinking=yes
11371 LDFLAGS="$LDFLAGS -Wl,-brtl"
11372 fi
11373 ;;
11374 esac
11375
11376 exp_sym_flag='-bexport'
11377 no_entry_flag='-bnoentry'
11378 fi
11379
11380 # When large executables or shared objects are built, AIX ld can
11381 # have problems creating the table of contents. If linking a library
11382 # or program results in "error TOC overflow" add -mminimal-toc to
11383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11385
11386 archive_cmds=''
11387 hardcode_direct=yes
11388 hardcode_direct_absolute=yes
11389 hardcode_libdir_separator=':'
11390 link_all_deplibs=yes
11391 file_list_spec='$wl-f,'
11392 case $with_aix_soname,$aix_use_runtimelinking in
11393 aix,*) ;; # traditional, no import file
11394 svr4,* | *,yes) # use import file
11395 # The Import File defines what to hardcode.
11396 hardcode_direct=no
11397 hardcode_direct_absolute=no
11398 ;;
11399 esac
11400
11401 if test yes = "$GCC"; then
11402 case $host_os in aix4.[012]|aix4.[012].*)
11403 # We only want to do this on AIX 4.2 and lower, the check
11404 # below for broken collect2 doesn't work under 4.3+
11405 collect2name=`$CC -print-prog-name=collect2`
11406 if test -f "$collect2name" &&
11407 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11408 then
11409 # We have reworked collect2
11410 :
11411 else
11412 # We have old collect2
11413 hardcode_direct=unsupported
11414 # It fails to find uninstalled libraries when the uninstalled
11415 # path is not listed in the libpath. Setting hardcode_minus_L
11416 # to unsupported forces relinking
11417 hardcode_minus_L=yes
11418 hardcode_libdir_flag_spec='-L$libdir'
11419 hardcode_libdir_separator=
11420 fi
11421 ;;
11422 esac
11423 shared_flag='-shared'
11424 if test yes = "$aix_use_runtimelinking"; then
11425 shared_flag="$shared_flag "'$wl-G'
11426 fi
11427 # Need to ensure runtime linking is disabled for the traditional
11428 # shared library, or the linker may eventually find shared libraries
11429 # /with/ Import File - we do not want to mix them.
11430 shared_flag_aix='-shared'
11431 shared_flag_svr4='-shared $wl-G'
11432 else
11433 # not using gcc
11434 if test ia64 = "$host_cpu"; then
11435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11436 # chokes on -Wl,-G. The following line is correct:
11437 shared_flag='-G'
11438 else
11439 if test yes = "$aix_use_runtimelinking"; then
11440 shared_flag='$wl-G'
11441 else
11442 shared_flag='$wl-bM:SRE'
11443 fi
11444 shared_flag_aix='$wl-bM:SRE'
11445 shared_flag_svr4='$wl-G'
11446 fi
11447 fi
11448
11449 export_dynamic_flag_spec='$wl-bexpall'
11450 # It seems that -bexpall does not export symbols beginning with
11451 # underscore (_), so it is better to generate a list of symbols to export.
11452 always_export_symbols=yes
11453 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11454 # Warning - without using the other runtime loading flags (-brtl),
11455 # -berok will link without error, but may produce a broken library.
11456 allow_undefined_flag='-berok'
11457 # Determine the default libpath from the value encoded in an
11458 # empty executable.
11459 if test set = "${lt_cv_aix_libpath+set}"; then
11460 aix_libpath=$lt_cv_aix_libpath
11461 else
11462 if test ${lt_cv_aix_libpath_+y}
11463 then :
11464 printf %s "(cached) " >&6
11465 else $as_nop
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468
11469 int
11470 main (void)
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"
11478 then :
11479
11480 lt_aix_libpath_sed='
11481 /Import File Strings/,/^$/ {
11482 /^0/ {
11483 s/^0 *\([^ ]*\) *$/\1/
11484 p
11485 }
11486 }'
11487 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11488 # Check for a 64-bit object if we didn't find anything.
11489 if test -z "$lt_cv_aix_libpath_"; then
11490 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11491 fi
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11494 conftest$ac_exeext conftest.$ac_ext
11495 if test -z "$lt_cv_aix_libpath_"; then
11496 lt_cv_aix_libpath_=/usr/lib:/lib
11497 fi
11498
11499 fi
11500
11501 aix_libpath=$lt_cv_aix_libpath_
11502 fi
11503
11504 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11505 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
11506 else
11507 if test ia64 = "$host_cpu"; then
11508 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11509 allow_undefined_flag="-z nodefs"
11510 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"
11511 else
11512 # Determine the default libpath from the value encoded in an
11513 # empty executable.
11514 if test set = "${lt_cv_aix_libpath+set}"; then
11515 aix_libpath=$lt_cv_aix_libpath
11516 else
11517 if test ${lt_cv_aix_libpath_+y}
11518 then :
11519 printf %s "(cached) " >&6
11520 else $as_nop
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523
11524 int
11525 main (void)
11526 {
11527
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"
11533 then :
11534
11535 lt_aix_libpath_sed='
11536 /Import File Strings/,/^$/ {
11537 /^0/ {
11538 s/^0 *\([^ ]*\) *$/\1/
11539 p
11540 }
11541 }'
11542 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11543 # Check for a 64-bit object if we didn't find anything.
11544 if test -z "$lt_cv_aix_libpath_"; then
11545 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11546 fi
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11549 conftest$ac_exeext conftest.$ac_ext
11550 if test -z "$lt_cv_aix_libpath_"; then
11551 lt_cv_aix_libpath_=/usr/lib:/lib
11552 fi
11553
11554 fi
11555
11556 aix_libpath=$lt_cv_aix_libpath_
11557 fi
11558
11559 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11560 # Warning - without using the other run time loading flags,
11561 # -berok will link without error, but may produce a broken library.
11562 no_undefined_flag=' $wl-bernotok'
11563 allow_undefined_flag=' $wl-berok'
11564 if test yes = "$with_gnu_ld"; then
11565 # We only use this code for GNU lds that support --whole-archive.
11566 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11567 else
11568 # Exported symbols can be pulled into shared objects from archives
11569 whole_archive_flag_spec='$convenience'
11570 fi
11571 archive_cmds_need_lc=yes
11572 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11573 # -brtl affects multiple linker settings, -berok does not and is overridden later
11574 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11575 if test svr4 != "$with_aix_soname"; then
11576 # This is similar to how AIX traditionally builds its shared libraries.
11577 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'
11578 fi
11579 if test aix != "$with_aix_soname"; then
11580 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'
11581 else
11582 # used by -dlpreopen to get the symbols
11583 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11584 fi
11585 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11586 fi
11587 fi
11588 ;;
11589
11590 amigaos*)
11591 case $host_cpu in
11592 powerpc)
11593 # see comment about AmigaOS4 .so support
11594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11595 archive_expsym_cmds=''
11596 ;;
11597 m68k)
11598 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)'
11599 hardcode_libdir_flag_spec='-L$libdir'
11600 hardcode_minus_L=yes
11601 ;;
11602 esac
11603 ;;
11604
11605 bsdi[45]*)
11606 export_dynamic_flag_spec=-rdynamic
11607 ;;
11608
11609 cygwin* | mingw* | pw32* | cegcc*)
11610 # When not using gcc, we currently assume that we are using
11611 # Microsoft Visual C++.
11612 # hardcode_libdir_flag_spec is actually meaningless, as there is
11613 # no search path for DLLs.
11614 case $cc_basename in
11615 cl*)
11616 # Native MSVC
11617 hardcode_libdir_flag_spec=' '
11618 allow_undefined_flag=unsupported
11619 always_export_symbols=yes
11620 file_list_spec='@'
11621 # Tell ltmain to make .lib files, not .a files.
11622 libext=lib
11623 # Tell ltmain to make .dll files, not .so files.
11624 shrext_cmds=.dll
11625 # FIXME: Setting linknames here is a bad hack.
11626 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11627 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11628 cp "$export_symbols" "$output_objdir/$soname.def";
11629 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11630 else
11631 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11632 fi~
11633 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11634 linknames='
11635 # The linker will not automatically build a static lib if we build a DLL.
11636 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11637 enable_shared_with_static_runtimes=yes
11638 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11640 # Don't use ranlib
11641 old_postinstall_cmds='chmod 644 $oldlib'
11642 postlink_cmds='lt_outputfile="@OUTPUT@"~
11643 lt_tool_outputfile="@TOOL_OUTPUT@"~
11644 case $lt_outputfile in
11645 *.exe|*.EXE) ;;
11646 *)
11647 lt_outputfile=$lt_outputfile.exe
11648 lt_tool_outputfile=$lt_tool_outputfile.exe
11649 ;;
11650 esac~
11651 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11652 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11653 $RM "$lt_outputfile.manifest";
11654 fi'
11655 ;;
11656 *)
11657 # Assume MSVC wrapper
11658 hardcode_libdir_flag_spec=' '
11659 allow_undefined_flag=unsupported
11660 # Tell ltmain to make .lib files, not .a files.
11661 libext=lib
11662 # Tell ltmain to make .dll files, not .so files.
11663 shrext_cmds=.dll
11664 # FIXME: Setting linknames here is a bad hack.
11665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11666 # The linker will automatically build a .lib file if we build a DLL.
11667 old_archive_from_new_cmds='true'
11668 # FIXME: Should let the user specify the lib program.
11669 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11670 enable_shared_with_static_runtimes=yes
11671 ;;
11672 esac
11673 ;;
11674
11675 darwin* | rhapsody*)
11676
11677
11678 archive_cmds_need_lc=no
11679 hardcode_direct=no
11680 hardcode_automatic=yes
11681 hardcode_shlibpath_var=unsupported
11682 if test yes = "$lt_cv_ld_force_load"; then
11683 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\"`'
11684
11685 else
11686 whole_archive_flag_spec=''
11687 fi
11688 link_all_deplibs=yes
11689 allow_undefined_flag=$_lt_dar_allow_undefined
11690 case $cc_basename in
11691 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11692 *) _lt_dar_can_shared=$GCC ;;
11693 esac
11694 if test yes = "$_lt_dar_can_shared"; then
11695 output_verbose_link_cmd=func_echo_all
11696 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11697 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11698 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"
11699 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"
11700
11701 else
11702 ld_shlibs=no
11703 fi
11704
11705 ;;
11706
11707 dgux*)
11708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11709 hardcode_libdir_flag_spec='-L$libdir'
11710 hardcode_shlibpath_var=no
11711 ;;
11712
11713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11714 # support. Future versions do this automatically, but an explicit c++rt0.o
11715 # does not break anything, and helps significantly (at the cost of a little
11716 # extra space).
11717 freebsd2.2*)
11718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11719 hardcode_libdir_flag_spec='-R$libdir'
11720 hardcode_direct=yes
11721 hardcode_shlibpath_var=no
11722 ;;
11723
11724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11725 freebsd2.*)
11726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11727 hardcode_direct=yes
11728 hardcode_minus_L=yes
11729 hardcode_shlibpath_var=no
11730 ;;
11731
11732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11733 freebsd* | dragonfly*)
11734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11735 hardcode_libdir_flag_spec='-R$libdir'
11736 hardcode_direct=yes
11737 hardcode_shlibpath_var=no
11738 ;;
11739
11740 hpux9*)
11741 if test yes = "$GCC"; then
11742 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'
11743 else
11744 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'
11745 fi
11746 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11747 hardcode_libdir_separator=:
11748 hardcode_direct=yes
11749
11750 # hardcode_minus_L: Not really in the search PATH,
11751 # but as the default location of the library.
11752 hardcode_minus_L=yes
11753 export_dynamic_flag_spec='$wl-E'
11754 ;;
11755
11756 hpux10*)
11757 if test yes,no = "$GCC,$with_gnu_ld"; then
11758 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11759 else
11760 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11761 fi
11762 if test no = "$with_gnu_ld"; then
11763 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11764 hardcode_libdir_separator=:
11765 hardcode_direct=yes
11766 hardcode_direct_absolute=yes
11767 export_dynamic_flag_spec='$wl-E'
11768 # hardcode_minus_L: Not really in the search PATH,
11769 # but as the default location of the library.
11770 hardcode_minus_L=yes
11771 fi
11772 ;;
11773
11774 hpux11*)
11775 if test yes,no = "$GCC,$with_gnu_ld"; then
11776 case $host_cpu in
11777 hppa*64*)
11778 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 ;;
11780 ia64*)
11781 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11782 ;;
11783 *)
11784 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11785 ;;
11786 esac
11787 else
11788 case $host_cpu in
11789 hppa*64*)
11790 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 ;;
11792 ia64*)
11793 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11794 ;;
11795 *)
11796
11797 # Older versions of the 11.00 compiler do not understand -b yet
11798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11800 printf %s "checking if $CC understands -b... " >&6; }
11801 if test ${lt_cv_prog_compiler__b+y}
11802 then :
11803 printf %s "(cached) " >&6
11804 else $as_nop
11805 lt_cv_prog_compiler__b=no
11806 save_LDFLAGS=$LDFLAGS
11807 LDFLAGS="$LDFLAGS -b"
11808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11810 # The linker can only warn and ignore the option if not recognized
11811 # So say no if there are warnings
11812 if test -s conftest.err; then
11813 # Append any errors to the config.log.
11814 cat conftest.err 1>&5
11815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11817 if diff conftest.exp conftest.er2 >/dev/null; then
11818 lt_cv_prog_compiler__b=yes
11819 fi
11820 else
11821 lt_cv_prog_compiler__b=yes
11822 fi
11823 fi
11824 $RM -r conftest*
11825 LDFLAGS=$save_LDFLAGS
11826
11827 fi
11828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11829 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11830
11831 if test yes = "$lt_cv_prog_compiler__b"; then
11832 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11833 else
11834 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11835 fi
11836
11837 ;;
11838 esac
11839 fi
11840 if test no = "$with_gnu_ld"; then
11841 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11842 hardcode_libdir_separator=:
11843
11844 case $host_cpu in
11845 hppa*64*|ia64*)
11846 hardcode_direct=no
11847 hardcode_shlibpath_var=no
11848 ;;
11849 *)
11850 hardcode_direct=yes
11851 hardcode_direct_absolute=yes
11852 export_dynamic_flag_spec='$wl-E'
11853
11854 # hardcode_minus_L: Not really in the search PATH,
11855 # but as the default location of the library.
11856 hardcode_minus_L=yes
11857 ;;
11858 esac
11859 fi
11860 ;;
11861
11862 irix5* | irix6* | nonstopux*)
11863 if test yes = "$GCC"; then
11864 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'
11865 # Try to use the -exported_symbol ld option, if it does not
11866 # work, assume that -exports_file does not work either and
11867 # implicitly export all symbols.
11868 # This should be the same for all languages, so no per-tag cache variable.
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11870 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11871 if test ${lt_cv_irix_exported_symbol+y}
11872 then :
11873 printf %s "(cached) " >&6
11874 else $as_nop
11875 save_LDFLAGS=$LDFLAGS
11876 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879 int foo (void) { return 0; }
11880 _ACEOF
11881 if ac_fn_c_try_link "$LINENO"
11882 then :
11883 lt_cv_irix_exported_symbol=yes
11884 else $as_nop
11885 lt_cv_irix_exported_symbol=no
11886 fi
11887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11888 conftest$ac_exeext conftest.$ac_ext
11889 LDFLAGS=$save_LDFLAGS
11890 fi
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11892 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11893 if test yes = "$lt_cv_irix_exported_symbol"; then
11894 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'
11895 fi
11896 link_all_deplibs=no
11897 else
11898 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'
11899 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'
11900 fi
11901 archive_cmds_need_lc='no'
11902 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11903 hardcode_libdir_separator=:
11904 inherit_rpath=yes
11905 link_all_deplibs=yes
11906 ;;
11907
11908 linux*)
11909 case $cc_basename in
11910 tcc*)
11911 # Fabrice Bellard et al's Tiny C Compiler
11912 ld_shlibs=yes
11913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11914 ;;
11915 esac
11916 ;;
11917
11918 netbsd* | netbsdelf*-gnu)
11919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11921 else
11922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11923 fi
11924 hardcode_libdir_flag_spec='-R$libdir'
11925 hardcode_direct=yes
11926 hardcode_shlibpath_var=no
11927 ;;
11928
11929 newsos6)
11930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11931 hardcode_direct=yes
11932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11933 hardcode_libdir_separator=:
11934 hardcode_shlibpath_var=no
11935 ;;
11936
11937 *nto* | *qnx*)
11938 ;;
11939
11940 openbsd* | bitrig*)
11941 if test -f /usr/libexec/ld.so; then
11942 hardcode_direct=yes
11943 hardcode_shlibpath_var=no
11944 hardcode_direct_absolute=yes
11945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11948 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11949 export_dynamic_flag_spec='$wl-E'
11950 else
11951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11952 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11953 fi
11954 else
11955 ld_shlibs=no
11956 fi
11957 ;;
11958
11959 os2*)
11960 hardcode_libdir_flag_spec='-L$libdir'
11961 hardcode_minus_L=yes
11962 allow_undefined_flag=unsupported
11963 shrext_cmds=.dll
11964 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11965 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11966 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11967 $ECHO EXPORTS >> $output_objdir/$libname.def~
11968 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11969 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11970 emximp -o $lib $output_objdir/$libname.def'
11971 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11972 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11973 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11974 $ECHO EXPORTS >> $output_objdir/$libname.def~
11975 prefix_cmds="$SED"~
11976 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11977 prefix_cmds="$prefix_cmds -e 1d";
11978 fi~
11979 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11980 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11981 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11982 emximp -o $lib $output_objdir/$libname.def'
11983 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11984 enable_shared_with_static_runtimes=yes
11985 ;;
11986
11987 osf3*)
11988 if test yes = "$GCC"; then
11989 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11990 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'
11991 else
11992 allow_undefined_flag=' -expect_unresolved \*'
11993 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'
11994 fi
11995 archive_cmds_need_lc='no'
11996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11997 hardcode_libdir_separator=:
11998 ;;
11999
12000 osf4* | osf5*) # as osf3* with the addition of -msym flag
12001 if test yes = "$GCC"; then
12002 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12003 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'
12004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12005 else
12006 allow_undefined_flag=' -expect_unresolved \*'
12007 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'
12008 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~
12009 $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'
12010
12011 # Both c and cxx compiler support -rpath directly
12012 hardcode_libdir_flag_spec='-rpath $libdir'
12013 fi
12014 archive_cmds_need_lc='no'
12015 hardcode_libdir_separator=:
12016 ;;
12017
12018 solaris*)
12019 no_undefined_flag=' -z defs'
12020 if test yes = "$GCC"; then
12021 wlarc='$wl'
12022 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12024 $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'
12025 else
12026 case `$CC -V 2>&1` in
12027 *"Compilers 5.0"*)
12028 wlarc=''
12029 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12031 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12032 ;;
12033 *)
12034 wlarc='$wl'
12035 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12037 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12038 ;;
12039 esac
12040 fi
12041 hardcode_libdir_flag_spec='-R$libdir'
12042 hardcode_shlibpath_var=no
12043 case $host_os in
12044 solaris2.[0-5] | solaris2.[0-5].*) ;;
12045 *)
12046 # The compiler driver will combine and reorder linker options,
12047 # but understands '-z linker_flag'. GCC discards it without '$wl',
12048 # but is careful enough not to reorder.
12049 # Supported since Solaris 2.6 (maybe 2.5.1?)
12050 if test yes = "$GCC"; then
12051 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12052 else
12053 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12054 fi
12055 ;;
12056 esac
12057 link_all_deplibs=yes
12058 ;;
12059
12060 sunos4*)
12061 if test sequent = "$host_vendor"; then
12062 # Use $CC to link under sequent, because it throws in some extra .o
12063 # files that make .init and .fini sections work.
12064 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12065 else
12066 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12067 fi
12068 hardcode_libdir_flag_spec='-L$libdir'
12069 hardcode_direct=yes
12070 hardcode_minus_L=yes
12071 hardcode_shlibpath_var=no
12072 ;;
12073
12074 sysv4)
12075 case $host_vendor in
12076 sni)
12077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12078 hardcode_direct=yes # is this really true???
12079 ;;
12080 siemens)
12081 ## LD is ld it makes a PLAMLIB
12082 ## CC just makes a GrossModule.
12083 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12084 reload_cmds='$CC -r -o $output$reload_objs'
12085 hardcode_direct=no
12086 ;;
12087 motorola)
12088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12089 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12090 ;;
12091 esac
12092 runpath_var='LD_RUN_PATH'
12093 hardcode_shlibpath_var=no
12094 ;;
12095
12096 sysv4.3*)
12097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12098 hardcode_shlibpath_var=no
12099 export_dynamic_flag_spec='-Bexport'
12100 ;;
12101
12102 sysv4*MP*)
12103 if test -d /usr/nec; then
12104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105 hardcode_shlibpath_var=no
12106 runpath_var=LD_RUN_PATH
12107 hardcode_runpath_var=yes
12108 ld_shlibs=yes
12109 fi
12110 ;;
12111
12112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12113 no_undefined_flag='$wl-z,text'
12114 archive_cmds_need_lc=no
12115 hardcode_shlibpath_var=no
12116 runpath_var='LD_RUN_PATH'
12117
12118 if test yes = "$GCC"; then
12119 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12120 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12121 else
12122 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12123 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12124 fi
12125 ;;
12126
12127 sysv5* | sco3.2v5* | sco5v6*)
12128 # Note: We CANNOT use -z defs as we might desire, because we do not
12129 # link with -lc, and that would cause any symbols used from libc to
12130 # always be unresolved, which means just about no library would
12131 # ever link correctly. If we're not using GNU ld we use -z text
12132 # though, which does catch some bad symbols but isn't as heavy-handed
12133 # as -z defs.
12134 no_undefined_flag='$wl-z,text'
12135 allow_undefined_flag='$wl-z,nodefs'
12136 archive_cmds_need_lc=no
12137 hardcode_shlibpath_var=no
12138 hardcode_libdir_flag_spec='$wl-R,$libdir'
12139 hardcode_libdir_separator=':'
12140 link_all_deplibs=yes
12141 export_dynamic_flag_spec='$wl-Bexport'
12142 runpath_var='LD_RUN_PATH'
12143
12144 if test yes = "$GCC"; then
12145 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147 else
12148 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150 fi
12151 ;;
12152
12153 uts4*)
12154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12155 hardcode_libdir_flag_spec='-L$libdir'
12156 hardcode_shlibpath_var=no
12157 ;;
12158
12159 *)
12160 ld_shlibs=no
12161 ;;
12162 esac
12163
12164 if test sni = "$host_vendor"; then
12165 case $host in
12166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12167 export_dynamic_flag_spec='$wl-Blargedynsym'
12168 ;;
12169 esac
12170 fi
12171 fi
12172
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12174 printf "%s\n" "$ld_shlibs" >&6; }
12175 test no = "$ld_shlibs" && can_build_shared=no
12176
12177 with_gnu_ld=$with_gnu_ld
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193 #
12194 # Do we need to explicitly link libc?
12195 #
12196 case "x$archive_cmds_need_lc" in
12197 x|xyes)
12198 # Assume -lc should be added
12199 archive_cmds_need_lc=yes
12200
12201 if test yes,yes = "$GCC,$enable_shared"; then
12202 case $archive_cmds in
12203 *'~'*)
12204 # FIXME: we may have to deal with multi-command sequences.
12205 ;;
12206 '$CC '*)
12207 # Test whether the compiler implicitly links with -lc since on some
12208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12209 # to ld, don't add -lc before -lgcc.
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12211 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12212 if test ${lt_cv_archive_cmds_need_lc+y}
12213 then :
12214 printf %s "(cached) " >&6
12215 else $as_nop
12216 $RM conftest*
12217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12218
12219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12220 (eval $ac_compile) 2>&5
12221 ac_status=$?
12222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223 test $ac_status = 0; } 2>conftest.err; then
12224 soname=conftest
12225 lib=conftest
12226 libobjs=conftest.$ac_objext
12227 deplibs=
12228 wl=$lt_prog_compiler_wl
12229 pic_flag=$lt_prog_compiler_pic
12230 compiler_flags=-v
12231 linker_flags=-v
12232 verstring=
12233 output_objdir=.
12234 libname=conftest
12235 lt_save_allow_undefined_flag=$allow_undefined_flag
12236 allow_undefined_flag=
12237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12238 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12239 ac_status=$?
12240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241 test $ac_status = 0; }
12242 then
12243 lt_cv_archive_cmds_need_lc=no
12244 else
12245 lt_cv_archive_cmds_need_lc=yes
12246 fi
12247 allow_undefined_flag=$lt_save_allow_undefined_flag
12248 else
12249 cat conftest.err 1>&5
12250 fi
12251 $RM conftest*
12252
12253 fi
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12255 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12256 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12257 ;;
12258 esac
12259 fi
12260 ;;
12261 esac
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12415 printf %s "checking dynamic linker characteristics... " >&6; }
12416
12417 if test yes = "$GCC"; then
12418 case $host_os in
12419 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12420 *) lt_awk_arg='/^libraries:/' ;;
12421 esac
12422 case $host_os in
12423 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12424 *) lt_sed_strip_eq='s|=/|/|g' ;;
12425 esac
12426 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12427 case $lt_search_path_spec in
12428 *\;*)
12429 # if the path contains ";" then we assume it to be the separator
12430 # otherwise default to the standard path separator (i.e. ":") - it is
12431 # assumed that no part of a normal pathname contains ";" but that should
12432 # okay in the real world where ";" in dirpaths is itself problematic.
12433 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12434 ;;
12435 *)
12436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12437 ;;
12438 esac
12439 # Ok, now we have the path, separated by spaces, we can step through it
12440 # and add multilib dir if necessary...
12441 lt_tmp_lt_search_path_spec=
12442 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12443 # ...but if some path component already ends with the multilib dir we assume
12444 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12445 case "$lt_multi_os_dir; $lt_search_path_spec " in
12446 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12447 lt_multi_os_dir=
12448 ;;
12449 esac
12450 for lt_sys_path in $lt_search_path_spec; do
12451 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12452 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12453 elif test -n "$lt_multi_os_dir"; then
12454 test -d "$lt_sys_path" && \
12455 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12456 fi
12457 done
12458 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12459 BEGIN {RS = " "; FS = "/|\n";} {
12460 lt_foo = "";
12461 lt_count = 0;
12462 for (lt_i = NF; lt_i > 0; lt_i--) {
12463 if ($lt_i != "" && $lt_i != ".") {
12464 if ($lt_i == "..") {
12465 lt_count++;
12466 } else {
12467 if (lt_count == 0) {
12468 lt_foo = "/" $lt_i lt_foo;
12469 } else {
12470 lt_count--;
12471 }
12472 }
12473 }
12474 }
12475 if (lt_foo != "") { lt_freq[lt_foo]++; }
12476 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12477 }'`
12478 # AWK program above erroneously prepends '/' to C:/dos/paths
12479 # for these hosts.
12480 case $host_os in
12481 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12482 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12483 esac
12484 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12485 else
12486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12487 fi
12488 library_names_spec=
12489 libname_spec='lib$name'
12490 soname_spec=
12491 shrext_cmds=.so
12492 postinstall_cmds=
12493 postuninstall_cmds=
12494 finish_cmds=
12495 finish_eval=
12496 shlibpath_var=
12497 shlibpath_overrides_runpath=unknown
12498 version_type=none
12499 dynamic_linker="$host_os ld.so"
12500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12501 need_lib_prefix=unknown
12502 hardcode_into_libs=no
12503
12504 # when you set need_version to no, make sure it does not cause -set_version
12505 # flags to be left without arguments
12506 need_version=unknown
12507
12508
12509
12510 case $host_os in
12511 aix3*)
12512 version_type=linux # correct to gnu/linux during the next big refactor
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12514 shlibpath_var=LIBPATH
12515
12516 # AIX 3 has no versioning support, so we append a major version to the name.
12517 soname_spec='$libname$release$shared_ext$major'
12518 ;;
12519
12520 aix[4-9]*)
12521 version_type=linux # correct to gnu/linux during the next big refactor
12522 need_lib_prefix=no
12523 need_version=no
12524 hardcode_into_libs=yes
12525 if test ia64 = "$host_cpu"; then
12526 # AIX 5 supports IA64
12527 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12528 shlibpath_var=LD_LIBRARY_PATH
12529 else
12530 # With GCC up to 2.95.x, collect2 would create an import file
12531 # for dependence libraries. The import file would start with
12532 # the line '#! .'. This would cause the generated library to
12533 # depend on '.', always an invalid library. This was fixed in
12534 # development snapshots of GCC prior to 3.0.
12535 case $host_os in
12536 aix4 | aix4.[01] | aix4.[01].*)
12537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12538 echo ' yes '
12539 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12540 :
12541 else
12542 can_build_shared=no
12543 fi
12544 ;;
12545 esac
12546 # Using Import Files as archive members, it is possible to support
12547 # filename-based versioning of shared library archives on AIX. While
12548 # this would work for both with and without runtime linking, it will
12549 # prevent static linking of such archives. So we do filename-based
12550 # shared library versioning with .so extension only, which is used
12551 # when both runtime linking and shared linking is enabled.
12552 # Unfortunately, runtime linking may impact performance, so we do
12553 # not want this to be the default eventually. Also, we use the
12554 # versioned .so libs for executables only if there is the -brtl
12555 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12556 # To allow for filename-based versioning support, we need to create
12557 # libNAME.so.V as an archive file, containing:
12558 # *) an Import File, referring to the versioned filename of the
12559 # archive as well as the shared archive member, telling the
12560 # bitwidth (32 or 64) of that shared object, and providing the
12561 # list of exported symbols of that shared object, eventually
12562 # decorated with the 'weak' keyword
12563 # *) the shared object with the F_LOADONLY flag set, to really avoid
12564 # it being seen by the linker.
12565 # At run time we better use the real file rather than another symlink,
12566 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12567
12568 case $with_aix_soname,$aix_use_runtimelinking in
12569 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12570 # soname into executable. Probably we can add versioning support to
12571 # collect2, so additional links can be useful in future.
12572 aix,yes) # traditional libtool
12573 dynamic_linker='AIX unversionable lib.so'
12574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12575 # instead of lib<name>.a to let people know that these are not
12576 # typical AIX shared libraries.
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12578 ;;
12579 aix,no) # traditional AIX only
12580 dynamic_linker='AIX lib.a(lib.so.V)'
12581 # We preserve .a as extension for shared libraries through AIX4.2
12582 # and later when we are not doing run time linking.
12583 library_names_spec='$libname$release.a $libname.a'
12584 soname_spec='$libname$release$shared_ext$major'
12585 ;;
12586 svr4,*) # full svr4 only
12587 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12588 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12589 # We do not specify a path in Import Files, so LIBPATH fires.
12590 shlibpath_overrides_runpath=yes
12591 ;;
12592 *,yes) # both, prefer svr4
12593 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12594 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12595 # unpreferred sharedlib libNAME.a needs extra handling
12596 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"'
12597 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"'
12598 # We do not specify a path in Import Files, so LIBPATH fires.
12599 shlibpath_overrides_runpath=yes
12600 ;;
12601 *,no) # both, prefer aix
12602 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12603 library_names_spec='$libname$release.a $libname.a'
12604 soname_spec='$libname$release$shared_ext$major'
12605 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12606 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)'
12607 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"'
12608 ;;
12609 esac
12610 shlibpath_var=LIBPATH
12611 fi
12612 ;;
12613
12614 amigaos*)
12615 case $host_cpu in
12616 powerpc)
12617 # Since July 2007 AmigaOS4 officially supports .so libraries.
12618 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12620 ;;
12621 m68k)
12622 library_names_spec='$libname.ixlibrary $libname.a'
12623 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12624 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'
12625 ;;
12626 esac
12627 ;;
12628
12629 beos*)
12630 library_names_spec='$libname$shared_ext'
12631 dynamic_linker="$host_os ld.so"
12632 shlibpath_var=LIBRARY_PATH
12633 ;;
12634
12635 bsdi[45]*)
12636 version_type=linux # correct to gnu/linux during the next big refactor
12637 need_version=no
12638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12639 soname_spec='$libname$release$shared_ext$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12643 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12644 # the default ld.so.conf also contains /usr/contrib/lib and
12645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12646 # libtool to hard-code these into programs
12647 ;;
12648
12649 cygwin* | mingw* | pw32* | cegcc*)
12650 version_type=windows
12651 shrext_cmds=.dll
12652 need_version=no
12653 need_lib_prefix=no
12654
12655 case $GCC,$cc_basename in
12656 yes,*)
12657 # gcc
12658 library_names_spec='$libname.dll.a'
12659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12660 postinstall_cmds='base_file=`basename \$file`~
12661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12662 dldir=$destdir/`dirname \$dlpath`~
12663 test -d \$dldir || mkdir -p \$dldir~
12664 $install_prog $dir/$dlname \$dldir/$dlname~
12665 chmod a+x \$dldir/$dlname~
12666 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12667 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12668 fi'
12669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12670 dlpath=$dir/\$dldll~
12671 $RM \$dlpath'
12672 shlibpath_overrides_runpath=yes
12673
12674 case $host_os in
12675 cygwin*)
12676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12677 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12678
12679 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12680 ;;
12681 mingw* | cegcc*)
12682 # MinGW DLLs use traditional 'lib' prefix
12683 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12684 ;;
12685 pw32*)
12686 # pw32 DLLs use 'pw' prefix rather than 'lib'
12687 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12688 ;;
12689 esac
12690 dynamic_linker='Win32 ld.exe'
12691 ;;
12692
12693 *,cl*)
12694 # Native MSVC
12695 libname_spec='$name'
12696 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12697 library_names_spec='$libname.dll.lib'
12698
12699 case $build_os in
12700 mingw*)
12701 sys_lib_search_path_spec=
12702 lt_save_ifs=$IFS
12703 IFS=';'
12704 for lt_path in $LIB
12705 do
12706 IFS=$lt_save_ifs
12707 # Let DOS variable expansion print the short 8.3 style file name.
12708 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12709 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12710 done
12711 IFS=$lt_save_ifs
12712 # Convert to MSYS style.
12713 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12714 ;;
12715 cygwin*)
12716 # Convert to unix form, then to dos form, then back to unix form
12717 # but this time dos style (no spaces!) so that the unix form looks
12718 # like /cygdrive/c/PROGRA~1:/cygdr...
12719 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12720 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12721 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12722 ;;
12723 *)
12724 sys_lib_search_path_spec=$LIB
12725 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12726 # It is most probably a Windows format PATH.
12727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12728 else
12729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12730 fi
12731 # FIXME: find the short name or the path components, as spaces are
12732 # common. (e.g. "Program Files" -> "PROGRA~1")
12733 ;;
12734 esac
12735
12736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12737 postinstall_cmds='base_file=`basename \$file`~
12738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12739 dldir=$destdir/`dirname \$dlpath`~
12740 test -d \$dldir || mkdir -p \$dldir~
12741 $install_prog $dir/$dlname \$dldir/$dlname'
12742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12743 dlpath=$dir/\$dldll~
12744 $RM \$dlpath'
12745 shlibpath_overrides_runpath=yes
12746 dynamic_linker='Win32 link.exe'
12747 ;;
12748
12749 *)
12750 # Assume MSVC wrapper
12751 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12752 dynamic_linker='Win32 ld.exe'
12753 ;;
12754 esac
12755 # FIXME: first we should search . and the directory the executable is in
12756 shlibpath_var=PATH
12757 ;;
12758
12759 darwin* | rhapsody*)
12760 dynamic_linker="$host_os dyld"
12761 version_type=darwin
12762 need_lib_prefix=no
12763 need_version=no
12764 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12765 soname_spec='$libname$release$major$shared_ext'
12766 shlibpath_overrides_runpath=yes
12767 shlibpath_var=DYLD_LIBRARY_PATH
12768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12769
12770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12772 ;;
12773
12774 dgux*)
12775 version_type=linux # correct to gnu/linux during the next big refactor
12776 need_lib_prefix=no
12777 need_version=no
12778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12779 soname_spec='$libname$release$shared_ext$major'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 ;;
12782
12783 freebsd* | dragonfly*)
12784 # DragonFly does not have aout. When/if they implement a new
12785 # versioning mechanism, adjust this.
12786 if test -x /usr/bin/objformat; then
12787 objformat=`/usr/bin/objformat`
12788 else
12789 case $host_os in
12790 freebsd[23].*) objformat=aout ;;
12791 *) objformat=elf ;;
12792 esac
12793 fi
12794 version_type=freebsd-$objformat
12795 case $version_type in
12796 freebsd-elf*)
12797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12798 soname_spec='$libname$release$shared_ext$major'
12799 need_version=no
12800 need_lib_prefix=no
12801 ;;
12802 freebsd-*)
12803 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12804 need_version=yes
12805 ;;
12806 esac
12807 shlibpath_var=LD_LIBRARY_PATH
12808 case $host_os in
12809 freebsd2.*)
12810 shlibpath_overrides_runpath=yes
12811 ;;
12812 freebsd3.[01]* | freebsdelf3.[01]*)
12813 shlibpath_overrides_runpath=yes
12814 hardcode_into_libs=yes
12815 ;;
12816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12818 shlibpath_overrides_runpath=no
12819 hardcode_into_libs=yes
12820 ;;
12821 *) # from 4.6 on, and DragonFly
12822 shlibpath_overrides_runpath=yes
12823 hardcode_into_libs=yes
12824 ;;
12825 esac
12826 ;;
12827
12828 haiku*)
12829 version_type=linux # correct to gnu/linux during the next big refactor
12830 need_lib_prefix=no
12831 need_version=no
12832 dynamic_linker="$host_os runtime_loader"
12833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12834 soname_spec='$libname$release$shared_ext$major'
12835 shlibpath_var=LIBRARY_PATH
12836 shlibpath_overrides_runpath=no
12837 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12838 hardcode_into_libs=yes
12839 ;;
12840
12841 hpux9* | hpux10* | hpux11*)
12842 # Give a soname corresponding to the major version so that dld.sl refuses to
12843 # link against other versions.
12844 version_type=sunos
12845 need_lib_prefix=no
12846 need_version=no
12847 case $host_cpu in
12848 ia64*)
12849 shrext_cmds='.so'
12850 hardcode_into_libs=yes
12851 dynamic_linker="$host_os dld.so"
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12855 soname_spec='$libname$release$shared_ext$major'
12856 if test 32 = "$HPUX_IA64_MODE"; then
12857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12858 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12859 else
12860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12861 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12862 fi
12863 ;;
12864 hppa*64*)
12865 shrext_cmds='.sl'
12866 hardcode_into_libs=yes
12867 dynamic_linker="$host_os dld.sl"
12868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12871 soname_spec='$libname$release$shared_ext$major'
12872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12874 ;;
12875 *)
12876 shrext_cmds='.sl'
12877 dynamic_linker="$host_os dld.sl"
12878 shlibpath_var=SHLIB_PATH
12879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12881 soname_spec='$libname$release$shared_ext$major'
12882 ;;
12883 esac
12884 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12885 postinstall_cmds='chmod 555 $lib'
12886 # or fails outright, so override atomically:
12887 install_override_mode=555
12888 ;;
12889
12890 interix[3-9]*)
12891 version_type=linux # correct to gnu/linux during the next big refactor
12892 need_lib_prefix=no
12893 need_version=no
12894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12895 soname_spec='$libname$release$shared_ext$major'
12896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12897 shlibpath_var=LD_LIBRARY_PATH
12898 shlibpath_overrides_runpath=no
12899 hardcode_into_libs=yes
12900 ;;
12901
12902 irix5* | irix6* | nonstopux*)
12903 case $host_os in
12904 nonstopux*) version_type=nonstopux ;;
12905 *)
12906 if test yes = "$lt_cv_prog_gnu_ld"; then
12907 version_type=linux # correct to gnu/linux during the next big refactor
12908 else
12909 version_type=irix
12910 fi ;;
12911 esac
12912 need_lib_prefix=no
12913 need_version=no
12914 soname_spec='$libname$release$shared_ext$major'
12915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12916 case $host_os in
12917 irix5* | nonstopux*)
12918 libsuff= shlibsuff=
12919 ;;
12920 *)
12921 case $LD in # libtool.m4 will add one of these switches to LD
12922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12923 libsuff= shlibsuff= libmagic=32-bit;;
12924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12925 libsuff=32 shlibsuff=N32 libmagic=N32;;
12926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12928 *) libsuff= shlibsuff= libmagic=never-match;;
12929 esac
12930 ;;
12931 esac
12932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12933 shlibpath_overrides_runpath=no
12934 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12935 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12936 hardcode_into_libs=yes
12937 ;;
12938
12939 # No shared lib support for Linux oldld, aout, or coff.
12940 linux*oldld* | linux*aout* | linux*coff*)
12941 dynamic_linker=no
12942 ;;
12943
12944 linux*android*)
12945 version_type=none # Android doesn't support versioned libraries.
12946 need_lib_prefix=no
12947 need_version=no
12948 library_names_spec='$libname$release$shared_ext'
12949 soname_spec='$libname$release$shared_ext'
12950 finish_cmds=
12951 shlibpath_var=LD_LIBRARY_PATH
12952 shlibpath_overrides_runpath=yes
12953
12954 # This implies no fast_install, which is unacceptable.
12955 # Some rework will be needed to allow for fast_install
12956 # before this can be enabled.
12957 hardcode_into_libs=yes
12958
12959 dynamic_linker='Android linker'
12960 # Don't embed -rpath directories since the linker doesn't support them.
12961 hardcode_libdir_flag_spec='-L$libdir'
12962 ;;
12963
12964 # This must be glibc/ELF.
12965 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12966 version_type=linux # correct to gnu/linux during the next big refactor
12967 need_lib_prefix=no
12968 need_version=no
12969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12970 soname_spec='$libname$release$shared_ext$major'
12971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 shlibpath_overrides_runpath=no
12974
12975 # Some binutils ld are patched to set DT_RUNPATH
12976 if test ${lt_cv_shlibpath_overrides_runpath+y}
12977 then :
12978 printf %s "(cached) " >&6
12979 else $as_nop
12980 lt_cv_shlibpath_overrides_runpath=no
12981 save_LDFLAGS=$LDFLAGS
12982 save_libdir=$libdir
12983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 int
12989 main (void)
12990 {
12991
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_link "$LINENO"
12997 then :
12998 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12999 then :
13000 lt_cv_shlibpath_overrides_runpath=yes
13001 fi
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13004 conftest$ac_exeext conftest.$ac_ext
13005 LDFLAGS=$save_LDFLAGS
13006 libdir=$save_libdir
13007
13008 fi
13009
13010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13011
13012 # This implies no fast_install, which is unacceptable.
13013 # Some rework will be needed to allow for fast_install
13014 # before this can be enabled.
13015 hardcode_into_libs=yes
13016
13017 # Ideally, we could use ldconfig to report *all* directores which are
13018 # searched for libraries, however this is still not possible. Aside from not
13019 # being certain /sbin/ldconfig is available, command
13020 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13021 # even though it is searched at run-time. Try to do the best guess by
13022 # appending ld.so.conf contents (and includes) to the search path.
13023 if test -f /etc/ld.so.conf; then
13024 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' ' '`
13025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13026 fi
13027
13028 # We used to test for /lib/ld.so.1 and disable shared libraries on
13029 # powerpc, because MkLinux only supported shared libraries with the
13030 # GNU dynamic linker. Since this was broken with cross compilers,
13031 # most powerpc-linux boxes support dynamic linking these days and
13032 # people can always --disable-shared, the test was removed, and we
13033 # assume the GNU/Linux dynamic linker is in use.
13034 dynamic_linker='GNU/Linux ld.so'
13035 ;;
13036
13037 netbsdelf*-gnu)
13038 version_type=linux
13039 need_lib_prefix=no
13040 need_version=no
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 shlibpath_overrides_runpath=no
13045 hardcode_into_libs=yes
13046 dynamic_linker='NetBSD ld.elf_so'
13047 ;;
13048
13049 netbsd*)
13050 version_type=sunos
13051 need_lib_prefix=no
13052 need_version=no
13053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13054 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13056 dynamic_linker='NetBSD (a.out) ld.so'
13057 else
13058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13059 soname_spec='$libname$release$shared_ext$major'
13060 dynamic_linker='NetBSD ld.elf_so'
13061 fi
13062 shlibpath_var=LD_LIBRARY_PATH
13063 shlibpath_overrides_runpath=yes
13064 hardcode_into_libs=yes
13065 ;;
13066
13067 newsos6)
13068 version_type=linux # correct to gnu/linux during the next big refactor
13069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes
13072 ;;
13073
13074 *nto* | *qnx*)
13075 version_type=qnx
13076 need_lib_prefix=no
13077 need_version=no
13078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13079 soname_spec='$libname$release$shared_ext$major'
13080 shlibpath_var=LD_LIBRARY_PATH
13081 shlibpath_overrides_runpath=no
13082 hardcode_into_libs=yes
13083 dynamic_linker='ldqnx.so'
13084 ;;
13085
13086 openbsd* | bitrig*)
13087 version_type=sunos
13088 sys_lib_dlsearch_path_spec=/usr/lib
13089 need_lib_prefix=no
13090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13091 need_version=no
13092 else
13093 need_version=yes
13094 fi
13095 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=yes
13099 ;;
13100
13101 os2*)
13102 libname_spec='$name'
13103 version_type=windows
13104 shrext_cmds=.dll
13105 need_version=no
13106 need_lib_prefix=no
13107 # OS/2 can only load a DLL with a base name of 8 characters or less.
13108 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13109 v=$($ECHO $release$versuffix | tr -d .-);
13110 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13111 $ECHO $n$v`$shared_ext'
13112 library_names_spec='${libname}_dll.$libext'
13113 dynamic_linker='OS/2 ld.exe'
13114 shlibpath_var=BEGINLIBPATH
13115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13117 postinstall_cmds='base_file=`basename \$file`~
13118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13119 dldir=$destdir/`dirname \$dlpath`~
13120 test -d \$dldir || mkdir -p \$dldir~
13121 $install_prog $dir/$dlname \$dldir/$dlname~
13122 chmod a+x \$dldir/$dlname~
13123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13125 fi'
13126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13127 dlpath=$dir/\$dldll~
13128 $RM \$dlpath'
13129 ;;
13130
13131 osf3* | osf4* | osf5*)
13132 version_type=osf
13133 need_lib_prefix=no
13134 need_version=no
13135 soname_spec='$libname$release$shared_ext$major'
13136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13140 ;;
13141
13142 rdos*)
13143 dynamic_linker=no
13144 ;;
13145
13146 solaris*)
13147 version_type=linux # correct to gnu/linux during the next big refactor
13148 need_lib_prefix=no
13149 need_version=no
13150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13151 soname_spec='$libname$release$shared_ext$major'
13152 shlibpath_var=LD_LIBRARY_PATH
13153 shlibpath_overrides_runpath=yes
13154 hardcode_into_libs=yes
13155 # ldd complains unless libraries are executable
13156 postinstall_cmds='chmod +x $lib'
13157 ;;
13158
13159 sunos4*)
13160 version_type=sunos
13161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13163 shlibpath_var=LD_LIBRARY_PATH
13164 shlibpath_overrides_runpath=yes
13165 if test yes = "$with_gnu_ld"; then
13166 need_lib_prefix=no
13167 fi
13168 need_version=yes
13169 ;;
13170
13171 sysv4 | sysv4.3*)
13172 version_type=linux # correct to gnu/linux during the next big refactor
13173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13174 soname_spec='$libname$release$shared_ext$major'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 case $host_vendor in
13177 sni)
13178 shlibpath_overrides_runpath=no
13179 need_lib_prefix=no
13180 runpath_var=LD_RUN_PATH
13181 ;;
13182 siemens)
13183 need_lib_prefix=no
13184 ;;
13185 motorola)
13186 need_lib_prefix=no
13187 need_version=no
13188 shlibpath_overrides_runpath=no
13189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13190 ;;
13191 esac
13192 ;;
13193
13194 sysv4*MP*)
13195 if test -d /usr/nec; then
13196 version_type=linux # correct to gnu/linux during the next big refactor
13197 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13198 soname_spec='$libname$shared_ext.$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 fi
13201 ;;
13202
13203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13204 version_type=sco
13205 need_lib_prefix=no
13206 need_version=no
13207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13208 soname_spec='$libname$release$shared_ext$major'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes
13211 hardcode_into_libs=yes
13212 if test yes = "$with_gnu_ld"; then
13213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13214 else
13215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13216 case $host_os in
13217 sco3.2v5*)
13218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13219 ;;
13220 esac
13221 fi
13222 sys_lib_dlsearch_path_spec='/usr/lib'
13223 ;;
13224
13225 tpf*)
13226 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13227 version_type=linux # correct to gnu/linux during the next big refactor
13228 need_lib_prefix=no
13229 need_version=no
13230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13231 shlibpath_var=LD_LIBRARY_PATH
13232 shlibpath_overrides_runpath=no
13233 hardcode_into_libs=yes
13234 ;;
13235
13236 uts4*)
13237 version_type=linux # correct to gnu/linux during the next big refactor
13238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13239 soname_spec='$libname$release$shared_ext$major'
13240 shlibpath_var=LD_LIBRARY_PATH
13241 ;;
13242
13243 *)
13244 dynamic_linker=no
13245 ;;
13246 esac
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13248 printf "%s\n" "$dynamic_linker" >&6; }
13249 test no = "$dynamic_linker" && can_build_shared=no
13250
13251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13252 if test yes = "$GCC"; then
13253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13254 fi
13255
13256 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13257 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13258 fi
13259
13260 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13261 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13262 fi
13263
13264 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13265 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13266
13267 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13268 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13269
13270 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13271 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13370 printf %s "checking how to hardcode library paths into programs... " >&6; }
13371 hardcode_action=
13372 if test -n "$hardcode_libdir_flag_spec" ||
13373 test -n "$runpath_var" ||
13374 test yes = "$hardcode_automatic"; then
13375
13376 # We can hardcode non-existent directories.
13377 if test no != "$hardcode_direct" &&
13378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13379 # have to relink, otherwise we might link with an installed library
13380 # when we should be linking with a yet-to-be-installed one
13381 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13382 test no != "$hardcode_minus_L"; then
13383 # Linking always hardcodes the temporary library directory.
13384 hardcode_action=relink
13385 else
13386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13387 hardcode_action=immediate
13388 fi
13389 else
13390 # We cannot hardcode anything, or else we can only hardcode existing
13391 # directories.
13392 hardcode_action=unsupported
13393 fi
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13395 printf "%s\n" "$hardcode_action" >&6; }
13396
13397 if test relink = "$hardcode_action" ||
13398 test yes = "$inherit_rpath"; then
13399 # Fast installation is not supported
13400 enable_fast_install=no
13401 elif test yes = "$shlibpath_overrides_runpath" ||
13402 test no = "$enable_shared"; then
13403 # Fast installation is not necessary
13404 enable_fast_install=needless
13405 fi
13406
13407
13408
13409
13410
13411
13412 if test yes != "$enable_dlopen"; then
13413 enable_dlopen=unknown
13414 enable_dlopen_self=unknown
13415 enable_dlopen_self_static=unknown
13416 else
13417 lt_cv_dlopen=no
13418 lt_cv_dlopen_libs=
13419
13420 case $host_os in
13421 beos*)
13422 lt_cv_dlopen=load_add_on
13423 lt_cv_dlopen_libs=
13424 lt_cv_dlopen_self=yes
13425 ;;
13426
13427 mingw* | pw32* | cegcc*)
13428 lt_cv_dlopen=LoadLibrary
13429 lt_cv_dlopen_libs=
13430 ;;
13431
13432 cygwin*)
13433 lt_cv_dlopen=dlopen
13434 lt_cv_dlopen_libs=
13435 ;;
13436
13437 darwin*)
13438 # if libdl is installed we need to link against it
13439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13440 printf %s "checking for dlopen in -ldl... " >&6; }
13441 if test ${ac_cv_lib_dl_dlopen+y}
13442 then :
13443 printf %s "(cached) " >&6
13444 else $as_nop
13445 ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-ldl $LIBS"
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13453 char dlopen ();
13454 int
13455 main (void)
13456 {
13457 return dlopen ();
13458 ;
13459 return 0;
13460 }
13461 _ACEOF
13462 if ac_fn_c_try_link "$LINENO"
13463 then :
13464 ac_cv_lib_dl_dlopen=yes
13465 else $as_nop
13466 ac_cv_lib_dl_dlopen=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13469 conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS
13471 fi
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13473 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13474 if test "x$ac_cv_lib_dl_dlopen" = xyes
13475 then :
13476 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13477 else $as_nop
13478
13479 lt_cv_dlopen=dyld
13480 lt_cv_dlopen_libs=
13481 lt_cv_dlopen_self=yes
13482
13483 fi
13484
13485 ;;
13486
13487 tpf*)
13488 # Don't try to run any link tests for TPF. We know it's impossible
13489 # because TPF is a cross-compiler, and we know how we open DSOs.
13490 lt_cv_dlopen=dlopen
13491 lt_cv_dlopen_libs=
13492 lt_cv_dlopen_self=no
13493 ;;
13494
13495 *)
13496 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13497 if test "x$ac_cv_func_shl_load" = xyes
13498 then :
13499 lt_cv_dlopen=shl_load
13500 else $as_nop
13501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13502 printf %s "checking for shl_load in -ldld... " >&6; }
13503 if test ${ac_cv_lib_dld_shl_load+y}
13504 then :
13505 printf %s "(cached) " >&6
13506 else $as_nop
13507 ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-ldld $LIBS"
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511
13512 /* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13515 char shl_load ();
13516 int
13517 main (void)
13518 {
13519 return shl_load ();
13520 ;
13521 return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"
13525 then :
13526 ac_cv_lib_dld_shl_load=yes
13527 else $as_nop
13528 ac_cv_lib_dld_shl_load=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13533 fi
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13535 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13536 if test "x$ac_cv_lib_dld_shl_load" = xyes
13537 then :
13538 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13539 else $as_nop
13540 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13541 if test "x$ac_cv_func_dlopen" = xyes
13542 then :
13543 lt_cv_dlopen=dlopen
13544 else $as_nop
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13546 printf %s "checking for dlopen in -ldl... " >&6; }
13547 if test ${ac_cv_lib_dl_dlopen+y}
13548 then :
13549 printf %s "(cached) " >&6
13550 else $as_nop
13551 ac_check_lib_save_LIBS=$LIBS
13552 LIBS="-ldl $LIBS"
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555
13556 /* Override any GCC internal prototype to avoid an error.
13557 Use char because int might match the return type of a GCC
13558 builtin and then its argument prototype would still apply. */
13559 char dlopen ();
13560 int
13561 main (void)
13562 {
13563 return dlopen ();
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"
13569 then :
13570 ac_cv_lib_dl_dlopen=yes
13571 else $as_nop
13572 ac_cv_lib_dl_dlopen=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13575 conftest$ac_exeext conftest.$ac_ext
13576 LIBS=$ac_check_lib_save_LIBS
13577 fi
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13579 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13580 if test "x$ac_cv_lib_dl_dlopen" = xyes
13581 then :
13582 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13583 else $as_nop
13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13585 printf %s "checking for dlopen in -lsvld... " >&6; }
13586 if test ${ac_cv_lib_svld_dlopen+y}
13587 then :
13588 printf %s "(cached) " >&6
13589 else $as_nop
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-lsvld $LIBS"
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594
13595 /* Override any GCC internal prototype to avoid an error.
13596 Use char because int might match the return type of a GCC
13597 builtin and then its argument prototype would still apply. */
13598 char dlopen ();
13599 int
13600 main (void)
13601 {
13602 return dlopen ();
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"
13608 then :
13609 ac_cv_lib_svld_dlopen=yes
13610 else $as_nop
13611 ac_cv_lib_svld_dlopen=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13614 conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13616 fi
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13618 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13619 if test "x$ac_cv_lib_svld_dlopen" = xyes
13620 then :
13621 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13622 else $as_nop
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13624 printf %s "checking for dld_link in -ldld... " >&6; }
13625 if test ${ac_cv_lib_dld_dld_link+y}
13626 then :
13627 printf %s "(cached) " >&6
13628 else $as_nop
13629 ac_check_lib_save_LIBS=$LIBS
13630 LIBS="-ldld $LIBS"
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13637 char dld_link ();
13638 int
13639 main (void)
13640 {
13641 return dld_link ();
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_link "$LINENO"
13647 then :
13648 ac_cv_lib_dld_dld_link=yes
13649 else $as_nop
13650 ac_cv_lib_dld_dld_link=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13653 conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13655 fi
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13657 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13658 if test "x$ac_cv_lib_dld_dld_link" = xyes
13659 then :
13660 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13661 fi
13662
13663
13664 fi
13665
13666
13667 fi
13668
13669
13670 fi
13671
13672
13673 fi
13674
13675
13676 fi
13677
13678 ;;
13679 esac
13680
13681 if test no = "$lt_cv_dlopen"; then
13682 enable_dlopen=no
13683 else
13684 enable_dlopen=yes
13685 fi
13686
13687 case $lt_cv_dlopen in
13688 dlopen)
13689 save_CPPFLAGS=$CPPFLAGS
13690 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13691
13692 save_LDFLAGS=$LDFLAGS
13693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13694
13695 save_LIBS=$LIBS
13696 LIBS="$lt_cv_dlopen_libs $LIBS"
13697
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13699 printf %s "checking whether a program can dlopen itself... " >&6; }
13700 if test ${lt_cv_dlopen_self+y}
13701 then :
13702 printf %s "(cached) " >&6
13703 else $as_nop
13704 if test yes = "$cross_compiling"; then :
13705 lt_cv_dlopen_self=cross
13706 else
13707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13708 lt_status=$lt_dlunknown
13709 cat > conftest.$ac_ext <<_LT_EOF
13710 #line $LINENO "configure"
13711 #include "confdefs.h"
13712
13713 #if HAVE_DLFCN_H
13714 #include <dlfcn.h>
13715 #endif
13716
13717 #include <stdio.h>
13718
13719 #ifdef RTLD_GLOBAL
13720 # define LT_DLGLOBAL RTLD_GLOBAL
13721 #else
13722 # ifdef DL_GLOBAL
13723 # define LT_DLGLOBAL DL_GLOBAL
13724 # else
13725 # define LT_DLGLOBAL 0
13726 # endif
13727 #endif
13728
13729 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13730 find out it does not work in some platform. */
13731 #ifndef LT_DLLAZY_OR_NOW
13732 # ifdef RTLD_LAZY
13733 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13734 # else
13735 # ifdef DL_LAZY
13736 # define LT_DLLAZY_OR_NOW DL_LAZY
13737 # else
13738 # ifdef RTLD_NOW
13739 # define LT_DLLAZY_OR_NOW RTLD_NOW
13740 # else
13741 # ifdef DL_NOW
13742 # define LT_DLLAZY_OR_NOW DL_NOW
13743 # else
13744 # define LT_DLLAZY_OR_NOW 0
13745 # endif
13746 # endif
13747 # endif
13748 # endif
13749 #endif
13750
13751 /* When -fvisibility=hidden is used, assume the code has been annotated
13752 correspondingly for the symbols needed. */
13753 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13754 int fnord () __attribute__((visibility("default")));
13755 #endif
13756
13757 int fnord () { return 42; }
13758 int main ()
13759 {
13760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13761 int status = $lt_dlunknown;
13762
13763 if (self)
13764 {
13765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13766 else
13767 {
13768 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13769 else puts (dlerror ());
13770 }
13771 /* dlclose (self); */
13772 }
13773 else
13774 puts (dlerror ());
13775
13776 return status;
13777 }
13778 _LT_EOF
13779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13780 (eval $ac_link) 2>&5
13781 ac_status=$?
13782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13783 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13784 (./conftest; exit; ) >&5 2>/dev/null
13785 lt_status=$?
13786 case x$lt_status in
13787 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13788 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13789 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13790 esac
13791 else :
13792 # compilation failed
13793 lt_cv_dlopen_self=no
13794 fi
13795 fi
13796 rm -fr conftest*
13797
13798
13799 fi
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13801 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13802
13803 if test yes = "$lt_cv_dlopen_self"; then
13804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13806 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13807 if test ${lt_cv_dlopen_self_static+y}
13808 then :
13809 printf %s "(cached) " >&6
13810 else $as_nop
13811 if test yes = "$cross_compiling"; then :
13812 lt_cv_dlopen_self_static=cross
13813 else
13814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13815 lt_status=$lt_dlunknown
13816 cat > conftest.$ac_ext <<_LT_EOF
13817 #line $LINENO "configure"
13818 #include "confdefs.h"
13819
13820 #if HAVE_DLFCN_H
13821 #include <dlfcn.h>
13822 #endif
13823
13824 #include <stdio.h>
13825
13826 #ifdef RTLD_GLOBAL
13827 # define LT_DLGLOBAL RTLD_GLOBAL
13828 #else
13829 # ifdef DL_GLOBAL
13830 # define LT_DLGLOBAL DL_GLOBAL
13831 # else
13832 # define LT_DLGLOBAL 0
13833 # endif
13834 #endif
13835
13836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13837 find out it does not work in some platform. */
13838 #ifndef LT_DLLAZY_OR_NOW
13839 # ifdef RTLD_LAZY
13840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13841 # else
13842 # ifdef DL_LAZY
13843 # define LT_DLLAZY_OR_NOW DL_LAZY
13844 # else
13845 # ifdef RTLD_NOW
13846 # define LT_DLLAZY_OR_NOW RTLD_NOW
13847 # else
13848 # ifdef DL_NOW
13849 # define LT_DLLAZY_OR_NOW DL_NOW
13850 # else
13851 # define LT_DLLAZY_OR_NOW 0
13852 # endif
13853 # endif
13854 # endif
13855 # endif
13856 #endif
13857
13858 /* When -fvisibility=hidden is used, assume the code has been annotated
13859 correspondingly for the symbols needed. */
13860 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13861 int fnord () __attribute__((visibility("default")));
13862 #endif
13863
13864 int fnord () { return 42; }
13865 int main ()
13866 {
13867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13868 int status = $lt_dlunknown;
13869
13870 if (self)
13871 {
13872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13873 else
13874 {
13875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13876 else puts (dlerror ());
13877 }
13878 /* dlclose (self); */
13879 }
13880 else
13881 puts (dlerror ());
13882
13883 return status;
13884 }
13885 _LT_EOF
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13887 (eval $ac_link) 2>&5
13888 ac_status=$?
13889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13891 (./conftest; exit; ) >&5 2>/dev/null
13892 lt_status=$?
13893 case x$lt_status in
13894 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13895 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13896 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13897 esac
13898 else :
13899 # compilation failed
13900 lt_cv_dlopen_self_static=no
13901 fi
13902 fi
13903 rm -fr conftest*
13904
13905
13906 fi
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13908 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13909 fi
13910
13911 CPPFLAGS=$save_CPPFLAGS
13912 LDFLAGS=$save_LDFLAGS
13913 LIBS=$save_LIBS
13914 ;;
13915 esac
13916
13917 case $lt_cv_dlopen_self in
13918 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13919 *) enable_dlopen_self=unknown ;;
13920 esac
13921
13922 case $lt_cv_dlopen_self_static in
13923 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13924 *) enable_dlopen_self_static=unknown ;;
13925 esac
13926 fi
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 striplib=
13945 old_striplib=
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13947 printf %s "checking whether stripping libraries is possible... " >&6; }
13948 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13949 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13950 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13952 printf "%s\n" "yes" >&6; }
13953 else
13954 # FIXME - insert some real tests, host_os isn't really good enough
13955 case $host_os in
13956 darwin*)
13957 if test -n "$STRIP"; then
13958 striplib="$STRIP -x"
13959 old_striplib="$STRIP -S"
13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961 printf "%s\n" "yes" >&6; }
13962 else
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 printf "%s\n" "no" >&6; }
13965 fi
13966 ;;
13967 *)
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 printf "%s\n" "no" >&6; }
13970 ;;
13971 esac
13972 fi
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985 # Report what library types will actually be built
13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13987 printf %s "checking if libtool supports shared libraries... " >&6; }
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13989 printf "%s\n" "$can_build_shared" >&6; }
13990
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13992 printf %s "checking whether to build shared libraries... " >&6; }
13993 test no = "$can_build_shared" && enable_shared=no
13994
13995 # On AIX, shared libraries and static libraries use the same namespace, and
13996 # are all built from PIC.
13997 case $host_os in
13998 aix3*)
13999 test yes = "$enable_shared" && enable_static=no
14000 if test -n "$RANLIB"; then
14001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14002 postinstall_cmds='$RANLIB $lib'
14003 fi
14004 ;;
14005
14006 aix[4-9]*)
14007 if test ia64 != "$host_cpu"; then
14008 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14009 yes,aix,yes) ;; # shared object as lib.so file only
14010 yes,svr4,*) ;; # shared object as lib.so archive member only
14011 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14012 esac
14013 fi
14014 ;;
14015 esac
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14017 printf "%s\n" "$enable_shared" >&6; }
14018
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14020 printf %s "checking whether to build static libraries... " >&6; }
14021 # Make sure either enable_shared or enable_static is yes.
14022 test yes = "$enable_shared" || enable_static=yes
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14024 printf "%s\n" "$enable_static" >&6; }
14025
14026
14027
14028
14029 fi
14030 ac_ext=cpp
14031 ac_cpp='$CXXCPP $CPPFLAGS'
14032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14035
14036 CC=$lt_save_CC
14037
14038 if test -n "$CXX" && ( test no != "$CXX" &&
14039 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14040 (test g++ != "$CXX"))); then
14041 ac_ext=cpp
14042 ac_cpp='$CXXCPP $CPPFLAGS'
14043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14047 printf %s "checking how to run the C++ preprocessor... " >&6; }
14048 if test -z "$CXXCPP"; then
14049 if test ${ac_cv_prog_CXXCPP+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else $as_nop
14053 # Double quotes because $CXX needs to be expanded
14054 for CXXCPP in "$CXX -E" cpp /lib/cpp
14055 do
14056 ac_preproc_ok=false
14057 for ac_cxx_preproc_warn_flag in '' yes
14058 do
14059 # Use a header file that comes with gcc, so configuring glibc
14060 # with a fresh cross-compiler works.
14061 # On the NeXT, cc -E runs the code through the compiler's parser,
14062 # not just through cpp. "Syntax error" is here to catch this case.
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <limits.h>
14066 Syntax error
14067 _ACEOF
14068 if ac_fn_cxx_try_cpp "$LINENO"
14069 then :
14070
14071 else $as_nop
14072 # Broken: fails on valid input.
14073 continue
14074 fi
14075 rm -f conftest.err conftest.i conftest.$ac_ext
14076
14077 # OK, works on sane cases. Now check whether nonexistent headers
14078 # can be detected and how.
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 #include <ac_nonexistent.h>
14082 _ACEOF
14083 if ac_fn_cxx_try_cpp "$LINENO"
14084 then :
14085 # Broken: success on invalid input.
14086 continue
14087 else $as_nop
14088 # Passes both tests.
14089 ac_preproc_ok=:
14090 break
14091 fi
14092 rm -f conftest.err conftest.i conftest.$ac_ext
14093
14094 done
14095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14096 rm -f conftest.i conftest.err conftest.$ac_ext
14097 if $ac_preproc_ok
14098 then :
14099 break
14100 fi
14101
14102 done
14103 ac_cv_prog_CXXCPP=$CXXCPP
14104
14105 fi
14106 CXXCPP=$ac_cv_prog_CXXCPP
14107 else
14108 ac_cv_prog_CXXCPP=$CXXCPP
14109 fi
14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14111 printf "%s\n" "$CXXCPP" >&6; }
14112 ac_preproc_ok=false
14113 for ac_cxx_preproc_warn_flag in '' yes
14114 do
14115 # Use a header file that comes with gcc, so configuring glibc
14116 # with a fresh cross-compiler works.
14117 # On the NeXT, cc -E runs the code through the compiler's parser,
14118 # not just through cpp. "Syntax error" is here to catch this case.
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 #include <limits.h>
14122 Syntax error
14123 _ACEOF
14124 if ac_fn_cxx_try_cpp "$LINENO"
14125 then :
14126
14127 else $as_nop
14128 # Broken: fails on valid input.
14129 continue
14130 fi
14131 rm -f conftest.err conftest.i conftest.$ac_ext
14132
14133 # OK, works on sane cases. Now check whether nonexistent headers
14134 # can be detected and how.
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <ac_nonexistent.h>
14138 _ACEOF
14139 if ac_fn_cxx_try_cpp "$LINENO"
14140 then :
14141 # Broken: success on invalid input.
14142 continue
14143 else $as_nop
14144 # Passes both tests.
14145 ac_preproc_ok=:
14146 break
14147 fi
14148 rm -f conftest.err conftest.i conftest.$ac_ext
14149
14150 done
14151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14152 rm -f conftest.i conftest.err conftest.$ac_ext
14153 if $ac_preproc_ok
14154 then :
14155
14156 else $as_nop
14157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14159 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14160 See \`config.log' for more details" "$LINENO" 5; }
14161 fi
14162
14163 ac_ext=cpp
14164 ac_cpp='$CXXCPP $CPPFLAGS'
14165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14168
14169 else
14170 _lt_caught_CXX_error=yes
14171 fi
14172
14173 ac_ext=cpp
14174 ac_cpp='$CXXCPP $CPPFLAGS'
14175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14178
14179 archive_cmds_need_lc_CXX=no
14180 allow_undefined_flag_CXX=
14181 always_export_symbols_CXX=no
14182 archive_expsym_cmds_CXX=
14183 compiler_needs_object_CXX=no
14184 export_dynamic_flag_spec_CXX=
14185 hardcode_direct_CXX=no
14186 hardcode_direct_absolute_CXX=no
14187 hardcode_libdir_flag_spec_CXX=
14188 hardcode_libdir_separator_CXX=
14189 hardcode_minus_L_CXX=no
14190 hardcode_shlibpath_var_CXX=unsupported
14191 hardcode_automatic_CXX=no
14192 inherit_rpath_CXX=no
14193 module_cmds_CXX=
14194 module_expsym_cmds_CXX=
14195 link_all_deplibs_CXX=unknown
14196 old_archive_cmds_CXX=$old_archive_cmds
14197 reload_flag_CXX=$reload_flag
14198 reload_cmds_CXX=$reload_cmds
14199 no_undefined_flag_CXX=
14200 whole_archive_flag_spec_CXX=
14201 enable_shared_with_static_runtimes_CXX=no
14202
14203 # Source file extension for C++ test sources.
14204 ac_ext=cpp
14205
14206 # Object file extension for compiled C++ test sources.
14207 objext=o
14208 objext_CXX=$objext
14209
14210 # No sense in running all these tests if we already determined that
14211 # the CXX compiler isn't working. Some variables (like enable_shared)
14212 # are currently assumed to apply to all compilers on this platform,
14213 # and will be corrupted by setting them based on a non-working compiler.
14214 if test yes != "$_lt_caught_CXX_error"; then
14215 # Code to be used in simple compile tests
14216 lt_simple_compile_test_code="int some_variable = 0;"
14217
14218 # Code to be used in simple link tests
14219 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14220
14221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14222
14223
14224
14225
14226
14227
14228 # If no C compiler was specified, use CC.
14229 LTCC=${LTCC-"$CC"}
14230
14231 # If no C compiler flags were specified, use CFLAGS.
14232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14233
14234 # Allow CC to be a program name with arguments.
14235 compiler=$CC
14236
14237
14238 # save warnings/boilerplate of simple test code
14239 ac_outfile=conftest.$ac_objext
14240 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14242 _lt_compiler_boilerplate=`cat conftest.err`
14243 $RM conftest*
14244
14245 ac_outfile=conftest.$ac_objext
14246 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14248 _lt_linker_boilerplate=`cat conftest.err`
14249 $RM -r conftest*
14250
14251
14252 # Allow CC to be a program name with arguments.
14253 lt_save_CC=$CC
14254 lt_save_CFLAGS=$CFLAGS
14255 lt_save_LD=$LD
14256 lt_save_GCC=$GCC
14257 GCC=$GXX
14258 lt_save_with_gnu_ld=$with_gnu_ld
14259 lt_save_path_LD=$lt_cv_path_LD
14260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14261 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14262 else
14263 $as_unset lt_cv_prog_gnu_ld
14264 fi
14265 if test -n "${lt_cv_path_LDCXX+set}"; then
14266 lt_cv_path_LD=$lt_cv_path_LDCXX
14267 else
14268 $as_unset lt_cv_path_LD
14269 fi
14270 test -z "${LDCXX+set}" || LD=$LDCXX
14271 CC=${CXX-"c++"}
14272 CFLAGS=$CXXFLAGS
14273 compiler=$CC
14274 compiler_CXX=$CC
14275 func_cc_basename $compiler
14276 cc_basename=$func_cc_basename_result
14277
14278
14279 if test -n "$compiler"; then
14280 # We don't want -fno-exception when compiling C++ code, so set the
14281 # no_builtin_flag separately
14282 if test yes = "$GXX"; then
14283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14284 else
14285 lt_prog_compiler_no_builtin_flag_CXX=
14286 fi
14287
14288 if test yes = "$GXX"; then
14289 # Set up default GNU C++ configuration
14290
14291
14292
14293 # Check whether --with-gnu-ld was given.
14294 if test ${with_gnu_ld+y}
14295 then :
14296 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14297 else $as_nop
14298 with_gnu_ld=no
14299 fi
14300
14301 ac_prog=ld
14302 if test yes = "$GCC"; then
14303 # Check if gcc -print-prog-name=ld gives a path.
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14305 printf %s "checking for ld used by $CC... " >&6; }
14306 case $host in
14307 *-*-mingw*)
14308 # gcc leaves a trailing carriage return, which upsets mingw
14309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14310 *)
14311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14312 esac
14313 case $ac_prog in
14314 # Accept absolute paths.
14315 [\\/]* | ?:[\\/]*)
14316 re_direlt='/[^/][^/]*/\.\./'
14317 # Canonicalize the pathname of ld
14318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14321 done
14322 test -z "$LD" && LD=$ac_prog
14323 ;;
14324 "")
14325 # If it fails, then pretend we aren't using GCC.
14326 ac_prog=ld
14327 ;;
14328 *)
14329 # If it is relative, then search for the first ld in PATH.
14330 with_gnu_ld=unknown
14331 ;;
14332 esac
14333 elif test yes = "$with_gnu_ld"; then
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14335 printf %s "checking for GNU ld... " >&6; }
14336 else
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14338 printf %s "checking for non-GNU ld... " >&6; }
14339 fi
14340 if test ${lt_cv_path_LD+y}
14341 then :
14342 printf %s "(cached) " >&6
14343 else $as_nop
14344 if test -z "$LD"; then
14345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14346 for ac_dir in $PATH; do
14347 IFS=$lt_save_ifs
14348 test -z "$ac_dir" && ac_dir=.
14349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14350 lt_cv_path_LD=$ac_dir/$ac_prog
14351 # Check to see if the program is GNU ld. I'd rather use --version,
14352 # but apparently some variants of GNU ld only accept -v.
14353 # Break only if it was the GNU/non-GNU ld that we prefer.
14354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14355 *GNU* | *'with BFD'*)
14356 test no != "$with_gnu_ld" && break
14357 ;;
14358 *)
14359 test yes != "$with_gnu_ld" && break
14360 ;;
14361 esac
14362 fi
14363 done
14364 IFS=$lt_save_ifs
14365 else
14366 lt_cv_path_LD=$LD # Let the user override the test with a path.
14367 fi
14368 fi
14369
14370 LD=$lt_cv_path_LD
14371 if test -n "$LD"; then
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14373 printf "%s\n" "$LD" >&6; }
14374 else
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 printf "%s\n" "no" >&6; }
14377 fi
14378 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14380 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14381 if test ${lt_cv_prog_gnu_ld+y}
14382 then :
14383 printf %s "(cached) " >&6
14384 else $as_nop
14385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14386 case `$LD -v 2>&1 </dev/null` in
14387 *GNU* | *'with BFD'*)
14388 lt_cv_prog_gnu_ld=yes
14389 ;;
14390 *)
14391 lt_cv_prog_gnu_ld=no
14392 ;;
14393 esac
14394 fi
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14396 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14397 with_gnu_ld=$lt_cv_prog_gnu_ld
14398
14399
14400
14401
14402
14403
14404
14405 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14406 # archiving commands below assume that GNU ld is being used.
14407 if test yes = "$with_gnu_ld"; then
14408 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14409 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14410
14411 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14412 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14413
14414 # If archive_cmds runs LD, not CC, wlarc should be empty
14415 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14416 # investigate it a little bit more. (MM)
14417 wlarc='$wl'
14418
14419 # ancient GNU ld didn't support --whole-archive et. al.
14420 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14421 $GREP 'no-whole-archive' > /dev/null; then
14422 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14423 else
14424 whole_archive_flag_spec_CXX=
14425 fi
14426 else
14427 with_gnu_ld=no
14428 wlarc=
14429
14430 # A generic and very simple default shared library creation
14431 # command for GNU C++ for the case where it uses the native
14432 # linker, instead of GNU ld. If possible, this setting should
14433 # overridden to take advantage of the native linker features on
14434 # the platform it is being used on.
14435 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14436 fi
14437
14438 # Commands to make compiler produce verbose output that lists
14439 # what "hidden" libraries, object files and flags are used when
14440 # linking a shared library.
14441 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14442
14443 else
14444 GXX=no
14445 with_gnu_ld=no
14446 wlarc=
14447 fi
14448
14449 # PORTME: fill in a description of your system's C++ link characteristics
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14451 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14452 ld_shlibs_CXX=yes
14453 case $host_os in
14454 aix3*)
14455 # FIXME: insert proper C++ library support
14456 ld_shlibs_CXX=no
14457 ;;
14458 aix[4-9]*)
14459 if test ia64 = "$host_cpu"; then
14460 # On IA64, the linker does run time linking by default, so we don't
14461 # have to do anything special.
14462 aix_use_runtimelinking=no
14463 exp_sym_flag='-Bexport'
14464 no_entry_flag=
14465 else
14466 aix_use_runtimelinking=no
14467
14468 # Test if we are trying to use run time linking or normal
14469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14470 # have runtime linking enabled, and use it for executables.
14471 # For shared libraries, we enable/disable runtime linking
14472 # depending on the kind of the shared library created -
14473 # when "with_aix_soname,aix_use_runtimelinking" is:
14474 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14475 # "aix,yes" lib.so shared, rtl:yes, for executables
14476 # lib.a static archive
14477 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14478 # lib.a(lib.so.V) shared, rtl:no, for executables
14479 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14480 # lib.a(lib.so.V) shared, rtl:no
14481 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14482 # lib.a static archive
14483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14484 for ld_flag in $LDFLAGS; do
14485 case $ld_flag in
14486 *-brtl*)
14487 aix_use_runtimelinking=yes
14488 break
14489 ;;
14490 esac
14491 done
14492 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14493 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14494 # so we don't have lib.a shared libs to link our executables.
14495 # We have to force runtime linking in this case.
14496 aix_use_runtimelinking=yes
14497 LDFLAGS="$LDFLAGS -Wl,-brtl"
14498 fi
14499 ;;
14500 esac
14501
14502 exp_sym_flag='-bexport'
14503 no_entry_flag='-bnoentry'
14504 fi
14505
14506 # When large executables or shared objects are built, AIX ld can
14507 # have problems creating the table of contents. If linking a library
14508 # or program results in "error TOC overflow" add -mminimal-toc to
14509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14511
14512 archive_cmds_CXX=''
14513 hardcode_direct_CXX=yes
14514 hardcode_direct_absolute_CXX=yes
14515 hardcode_libdir_separator_CXX=':'
14516 link_all_deplibs_CXX=yes
14517 file_list_spec_CXX='$wl-f,'
14518 case $with_aix_soname,$aix_use_runtimelinking in
14519 aix,*) ;; # no import file
14520 svr4,* | *,yes) # use import file
14521 # The Import File defines what to hardcode.
14522 hardcode_direct_CXX=no
14523 hardcode_direct_absolute_CXX=no
14524 ;;
14525 esac
14526
14527 if test yes = "$GXX"; then
14528 case $host_os in aix4.[012]|aix4.[012].*)
14529 # We only want to do this on AIX 4.2 and lower, the check
14530 # below for broken collect2 doesn't work under 4.3+
14531 collect2name=`$CC -print-prog-name=collect2`
14532 if test -f "$collect2name" &&
14533 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14534 then
14535 # We have reworked collect2
14536 :
14537 else
14538 # We have old collect2
14539 hardcode_direct_CXX=unsupported
14540 # It fails to find uninstalled libraries when the uninstalled
14541 # path is not listed in the libpath. Setting hardcode_minus_L
14542 # to unsupported forces relinking
14543 hardcode_minus_L_CXX=yes
14544 hardcode_libdir_flag_spec_CXX='-L$libdir'
14545 hardcode_libdir_separator_CXX=
14546 fi
14547 esac
14548 shared_flag='-shared'
14549 if test yes = "$aix_use_runtimelinking"; then
14550 shared_flag=$shared_flag' $wl-G'
14551 fi
14552 # Need to ensure runtime linking is disabled for the traditional
14553 # shared library, or the linker may eventually find shared libraries
14554 # /with/ Import File - we do not want to mix them.
14555 shared_flag_aix='-shared'
14556 shared_flag_svr4='-shared $wl-G'
14557 else
14558 # not using gcc
14559 if test ia64 = "$host_cpu"; then
14560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14561 # chokes on -Wl,-G. The following line is correct:
14562 shared_flag='-G'
14563 else
14564 if test yes = "$aix_use_runtimelinking"; then
14565 shared_flag='$wl-G'
14566 else
14567 shared_flag='$wl-bM:SRE'
14568 fi
14569 shared_flag_aix='$wl-bM:SRE'
14570 shared_flag_svr4='$wl-G'
14571 fi
14572 fi
14573
14574 export_dynamic_flag_spec_CXX='$wl-bexpall'
14575 # It seems that -bexpall does not export symbols beginning with
14576 # underscore (_), so it is better to generate a list of symbols to
14577 # export.
14578 always_export_symbols_CXX=yes
14579 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14580 # Warning - without using the other runtime loading flags (-brtl),
14581 # -berok will link without error, but may produce a broken library.
14582 # The "-G" linker flag allows undefined symbols.
14583 no_undefined_flag_CXX='-bernotok'
14584 # Determine the default libpath from the value encoded in an empty
14585 # executable.
14586 if test set = "${lt_cv_aix_libpath+set}"; then
14587 aix_libpath=$lt_cv_aix_libpath
14588 else
14589 if test ${lt_cv_aix_libpath__CXX+y}
14590 then :
14591 printf %s "(cached) " >&6
14592 else $as_nop
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14595
14596 int
14597 main (void)
14598 {
14599
14600 ;
14601 return 0;
14602 }
14603 _ACEOF
14604 if ac_fn_cxx_try_link "$LINENO"
14605 then :
14606
14607 lt_aix_libpath_sed='
14608 /Import File Strings/,/^$/ {
14609 /^0/ {
14610 s/^0 *\([^ ]*\) *$/\1/
14611 p
14612 }
14613 }'
14614 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14615 # Check for a 64-bit object if we didn't find anything.
14616 if test -z "$lt_cv_aix_libpath__CXX"; then
14617 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14618 fi
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14621 conftest$ac_exeext conftest.$ac_ext
14622 if test -z "$lt_cv_aix_libpath__CXX"; then
14623 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14624 fi
14625
14626 fi
14627
14628 aix_libpath=$lt_cv_aix_libpath__CXX
14629 fi
14630
14631 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14632
14633 archive_expsym_cmds_CXX='$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
14634 else
14635 if test ia64 = "$host_cpu"; then
14636 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14637 allow_undefined_flag_CXX="-z nodefs"
14638 archive_expsym_cmds_CXX="\$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"
14639 else
14640 # Determine the default libpath from the value encoded in an
14641 # empty executable.
14642 if test set = "${lt_cv_aix_libpath+set}"; then
14643 aix_libpath=$lt_cv_aix_libpath
14644 else
14645 if test ${lt_cv_aix_libpath__CXX+y}
14646 then :
14647 printf %s "(cached) " >&6
14648 else $as_nop
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651
14652 int
14653 main (void)
14654 {
14655
14656 ;
14657 return 0;
14658 }
14659 _ACEOF
14660 if ac_fn_cxx_try_link "$LINENO"
14661 then :
14662
14663 lt_aix_libpath_sed='
14664 /Import File Strings/,/^$/ {
14665 /^0/ {
14666 s/^0 *\([^ ]*\) *$/\1/
14667 p
14668 }
14669 }'
14670 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14671 # Check for a 64-bit object if we didn't find anything.
14672 if test -z "$lt_cv_aix_libpath__CXX"; then
14673 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14674 fi
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14677 conftest$ac_exeext conftest.$ac_ext
14678 if test -z "$lt_cv_aix_libpath__CXX"; then
14679 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14680 fi
14681
14682 fi
14683
14684 aix_libpath=$lt_cv_aix_libpath__CXX
14685 fi
14686
14687 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14688 # Warning - without using the other run time loading flags,
14689 # -berok will link without error, but may produce a broken library.
14690 no_undefined_flag_CXX=' $wl-bernotok'
14691 allow_undefined_flag_CXX=' $wl-berok'
14692 if test yes = "$with_gnu_ld"; then
14693 # We only use this code for GNU lds that support --whole-archive.
14694 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14695 else
14696 # Exported symbols can be pulled into shared objects from archives
14697 whole_archive_flag_spec_CXX='$convenience'
14698 fi
14699 archive_cmds_need_lc_CXX=yes
14700 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14701 # -brtl affects multiple linker settings, -berok does not and is overridden later
14702 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14703 if test svr4 != "$with_aix_soname"; then
14704 # This is similar to how AIX traditionally builds its shared
14705 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14706 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14707 fi
14708 if test aix != "$with_aix_soname"; then
14709 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14710 else
14711 # used by -dlpreopen to get the symbols
14712 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14713 fi
14714 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14715 fi
14716 fi
14717 ;;
14718
14719 beos*)
14720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14721 allow_undefined_flag_CXX=unsupported
14722 # Joseph Beckenbach <[email protected]> says some releases of gcc
14723 # support --undefined. This deserves some investigation. FIXME
14724 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14725 else
14726 ld_shlibs_CXX=no
14727 fi
14728 ;;
14729
14730 chorus*)
14731 case $cc_basename in
14732 *)
14733 # FIXME: insert proper C++ library support
14734 ld_shlibs_CXX=no
14735 ;;
14736 esac
14737 ;;
14738
14739 cygwin* | mingw* | pw32* | cegcc*)
14740 case $GXX,$cc_basename in
14741 ,cl* | no,cl*)
14742 # Native MSVC
14743 # hardcode_libdir_flag_spec is actually meaningless, as there is
14744 # no search path for DLLs.
14745 hardcode_libdir_flag_spec_CXX=' '
14746 allow_undefined_flag_CXX=unsupported
14747 always_export_symbols_CXX=yes
14748 file_list_spec_CXX='@'
14749 # Tell ltmain to make .lib files, not .a files.
14750 libext=lib
14751 # Tell ltmain to make .dll files, not .so files.
14752 shrext_cmds=.dll
14753 # FIXME: Setting linknames here is a bad hack.
14754 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14755 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14756 cp "$export_symbols" "$output_objdir/$soname.def";
14757 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14758 else
14759 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14760 fi~
14761 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14762 linknames='
14763 # The linker will not automatically build a static lib if we build a DLL.
14764 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14765 enable_shared_with_static_runtimes_CXX=yes
14766 # Don't use ranlib
14767 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14768 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14769 lt_tool_outputfile="@TOOL_OUTPUT@"~
14770 case $lt_outputfile in
14771 *.exe|*.EXE) ;;
14772 *)
14773 lt_outputfile=$lt_outputfile.exe
14774 lt_tool_outputfile=$lt_tool_outputfile.exe
14775 ;;
14776 esac~
14777 func_to_tool_file "$lt_outputfile"~
14778 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14779 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14780 $RM "$lt_outputfile.manifest";
14781 fi'
14782 ;;
14783 *)
14784 # g++
14785 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14786 # as there is no search path for DLLs.
14787 hardcode_libdir_flag_spec_CXX='-L$libdir'
14788 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14789 allow_undefined_flag_CXX=unsupported
14790 always_export_symbols_CXX=no
14791 enable_shared_with_static_runtimes_CXX=yes
14792
14793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14795 # If the export-symbols file already is a .def file, use it as
14796 # is; otherwise, prepend EXPORTS...
14797 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14798 cp $export_symbols $output_objdir/$soname.def;
14799 else
14800 echo EXPORTS > $output_objdir/$soname.def;
14801 cat $export_symbols >> $output_objdir/$soname.def;
14802 fi~
14803 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14804 else
14805 ld_shlibs_CXX=no
14806 fi
14807 ;;
14808 esac
14809 ;;
14810 darwin* | rhapsody*)
14811
14812
14813 archive_cmds_need_lc_CXX=no
14814 hardcode_direct_CXX=no
14815 hardcode_automatic_CXX=yes
14816 hardcode_shlibpath_var_CXX=unsupported
14817 if test yes = "$lt_cv_ld_force_load"; then
14818 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14819
14820 else
14821 whole_archive_flag_spec_CXX=''
14822 fi
14823 link_all_deplibs_CXX=yes
14824 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14825 case $cc_basename in
14826 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14827 *) _lt_dar_can_shared=$GCC ;;
14828 esac
14829 if test yes = "$_lt_dar_can_shared"; then
14830 output_verbose_link_cmd=func_echo_all
14831 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14832 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14833 archive_expsym_cmds_CXX="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"
14834 module_expsym_cmds_CXX="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"
14835 if test yes != "$lt_cv_apple_cc_single_mod"; then
14836 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14837 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14838 fi
14839
14840 else
14841 ld_shlibs_CXX=no
14842 fi
14843
14844 ;;
14845
14846 os2*)
14847 hardcode_libdir_flag_spec_CXX='-L$libdir'
14848 hardcode_minus_L_CXX=yes
14849 allow_undefined_flag_CXX=unsupported
14850 shrext_cmds=.dll
14851 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14854 $ECHO EXPORTS >> $output_objdir/$libname.def~
14855 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14856 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14857 emximp -o $lib $output_objdir/$libname.def'
14858 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14861 $ECHO EXPORTS >> $output_objdir/$libname.def~
14862 prefix_cmds="$SED"~
14863 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14864 prefix_cmds="$prefix_cmds -e 1d";
14865 fi~
14866 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14867 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14868 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14869 emximp -o $lib $output_objdir/$libname.def'
14870 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14871 enable_shared_with_static_runtimes_CXX=yes
14872 ;;
14873
14874 dgux*)
14875 case $cc_basename in
14876 ec++*)
14877 # FIXME: insert proper C++ library support
14878 ld_shlibs_CXX=no
14879 ;;
14880 ghcx*)
14881 # Green Hills C++ Compiler
14882 # FIXME: insert proper C++ library support
14883 ld_shlibs_CXX=no
14884 ;;
14885 *)
14886 # FIXME: insert proper C++ library support
14887 ld_shlibs_CXX=no
14888 ;;
14889 esac
14890 ;;
14891
14892 freebsd2.*)
14893 # C++ shared libraries reported to be fairly broken before
14894 # switch to ELF
14895 ld_shlibs_CXX=no
14896 ;;
14897
14898 freebsd-elf*)
14899 archive_cmds_need_lc_CXX=no
14900 ;;
14901
14902 freebsd* | dragonfly*)
14903 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14904 # conventions
14905 ld_shlibs_CXX=yes
14906 ;;
14907
14908 haiku*)
14909 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14910 link_all_deplibs_CXX=yes
14911 ;;
14912
14913 hpux9*)
14914 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14915 hardcode_libdir_separator_CXX=:
14916 export_dynamic_flag_spec_CXX='$wl-E'
14917 hardcode_direct_CXX=yes
14918 hardcode_minus_L_CXX=yes # Not in the search PATH,
14919 # but as the default
14920 # location of the library.
14921
14922 case $cc_basename in
14923 CC*)
14924 # FIXME: insert proper C++ library support
14925 ld_shlibs_CXX=no
14926 ;;
14927 aCC*)
14928 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14929 # Commands to make compiler produce verbose output that lists
14930 # what "hidden" libraries, object files and flags are used when
14931 # linking a shared library.
14932 #
14933 # There doesn't appear to be a way to prevent this compiler from
14934 # explicitly linking system object files so we need to strip them
14935 # from the output so that they don't get included in the library
14936 # dependencies.
14937 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14938 ;;
14939 *)
14940 if test yes = "$GXX"; then
14941 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14942 else
14943 # FIXME: insert proper C++ library support
14944 ld_shlibs_CXX=no
14945 fi
14946 ;;
14947 esac
14948 ;;
14949
14950 hpux10*|hpux11*)
14951 if test no = "$with_gnu_ld"; then
14952 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14953 hardcode_libdir_separator_CXX=:
14954
14955 case $host_cpu in
14956 hppa*64*|ia64*)
14957 ;;
14958 *)
14959 export_dynamic_flag_spec_CXX='$wl-E'
14960 ;;
14961 esac
14962 fi
14963 case $host_cpu in
14964 hppa*64*|ia64*)
14965 hardcode_direct_CXX=no
14966 hardcode_shlibpath_var_CXX=no
14967 ;;
14968 *)
14969 hardcode_direct_CXX=yes
14970 hardcode_direct_absolute_CXX=yes
14971 hardcode_minus_L_CXX=yes # Not in the search PATH,
14972 # but as the default
14973 # location of the library.
14974 ;;
14975 esac
14976
14977 case $cc_basename in
14978 CC*)
14979 # FIXME: insert proper C++ library support
14980 ld_shlibs_CXX=no
14981 ;;
14982 aCC*)
14983 case $host_cpu in
14984 hppa*64*)
14985 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14986 ;;
14987 ia64*)
14988 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14989 ;;
14990 *)
14991 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14992 ;;
14993 esac
14994 # Commands to make compiler produce verbose output that lists
14995 # what "hidden" libraries, object files and flags are used when
14996 # linking a shared library.
14997 #
14998 # There doesn't appear to be a way to prevent this compiler from
14999 # explicitly linking system object files so we need to strip them
15000 # from the output so that they don't get included in the library
15001 # dependencies.
15002 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15003 ;;
15004 *)
15005 if test yes = "$GXX"; then
15006 if test no = "$with_gnu_ld"; then
15007 case $host_cpu in
15008 hppa*64*)
15009 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15010 ;;
15011 ia64*)
15012 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15013 ;;
15014 *)
15015 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15016 ;;
15017 esac
15018 fi
15019 else
15020 # FIXME: insert proper C++ library support
15021 ld_shlibs_CXX=no
15022 fi
15023 ;;
15024 esac
15025 ;;
15026
15027 interix[3-9]*)
15028 hardcode_direct_CXX=no
15029 hardcode_shlibpath_var_CXX=no
15030 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15031 export_dynamic_flag_spec_CXX='$wl-E'
15032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15033 # Instead, shared libraries are loaded at an image base (0x10000000 by
15034 # default) and relocated if they conflict, which is a slow very memory
15035 # consuming and fragmenting process. To avoid this, we pick a random,
15036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15038 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15039 archive_expsym_cmds_CXX='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'
15040 ;;
15041 irix5* | irix6*)
15042 case $cc_basename in
15043 CC*)
15044 # SGI C++
15045 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15046
15047 # Archives containing C++ object files must be created using
15048 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15049 # necessary to make sure instantiated templates are included
15050 # in the archive.
15051 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15052 ;;
15053 *)
15054 if test yes = "$GXX"; then
15055 if test no = "$with_gnu_ld"; then
15056 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
15057 else
15058 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15059 fi
15060 fi
15061 link_all_deplibs_CXX=yes
15062 ;;
15063 esac
15064 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15065 hardcode_libdir_separator_CXX=:
15066 inherit_rpath_CXX=yes
15067 ;;
15068
15069 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15070 case $cc_basename in
15071 KCC*)
15072 # Kuck and Associates, Inc. (KAI) C++ Compiler
15073
15074 # KCC will only create a shared library if the output file
15075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15076 # to its proper name (with version) after linking.
15077 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15078 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15079 # Commands to make compiler produce verbose output that lists
15080 # what "hidden" libraries, object files and flags are used when
15081 # linking a shared library.
15082 #
15083 # There doesn't appear to be a way to prevent this compiler from
15084 # explicitly linking system object files so we need to strip them
15085 # from the output so that they don't get included in the library
15086 # dependencies.
15087 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15088
15089 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15090 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15091
15092 # Archives containing C++ object files must be created using
15093 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15094 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15095 ;;
15096 icpc* | ecpc* )
15097 # Intel C++
15098 with_gnu_ld=yes
15099 # version 8.0 and above of icpc choke on multiply defined symbols
15100 # if we add $predep_objects and $postdep_objects, however 7.1 and
15101 # earlier do not add the objects themselves.
15102 case `$CC -V 2>&1` in
15103 *"Version 7."*)
15104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15105 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15106 ;;
15107 *) # Version 8.0 or newer
15108 tmp_idyn=
15109 case $host_cpu in
15110 ia64*) tmp_idyn=' -i_dynamic';;
15111 esac
15112 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15113 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15114 ;;
15115 esac
15116 archive_cmds_need_lc_CXX=no
15117 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15118 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15119 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15120 ;;
15121 pgCC* | pgcpp*)
15122 # Portland Group C++ compiler
15123 case `$CC -V` in
15124 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15125 prelink_cmds_CXX='tpldir=Template.dir~
15126 rm -rf $tpldir~
15127 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15128 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15129 old_archive_cmds_CXX='tpldir=Template.dir~
15130 rm -rf $tpldir~
15131 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15132 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15133 $RANLIB $oldlib'
15134 archive_cmds_CXX='tpldir=Template.dir~
15135 rm -rf $tpldir~
15136 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15137 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15138 archive_expsym_cmds_CXX='tpldir=Template.dir~
15139 rm -rf $tpldir~
15140 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15141 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15142 ;;
15143 *) # Version 6 and above use weak symbols
15144 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15145 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15146 ;;
15147 esac
15148
15149 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15150 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15151 whole_archive_flag_spec_CXX='$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'
15152 ;;
15153 cxx*)
15154 # Compaq C++
15155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15156 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15157
15158 runpath_var=LD_RUN_PATH
15159 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15160 hardcode_libdir_separator_CXX=:
15161
15162 # Commands to make compiler produce verbose output that lists
15163 # what "hidden" libraries, object files and flags are used when
15164 # linking a shared library.
15165 #
15166 # There doesn't appear to be a way to prevent this compiler from
15167 # explicitly linking system object files so we need to strip them
15168 # from the output so that they don't get included in the library
15169 # dependencies.
15170 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15171 ;;
15172 xl* | mpixl* | bgxl*)
15173 # IBM XL 8.0 on PPC, with GNU ld
15174 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15175 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15176 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15177 if test yes = "$supports_anon_versioning"; then
15178 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15180 echo "local: *; };" >> $output_objdir/$libname.ver~
15181 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15182 fi
15183 ;;
15184 *)
15185 case `$CC -V 2>&1 | sed 5q` in
15186 *Sun\ C*)
15187 # Sun C++ 5.9
15188 no_undefined_flag_CXX=' -zdefs'
15189 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15190 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15191 hardcode_libdir_flag_spec_CXX='-R$libdir'
15192 whole_archive_flag_spec_CXX='$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'
15193 compiler_needs_object_CXX=yes
15194
15195 # Not sure whether something based on
15196 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15197 # would be better.
15198 output_verbose_link_cmd='func_echo_all'
15199
15200 # Archives containing C++ object files must be created using
15201 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15202 # necessary to make sure instantiated templates are included
15203 # in the archive.
15204 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15205 ;;
15206 esac
15207 ;;
15208 esac
15209 ;;
15210
15211 lynxos*)
15212 # FIXME: insert proper C++ library support
15213 ld_shlibs_CXX=no
15214 ;;
15215
15216 m88k*)
15217 # FIXME: insert proper C++ library support
15218 ld_shlibs_CXX=no
15219 ;;
15220
15221 mvs*)
15222 case $cc_basename in
15223 cxx*)
15224 # FIXME: insert proper C++ library support
15225 ld_shlibs_CXX=no
15226 ;;
15227 *)
15228 # FIXME: insert proper C++ library support
15229 ld_shlibs_CXX=no
15230 ;;
15231 esac
15232 ;;
15233
15234 netbsd*)
15235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15236 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15237 wlarc=
15238 hardcode_libdir_flag_spec_CXX='-R$libdir'
15239 hardcode_direct_CXX=yes
15240 hardcode_shlibpath_var_CXX=no
15241 fi
15242 # Workaround some broken pre-1.5 toolchains
15243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15244 ;;
15245
15246 *nto* | *qnx*)
15247 ld_shlibs_CXX=yes
15248 ;;
15249
15250 openbsd* | bitrig*)
15251 if test -f /usr/libexec/ld.so; then
15252 hardcode_direct_CXX=yes
15253 hardcode_shlibpath_var_CXX=no
15254 hardcode_direct_absolute_CXX=yes
15255 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15256 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15257 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15258 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15259 export_dynamic_flag_spec_CXX='$wl-E'
15260 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15261 fi
15262 output_verbose_link_cmd=func_echo_all
15263 else
15264 ld_shlibs_CXX=no
15265 fi
15266 ;;
15267
15268 osf3* | osf4* | osf5*)
15269 case $cc_basename in
15270 KCC*)
15271 # Kuck and Associates, Inc. (KAI) C++ Compiler
15272
15273 # KCC will only create a shared library if the output file
15274 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15275 # to its proper name (with version) after linking.
15276 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15277
15278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15279 hardcode_libdir_separator_CXX=:
15280
15281 # Archives containing C++ object files must be created using
15282 # the KAI C++ compiler.
15283 case $host in
15284 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15285 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15286 esac
15287 ;;
15288 RCC*)
15289 # Rational C++ 2.4.1
15290 # FIXME: insert proper C++ library support
15291 ld_shlibs_CXX=no
15292 ;;
15293 cxx*)
15294 case $host in
15295 osf3*)
15296 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15297 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15298 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15299 ;;
15300 *)
15301 allow_undefined_flag_CXX=' -expect_unresolved \*'
15302 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15303 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15304 echo "-hidden">> $lib.exp~
15305 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15306 $RM $lib.exp'
15307 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15308 ;;
15309 esac
15310
15311 hardcode_libdir_separator_CXX=:
15312
15313 # Commands to make compiler produce verbose output that lists
15314 # what "hidden" libraries, object files and flags are used when
15315 # linking a shared library.
15316 #
15317 # There doesn't appear to be a way to prevent this compiler from
15318 # explicitly linking system object files so we need to strip them
15319 # from the output so that they don't get included in the library
15320 # dependencies.
15321 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15322 ;;
15323 *)
15324 if test yes,no = "$GXX,$with_gnu_ld"; then
15325 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15326 case $host in
15327 osf3*)
15328 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15329 ;;
15330 *)
15331 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15332 ;;
15333 esac
15334
15335 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15336 hardcode_libdir_separator_CXX=:
15337
15338 # Commands to make compiler produce verbose output that lists
15339 # what "hidden" libraries, object files and flags are used when
15340 # linking a shared library.
15341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15342
15343 else
15344 # FIXME: insert proper C++ library support
15345 ld_shlibs_CXX=no
15346 fi
15347 ;;
15348 esac
15349 ;;
15350
15351 psos*)
15352 # FIXME: insert proper C++ library support
15353 ld_shlibs_CXX=no
15354 ;;
15355
15356 sunos4*)
15357 case $cc_basename in
15358 CC*)
15359 # Sun C++ 4.x
15360 # FIXME: insert proper C++ library support
15361 ld_shlibs_CXX=no
15362 ;;
15363 lcc*)
15364 # Lucid
15365 # FIXME: insert proper C++ library support
15366 ld_shlibs_CXX=no
15367 ;;
15368 *)
15369 # FIXME: insert proper C++ library support
15370 ld_shlibs_CXX=no
15371 ;;
15372 esac
15373 ;;
15374
15375 solaris*)
15376 case $cc_basename in
15377 CC* | sunCC*)
15378 # Sun C++ 4.2, 5.x and Centerline C++
15379 archive_cmds_need_lc_CXX=yes
15380 no_undefined_flag_CXX=' -zdefs'
15381 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15382 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15383 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15384
15385 hardcode_libdir_flag_spec_CXX='-R$libdir'
15386 hardcode_shlibpath_var_CXX=no
15387 case $host_os in
15388 solaris2.[0-5] | solaris2.[0-5].*) ;;
15389 *)
15390 # The compiler driver will combine and reorder linker options,
15391 # but understands '-z linker_flag'.
15392 # Supported since Solaris 2.6 (maybe 2.5.1?)
15393 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15394 ;;
15395 esac
15396 link_all_deplibs_CXX=yes
15397
15398 output_verbose_link_cmd='func_echo_all'
15399
15400 # Archives containing C++ object files must be created using
15401 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15402 # necessary to make sure instantiated templates are included
15403 # in the archive.
15404 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15405 ;;
15406 gcx*)
15407 # Green Hills C++ Compiler
15408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15409
15410 # The C++ compiler must be used to create the archive.
15411 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15412 ;;
15413 *)
15414 # GNU C++ compiler with Solaris linker
15415 if test yes,no = "$GXX,$with_gnu_ld"; then
15416 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15417 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15418 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15419 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15420 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15421
15422 # Commands to make compiler produce verbose output that lists
15423 # what "hidden" libraries, object files and flags are used when
15424 # linking a shared library.
15425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15426 else
15427 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15428 # platform.
15429 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15430 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15431 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15432
15433 # Commands to make compiler produce verbose output that lists
15434 # what "hidden" libraries, object files and flags are used when
15435 # linking a shared library.
15436 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15437 fi
15438
15439 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15440 case $host_os in
15441 solaris2.[0-5] | solaris2.[0-5].*) ;;
15442 *)
15443 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15444 ;;
15445 esac
15446 fi
15447 ;;
15448 esac
15449 ;;
15450
15451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15452 no_undefined_flag_CXX='$wl-z,text'
15453 archive_cmds_need_lc_CXX=no
15454 hardcode_shlibpath_var_CXX=no
15455 runpath_var='LD_RUN_PATH'
15456
15457 case $cc_basename in
15458 CC*)
15459 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15460 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15461 ;;
15462 *)
15463 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15465 ;;
15466 esac
15467 ;;
15468
15469 sysv5* | sco3.2v5* | sco5v6*)
15470 # Note: We CANNOT use -z defs as we might desire, because we do not
15471 # link with -lc, and that would cause any symbols used from libc to
15472 # always be unresolved, which means just about no library would
15473 # ever link correctly. If we're not using GNU ld we use -z text
15474 # though, which does catch some bad symbols but isn't as heavy-handed
15475 # as -z defs.
15476 no_undefined_flag_CXX='$wl-z,text'
15477 allow_undefined_flag_CXX='$wl-z,nodefs'
15478 archive_cmds_need_lc_CXX=no
15479 hardcode_shlibpath_var_CXX=no
15480 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15481 hardcode_libdir_separator_CXX=':'
15482 link_all_deplibs_CXX=yes
15483 export_dynamic_flag_spec_CXX='$wl-Bexport'
15484 runpath_var='LD_RUN_PATH'
15485
15486 case $cc_basename in
15487 CC*)
15488 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15490 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15491 '"$old_archive_cmds_CXX"
15492 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15493 '"$reload_cmds_CXX"
15494 ;;
15495 *)
15496 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15497 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15498 ;;
15499 esac
15500 ;;
15501
15502 tandem*)
15503 case $cc_basename in
15504 NCC*)
15505 # NonStop-UX NCC 3.20
15506 # FIXME: insert proper C++ library support
15507 ld_shlibs_CXX=no
15508 ;;
15509 *)
15510 # FIXME: insert proper C++ library support
15511 ld_shlibs_CXX=no
15512 ;;
15513 esac
15514 ;;
15515
15516 vxworks*)
15517 # FIXME: insert proper C++ library support
15518 ld_shlibs_CXX=no
15519 ;;
15520
15521 *)
15522 # FIXME: insert proper C++ library support
15523 ld_shlibs_CXX=no
15524 ;;
15525 esac
15526
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15528 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15529 test no = "$ld_shlibs_CXX" && can_build_shared=no
15530
15531 GCC_CXX=$GXX
15532 LD_CXX=$LD
15533
15534 ## CAVEAT EMPTOR:
15535 ## There is no encapsulation within the following macros, do not change
15536 ## the running order or otherwise move them around unless you know exactly
15537 ## what you are doing...
15538 # Dependencies to place before and after the object being linked:
15539 predep_objects_CXX=
15540 postdep_objects_CXX=
15541 predeps_CXX=
15542 postdeps_CXX=
15543 compiler_lib_search_path_CXX=
15544
15545 cat > conftest.$ac_ext <<_LT_EOF
15546 class Foo
15547 {
15548 public:
15549 Foo (void) { a = 0; }
15550 private:
15551 int a;
15552 };
15553 _LT_EOF
15554
15555
15556 _lt_libdeps_save_CFLAGS=$CFLAGS
15557 case "$CC $CFLAGS " in #(
15558 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15559 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15560 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15561 esac
15562
15563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15564 (eval $ac_compile) 2>&5
15565 ac_status=$?
15566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15567 test $ac_status = 0; }; then
15568 # Parse the compiler output and extract the necessary
15569 # objects, libraries and library flags.
15570
15571 # Sentinel used to keep track of whether or not we are before
15572 # the conftest object file.
15573 pre_test_object_deps_done=no
15574
15575 for p in `eval "$output_verbose_link_cmd"`; do
15576 case $prev$p in
15577
15578 -L* | -R* | -l*)
15579 # Some compilers place space between "-{L,R}" and the path.
15580 # Remove the space.
15581 if test x-L = "$p" ||
15582 test x-R = "$p"; then
15583 prev=$p
15584 continue
15585 fi
15586
15587 # Expand the sysroot to ease extracting the directories later.
15588 if test -z "$prev"; then
15589 case $p in
15590 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15591 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15592 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15593 esac
15594 fi
15595 case $p in
15596 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15597 esac
15598 if test no = "$pre_test_object_deps_done"; then
15599 case $prev in
15600 -L | -R)
15601 # Internal compiler library paths should come after those
15602 # provided the user. The postdeps already come after the
15603 # user supplied libs so there is no need to process them.
15604 if test -z "$compiler_lib_search_path_CXX"; then
15605 compiler_lib_search_path_CXX=$prev$p
15606 else
15607 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15608 fi
15609 ;;
15610 # The "-l" case would never come before the object being
15611 # linked, so don't bother handling this case.
15612 esac
15613 else
15614 if test -z "$postdeps_CXX"; then
15615 postdeps_CXX=$prev$p
15616 else
15617 postdeps_CXX="${postdeps_CXX} $prev$p"
15618 fi
15619 fi
15620 prev=
15621 ;;
15622
15623 *.lto.$objext) ;; # Ignore GCC LTO objects
15624 *.$objext)
15625 # This assumes that the test object file only shows up
15626 # once in the compiler output.
15627 if test "$p" = "conftest.$objext"; then
15628 pre_test_object_deps_done=yes
15629 continue
15630 fi
15631
15632 if test no = "$pre_test_object_deps_done"; then
15633 if test -z "$predep_objects_CXX"; then
15634 predep_objects_CXX=$p
15635 else
15636 predep_objects_CXX="$predep_objects_CXX $p"
15637 fi
15638 else
15639 if test -z "$postdep_objects_CXX"; then
15640 postdep_objects_CXX=$p
15641 else
15642 postdep_objects_CXX="$postdep_objects_CXX $p"
15643 fi
15644 fi
15645 ;;
15646
15647 *) ;; # Ignore the rest.
15648
15649 esac
15650 done
15651
15652 # Clean up.
15653 rm -f a.out a.exe
15654 else
15655 echo "libtool.m4: error: problem compiling CXX test program"
15656 fi
15657
15658 $RM -f confest.$objext
15659 CFLAGS=$_lt_libdeps_save_CFLAGS
15660
15661 # PORTME: override above test on systems where it is broken
15662 case $host_os in
15663 interix[3-9]*)
15664 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15665 # hack all around it, let's just trust "g++" to DTRT.
15666 predep_objects_CXX=
15667 postdep_objects_CXX=
15668 postdeps_CXX=
15669 ;;
15670 esac
15671
15672
15673 case " $postdeps_CXX " in
15674 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15675 esac
15676 compiler_lib_search_dirs_CXX=
15677 if test -n "${compiler_lib_search_path_CXX}"; then
15678 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15679 fi
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711 lt_prog_compiler_wl_CXX=
15712 lt_prog_compiler_pic_CXX=
15713 lt_prog_compiler_static_CXX=
15714
15715
15716 # C++ specific cases for pic, static, wl, etc.
15717 if test yes = "$GXX"; then
15718 lt_prog_compiler_wl_CXX='-Wl,'
15719 lt_prog_compiler_static_CXX='-static'
15720
15721 case $host_os in
15722 aix*)
15723 # All AIX code is PIC.
15724 if test ia64 = "$host_cpu"; then
15725 # AIX 5 now supports IA64 processor
15726 lt_prog_compiler_static_CXX='-Bstatic'
15727 fi
15728 lt_prog_compiler_pic_CXX='-fPIC'
15729 ;;
15730
15731 amigaos*)
15732 case $host_cpu in
15733 powerpc)
15734 # see comment about AmigaOS4 .so support
15735 lt_prog_compiler_pic_CXX='-fPIC'
15736 ;;
15737 m68k)
15738 # FIXME: we need at least 68020 code to build shared libraries, but
15739 # adding the '-m68020' flag to GCC prevents building anything better,
15740 # like '-m68040'.
15741 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15742 ;;
15743 esac
15744 ;;
15745
15746 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15747 # PIC is the default for these OSes.
15748 ;;
15749 mingw* | cygwin* | os2* | pw32* | cegcc*)
15750 # This hack is so that the source file can tell whether it is being
15751 # built for inclusion in a dll (and should export symbols for example).
15752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15753 # (--disable-auto-import) libraries
15754 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15755 case $host_os in
15756 os2*)
15757 lt_prog_compiler_static_CXX='$wl-static'
15758 ;;
15759 esac
15760 ;;
15761 darwin* | rhapsody*)
15762 # PIC is the default on this platform
15763 # Common symbols not allowed in MH_DYLIB files
15764 lt_prog_compiler_pic_CXX='-fno-common'
15765 ;;
15766 *djgpp*)
15767 # DJGPP does not support shared libraries at all
15768 lt_prog_compiler_pic_CXX=
15769 ;;
15770 haiku*)
15771 # PIC is the default for Haiku.
15772 # The "-static" flag exists, but is broken.
15773 lt_prog_compiler_static_CXX=
15774 ;;
15775 interix[3-9]*)
15776 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15777 # Instead, we relocate shared libraries at runtime.
15778 ;;
15779 sysv4*MP*)
15780 if test -d /usr/nec; then
15781 lt_prog_compiler_pic_CXX=-Kconform_pic
15782 fi
15783 ;;
15784 hpux*)
15785 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15786 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15787 # sets the default TLS model and affects inlining.
15788 case $host_cpu in
15789 hppa*64*)
15790 ;;
15791 *)
15792 lt_prog_compiler_pic_CXX='-fPIC'
15793 ;;
15794 esac
15795 ;;
15796 *qnx* | *nto*)
15797 # QNX uses GNU C++, but need to define -shared option too, otherwise
15798 # it will coredump.
15799 lt_prog_compiler_pic_CXX='-fPIC -shared'
15800 ;;
15801 *)
15802 lt_prog_compiler_pic_CXX='-fPIC'
15803 ;;
15804 esac
15805 else
15806 case $host_os in
15807 aix[4-9]*)
15808 # All AIX code is PIC.
15809 if test ia64 = "$host_cpu"; then
15810 # AIX 5 now supports IA64 processor
15811 lt_prog_compiler_static_CXX='-Bstatic'
15812 else
15813 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15814 fi
15815 ;;
15816 chorus*)
15817 case $cc_basename in
15818 cxch68*)
15819 # Green Hills C++ Compiler
15820 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15821 ;;
15822 esac
15823 ;;
15824 mingw* | cygwin* | os2* | pw32* | cegcc*)
15825 # This hack is so that the source file can tell whether it is being
15826 # built for inclusion in a dll (and should export symbols for example).
15827 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15828 ;;
15829 dgux*)
15830 case $cc_basename in
15831 ec++*)
15832 lt_prog_compiler_pic_CXX='-KPIC'
15833 ;;
15834 ghcx*)
15835 # Green Hills C++ Compiler
15836 lt_prog_compiler_pic_CXX='-pic'
15837 ;;
15838 *)
15839 ;;
15840 esac
15841 ;;
15842 freebsd* | dragonfly*)
15843 # FreeBSD uses GNU C++
15844 ;;
15845 hpux9* | hpux10* | hpux11*)
15846 case $cc_basename in
15847 CC*)
15848 lt_prog_compiler_wl_CXX='-Wl,'
15849 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15850 if test ia64 != "$host_cpu"; then
15851 lt_prog_compiler_pic_CXX='+Z'
15852 fi
15853 ;;
15854 aCC*)
15855 lt_prog_compiler_wl_CXX='-Wl,'
15856 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15857 case $host_cpu in
15858 hppa*64*|ia64*)
15859 # +Z the default
15860 ;;
15861 *)
15862 lt_prog_compiler_pic_CXX='+Z'
15863 ;;
15864 esac
15865 ;;
15866 *)
15867 ;;
15868 esac
15869 ;;
15870 interix*)
15871 # This is c89, which is MS Visual C++ (no shared libs)
15872 # Anyone wants to do a port?
15873 ;;
15874 irix5* | irix6* | nonstopux*)
15875 case $cc_basename in
15876 CC*)
15877 lt_prog_compiler_wl_CXX='-Wl,'
15878 lt_prog_compiler_static_CXX='-non_shared'
15879 # CC pic flag -KPIC is the default.
15880 ;;
15881 *)
15882 ;;
15883 esac
15884 ;;
15885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15886 case $cc_basename in
15887 KCC*)
15888 # KAI C++ Compiler
15889 lt_prog_compiler_wl_CXX='--backend -Wl,'
15890 lt_prog_compiler_pic_CXX='-fPIC'
15891 ;;
15892 ecpc* )
15893 # old Intel C++ for x86_64, which still supported -KPIC.
15894 lt_prog_compiler_wl_CXX='-Wl,'
15895 lt_prog_compiler_pic_CXX='-KPIC'
15896 lt_prog_compiler_static_CXX='-static'
15897 ;;
15898 icpc* )
15899 # Intel C++, used to be incompatible with GCC.
15900 # ICC 10 doesn't accept -KPIC any more.
15901 lt_prog_compiler_wl_CXX='-Wl,'
15902 lt_prog_compiler_pic_CXX='-fPIC'
15903 lt_prog_compiler_static_CXX='-static'
15904 ;;
15905 pgCC* | pgcpp*)
15906 # Portland Group C++ compiler
15907 lt_prog_compiler_wl_CXX='-Wl,'
15908 lt_prog_compiler_pic_CXX='-fpic'
15909 lt_prog_compiler_static_CXX='-Bstatic'
15910 ;;
15911 cxx*)
15912 # Compaq C++
15913 # Make sure the PIC flag is empty. It appears that all Alpha
15914 # Linux and Compaq Tru64 Unix objects are PIC.
15915 lt_prog_compiler_pic_CXX=
15916 lt_prog_compiler_static_CXX='-non_shared'
15917 ;;
15918 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15919 # IBM XL 8.0, 9.0 on PPC and BlueGene
15920 lt_prog_compiler_wl_CXX='-Wl,'
15921 lt_prog_compiler_pic_CXX='-qpic'
15922 lt_prog_compiler_static_CXX='-qstaticlink'
15923 ;;
15924 *)
15925 case `$CC -V 2>&1 | sed 5q` in
15926 *Sun\ C*)
15927 # Sun C++ 5.9
15928 lt_prog_compiler_pic_CXX='-KPIC'
15929 lt_prog_compiler_static_CXX='-Bstatic'
15930 lt_prog_compiler_wl_CXX='-Qoption ld '
15931 ;;
15932 esac
15933 ;;
15934 esac
15935 ;;
15936 lynxos*)
15937 ;;
15938 m88k*)
15939 ;;
15940 mvs*)
15941 case $cc_basename in
15942 cxx*)
15943 lt_prog_compiler_pic_CXX='-W c,exportall'
15944 ;;
15945 *)
15946 ;;
15947 esac
15948 ;;
15949 netbsd* | netbsdelf*-gnu)
15950 ;;
15951 *qnx* | *nto*)
15952 # QNX uses GNU C++, but need to define -shared option too, otherwise
15953 # it will coredump.
15954 lt_prog_compiler_pic_CXX='-fPIC -shared'
15955 ;;
15956 osf3* | osf4* | osf5*)
15957 case $cc_basename in
15958 KCC*)
15959 lt_prog_compiler_wl_CXX='--backend -Wl,'
15960 ;;
15961 RCC*)
15962 # Rational C++ 2.4.1
15963 lt_prog_compiler_pic_CXX='-pic'
15964 ;;
15965 cxx*)
15966 # Digital/Compaq C++
15967 lt_prog_compiler_wl_CXX='-Wl,'
15968 # Make sure the PIC flag is empty. It appears that all Alpha
15969 # Linux and Compaq Tru64 Unix objects are PIC.
15970 lt_prog_compiler_pic_CXX=
15971 lt_prog_compiler_static_CXX='-non_shared'
15972 ;;
15973 *)
15974 ;;
15975 esac
15976 ;;
15977 psos*)
15978 ;;
15979 solaris*)
15980 case $cc_basename in
15981 CC* | sunCC*)
15982 # Sun C++ 4.2, 5.x and Centerline C++
15983 lt_prog_compiler_pic_CXX='-KPIC'
15984 lt_prog_compiler_static_CXX='-Bstatic'
15985 lt_prog_compiler_wl_CXX='-Qoption ld '
15986 ;;
15987 gcx*)
15988 # Green Hills C++ Compiler
15989 lt_prog_compiler_pic_CXX='-PIC'
15990 ;;
15991 *)
15992 ;;
15993 esac
15994 ;;
15995 sunos4*)
15996 case $cc_basename in
15997 CC*)
15998 # Sun C++ 4.x
15999 lt_prog_compiler_pic_CXX='-pic'
16000 lt_prog_compiler_static_CXX='-Bstatic'
16001 ;;
16002 lcc*)
16003 # Lucid
16004 lt_prog_compiler_pic_CXX='-pic'
16005 ;;
16006 *)
16007 ;;
16008 esac
16009 ;;
16010 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16011 case $cc_basename in
16012 CC*)
16013 lt_prog_compiler_wl_CXX='-Wl,'
16014 lt_prog_compiler_pic_CXX='-KPIC'
16015 lt_prog_compiler_static_CXX='-Bstatic'
16016 ;;
16017 esac
16018 ;;
16019 tandem*)
16020 case $cc_basename in
16021 NCC*)
16022 # NonStop-UX NCC 3.20
16023 lt_prog_compiler_pic_CXX='-KPIC'
16024 ;;
16025 *)
16026 ;;
16027 esac
16028 ;;
16029 vxworks*)
16030 ;;
16031 *)
16032 lt_prog_compiler_can_build_shared_CXX=no
16033 ;;
16034 esac
16035 fi
16036
16037 case $host_os in
16038 # For platforms that do not support PIC, -DPIC is meaningless:
16039 *djgpp*)
16040 lt_prog_compiler_pic_CXX=
16041 ;;
16042 *)
16043 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16044 ;;
16045 esac
16046
16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16048 printf %s "checking for $compiler option to produce PIC... " >&6; }
16049 if test ${lt_cv_prog_compiler_pic_CXX+y}
16050 then :
16051 printf %s "(cached) " >&6
16052 else $as_nop
16053 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16054 fi
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16056 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16057 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16058
16059 #
16060 # Check to make sure the PIC flag actually works.
16061 #
16062 if test -n "$lt_prog_compiler_pic_CXX"; then
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16064 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16065 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16066 then :
16067 printf %s "(cached) " >&6
16068 else $as_nop
16069 lt_cv_prog_compiler_pic_works_CXX=no
16070 ac_outfile=conftest.$ac_objext
16071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16072 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16073 # Insert the option either (1) after the last *FLAGS variable, or
16074 # (2) before a word containing "conftest.", or (3) at the end.
16075 # Note that $ac_compile itself does not contain backslashes and begins
16076 # with a dollar sign (not a hyphen), so the echo should work correctly.
16077 # The option is referenced via a variable to avoid confusing sed.
16078 lt_compile=`echo "$ac_compile" | $SED \
16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16081 -e 's:$: $lt_compiler_flag:'`
16082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16083 (eval "$lt_compile" 2>conftest.err)
16084 ac_status=$?
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 if (exit $ac_status) && test -s "$ac_outfile"; then
16088 # The compiler can only warn and ignore the option if not recognized
16089 # So say no if there are warnings other than the usual output.
16090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16093 lt_cv_prog_compiler_pic_works_CXX=yes
16094 fi
16095 fi
16096 $RM conftest*
16097
16098 fi
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16100 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16101
16102 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16103 case $lt_prog_compiler_pic_CXX in
16104 "" | " "*) ;;
16105 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16106 esac
16107 else
16108 lt_prog_compiler_pic_CXX=
16109 lt_prog_compiler_can_build_shared_CXX=no
16110 fi
16111
16112 fi
16113
16114
16115
16116
16117
16118 #
16119 # Check to make sure the static flag actually works.
16120 #
16121 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16123 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16124 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16125 then :
16126 printf %s "(cached) " >&6
16127 else $as_nop
16128 lt_cv_prog_compiler_static_works_CXX=no
16129 save_LDFLAGS=$LDFLAGS
16130 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16131 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16133 # The linker can only warn and ignore the option if not recognized
16134 # So say no if there are warnings
16135 if test -s conftest.err; then
16136 # Append any errors to the config.log.
16137 cat conftest.err 1>&5
16138 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16140 if diff conftest.exp conftest.er2 >/dev/null; then
16141 lt_cv_prog_compiler_static_works_CXX=yes
16142 fi
16143 else
16144 lt_cv_prog_compiler_static_works_CXX=yes
16145 fi
16146 fi
16147 $RM -r conftest*
16148 LDFLAGS=$save_LDFLAGS
16149
16150 fi
16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16152 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16153
16154 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16155 :
16156 else
16157 lt_prog_compiler_static_CXX=
16158 fi
16159
16160
16161
16162
16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16164 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16165 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16166 then :
16167 printf %s "(cached) " >&6
16168 else $as_nop
16169 lt_cv_prog_compiler_c_o_CXX=no
16170 $RM -r conftest 2>/dev/null
16171 mkdir conftest
16172 cd conftest
16173 mkdir out
16174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16175
16176 lt_compiler_flag="-o out/conftest2.$ac_objext"
16177 # Insert the option either (1) after the last *FLAGS variable, or
16178 # (2) before a word containing "conftest.", or (3) at the end.
16179 # Note that $ac_compile itself does not contain backslashes and begins
16180 # with a dollar sign (not a hyphen), so the echo should work correctly.
16181 lt_compile=`echo "$ac_compile" | $SED \
16182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16184 -e 's:$: $lt_compiler_flag:'`
16185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16186 (eval "$lt_compile" 2>out/conftest.err)
16187 ac_status=$?
16188 cat out/conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16191 then
16192 # The compiler can only warn and ignore the option if not recognized
16193 # So say no if there are warnings
16194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16197 lt_cv_prog_compiler_c_o_CXX=yes
16198 fi
16199 fi
16200 chmod u+w . 2>&5
16201 $RM conftest*
16202 # SGI C++ compiler will create directory out/ii_files/ for
16203 # template instantiation
16204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16205 $RM out/* && rmdir out
16206 cd ..
16207 $RM -r conftest
16208 $RM conftest*
16209
16210 fi
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16212 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16213
16214
16215
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16217 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16218 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16219 then :
16220 printf %s "(cached) " >&6
16221 else $as_nop
16222 lt_cv_prog_compiler_c_o_CXX=no
16223 $RM -r conftest 2>/dev/null
16224 mkdir conftest
16225 cd conftest
16226 mkdir out
16227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16228
16229 lt_compiler_flag="-o out/conftest2.$ac_objext"
16230 # Insert the option either (1) after the last *FLAGS variable, or
16231 # (2) before a word containing "conftest.", or (3) at the end.
16232 # Note that $ac_compile itself does not contain backslashes and begins
16233 # with a dollar sign (not a hyphen), so the echo should work correctly.
16234 lt_compile=`echo "$ac_compile" | $SED \
16235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16237 -e 's:$: $lt_compiler_flag:'`
16238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16239 (eval "$lt_compile" 2>out/conftest.err)
16240 ac_status=$?
16241 cat out/conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16244 then
16245 # The compiler can only warn and ignore the option if not recognized
16246 # So say no if there are warnings
16247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16250 lt_cv_prog_compiler_c_o_CXX=yes
16251 fi
16252 fi
16253 chmod u+w . 2>&5
16254 $RM conftest*
16255 # SGI C++ compiler will create directory out/ii_files/ for
16256 # template instantiation
16257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16258 $RM out/* && rmdir out
16259 cd ..
16260 $RM -r conftest
16261 $RM conftest*
16262
16263 fi
16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16265 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16266
16267
16268
16269
16270 hard_links=nottested
16271 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16272 # do not overwrite the value of need_locks provided by the user
16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16274 printf %s "checking if we can lock with hard links... " >&6; }
16275 hard_links=yes
16276 $RM conftest*
16277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278 touch conftest.a
16279 ln conftest.a conftest.b 2>&5 || hard_links=no
16280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16282 printf "%s\n" "$hard_links" >&6; }
16283 if test no = "$hard_links"; then
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16285 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16286 need_locks=warn
16287 fi
16288 else
16289 need_locks=no
16290 fi
16291
16292
16293
16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16295 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16296
16297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16298 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16299 case $host_os in
16300 aix[4-9]*)
16301 # If we're using GNU nm, then we don't want the "-C" option.
16302 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16303 # Without the "-l" option, or with the "-B" option, AIX nm treats
16304 # weak defined symbols like other global defined symbols, whereas
16305 # GNU nm marks them as "W".
16306 # While the 'weak' keyword is ignored in the Export File, we need
16307 # it in the Import File for the 'aix-soname' feature, so we have
16308 # to replace the "-B" option with "-P" for AIX nm.
16309 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16310 export_symbols_cmds_CXX='$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'
16311 else
16312 export_symbols_cmds_CXX='`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'
16313 fi
16314 ;;
16315 pw32*)
16316 export_symbols_cmds_CXX=$ltdll_cmds
16317 ;;
16318 cygwin* | mingw* | cegcc*)
16319 case $cc_basename in
16320 cl*)
16321 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16322 ;;
16323 *)
16324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16325 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16326 ;;
16327 esac
16328 ;;
16329 linux* | k*bsd*-gnu | gnu*)
16330 link_all_deplibs_CXX=no
16331 ;;
16332 *)
16333 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16334 ;;
16335 esac
16336
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16338 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16339 test no = "$ld_shlibs_CXX" && can_build_shared=no
16340
16341 with_gnu_ld_CXX=$with_gnu_ld
16342
16343
16344
16345
16346
16347
16348 #
16349 # Do we need to explicitly link libc?
16350 #
16351 case "x$archive_cmds_need_lc_CXX" in
16352 x|xyes)
16353 # Assume -lc should be added
16354 archive_cmds_need_lc_CXX=yes
16355
16356 if test yes,yes = "$GCC,$enable_shared"; then
16357 case $archive_cmds_CXX in
16358 *'~'*)
16359 # FIXME: we may have to deal with multi-command sequences.
16360 ;;
16361 '$CC '*)
16362 # Test whether the compiler implicitly links with -lc since on some
16363 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16364 # to ld, don't add -lc before -lgcc.
16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16366 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16367 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16368 then :
16369 printf %s "(cached) " >&6
16370 else $as_nop
16371 $RM conftest*
16372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16373
16374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16375 (eval $ac_compile) 2>&5
16376 ac_status=$?
16377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16378 test $ac_status = 0; } 2>conftest.err; then
16379 soname=conftest
16380 lib=conftest
16381 libobjs=conftest.$ac_objext
16382 deplibs=
16383 wl=$lt_prog_compiler_wl_CXX
16384 pic_flag=$lt_prog_compiler_pic_CXX
16385 compiler_flags=-v
16386 linker_flags=-v
16387 verstring=
16388 output_objdir=.
16389 libname=conftest
16390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16391 allow_undefined_flag_CXX=
16392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16393 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16394 ac_status=$?
16395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396 test $ac_status = 0; }
16397 then
16398 lt_cv_archive_cmds_need_lc_CXX=no
16399 else
16400 lt_cv_archive_cmds_need_lc_CXX=yes
16401 fi
16402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16403 else
16404 cat conftest.err 1>&5
16405 fi
16406 $RM conftest*
16407
16408 fi
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16410 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16411 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16412 ;;
16413 esac
16414 fi
16415 ;;
16416 esac
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16480 printf %s "checking dynamic linker characteristics... " >&6; }
16481
16482 library_names_spec=
16483 libname_spec='lib$name'
16484 soname_spec=
16485 shrext_cmds=.so
16486 postinstall_cmds=
16487 postuninstall_cmds=
16488 finish_cmds=
16489 finish_eval=
16490 shlibpath_var=
16491 shlibpath_overrides_runpath=unknown
16492 version_type=none
16493 dynamic_linker="$host_os ld.so"
16494 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16495 need_lib_prefix=unknown
16496 hardcode_into_libs=no
16497
16498 # when you set need_version to no, make sure it does not cause -set_version
16499 # flags to be left without arguments
16500 need_version=unknown
16501
16502
16503
16504 case $host_os in
16505 aix3*)
16506 version_type=linux # correct to gnu/linux during the next big refactor
16507 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16508 shlibpath_var=LIBPATH
16509
16510 # AIX 3 has no versioning support, so we append a major version to the name.
16511 soname_spec='$libname$release$shared_ext$major'
16512 ;;
16513
16514 aix[4-9]*)
16515 version_type=linux # correct to gnu/linux during the next big refactor
16516 need_lib_prefix=no
16517 need_version=no
16518 hardcode_into_libs=yes
16519 if test ia64 = "$host_cpu"; then
16520 # AIX 5 supports IA64
16521 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 else
16524 # With GCC up to 2.95.x, collect2 would create an import file
16525 # for dependence libraries. The import file would start with
16526 # the line '#! .'. This would cause the generated library to
16527 # depend on '.', always an invalid library. This was fixed in
16528 # development snapshots of GCC prior to 3.0.
16529 case $host_os in
16530 aix4 | aix4.[01] | aix4.[01].*)
16531 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16532 echo ' yes '
16533 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16534 :
16535 else
16536 can_build_shared=no
16537 fi
16538 ;;
16539 esac
16540 # Using Import Files as archive members, it is possible to support
16541 # filename-based versioning of shared library archives on AIX. While
16542 # this would work for both with and without runtime linking, it will
16543 # prevent static linking of such archives. So we do filename-based
16544 # shared library versioning with .so extension only, which is used
16545 # when both runtime linking and shared linking is enabled.
16546 # Unfortunately, runtime linking may impact performance, so we do
16547 # not want this to be the default eventually. Also, we use the
16548 # versioned .so libs for executables only if there is the -brtl
16549 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16550 # To allow for filename-based versioning support, we need to create
16551 # libNAME.so.V as an archive file, containing:
16552 # *) an Import File, referring to the versioned filename of the
16553 # archive as well as the shared archive member, telling the
16554 # bitwidth (32 or 64) of that shared object, and providing the
16555 # list of exported symbols of that shared object, eventually
16556 # decorated with the 'weak' keyword
16557 # *) the shared object with the F_LOADONLY flag set, to really avoid
16558 # it being seen by the linker.
16559 # At run time we better use the real file rather than another symlink,
16560 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16561
16562 case $with_aix_soname,$aix_use_runtimelinking in
16563 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16564 # soname into executable. Probably we can add versioning support to
16565 # collect2, so additional links can be useful in future.
16566 aix,yes) # traditional libtool
16567 dynamic_linker='AIX unversionable lib.so'
16568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16569 # instead of lib<name>.a to let people know that these are not
16570 # typical AIX shared libraries.
16571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16572 ;;
16573 aix,no) # traditional AIX only
16574 dynamic_linker='AIX lib.a(lib.so.V)'
16575 # We preserve .a as extension for shared libraries through AIX4.2
16576 # and later when we are not doing run time linking.
16577 library_names_spec='$libname$release.a $libname.a'
16578 soname_spec='$libname$release$shared_ext$major'
16579 ;;
16580 svr4,*) # full svr4 only
16581 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16582 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16583 # We do not specify a path in Import Files, so LIBPATH fires.
16584 shlibpath_overrides_runpath=yes
16585 ;;
16586 *,yes) # both, prefer svr4
16587 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16588 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16589 # unpreferred sharedlib libNAME.a needs extra handling
16590 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"'
16591 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"'
16592 # We do not specify a path in Import Files, so LIBPATH fires.
16593 shlibpath_overrides_runpath=yes
16594 ;;
16595 *,no) # both, prefer aix
16596 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16597 library_names_spec='$libname$release.a $libname.a'
16598 soname_spec='$libname$release$shared_ext$major'
16599 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16600 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)'
16601 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"'
16602 ;;
16603 esac
16604 shlibpath_var=LIBPATH
16605 fi
16606 ;;
16607
16608 amigaos*)
16609 case $host_cpu in
16610 powerpc)
16611 # Since July 2007 AmigaOS4 officially supports .so libraries.
16612 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16614 ;;
16615 m68k)
16616 library_names_spec='$libname.ixlibrary $libname.a'
16617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16618 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'
16619 ;;
16620 esac
16621 ;;
16622
16623 beos*)
16624 library_names_spec='$libname$shared_ext'
16625 dynamic_linker="$host_os ld.so"
16626 shlibpath_var=LIBRARY_PATH
16627 ;;
16628
16629 bsdi[45]*)
16630 version_type=linux # correct to gnu/linux during the next big refactor
16631 need_version=no
16632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16633 soname_spec='$libname$release$shared_ext$major'
16634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16638 # the default ld.so.conf also contains /usr/contrib/lib and
16639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16640 # libtool to hard-code these into programs
16641 ;;
16642
16643 cygwin* | mingw* | pw32* | cegcc*)
16644 version_type=windows
16645 shrext_cmds=.dll
16646 need_version=no
16647 need_lib_prefix=no
16648
16649 case $GCC,$cc_basename in
16650 yes,*)
16651 # gcc
16652 library_names_spec='$libname.dll.a'
16653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16654 postinstall_cmds='base_file=`basename \$file`~
16655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16656 dldir=$destdir/`dirname \$dlpath`~
16657 test -d \$dldir || mkdir -p \$dldir~
16658 $install_prog $dir/$dlname \$dldir/$dlname~
16659 chmod a+x \$dldir/$dlname~
16660 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16661 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16662 fi'
16663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16664 dlpath=$dir/\$dldll~
16665 $RM \$dlpath'
16666 shlibpath_overrides_runpath=yes
16667
16668 case $host_os in
16669 cygwin*)
16670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16671 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16672
16673 ;;
16674 mingw* | cegcc*)
16675 # MinGW DLLs use traditional 'lib' prefix
16676 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16677 ;;
16678 pw32*)
16679 # pw32 DLLs use 'pw' prefix rather than 'lib'
16680 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16681 ;;
16682 esac
16683 dynamic_linker='Win32 ld.exe'
16684 ;;
16685
16686 *,cl*)
16687 # Native MSVC
16688 libname_spec='$name'
16689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16690 library_names_spec='$libname.dll.lib'
16691
16692 case $build_os in
16693 mingw*)
16694 sys_lib_search_path_spec=
16695 lt_save_ifs=$IFS
16696 IFS=';'
16697 for lt_path in $LIB
16698 do
16699 IFS=$lt_save_ifs
16700 # Let DOS variable expansion print the short 8.3 style file name.
16701 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16702 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16703 done
16704 IFS=$lt_save_ifs
16705 # Convert to MSYS style.
16706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16707 ;;
16708 cygwin*)
16709 # Convert to unix form, then to dos form, then back to unix form
16710 # but this time dos style (no spaces!) so that the unix form looks
16711 # like /cygdrive/c/PROGRA~1:/cygdr...
16712 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16713 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16714 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16715 ;;
16716 *)
16717 sys_lib_search_path_spec=$LIB
16718 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16719 # It is most probably a Windows format PATH.
16720 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16721 else
16722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16723 fi
16724 # FIXME: find the short name or the path components, as spaces are
16725 # common. (e.g. "Program Files" -> "PROGRA~1")
16726 ;;
16727 esac
16728
16729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16730 postinstall_cmds='base_file=`basename \$file`~
16731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16732 dldir=$destdir/`dirname \$dlpath`~
16733 test -d \$dldir || mkdir -p \$dldir~
16734 $install_prog $dir/$dlname \$dldir/$dlname'
16735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16736 dlpath=$dir/\$dldll~
16737 $RM \$dlpath'
16738 shlibpath_overrides_runpath=yes
16739 dynamic_linker='Win32 link.exe'
16740 ;;
16741
16742 *)
16743 # Assume MSVC wrapper
16744 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16745 dynamic_linker='Win32 ld.exe'
16746 ;;
16747 esac
16748 # FIXME: first we should search . and the directory the executable is in
16749 shlibpath_var=PATH
16750 ;;
16751
16752 darwin* | rhapsody*)
16753 dynamic_linker="$host_os dyld"
16754 version_type=darwin
16755 need_lib_prefix=no
16756 need_version=no
16757 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16758 soname_spec='$libname$release$major$shared_ext'
16759 shlibpath_overrides_runpath=yes
16760 shlibpath_var=DYLD_LIBRARY_PATH
16761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16762
16763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16764 ;;
16765
16766 dgux*)
16767 version_type=linux # correct to gnu/linux during the next big refactor
16768 need_lib_prefix=no
16769 need_version=no
16770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16771 soname_spec='$libname$release$shared_ext$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 ;;
16774
16775 freebsd* | dragonfly*)
16776 # DragonFly does not have aout. When/if they implement a new
16777 # versioning mechanism, adjust this.
16778 if test -x /usr/bin/objformat; then
16779 objformat=`/usr/bin/objformat`
16780 else
16781 case $host_os in
16782 freebsd[23].*) objformat=aout ;;
16783 *) objformat=elf ;;
16784 esac
16785 fi
16786 version_type=freebsd-$objformat
16787 case $version_type in
16788 freebsd-elf*)
16789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16790 soname_spec='$libname$release$shared_ext$major'
16791 need_version=no
16792 need_lib_prefix=no
16793 ;;
16794 freebsd-*)
16795 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16796 need_version=yes
16797 ;;
16798 esac
16799 shlibpath_var=LD_LIBRARY_PATH
16800 case $host_os in
16801 freebsd2.*)
16802 shlibpath_overrides_runpath=yes
16803 ;;
16804 freebsd3.[01]* | freebsdelf3.[01]*)
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16807 ;;
16808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16810 shlibpath_overrides_runpath=no
16811 hardcode_into_libs=yes
16812 ;;
16813 *) # from 4.6 on, and DragonFly
16814 shlibpath_overrides_runpath=yes
16815 hardcode_into_libs=yes
16816 ;;
16817 esac
16818 ;;
16819
16820 haiku*)
16821 version_type=linux # correct to gnu/linux during the next big refactor
16822 need_lib_prefix=no
16823 need_version=no
16824 dynamic_linker="$host_os runtime_loader"
16825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16826 soname_spec='$libname$release$shared_ext$major'
16827 shlibpath_var=LIBRARY_PATH
16828 shlibpath_overrides_runpath=no
16829 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16830 hardcode_into_libs=yes
16831 ;;
16832
16833 hpux9* | hpux10* | hpux11*)
16834 # Give a soname corresponding to the major version so that dld.sl refuses to
16835 # link against other versions.
16836 version_type=sunos
16837 need_lib_prefix=no
16838 need_version=no
16839 case $host_cpu in
16840 ia64*)
16841 shrext_cmds='.so'
16842 hardcode_into_libs=yes
16843 dynamic_linker="$host_os dld.so"
16844 shlibpath_var=LD_LIBRARY_PATH
16845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16847 soname_spec='$libname$release$shared_ext$major'
16848 if test 32 = "$HPUX_IA64_MODE"; then
16849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16850 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16851 else
16852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16853 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16854 fi
16855 ;;
16856 hppa*64*)
16857 shrext_cmds='.sl'
16858 hardcode_into_libs=yes
16859 dynamic_linker="$host_os dld.sl"
16860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16863 soname_spec='$libname$release$shared_ext$major'
16864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16866 ;;
16867 *)
16868 shrext_cmds='.sl'
16869 dynamic_linker="$host_os dld.sl"
16870 shlibpath_var=SHLIB_PATH
16871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16873 soname_spec='$libname$release$shared_ext$major'
16874 ;;
16875 esac
16876 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16877 postinstall_cmds='chmod 555 $lib'
16878 # or fails outright, so override atomically:
16879 install_override_mode=555
16880 ;;
16881
16882 interix[3-9]*)
16883 version_type=linux # correct to gnu/linux during the next big refactor
16884 need_lib_prefix=no
16885 need_version=no
16886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16887 soname_spec='$libname$release$shared_ext$major'
16888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 shlibpath_overrides_runpath=no
16891 hardcode_into_libs=yes
16892 ;;
16893
16894 irix5* | irix6* | nonstopux*)
16895 case $host_os in
16896 nonstopux*) version_type=nonstopux ;;
16897 *)
16898 if test yes = "$lt_cv_prog_gnu_ld"; then
16899 version_type=linux # correct to gnu/linux during the next big refactor
16900 else
16901 version_type=irix
16902 fi ;;
16903 esac
16904 need_lib_prefix=no
16905 need_version=no
16906 soname_spec='$libname$release$shared_ext$major'
16907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16908 case $host_os in
16909 irix5* | nonstopux*)
16910 libsuff= shlibsuff=
16911 ;;
16912 *)
16913 case $LD in # libtool.m4 will add one of these switches to LD
16914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16915 libsuff= shlibsuff= libmagic=32-bit;;
16916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16917 libsuff=32 shlibsuff=N32 libmagic=N32;;
16918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16920 *) libsuff= shlibsuff= libmagic=never-match;;
16921 esac
16922 ;;
16923 esac
16924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16925 shlibpath_overrides_runpath=no
16926 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16927 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16928 hardcode_into_libs=yes
16929 ;;
16930
16931 # No shared lib support for Linux oldld, aout, or coff.
16932 linux*oldld* | linux*aout* | linux*coff*)
16933 dynamic_linker=no
16934 ;;
16935
16936 linux*android*)
16937 version_type=none # Android doesn't support versioned libraries.
16938 need_lib_prefix=no
16939 need_version=no
16940 library_names_spec='$libname$release$shared_ext'
16941 soname_spec='$libname$release$shared_ext'
16942 finish_cmds=
16943 shlibpath_var=LD_LIBRARY_PATH
16944 shlibpath_overrides_runpath=yes
16945
16946 # This implies no fast_install, which is unacceptable.
16947 # Some rework will be needed to allow for fast_install
16948 # before this can be enabled.
16949 hardcode_into_libs=yes
16950
16951 dynamic_linker='Android linker'
16952 # Don't embed -rpath directories since the linker doesn't support them.
16953 hardcode_libdir_flag_spec_CXX='-L$libdir'
16954 ;;
16955
16956 # This must be glibc/ELF.
16957 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16958 version_type=linux # correct to gnu/linux during the next big refactor
16959 need_lib_prefix=no
16960 need_version=no
16961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16962 soname_spec='$libname$release$shared_ext$major'
16963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 shlibpath_overrides_runpath=no
16966
16967 # Some binutils ld are patched to set DT_RUNPATH
16968 if test ${lt_cv_shlibpath_overrides_runpath+y}
16969 then :
16970 printf %s "(cached) " >&6
16971 else $as_nop
16972 lt_cv_shlibpath_overrides_runpath=no
16973 save_LDFLAGS=$LDFLAGS
16974 save_libdir=$libdir
16975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16979
16980 int
16981 main (void)
16982 {
16983
16984 ;
16985 return 0;
16986 }
16987 _ACEOF
16988 if ac_fn_cxx_try_link "$LINENO"
16989 then :
16990 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16991 then :
16992 lt_cv_shlibpath_overrides_runpath=yes
16993 fi
16994 fi
16995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LDFLAGS=$save_LDFLAGS
16998 libdir=$save_libdir
16999
17000 fi
17001
17002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17003
17004 # This implies no fast_install, which is unacceptable.
17005 # Some rework will be needed to allow for fast_install
17006 # before this can be enabled.
17007 hardcode_into_libs=yes
17008
17009 # Ideally, we could use ldconfig to report *all* directores which are
17010 # searched for libraries, however this is still not possible. Aside from not
17011 # being certain /sbin/ldconfig is available, command
17012 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17013 # even though it is searched at run-time. Try to do the best guess by
17014 # appending ld.so.conf contents (and includes) to the search path.
17015 if test -f /etc/ld.so.conf; then
17016 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' ' '`
17017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17018 fi
17019
17020 # We used to test for /lib/ld.so.1 and disable shared libraries on
17021 # powerpc, because MkLinux only supported shared libraries with the
17022 # GNU dynamic linker. Since this was broken with cross compilers,
17023 # most powerpc-linux boxes support dynamic linking these days and
17024 # people can always --disable-shared, the test was removed, and we
17025 # assume the GNU/Linux dynamic linker is in use.
17026 dynamic_linker='GNU/Linux ld.so'
17027 ;;
17028
17029 netbsdelf*-gnu)
17030 version_type=linux
17031 need_lib_prefix=no
17032 need_version=no
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=no
17037 hardcode_into_libs=yes
17038 dynamic_linker='NetBSD ld.elf_so'
17039 ;;
17040
17041 netbsd*)
17042 version_type=sunos
17043 need_lib_prefix=no
17044 need_version=no
17045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17048 dynamic_linker='NetBSD (a.out) ld.so'
17049 else
17050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17051 soname_spec='$libname$release$shared_ext$major'
17052 dynamic_linker='NetBSD ld.elf_so'
17053 fi
17054 shlibpath_var=LD_LIBRARY_PATH
17055 shlibpath_overrides_runpath=yes
17056 hardcode_into_libs=yes
17057 ;;
17058
17059 newsos6)
17060 version_type=linux # correct to gnu/linux during the next big refactor
17061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 shlibpath_overrides_runpath=yes
17064 ;;
17065
17066 *nto* | *qnx*)
17067 version_type=qnx
17068 need_lib_prefix=no
17069 need_version=no
17070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17071 soname_spec='$libname$release$shared_ext$major'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=no
17074 hardcode_into_libs=yes
17075 dynamic_linker='ldqnx.so'
17076 ;;
17077
17078 openbsd* | bitrig*)
17079 version_type=sunos
17080 sys_lib_dlsearch_path_spec=/usr/lib
17081 need_lib_prefix=no
17082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17083 need_version=no
17084 else
17085 need_version=yes
17086 fi
17087 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 shlibpath_overrides_runpath=yes
17091 ;;
17092
17093 os2*)
17094 libname_spec='$name'
17095 version_type=windows
17096 shrext_cmds=.dll
17097 need_version=no
17098 need_lib_prefix=no
17099 # OS/2 can only load a DLL with a base name of 8 characters or less.
17100 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17101 v=$($ECHO $release$versuffix | tr -d .-);
17102 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17103 $ECHO $n$v`$shared_ext'
17104 library_names_spec='${libname}_dll.$libext'
17105 dynamic_linker='OS/2 ld.exe'
17106 shlibpath_var=BEGINLIBPATH
17107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17109 postinstall_cmds='base_file=`basename \$file`~
17110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17111 dldir=$destdir/`dirname \$dlpath`~
17112 test -d \$dldir || mkdir -p \$dldir~
17113 $install_prog $dir/$dlname \$dldir/$dlname~
17114 chmod a+x \$dldir/$dlname~
17115 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17116 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17117 fi'
17118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17119 dlpath=$dir/\$dldll~
17120 $RM \$dlpath'
17121 ;;
17122
17123 osf3* | osf4* | osf5*)
17124 version_type=osf
17125 need_lib_prefix=no
17126 need_version=no
17127 soname_spec='$libname$release$shared_ext$major'
17128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17132 ;;
17133
17134 rdos*)
17135 dynamic_linker=no
17136 ;;
17137
17138 solaris*)
17139 version_type=linux # correct to gnu/linux during the next big refactor
17140 need_lib_prefix=no
17141 need_version=no
17142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17143 soname_spec='$libname$release$shared_ext$major'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 shlibpath_overrides_runpath=yes
17146 hardcode_into_libs=yes
17147 # ldd complains unless libraries are executable
17148 postinstall_cmds='chmod +x $lib'
17149 ;;
17150
17151 sunos4*)
17152 version_type=sunos
17153 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=yes
17157 if test yes = "$with_gnu_ld"; then
17158 need_lib_prefix=no
17159 fi
17160 need_version=yes
17161 ;;
17162
17163 sysv4 | sysv4.3*)
17164 version_type=linux # correct to gnu/linux during the next big refactor
17165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17166 soname_spec='$libname$release$shared_ext$major'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 case $host_vendor in
17169 sni)
17170 shlibpath_overrides_runpath=no
17171 need_lib_prefix=no
17172 runpath_var=LD_RUN_PATH
17173 ;;
17174 siemens)
17175 need_lib_prefix=no
17176 ;;
17177 motorola)
17178 need_lib_prefix=no
17179 need_version=no
17180 shlibpath_overrides_runpath=no
17181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17182 ;;
17183 esac
17184 ;;
17185
17186 sysv4*MP*)
17187 if test -d /usr/nec; then
17188 version_type=linux # correct to gnu/linux during the next big refactor
17189 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17190 soname_spec='$libname$shared_ext.$major'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 fi
17193 ;;
17194
17195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17196 version_type=sco
17197 need_lib_prefix=no
17198 need_version=no
17199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17200 soname_spec='$libname$release$shared_ext$major'
17201 shlibpath_var=LD_LIBRARY_PATH
17202 shlibpath_overrides_runpath=yes
17203 hardcode_into_libs=yes
17204 if test yes = "$with_gnu_ld"; then
17205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17206 else
17207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17208 case $host_os in
17209 sco3.2v5*)
17210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17211 ;;
17212 esac
17213 fi
17214 sys_lib_dlsearch_path_spec='/usr/lib'
17215 ;;
17216
17217 tpf*)
17218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17219 version_type=linux # correct to gnu/linux during the next big refactor
17220 need_lib_prefix=no
17221 need_version=no
17222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=no
17225 hardcode_into_libs=yes
17226 ;;
17227
17228 uts4*)
17229 version_type=linux # correct to gnu/linux during the next big refactor
17230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17231 soname_spec='$libname$release$shared_ext$major'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 ;;
17234
17235 *)
17236 dynamic_linker=no
17237 ;;
17238 esac
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17240 printf "%s\n" "$dynamic_linker" >&6; }
17241 test no = "$dynamic_linker" && can_build_shared=no
17242
17243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17244 if test yes = "$GCC"; then
17245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17246 fi
17247
17248 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17249 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17250 fi
17251
17252 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17253 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17254 fi
17255
17256 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17257 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17258
17259 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17260 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17261
17262 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17263 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17305 printf %s "checking how to hardcode library paths into programs... " >&6; }
17306 hardcode_action_CXX=
17307 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17308 test -n "$runpath_var_CXX" ||
17309 test yes = "$hardcode_automatic_CXX"; then
17310
17311 # We can hardcode non-existent directories.
17312 if test no != "$hardcode_direct_CXX" &&
17313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17314 # have to relink, otherwise we might link with an installed library
17315 # when we should be linking with a yet-to-be-installed one
17316 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17317 test no != "$hardcode_minus_L_CXX"; then
17318 # Linking always hardcodes the temporary library directory.
17319 hardcode_action_CXX=relink
17320 else
17321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17322 hardcode_action_CXX=immediate
17323 fi
17324 else
17325 # We cannot hardcode anything, or else we can only hardcode existing
17326 # directories.
17327 hardcode_action_CXX=unsupported
17328 fi
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17330 printf "%s\n" "$hardcode_action_CXX" >&6; }
17331
17332 if test relink = "$hardcode_action_CXX" ||
17333 test yes = "$inherit_rpath_CXX"; then
17334 # Fast installation is not supported
17335 enable_fast_install=no
17336 elif test yes = "$shlibpath_overrides_runpath" ||
17337 test no = "$enable_shared"; then
17338 # Fast installation is not necessary
17339 enable_fast_install=needless
17340 fi
17341
17342
17343
17344
17345
17346
17347
17348 fi # test -n "$compiler"
17349
17350 CC=$lt_save_CC
17351 CFLAGS=$lt_save_CFLAGS
17352 LDCXX=$LD
17353 LD=$lt_save_LD
17354 GCC=$lt_save_GCC
17355 with_gnu_ld=$lt_save_with_gnu_ld
17356 lt_cv_path_LDCXX=$lt_cv_path_LD
17357 lt_cv_path_LD=$lt_save_path_LD
17358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17360 fi # test yes != "$_lt_caught_CXX_error"
17361
17362 ac_ext=cpp
17363 ac_cpp='$CXXCPP $CPPFLAGS'
17364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382 ac_config_commands="$ac_config_commands libtool"
17383
17384
17385
17386
17387 # Only expand once:
17388
17389
17390
17391 apl_MAINTAINER_MODE=$USE_MAINTAINER_MODE
17392
17393
17394 { printf "%s\n" ; printf "%s\n" " *** compiler checks... ***"; printf "%s\n" ; }
17395
17396 # Checks for programs.
17397 #
17398 ac_ext=cpp
17399 ac_cpp='$CXXCPP $CPPFLAGS'
17400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17403 if test -z "$CXX"; then
17404 if test -n "$CCC"; then
17405 CXX=$CCC
17406 else
17407 if test -n "$ac_tool_prefix"; then
17408 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
17409 do
17410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17413 printf %s "checking for $ac_word... " >&6; }
17414 if test ${ac_cv_prog_CXX+y}
17415 then :
17416 printf %s "(cached) " >&6
17417 else $as_nop
17418 if test -n "$CXX"; then
17419 ac_cv_prog_CXX="$CXX" # Let the user override the test.
17420 else
17421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422 for as_dir in $PATH
17423 do
17424 IFS=$as_save_IFS
17425 case $as_dir in #(((
17426 '') as_dir=./ ;;
17427 */) ;;
17428 *) as_dir=$as_dir/ ;;
17429 esac
17430 for ac_exec_ext in '' $ac_executable_extensions; do
17431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17432 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17434 break 2
17435 fi
17436 done
17437 done
17438 IFS=$as_save_IFS
17439
17440 fi
17441 fi
17442 CXX=$ac_cv_prog_CXX
17443 if test -n "$CXX"; then
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17445 printf "%s\n" "$CXX" >&6; }
17446 else
17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17448 printf "%s\n" "no" >&6; }
17449 fi
17450
17451
17452 test -n "$CXX" && break
17453 done
17454 fi
17455 if test -z "$CXX"; then
17456 ac_ct_CXX=$CXX
17457 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
17458 do
17459 # Extract the first word of "$ac_prog", so it can be a program name with args.
17460 set dummy $ac_prog; ac_word=$2
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17462 printf %s "checking for $ac_word... " >&6; }
17463 if test ${ac_cv_prog_ac_ct_CXX+y}
17464 then :
17465 printf %s "(cached) " >&6
17466 else $as_nop
17467 if test -n "$ac_ct_CXX"; then
17468 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17469 else
17470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17471 for as_dir in $PATH
17472 do
17473 IFS=$as_save_IFS
17474 case $as_dir in #(((
17475 '') as_dir=./ ;;
17476 */) ;;
17477 *) as_dir=$as_dir/ ;;
17478 esac
17479 for ac_exec_ext in '' $ac_executable_extensions; do
17480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17481 ac_cv_prog_ac_ct_CXX="$ac_prog"
17482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17483 break 2
17484 fi
17485 done
17486 done
17487 IFS=$as_save_IFS
17488
17489 fi
17490 fi
17491 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17492 if test -n "$ac_ct_CXX"; then
17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17494 printf "%s\n" "$ac_ct_CXX" >&6; }
17495 else
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 printf "%s\n" "no" >&6; }
17498 fi
17499
17500
17501 test -n "$ac_ct_CXX" && break
17502 done
17503
17504 if test "x$ac_ct_CXX" = x; then
17505 CXX="g++"
17506 else
17507 case $cross_compiling:$ac_tool_warned in
17508 yes:)
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17511 ac_tool_warned=yes ;;
17512 esac
17513 CXX=$ac_ct_CXX
17514 fi
17515 fi
17516
17517 fi
17518 fi
17519 # Provide some information about the compiler.
17520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17521 set X $ac_compile
17522 ac_compiler=$2
17523 for ac_option in --version -v -V -qversion; do
17524 { { ac_try="$ac_compiler $ac_option >&5"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528 esac
17529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17530 printf "%s\n" "$ac_try_echo"; } >&5
17531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17532 ac_status=$?
17533 if test -s conftest.err; then
17534 sed '10a\
17535 ... rest of stderr output deleted ...
17536 10q' conftest.err >conftest.er1
17537 cat conftest.er1 >&5
17538 fi
17539 rm -f conftest.er1 conftest.err
17540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17541 test $ac_status = 0; }
17542 done
17543
17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
17545 printf %s "checking whether the compiler supports GNU C++... " >&6; }
17546 if test ${ac_cv_cxx_compiler_gnu+y}
17547 then :
17548 printf %s "(cached) " >&6
17549 else $as_nop
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552
17553 int
17554 main (void)
17555 {
17556 #ifndef __GNUC__
17557 choke me
17558 #endif
17559
17560 ;
17561 return 0;
17562 }
17563 _ACEOF
17564 if ac_fn_cxx_try_compile "$LINENO"
17565 then :
17566 ac_compiler_gnu=yes
17567 else $as_nop
17568 ac_compiler_gnu=no
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17571 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17572
17573 fi
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17575 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
17576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17577
17578 if test $ac_compiler_gnu = yes; then
17579 GXX=yes
17580 else
17581 GXX=
17582 fi
17583 ac_test_CXXFLAGS=${CXXFLAGS+y}
17584 ac_save_CXXFLAGS=$CXXFLAGS
17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17586 printf %s "checking whether $CXX accepts -g... " >&6; }
17587 if test ${ac_cv_prog_cxx_g+y}
17588 then :
17589 printf %s "(cached) " >&6
17590 else $as_nop
17591 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17592 ac_cxx_werror_flag=yes
17593 ac_cv_prog_cxx_g=no
17594 CXXFLAGS="-g"
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597
17598 int
17599 main (void)
17600 {
17601
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 if ac_fn_cxx_try_compile "$LINENO"
17607 then :
17608 ac_cv_prog_cxx_g=yes
17609 else $as_nop
17610 CXXFLAGS=""
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613
17614 int
17615 main (void)
17616 {
17617
17618 ;
17619 return 0;
17620 }
17621 _ACEOF
17622 if ac_fn_cxx_try_compile "$LINENO"
17623 then :
17624
17625 else $as_nop
17626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17627 CXXFLAGS="-g"
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17630
17631 int
17632 main (void)
17633 {
17634
17635 ;
17636 return 0;
17637 }
17638 _ACEOF
17639 if ac_fn_cxx_try_compile "$LINENO"
17640 then :
17641 ac_cv_prog_cxx_g=yes
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17644 fi
17645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17646 fi
17647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17648 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17649 fi
17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17651 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
17652 if test $ac_test_CXXFLAGS; then
17653 CXXFLAGS=$ac_save_CXXFLAGS
17654 elif test $ac_cv_prog_cxx_g = yes; then
17655 if test "$GXX" = yes; then
17656 CXXFLAGS="-g -O2"
17657 else
17658 CXXFLAGS="-g"
17659 fi
17660 else
17661 if test "$GXX" = yes; then
17662 CXXFLAGS="-O2"
17663 else
17664 CXXFLAGS=
17665 fi
17666 fi
17667 ac_prog_cxx_stdcxx=no
17668 if test x$ac_prog_cxx_stdcxx = xno
17669 then :
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
17671 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
17672 if test ${ac_cv_prog_cxx_11+y}
17673 then :
17674 printf %s "(cached) " >&6
17675 else $as_nop
17676 ac_cv_prog_cxx_11=no
17677 ac_save_CXX=$CXX
17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h. */
17680 $ac_cxx_conftest_cxx11_program
17681 _ACEOF
17682 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
17683 do
17684 CXX="$ac_save_CXX $ac_arg"
17685 if ac_fn_cxx_try_compile "$LINENO"
17686 then :
17687 ac_cv_prog_cxx_cxx11=$ac_arg
17688 fi
17689 rm -f core conftest.err conftest.$ac_objext conftest.beam
17690 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
17691 done
17692 rm -f conftest.$ac_ext
17693 CXX=$ac_save_CXX
17694 fi
17695
17696 if test "x$ac_cv_prog_cxx_cxx11" = xno
17697 then :
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17699 printf "%s\n" "unsupported" >&6; }
17700 else $as_nop
17701 if test "x$ac_cv_prog_cxx_cxx11" = x
17702 then :
17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17704 printf "%s\n" "none needed" >&6; }
17705 else $as_nop
17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
17707 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
17708 CXX="$CXX $ac_cv_prog_cxx_cxx11"
17709 fi
17710 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
17711 ac_prog_cxx_stdcxx=cxx11
17712 fi
17713 fi
17714 if test x$ac_prog_cxx_stdcxx = xno
17715 then :
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
17717 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
17718 if test ${ac_cv_prog_cxx_98+y}
17719 then :
17720 printf %s "(cached) " >&6
17721 else $as_nop
17722 ac_cv_prog_cxx_98=no
17723 ac_save_CXX=$CXX
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17726 $ac_cxx_conftest_cxx98_program
17727 _ACEOF
17728 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
17729 do
17730 CXX="$ac_save_CXX $ac_arg"
17731 if ac_fn_cxx_try_compile "$LINENO"
17732 then :
17733 ac_cv_prog_cxx_cxx98=$ac_arg
17734 fi
17735 rm -f core conftest.err conftest.$ac_objext conftest.beam
17736 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
17737 done
17738 rm -f conftest.$ac_ext
17739 CXX=$ac_save_CXX
17740 fi
17741
17742 if test "x$ac_cv_prog_cxx_cxx98" = xno
17743 then :
17744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17745 printf "%s\n" "unsupported" >&6; }
17746 else $as_nop
17747 if test "x$ac_cv_prog_cxx_cxx98" = x
17748 then :
17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17750 printf "%s\n" "none needed" >&6; }
17751 else $as_nop
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
17753 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
17754 CXX="$CXX $ac_cv_prog_cxx_cxx98"
17755 fi
17756 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
17757 ac_prog_cxx_stdcxx=cxx98
17758 fi
17759 fi
17760
17761 ac_ext=cpp
17762 ac_cpp='$CXXCPP $CPPFLAGS'
17763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17766
17767 depcc="$CXX" am_compiler_list=
17768
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17770 printf %s "checking dependency style of $depcc... " >&6; }
17771 if test ${am_cv_CXX_dependencies_compiler_type+y}
17772 then :
17773 printf %s "(cached) " >&6
17774 else $as_nop
17775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17776 # We make a subdir and do the tests there. Otherwise we can end up
17777 # making bogus files that we don't know about and never remove. For
17778 # instance it was reported that on HP-UX the gcc test will end up
17779 # making a dummy file named 'D' -- because '-MD' means "put the output
17780 # in D".
17781 rm -rf conftest.dir
17782 mkdir conftest.dir
17783 # Copy depcomp to subdir because otherwise we won't find it if we're
17784 # using a relative directory.
17785 cp "$am_depcomp" conftest.dir
17786 cd conftest.dir
17787 # We will build objects and dependencies in a subdirectory because
17788 # it helps to detect inapplicable dependency modes. For instance
17789 # both Tru64's cc and ICC support -MD to output dependencies as a
17790 # side effect of compilation, but ICC will put the dependencies in
17791 # the current directory while Tru64 will put them in the object
17792 # directory.
17793 mkdir sub
17794
17795 am_cv_CXX_dependencies_compiler_type=none
17796 if test "$am_compiler_list" = ""; then
17797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17798 fi
17799 am__universal=false
17800 case " $depcc " in #(
17801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17802 esac
17803
17804 for depmode in $am_compiler_list; do
17805 # Setup a source with many dependencies, because some compilers
17806 # like to wrap large dependency lists on column 80 (with \), and
17807 # we should not choose a depcomp mode which is confused by this.
17808 #
17809 # We need to recreate these files for each test, as the compiler may
17810 # overwrite some of them when testing with obscure command lines.
17811 # This happens at least with the AIX C compiler.
17812 : > sub/conftest.c
17813 for i in 1 2 3 4 5 6; do
17814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17815 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17816 # Solaris 10 /bin/sh.
17817 echo '/* dummy */' > sub/conftst$i.h
17818 done
17819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17820
17821 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17822 # mode. It turns out that the SunPro C++ compiler does not properly
17823 # handle '-M -o', and we need to detect this. Also, some Intel
17824 # versions had trouble with output in subdirs.
17825 am__obj=sub/conftest.${OBJEXT-o}
17826 am__minus_obj="-o $am__obj"
17827 case $depmode in
17828 gcc)
17829 # This depmode causes a compiler race in universal mode.
17830 test "$am__universal" = false || continue
17831 ;;
17832 nosideeffect)
17833 # After this tag, mechanisms are not by side-effect, so they'll
17834 # only be used when explicitly requested.
17835 if test "x$enable_dependency_tracking" = xyes; then
17836 continue
17837 else
17838 break
17839 fi
17840 ;;
17841 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17842 # This compiler won't grok '-c -o', but also, the minuso test has
17843 # not run yet. These depmodes are late enough in the game, and
17844 # so weak that their functioning should not be impacted.
17845 am__obj=conftest.${OBJEXT-o}
17846 am__minus_obj=
17847 ;;
17848 none) break ;;
17849 esac
17850 if depmode=$depmode \
17851 source=sub/conftest.c object=$am__obj \
17852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17854 >/dev/null 2>conftest.err &&
17855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17859 # icc doesn't choke on unknown options, it will just issue warnings
17860 # or remarks (even with -Werror). So we grep stderr for any message
17861 # that says an option was ignored or not supported.
17862 # When given -MP, icc 7.0 and 7.1 complain thusly:
17863 # icc: Command line warning: ignoring option '-M'; no argument required
17864 # The diagnosis changed in icc 8.0:
17865 # icc: Command line remark: option '-MP' not supported
17866 if (grep 'ignoring option' conftest.err ||
17867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17868 am_cv_CXX_dependencies_compiler_type=$depmode
17869 break
17870 fi
17871 fi
17872 done
17873
17874 cd ..
17875 rm -rf conftest.dir
17876 else
17877 am_cv_CXX_dependencies_compiler_type=none
17878 fi
17879
17880 fi
17881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17882 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
17883 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17884
17885 if
17886 test "x$enable_dependency_tracking" != xno \
17887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17888 am__fastdepCXX_TRUE=
17889 am__fastdepCXX_FALSE='#'
17890 else
17891 am__fastdepCXX_TRUE='#'
17892 am__fastdepCXX_FALSE=
17893 fi
17894
17895
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901 if test -n "$ac_tool_prefix"; then
17902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17905 printf %s "checking for $ac_word... " >&6; }
17906 if test ${ac_cv_prog_CC+y}
17907 then :
17908 printf %s "(cached) " >&6
17909 else $as_nop
17910 if test -n "$CC"; then
17911 ac_cv_prog_CC="$CC" # Let the user override the test.
17912 else
17913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17914 for as_dir in $PATH
17915 do
17916 IFS=$as_save_IFS
17917 case $as_dir in #(((
17918 '') as_dir=./ ;;
17919 */) ;;
17920 *) as_dir=$as_dir/ ;;
17921 esac
17922 for ac_exec_ext in '' $ac_executable_extensions; do
17923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17924 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17926 break 2
17927 fi
17928 done
17929 done
17930 IFS=$as_save_IFS
17931
17932 fi
17933 fi
17934 CC=$ac_cv_prog_CC
17935 if test -n "$CC"; then
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17937 printf "%s\n" "$CC" >&6; }
17938 else
17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940 printf "%s\n" "no" >&6; }
17941 fi
17942
17943
17944 fi
17945 if test -z "$ac_cv_prog_CC"; then
17946 ac_ct_CC=$CC
17947 # Extract the first word of "gcc", so it can be a program name with args.
17948 set dummy gcc; ac_word=$2
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17950 printf %s "checking for $ac_word... " >&6; }
17951 if test ${ac_cv_prog_ac_ct_CC+y}
17952 then :
17953 printf %s "(cached) " >&6
17954 else $as_nop
17955 if test -n "$ac_ct_CC"; then
17956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17957 else
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17960 do
17961 IFS=$as_save_IFS
17962 case $as_dir in #(((
17963 '') as_dir=./ ;;
17964 */) ;;
17965 *) as_dir=$as_dir/ ;;
17966 esac
17967 for ac_exec_ext in '' $ac_executable_extensions; do
17968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17969 ac_cv_prog_ac_ct_CC="gcc"
17970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17971 break 2
17972 fi
17973 done
17974 done
17975 IFS=$as_save_IFS
17976
17977 fi
17978 fi
17979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17980 if test -n "$ac_ct_CC"; then
17981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17982 printf "%s\n" "$ac_ct_CC" >&6; }
17983 else
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985 printf "%s\n" "no" >&6; }
17986 fi
17987
17988 if test "x$ac_ct_CC" = x; then
17989 CC=""
17990 else
17991 case $cross_compiling:$ac_tool_warned in
17992 yes:)
17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17995 ac_tool_warned=yes ;;
17996 esac
17997 CC=$ac_ct_CC
17998 fi
17999 else
18000 CC="$ac_cv_prog_CC"
18001 fi
18002
18003 if test -z "$CC"; then
18004 if test -n "$ac_tool_prefix"; then
18005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18006 set dummy ${ac_tool_prefix}cc; ac_word=$2
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18008 printf %s "checking for $ac_word... " >&6; }
18009 if test ${ac_cv_prog_CC+y}
18010 then :
18011 printf %s "(cached) " >&6
18012 else $as_nop
18013 if test -n "$CC"; then
18014 ac_cv_prog_CC="$CC" # Let the user override the test.
18015 else
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017 for as_dir in $PATH
18018 do
18019 IFS=$as_save_IFS
18020 case $as_dir in #(((
18021 '') as_dir=./ ;;
18022 */) ;;
18023 *) as_dir=$as_dir/ ;;
18024 esac
18025 for ac_exec_ext in '' $ac_executable_extensions; do
18026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18027 ac_cv_prog_CC="${ac_tool_prefix}cc"
18028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18029 break 2
18030 fi
18031 done
18032 done
18033 IFS=$as_save_IFS
18034
18035 fi
18036 fi
18037 CC=$ac_cv_prog_CC
18038 if test -n "$CC"; then
18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18040 printf "%s\n" "$CC" >&6; }
18041 else
18042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 printf "%s\n" "no" >&6; }
18044 fi
18045
18046
18047 fi
18048 fi
18049 if test -z "$CC"; then
18050 # Extract the first word of "cc", so it can be a program name with args.
18051 set dummy cc; ac_word=$2
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18053 printf %s "checking for $ac_word... " >&6; }
18054 if test ${ac_cv_prog_CC+y}
18055 then :
18056 printf %s "(cached) " >&6
18057 else $as_nop
18058 if test -n "$CC"; then
18059 ac_cv_prog_CC="$CC" # Let the user override the test.
18060 else
18061 ac_prog_rejected=no
18062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18063 for as_dir in $PATH
18064 do
18065 IFS=$as_save_IFS
18066 case $as_dir in #(((
18067 '') as_dir=./ ;;
18068 */) ;;
18069 *) as_dir=$as_dir/ ;;
18070 esac
18071 for ac_exec_ext in '' $ac_executable_extensions; do
18072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18073 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18074 ac_prog_rejected=yes
18075 continue
18076 fi
18077 ac_cv_prog_CC="cc"
18078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18079 break 2
18080 fi
18081 done
18082 done
18083 IFS=$as_save_IFS
18084
18085 if test $ac_prog_rejected = yes; then
18086 # We found a bogon in the path, so make sure we never use it.
18087 set dummy $ac_cv_prog_CC
18088 shift
18089 if test $# != 0; then
18090 # We chose a different compiler from the bogus one.
18091 # However, it has the same basename, so the bogon will be chosen
18092 # first if we set CC to just the basename; use the full file name.
18093 shift
18094 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
18095 fi
18096 fi
18097 fi
18098 fi
18099 CC=$ac_cv_prog_CC
18100 if test -n "$CC"; then
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18102 printf "%s\n" "$CC" >&6; }
18103 else
18104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 printf "%s\n" "no" >&6; }
18106 fi
18107
18108
18109 fi
18110 if test -z "$CC"; then
18111 if test -n "$ac_tool_prefix"; then
18112 for ac_prog in cl.exe
18113 do
18114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 printf %s "checking for $ac_word... " >&6; }
18118 if test ${ac_cv_prog_CC+y}
18119 then :
18120 printf %s "(cached) " >&6
18121 else $as_nop
18122 if test -n "$CC"; then
18123 ac_cv_prog_CC="$CC" # Let the user override the test.
18124 else
18125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18126 for as_dir in $PATH
18127 do
18128 IFS=$as_save_IFS
18129 case $as_dir in #(((
18130 '') as_dir=./ ;;
18131 */) ;;
18132 *) as_dir=$as_dir/ ;;
18133 esac
18134 for ac_exec_ext in '' $ac_executable_extensions; do
18135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18138 break 2
18139 fi
18140 done
18141 done
18142 IFS=$as_save_IFS
18143
18144 fi
18145 fi
18146 CC=$ac_cv_prog_CC
18147 if test -n "$CC"; then
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18149 printf "%s\n" "$CC" >&6; }
18150 else
18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18152 printf "%s\n" "no" >&6; }
18153 fi
18154
18155
18156 test -n "$CC" && break
18157 done
18158 fi
18159 if test -z "$CC"; then
18160 ac_ct_CC=$CC
18161 for ac_prog in cl.exe
18162 do
18163 # Extract the first word of "$ac_prog", so it can be a program name with args.
18164 set dummy $ac_prog; ac_word=$2
18165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18166 printf %s "checking for $ac_word... " >&6; }
18167 if test ${ac_cv_prog_ac_ct_CC+y}
18168 then :
18169 printf %s "(cached) " >&6
18170 else $as_nop
18171 if test -n "$ac_ct_CC"; then
18172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18173 else
18174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175 for as_dir in $PATH
18176 do
18177 IFS=$as_save_IFS
18178 case $as_dir in #(((
18179 '') as_dir=./ ;;
18180 */) ;;
18181 *) as_dir=$as_dir/ ;;
18182 esac
18183 for ac_exec_ext in '' $ac_executable_extensions; do
18184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18185 ac_cv_prog_ac_ct_CC="$ac_prog"
18186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18187 break 2
18188 fi
18189 done
18190 done
18191 IFS=$as_save_IFS
18192
18193 fi
18194 fi
18195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18196 if test -n "$ac_ct_CC"; then
18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18198 printf "%s\n" "$ac_ct_CC" >&6; }
18199 else
18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18201 printf "%s\n" "no" >&6; }
18202 fi
18203
18204
18205 test -n "$ac_ct_CC" && break
18206 done
18207
18208 if test "x$ac_ct_CC" = x; then
18209 CC=""
18210 else
18211 case $cross_compiling:$ac_tool_warned in
18212 yes:)
18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18215 ac_tool_warned=yes ;;
18216 esac
18217 CC=$ac_ct_CC
18218 fi
18219 fi
18220
18221 fi
18222 if test -z "$CC"; then
18223 if test -n "$ac_tool_prefix"; then
18224 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
18225 set dummy ${ac_tool_prefix}clang; ac_word=$2
18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18227 printf %s "checking for $ac_word... " >&6; }
18228 if test ${ac_cv_prog_CC+y}
18229 then :
18230 printf %s "(cached) " >&6
18231 else $as_nop
18232 if test -n "$CC"; then
18233 ac_cv_prog_CC="$CC" # Let the user override the test.
18234 else
18235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18236 for as_dir in $PATH
18237 do
18238 IFS=$as_save_IFS
18239 case $as_dir in #(((
18240 '') as_dir=./ ;;
18241 */) ;;
18242 *) as_dir=$as_dir/ ;;
18243 esac
18244 for ac_exec_ext in '' $ac_executable_extensions; do
18245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18246 ac_cv_prog_CC="${ac_tool_prefix}clang"
18247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18248 break 2
18249 fi
18250 done
18251 done
18252 IFS=$as_save_IFS
18253
18254 fi
18255 fi
18256 CC=$ac_cv_prog_CC
18257 if test -n "$CC"; then
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18259 printf "%s\n" "$CC" >&6; }
18260 else
18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262 printf "%s\n" "no" >&6; }
18263 fi
18264
18265
18266 fi
18267 if test -z "$ac_cv_prog_CC"; then
18268 ac_ct_CC=$CC
18269 # Extract the first word of "clang", so it can be a program name with args.
18270 set dummy clang; ac_word=$2
18271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18272 printf %s "checking for $ac_word... " >&6; }
18273 if test ${ac_cv_prog_ac_ct_CC+y}
18274 then :
18275 printf %s "(cached) " >&6
18276 else $as_nop
18277 if test -n "$ac_ct_CC"; then
18278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18279 else
18280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18281 for as_dir in $PATH
18282 do
18283 IFS=$as_save_IFS
18284 case $as_dir in #(((
18285 '') as_dir=./ ;;
18286 */) ;;
18287 *) as_dir=$as_dir/ ;;
18288 esac
18289 for ac_exec_ext in '' $ac_executable_extensions; do
18290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18291 ac_cv_prog_ac_ct_CC="clang"
18292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18293 break 2
18294 fi
18295 done
18296 done
18297 IFS=$as_save_IFS
18298
18299 fi
18300 fi
18301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18302 if test -n "$ac_ct_CC"; then
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18304 printf "%s\n" "$ac_ct_CC" >&6; }
18305 else
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 printf "%s\n" "no" >&6; }
18308 fi
18309
18310 if test "x$ac_ct_CC" = x; then
18311 CC=""
18312 else
18313 case $cross_compiling:$ac_tool_warned in
18314 yes:)
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18317 ac_tool_warned=yes ;;
18318 esac
18319 CC=$ac_ct_CC
18320 fi
18321 else
18322 CC="$ac_cv_prog_CC"
18323 fi
18324
18325 fi
18326
18327
18328 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18330 as_fn_error $? "no acceptable C compiler found in \$PATH
18331 See \`config.log' for more details" "$LINENO" 5; }
18332
18333 # Provide some information about the compiler.
18334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18335 set X $ac_compile
18336 ac_compiler=$2
18337 for ac_option in --version -v -V -qversion -version; do
18338 { { ac_try="$ac_compiler $ac_option >&5"
18339 case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342 esac
18343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18344 printf "%s\n" "$ac_try_echo"; } >&5
18345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18346 ac_status=$?
18347 if test -s conftest.err; then
18348 sed '10a\
18349 ... rest of stderr output deleted ...
18350 10q' conftest.err >conftest.er1
18351 cat conftest.er1 >&5
18352 fi
18353 rm -f conftest.er1 conftest.err
18354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18355 test $ac_status = 0; }
18356 done
18357
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
18359 printf %s "checking whether the compiler supports GNU C... " >&6; }
18360 if test ${ac_cv_c_compiler_gnu+y}
18361 then :
18362 printf %s "(cached) " >&6
18363 else $as_nop
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366
18367 int
18368 main (void)
18369 {
18370 #ifndef __GNUC__
18371 choke me
18372 #endif
18373
18374 ;
18375 return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_compile "$LINENO"
18379 then :
18380 ac_compiler_gnu=yes
18381 else $as_nop
18382 ac_compiler_gnu=no
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18386
18387 fi
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18389 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
18390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392 if test $ac_compiler_gnu = yes; then
18393 GCC=yes
18394 else
18395 GCC=
18396 fi
18397 ac_test_CFLAGS=${CFLAGS+y}
18398 ac_save_CFLAGS=$CFLAGS
18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18400 printf %s "checking whether $CC accepts -g... " >&6; }
18401 if test ${ac_cv_prog_cc_g+y}
18402 then :
18403 printf %s "(cached) " >&6
18404 else $as_nop
18405 ac_save_c_werror_flag=$ac_c_werror_flag
18406 ac_c_werror_flag=yes
18407 ac_cv_prog_cc_g=no
18408 CFLAGS="-g"
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18411
18412 int
18413 main (void)
18414 {
18415
18416 ;
18417 return 0;
18418 }
18419 _ACEOF
18420 if ac_fn_c_try_compile "$LINENO"
18421 then :
18422 ac_cv_prog_cc_g=yes
18423 else $as_nop
18424 CFLAGS=""
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427
18428 int
18429 main (void)
18430 {
18431
18432 ;
18433 return 0;
18434 }
18435 _ACEOF
18436 if ac_fn_c_try_compile "$LINENO"
18437 then :
18438
18439 else $as_nop
18440 ac_c_werror_flag=$ac_save_c_werror_flag
18441 CFLAGS="-g"
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444
18445 int
18446 main (void)
18447 {
18448
18449 ;
18450 return 0;
18451 }
18452 _ACEOF
18453 if ac_fn_c_try_compile "$LINENO"
18454 then :
18455 ac_cv_prog_cc_g=yes
18456 fi
18457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18462 ac_c_werror_flag=$ac_save_c_werror_flag
18463 fi
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18465 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
18466 if test $ac_test_CFLAGS; then
18467 CFLAGS=$ac_save_CFLAGS
18468 elif test $ac_cv_prog_cc_g = yes; then
18469 if test "$GCC" = yes; then
18470 CFLAGS="-g -O2"
18471 else
18472 CFLAGS="-g"
18473 fi
18474 else
18475 if test "$GCC" = yes; then
18476 CFLAGS="-O2"
18477 else
18478 CFLAGS=
18479 fi
18480 fi
18481 ac_prog_cc_stdc=no
18482 if test x$ac_prog_cc_stdc = xno
18483 then :
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
18485 printf %s "checking for $CC option to enable C11 features... " >&6; }
18486 if test ${ac_cv_prog_cc_c11+y}
18487 then :
18488 printf %s "(cached) " >&6
18489 else $as_nop
18490 ac_cv_prog_cc_c11=no
18491 ac_save_CC=$CC
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 $ac_c_conftest_c11_program
18495 _ACEOF
18496 for ac_arg in '' -std=gnu11
18497 do
18498 CC="$ac_save_CC $ac_arg"
18499 if ac_fn_c_try_compile "$LINENO"
18500 then :
18501 ac_cv_prog_cc_c11=$ac_arg
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext conftest.beam
18504 test "x$ac_cv_prog_cc_c11" != "xno" && break
18505 done
18506 rm -f conftest.$ac_ext
18507 CC=$ac_save_CC
18508 fi
18509
18510 if test "x$ac_cv_prog_cc_c11" = xno
18511 then :
18512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18513 printf "%s\n" "unsupported" >&6; }
18514 else $as_nop
18515 if test "x$ac_cv_prog_cc_c11" = x
18516 then :
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18518 printf "%s\n" "none needed" >&6; }
18519 else $as_nop
18520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
18521 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
18522 CC="$CC $ac_cv_prog_cc_c11"
18523 fi
18524 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
18525 ac_prog_cc_stdc=c11
18526 fi
18527 fi
18528 if test x$ac_prog_cc_stdc = xno
18529 then :
18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
18531 printf %s "checking for $CC option to enable C99 features... " >&6; }
18532 if test ${ac_cv_prog_cc_c99+y}
18533 then :
18534 printf %s "(cached) " >&6
18535 else $as_nop
18536 ac_cv_prog_cc_c99=no
18537 ac_save_CC=$CC
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540 $ac_c_conftest_c99_program
18541 _ACEOF
18542 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
18543 do
18544 CC="$ac_save_CC $ac_arg"
18545 if ac_fn_c_try_compile "$LINENO"
18546 then :
18547 ac_cv_prog_cc_c99=$ac_arg
18548 fi
18549 rm -f core conftest.err conftest.$ac_objext conftest.beam
18550 test "x$ac_cv_prog_cc_c99" != "xno" && break
18551 done
18552 rm -f conftest.$ac_ext
18553 CC=$ac_save_CC
18554 fi
18555
18556 if test "x$ac_cv_prog_cc_c99" = xno
18557 then :
18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18559 printf "%s\n" "unsupported" >&6; }
18560 else $as_nop
18561 if test "x$ac_cv_prog_cc_c99" = x
18562 then :
18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18564 printf "%s\n" "none needed" >&6; }
18565 else $as_nop
18566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18567 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
18568 CC="$CC $ac_cv_prog_cc_c99"
18569 fi
18570 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18571 ac_prog_cc_stdc=c99
18572 fi
18573 fi
18574 if test x$ac_prog_cc_stdc = xno
18575 then :
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
18577 printf %s "checking for $CC option to enable C89 features... " >&6; }
18578 if test ${ac_cv_prog_cc_c89+y}
18579 then :
18580 printf %s "(cached) " >&6
18581 else $as_nop
18582 ac_cv_prog_cc_c89=no
18583 ac_save_CC=$CC
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18586 $ac_c_conftest_c89_program
18587 _ACEOF
18588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18589 do
18590 CC="$ac_save_CC $ac_arg"
18591 if ac_fn_c_try_compile "$LINENO"
18592 then :
18593 ac_cv_prog_cc_c89=$ac_arg
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext conftest.beam
18596 test "x$ac_cv_prog_cc_c89" != "xno" && break
18597 done
18598 rm -f conftest.$ac_ext
18599 CC=$ac_save_CC
18600 fi
18601
18602 if test "x$ac_cv_prog_cc_c89" = xno
18603 then :
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18605 printf "%s\n" "unsupported" >&6; }
18606 else $as_nop
18607 if test "x$ac_cv_prog_cc_c89" = x
18608 then :
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18610 printf "%s\n" "none needed" >&6; }
18611 else $as_nop
18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18613 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
18614 CC="$CC $ac_cv_prog_cc_c89"
18615 fi
18616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18617 ac_prog_cc_stdc=c89
18618 fi
18619 fi
18620
18621 ac_ext=cpp
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18626
18627
18628 ac_ext=c
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18634 printf %s "checking whether $CC understands -c and -o together... " >&6; }
18635 if test ${am_cv_prog_cc_c_o+y}
18636 then :
18637 printf %s "(cached) " >&6
18638 else $as_nop
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641
18642 int
18643 main (void)
18644 {
18645
18646 ;
18647 return 0;
18648 }
18649 _ACEOF
18650 # Make sure it works both with $CC and with simple cc.
18651 # Following AC_PROG_CC_C_O, we do the test twice because some
18652 # compilers refuse to overwrite an existing .o file with -o,
18653 # though they will create one.
18654 am_cv_prog_cc_c_o=yes
18655 for am_i in 1 2; do
18656 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18657 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } \
18661 && test -f conftest2.$ac_objext; then
18662 : OK
18663 else
18664 am_cv_prog_cc_c_o=no
18665 break
18666 fi
18667 done
18668 rm -f core conftest*
18669 unset am_i
18670 fi
18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18672 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
18673 if test "$am_cv_prog_cc_c_o" != yes; then
18674 # Losing compiler, so override with the script.
18675 # FIXME: It is wrong to rewrite CC.
18676 # But if we don't then we get into trouble of one sort or another.
18677 # A longer-term fix would be to have automake use am__CC in this case,
18678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18679 CC="$am_aux_dir/compile $CC"
18680 fi
18681 ac_ext=cpp
18682 ac_cpp='$CXXCPP $CPPFLAGS'
18683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18686
18687
18688 # AC_PROG_RANLIB obsolteted by LT_INIT
18689
18690
18691
18692 # add the current directory (i.e. from where ./configure was called) to the
18693 # include path, so that the files created by ./configure are found. This
18694 # is (only) needed for VPATH builds since otherwise the directory from which
18695 # ./configure is run is the same as the directory where ./configure places
18696 # its output files (i.e. directory '.').
18697 #
18698 CXXFLAGS="$CXXFLAGS -I `pwd`"
18699
18700 ##############################################################################
18701 # Checks for various header files.
18702 #
18703 { printf "%s\n" ; printf "%s\n" " *** checks for the presence and usablility of header files... ***"; printf "%s\n" ; }
18704
18705 # check for ncurses.h first and for curses.h only if ncurses.h was not found.
18706
18707 ac_fn_cxx_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
18708 if test "x$ac_cv_header_ncurses_h" = xyes
18709 then :
18710
18711 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
18712
18713 else $as_nop
18714 ac_fn_cxx_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
18715 if test "x$ac_cv_header_curses_h" = xyes
18716 then :
18717
18718 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
18719
18720 fi
18721
18722
18723 fi
18724
18725
18726 ac_fn_cxx_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " #if HAVE_NCURSES_H
18727 # include <ncurses.h>
18728 #elif HAVE_CURSES_H
18729 # include <curses.h>
18730 #endif
18731
18732 "
18733 if test "x$ac_cv_header_term_h" = xyes
18734 then :
18735
18736 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
18737
18738 fi
18739
18740
18741 # keep headers in roughy alphabetical order as to find them more easily
18742 #
18743 apl_missing_headers=0
18744 for ac_header in dirent.h execinfo.h ext/atomicity.h fcntl.h fenv.h fftw3.h inttypes.h libpng16/png.h limits.h locale.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/un.h termios.h unistd.h utmpx.h vector zlib.h
18745 do :
18746 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
18747 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18748 if eval test \"x\$"$as_ac_Header"\" = x"yes"
18749 then :
18750 cat >>confdefs.h <<_ACEOF
18751 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
18752 _ACEOF
18753
18754 else $as_nop
18755 apl_missing_headers=$(($apl_missing_headers + 1))
18756 fi
18757
18758 done
18759
18760 # Checks for typedefs, structures, and compiler characteristics.
18761 #
18762 { printf "%s\n" ; printf "%s\n" " *** checks for standard C/C++ types... ***"; printf "%s\n" ; }
18763
18764 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18765 if test "x$ac_cv_type__Bool" = xyes
18766 then :
18767
18768 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
18769
18770
18771 fi
18772
18773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18774 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
18775 if test ${ac_cv_header_stdbool_h+y}
18776 then :
18777 printf %s "(cached) " >&6
18778 else $as_nop
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781 #include <stdbool.h>
18782
18783 #ifndef __bool_true_false_are_defined
18784 #error "__bool_true_false_are_defined is not defined"
18785 #endif
18786 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
18787
18788 /* Regardless of whether this is C++ or "_Bool" is a
18789 valid type name, "true" and "false" should be usable
18790 in #if expressions and integer constant expressions,
18791 and "bool" should be a valid type name. */
18792
18793 #if !true
18794 #error "'true' is not true"
18795 #endif
18796 #if true != 1
18797 #error "'true' is not equal to 1"
18798 #endif
18799 char b[true == 1 ? 1 : -1];
18800 char c[true];
18801
18802 #if false
18803 #error "'false' is not false"
18804 #endif
18805 #if false != 0
18806 #error "'false' is not equal to 0"
18807 #endif
18808 char d[false == 0 ? 1 : -1];
18809
18810 enum { e = false, f = true, g = false * true, h = true * 256 };
18811
18812 char i[(bool) 0.5 == true ? 1 : -1];
18813 char j[(bool) 0.0 == false ? 1 : -1];
18814 char k[sizeof (bool) > 0 ? 1 : -1];
18815
18816 struct sb { bool s: 1; bool t; } s;
18817 char l[sizeof s.t > 0 ? 1 : -1];
18818
18819 /* The following fails for
18820 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18821 bool m[h];
18822 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
18823 char o[-1 - (bool) 0 < 0 ? 1 : -1];
18824 /* Catch a bug in an HP-UX C compiler. See
18825 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18826 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18827 */
18828 bool p = true;
18829 bool *pp = &p;
18830
18831 /* C 1999 specifies that bool, true, and false are to be
18832 macros, but C++ 2011 and later overrule this. */
18833 #if __cplusplus < 201103
18834 #ifndef bool
18835 #error "bool is not defined"
18836 #endif
18837 #ifndef false
18838 #error "false is not defined"
18839 #endif
18840 #ifndef true
18841 #error "true is not defined"
18842 #endif
18843 #endif
18844
18845 /* If _Bool is available, repeat with it all the tests
18846 above that used bool. */
18847 #ifdef HAVE__BOOL
18848 struct sB { _Bool s: 1; _Bool t; } t;
18849
18850 char q[(_Bool) 0.5 == true ? 1 : -1];
18851 char r[(_Bool) 0.0 == false ? 1 : -1];
18852 char u[sizeof (_Bool) > 0 ? 1 : -1];
18853 char v[sizeof t.t > 0 ? 1 : -1];
18854
18855 _Bool w[h];
18856 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
18857 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
18858 _Bool z = true;
18859 _Bool *pz = &p;
18860 #endif
18861
18862 int
18863 main (void)
18864 {
18865
18866 bool ps = &s;
18867 *pp |= p;
18868 *pp |= ! p;
18869
18870 #ifdef HAVE__BOOL
18871 _Bool pt = &t;
18872 *pz |= z;
18873 *pz |= ! z;
18874 #endif
18875
18876 /* Refer to every declared value, so they cannot be
18877 discarded as unused. */
18878 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
18879 + !l + !m + !n + !o + !p + !pp + !ps
18880 #ifdef HAVE__BOOL
18881 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
18882 #endif
18883 );
18884
18885 ;
18886 return 0;
18887 }
18888 _ACEOF
18889 if ac_fn_cxx_try_compile "$LINENO"
18890 then :
18891 ac_cv_header_stdbool_h=yes
18892 else $as_nop
18893 ac_cv_header_stdbool_h=no
18894 fi
18895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18896 fi
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18898 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
18899
18900 if test $ac_cv_header_stdbool_h = yes; then
18901
18902 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
18903
18904 fi
18905
18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18907 printf %s "checking for inline... " >&6; }
18908 if test ${ac_cv_c_inline+y}
18909 then :
18910 printf %s "(cached) " >&6
18911 else $as_nop
18912 ac_cv_c_inline=no
18913 for ac_kw in inline __inline__ __inline; do
18914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18916 #ifndef __cplusplus
18917 typedef int foo_t;
18918 static $ac_kw foo_t static_foo (void) {return 0; }
18919 $ac_kw foo_t foo (void) {return 0; }
18920 #endif
18921
18922 _ACEOF
18923 if ac_fn_cxx_try_compile "$LINENO"
18924 then :
18925 ac_cv_c_inline=$ac_kw
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18928 test "$ac_cv_c_inline" != no && break
18929 done
18930
18931 fi
18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18933 printf "%s\n" "$ac_cv_c_inline" >&6; }
18934
18935 case $ac_cv_c_inline in
18936 inline | yes) ;;
18937 *)
18938 case $ac_cv_c_inline in
18939 no) ac_val=;;
18940 *) ac_val=$ac_cv_c_inline;;
18941 esac
18942 cat >>confdefs.h <<_ACEOF
18943 #ifndef __cplusplus
18944 #define inline $ac_val
18945 #endif
18946 _ACEOF
18947 ;;
18948 esac
18949
18950 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18951 case $ac_cv_c_int16_t in #(
18952 no|yes) ;; #(
18953 *)
18954
18955 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18956 ;;
18957 esac
18958
18959 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18960 case $ac_cv_c_int32_t in #(
18961 no|yes) ;; #(
18962 *)
18963
18964 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18965 ;;
18966 esac
18967
18968 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18969 case $ac_cv_c_int64_t in #(
18970 no|yes) ;; #(
18971 *)
18972
18973 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18974 ;;
18975 esac
18976
18977 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18978 if test "x$ac_cv_type_off_t" = xyes
18979 then :
18980
18981 else $as_nop
18982
18983 printf "%s\n" "#define off_t long int" >>confdefs.h
18984
18985 fi
18986
18987 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18988 if test "x$ac_cv_type_size_t" = xyes
18989 then :
18990
18991 else $as_nop
18992
18993 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18994
18995 fi
18996
18997 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18998 if test "x$ac_cv_type_ssize_t" = xyes
18999 then :
19000
19001 else $as_nop
19002
19003 printf "%s\n" "#define ssize_t int" >>confdefs.h
19004
19005 fi
19006
19007 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
19008 case $ac_cv_c_uint16_t in #(
19009 no|yes) ;; #(
19010 *)
19011
19012
19013 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
19014 ;;
19015 esac
19016
19017 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
19018 case $ac_cv_c_uint32_t in #(
19019 no|yes) ;; #(
19020 *)
19021
19022 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
19023
19024
19025 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
19026 ;;
19027 esac
19028
19029 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
19030 case $ac_cv_c_uint64_t in #(
19031 no|yes) ;; #(
19032 *)
19033
19034 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
19035
19036
19037 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
19038 ;;
19039 esac
19040
19041 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
19042 case $ac_cv_c_uint8_t in #(
19043 no|yes) ;; #(
19044 *)
19045
19046 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
19047
19048
19049 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
19050 ;;
19051 esac
19052
19053
19054 # export the ./configure args into config.h
19055 #
19056
19057 printf "%s\n" "#define cfg_CONFIGURE_ARGS \"$0 $ac_configure_args\"" >>confdefs.h
19058
19059
19060 ##############################################################################
19061 #
19062 # Various checks for library functions. We use inverse alphabetical order
19063 # although the order should be least-dependent to most-dependent (or vice
19064 # versa?). The checks that come earlier in this file come later on the linker
19065 # command line.
19066 #
19067 # That is, if e.g. lib_A requires lib_B, then the linker command line should
19068 # be # ... lib_A ... lib_B and the test for lib_B should come before the test
19069 # for lib_A in this file.
19070 #
19071 # Most libraries are not dependent and in that case we use the alphabetical
19072 # order as to improve the reability of the linker command
19073 #
19074 ##############################################################################
19075
19076 ac_fn_cxx_check_member "$LINENO" "stat" "st_blksize stat.st_rdev" "ac_cv_member_stat_st_blksize_stat_st_rdev" "$ac_includes_default"
19077 if test "x$ac_cv_member_stat_st_blksize_stat_st_rdev" = xyes
19078 then :
19079
19080 printf "%s\n" "#define HAVE_STAT_ST_BLKSIZE_STAT_ST_RDEV 1" >>confdefs.h
19081
19082
19083 fi
19084
19085
19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19087 printf %s "checking for error_at_line... " >&6; }
19088 if test ${ac_cv_lib_error_at_line+y}
19089 then :
19090 printf %s "(cached) " >&6
19091 else $as_nop
19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19094 #include <error.h>
19095 int
19096 main (void)
19097 {
19098 error_at_line (0, 0, "", 0, "an error occurred");
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 if ac_fn_cxx_try_link "$LINENO"
19104 then :
19105 ac_cv_lib_error_at_line=yes
19106 else $as_nop
19107 ac_cv_lib_error_at_line=no
19108 fi
19109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19110 conftest$ac_exeext conftest.$ac_ext
19111 fi
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19113 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
19114 if test $ac_cv_lib_error_at_line = no; then
19115 case " $LIBOBJS " in
19116 *" error.$ac_objext "* ) ;;
19117 *) LIBOBJS="$LIBOBJS error.$ac_objext"
19118 ;;
19119 esac
19120
19121 fi
19122
19123
19124 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
19125 "
19126 if test "x$ac_cv_type_pid_t" = xyes
19127 then :
19128
19129 else $as_nop
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19132
19133 #if defined _WIN64 && !defined __CYGWIN__
19134 LLP64
19135 #endif
19136
19137 int
19138 main (void)
19139 {
19140
19141 ;
19142 return 0;
19143 }
19144
19145 _ACEOF
19146 if ac_fn_cxx_try_compile "$LINENO"
19147 then :
19148 ac_pid_type='int'
19149 else $as_nop
19150 ac_pid_type='__int64'
19151 fi
19152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19153
19154 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
19155
19156
19157 fi
19158
19159
19160 ac_header= ac_cache=
19161 for ac_item in $ac_header_cxx_list
19162 do
19163 if test $ac_cache; then
19164 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
19165 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
19166 printf "%s\n" "#define $ac_item 1" >> confdefs.h
19167 fi
19168 ac_header= ac_cache=
19169 elif test $ac_header; then
19170 ac_cache=$ac_item
19171 else
19172 ac_header=$ac_item
19173 fi
19174 done
19175 ac_func=
19176 for ac_item in $ac_func_cxx_list
19177 do
19178 if test $ac_func; then
19179 ac_fn_cxx_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
19180 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
19181 echo "#define $ac_item 1" >> confdefs.h
19182 fi
19183 ac_func=
19184 else
19185 ac_func=$ac_item
19186 fi
19187 done
19188
19189
19190
19191 if test "x$ac_cv_func_fork" = xyes; then
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19193 printf %s "checking for working fork... " >&6; }
19194 if test ${ac_cv_func_fork_works+y}
19195 then :
19196 printf %s "(cached) " >&6
19197 else $as_nop
19198 if test "$cross_compiling" = yes
19199 then :
19200 ac_cv_func_fork_works=cross
19201 else $as_nop
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19204 $ac_includes_default
19205 int
19206 main (void)
19207 {
19208
19209 /* By Ruediger Kuhlmann. */
19210 return fork () < 0;
19211
19212 ;
19213 return 0;
19214 }
19215 _ACEOF
19216 if ac_fn_cxx_try_run "$LINENO"
19217 then :
19218 ac_cv_func_fork_works=yes
19219 else $as_nop
19220 ac_cv_func_fork_works=no
19221 fi
19222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19223 conftest.$ac_objext conftest.beam conftest.$ac_ext
19224 fi
19225
19226 fi
19227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19228 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
19229
19230 else
19231 ac_cv_func_fork_works=$ac_cv_func_fork
19232 fi
19233 if test "x$ac_cv_func_fork_works" = xcross; then
19234 case $host in
19235 *-*-amigaos* | *-*-msdosdjgpp*)
19236 # Override, as these systems have only a dummy fork() stub
19237 ac_cv_func_fork_works=no
19238 ;;
19239 *)
19240 ac_cv_func_fork_works=yes
19241 ;;
19242 esac
19243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19244 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19245 fi
19246 ac_cv_func_vfork_works=$ac_cv_func_vfork
19247 if test "x$ac_cv_func_vfork" = xyes; then
19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19249 printf %s "checking for working vfork... " >&6; }
19250 if test ${ac_cv_func_vfork_works+y}
19251 then :
19252 printf %s "(cached) " >&6
19253 else $as_nop
19254 if test "$cross_compiling" = yes
19255 then :
19256 ac_cv_func_vfork_works=cross
19257 else $as_nop
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19260 /* Thanks to Paul Eggert for this test. */
19261 $ac_includes_default
19262 #include <signal.h>
19263 #include <sys/wait.h>
19264 #ifdef HAVE_VFORK_H
19265 # include <vfork.h>
19266 #endif
19267
19268 static void
19269 do_nothing (int sig)
19270 {
19271 (void) sig;
19272 }
19273
19274 /* On some sparc systems, changes by the child to local and incoming
19275 argument registers are propagated back to the parent. The compiler
19276 is told about this with #include <vfork.h>, but some compilers
19277 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19278 static variable whose address is put into a register that is
19279 clobbered by the vfork. */
19280 static void
19281 sparc_address_test (int arg)
19282 {
19283 static pid_t child;
19284 if (!child) {
19285 child = vfork ();
19286 if (child < 0) {
19287 perror ("vfork");
19288 _exit(2);
19289 }
19290 if (!child) {
19291 arg = getpid();
19292 write(-1, "", 0);
19293 _exit (arg);
19294 }
19295 }
19296 }
19297
19298 int
19299 main (void)
19300 {
19301 pid_t parent = getpid ();
19302 pid_t child;
19303
19304 sparc_address_test (0);
19305
19306 /* On Solaris 2.4, changes by the child to the signal handler
19307 also munge signal handlers in the parent. To detect this,
19308 start by putting the parent's handler in a known state. */
19309 signal (SIGTERM, SIG_DFL);
19310
19311 child = vfork ();
19312
19313 if (child == 0) {
19314 /* Here is another test for sparc vfork register problems. This
19315 test uses lots of local variables, at least as many local
19316 variables as main has allocated so far including compiler
19317 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19318 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19319 reuse the register of parent for one of the local variables,
19320 since it will think that parent can't possibly be used any more
19321 in this routine. Assigning to the local variable will thus
19322 munge parent in the parent process. */
19323 pid_t
19324 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19325 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19326 /* Convince the compiler that p..p7 are live; otherwise, it might
19327 use the same hardware register for all 8 local variables. */
19328 if (p != p1 || p != p2 || p != p3 || p != p4
19329 || p != p5 || p != p6 || p != p7)
19330 _exit(1);
19331
19332 /* Alter the child's signal handler. */
19333 if (signal (SIGTERM, do_nothing) != SIG_DFL)
19334 _exit(1);
19335
19336 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19337 from child file descriptors. If the child closes a descriptor
19338 before it execs or exits, this munges the parent's descriptor
19339 as well. Test for this by closing stdout in the child. */
19340 _exit(close(fileno(stdout)) != 0);
19341 } else {
19342 int status;
19343 struct stat st;
19344
19345 while (wait(&status) != child)
19346 ;
19347 return (
19348 /* Was there some problem with vforking? */
19349 child < 0
19350
19351 /* Did the child munge the parent's signal handler? */
19352 || signal (SIGTERM, SIG_DFL) != SIG_DFL
19353
19354 /* Did the child fail? (This shouldn't happen.) */
19355 || status
19356
19357 /* Did the vfork/compiler bug occur? */
19358 || parent != getpid()
19359
19360 /* Did the file descriptor bug occur? */
19361 || fstat(fileno(stdout), &st) != 0
19362 );
19363 }
19364 }
19365 _ACEOF
19366 if ac_fn_cxx_try_run "$LINENO"
19367 then :
19368 ac_cv_func_vfork_works=yes
19369 else $as_nop
19370 ac_cv_func_vfork_works=no
19371 fi
19372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19373 conftest.$ac_objext conftest.beam conftest.$ac_ext
19374 fi
19375
19376 fi
19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19378 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
19379
19380 fi;
19381 if test "x$ac_cv_func_fork_works" = xcross; then
19382 ac_cv_func_vfork_works=$ac_cv_func_vfork
19383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19384 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19385 fi
19386
19387 if test "x$ac_cv_func_vfork_works" = xyes; then
19388
19389 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19390
19391 else
19392
19393 printf "%s\n" "#define vfork fork" >>confdefs.h
19394
19395 fi
19396 if test "x$ac_cv_func_fork_works" = xyes; then
19397
19398 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
19399
19400 fi
19401
19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19403 printf %s "checking for GNU libc compatible malloc... " >&6; }
19404 if test ${ac_cv_func_malloc_0_nonnull+y}
19405 then :
19406 printf %s "(cached) " >&6
19407 else $as_nop
19408 if test "$cross_compiling" = yes
19409 then :
19410 case "$host_os" in # ((
19411 # Guess yes on platforms where we know the result.
19412 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
19413 | hpux* | solaris* | cygwin* | mingw* | msys* )
19414 ac_cv_func_malloc_0_nonnull=yes ;;
19415 # If we don't know, assume the worst.
19416 *) ac_cv_func_malloc_0_nonnull=no ;;
19417 esac
19418 else $as_nop
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421 #include <stdlib.h>
19422
19423 int
19424 main (void)
19425 {
19426 void *p = malloc (0);
19427 int result = !p;
19428 free (p);
19429 return result;
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 if ac_fn_cxx_try_run "$LINENO"
19435 then :
19436 ac_cv_func_malloc_0_nonnull=yes
19437 else $as_nop
19438 ac_cv_func_malloc_0_nonnull=no
19439 fi
19440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19441 conftest.$ac_objext conftest.beam conftest.$ac_ext
19442 fi
19443
19444 fi
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19446 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
19447 if test $ac_cv_func_malloc_0_nonnull = yes
19448 then :
19449
19450 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
19451
19452 else $as_nop
19453 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
19454
19455 case " $LIBOBJS " in
19456 *" malloc.$ac_objext "* ) ;;
19457 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
19458 ;;
19459 esac
19460
19461
19462 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
19463
19464 fi
19465
19466
19467
19468
19469
19470
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19472 printf %s "checking for working mktime... " >&6; }
19473 if test ${ac_cv_func_working_mktime+y}
19474 then :
19475 printf %s "(cached) " >&6
19476 else $as_nop
19477 if test "$cross_compiling" = yes
19478 then :
19479 ac_cv_func_working_mktime=no
19480 else $as_nop
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 /* Test program from Paul Eggert and Tony Leneis. */
19484 #include <time.h>
19485 #ifdef HAVE_SYS_TIME_H
19486 # include <sys/time.h>
19487 #endif
19488
19489 #include <limits.h>
19490 #include <stdlib.h>
19491
19492 #ifdef HAVE_UNISTD_H
19493 # include <unistd.h>
19494 #endif
19495
19496 #ifndef HAVE_ALARM
19497 # define alarm(X) /* empty */
19498 #endif
19499
19500 /* Work around redefinition to rpl_putenv by other config tests. */
19501 #undef putenv
19502
19503 static time_t time_t_max;
19504 static time_t time_t_min;
19505
19506 /* Values we'll use to set the TZ environment variable. */
19507 static const char *tz_strings[] = {
19508 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
19509 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19510 };
19511 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19512
19513 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19514 Based on a problem report from Andreas Jaeger. */
19515 static int
19516 spring_forward_gap ()
19517 {
19518 /* glibc (up to about 1998-10-07) failed this test. */
19519 struct tm tm;
19520
19521 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19522 instead of "TZ=America/Vancouver" in order to detect the bug even
19523 on systems that don't support the Olson extension, or don't have the
19524 full zoneinfo tables installed. */
19525 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19526
19527 tm.tm_year = 98;
19528 tm.tm_mon = 3;
19529 tm.tm_mday = 5;
19530 tm.tm_hour = 2;
19531 tm.tm_min = 0;
19532 tm.tm_sec = 0;
19533 tm.tm_isdst = -1;
19534 return mktime (&tm) != (time_t) -1;
19535 }
19536
19537 static int
19538 mktime_test1 (time_t now)
19539 {
19540 struct tm *lt;
19541 return ! (lt = localtime (&now)) || mktime (lt) == now;
19542 }
19543
19544 static int
19545 mktime_test (time_t now)
19546 {
19547 return (mktime_test1 (now)
19548 && mktime_test1 ((time_t) (time_t_max - now))
19549 && mktime_test1 ((time_t) (time_t_min + now)));
19550 }
19551
19552 static int
19553 irix_6_4_bug ()
19554 {
19555 /* Based on code from Ariel Faigon. */
19556 struct tm tm;
19557 tm.tm_year = 96;
19558 tm.tm_mon = 3;
19559 tm.tm_mday = 0;
19560 tm.tm_hour = 0;
19561 tm.tm_min = 0;
19562 tm.tm_sec = 0;
19563 tm.tm_isdst = -1;
19564 mktime (&tm);
19565 return tm.tm_mon == 2 && tm.tm_mday == 31;
19566 }
19567
19568 static int
19569 bigtime_test (int j)
19570 {
19571 struct tm tm;
19572 time_t now;
19573 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19574 now = mktime (&tm);
19575 if (now != (time_t) -1)
19576 {
19577 struct tm *lt = localtime (&now);
19578 if (! (lt
19579 && lt->tm_year == tm.tm_year
19580 && lt->tm_mon == tm.tm_mon
19581 && lt->tm_mday == tm.tm_mday
19582 && lt->tm_hour == tm.tm_hour
19583 && lt->tm_min == tm.tm_min
19584 && lt->tm_sec == tm.tm_sec
19585 && lt->tm_yday == tm.tm_yday
19586 && lt->tm_wday == tm.tm_wday
19587 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19588 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19589 return 0;
19590 }
19591 return 1;
19592 }
19593
19594 static int
19595 year_2050_test ()
19596 {
19597 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19598 ignoring leap seconds. */
19599 unsigned long int answer = 2527315200UL;
19600
19601 struct tm tm;
19602 time_t t;
19603 tm.tm_year = 2050 - 1900;
19604 tm.tm_mon = 2 - 1;
19605 tm.tm_mday = 1;
19606 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19607 tm.tm_isdst = -1;
19608
19609 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19610 instead of "TZ=America/Vancouver" in order to detect the bug even
19611 on systems that don't support the Olson extension, or don't have the
19612 full zoneinfo tables installed. */
19613 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
19614
19615 t = mktime (&tm);
19616
19617 /* Check that the result is either a failure, or close enough
19618 to the correct answer that we can assume the discrepancy is
19619 due to leap seconds. */
19620 return (t == (time_t) -1
19621 || (0 < t && answer - 120 <= t && t <= answer + 120));
19622 }
19623
19624 int
19625 main (void)
19626 {
19627 time_t t, delta;
19628 int i, j;
19629
19630 /* This test makes some buggy mktime implementations loop.
19631 Give up after 60 seconds; a mktime slower than that
19632 isn't worth using anyway. */
19633 alarm (60);
19634
19635 for (;;)
19636 {
19637 t = (time_t_max << 1) + 1;
19638 if (t <= time_t_max)
19639 break;
19640 time_t_max = t;
19641 }
19642 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
19643
19644 delta = time_t_max / 997; /* a suitable prime number */
19645 for (i = 0; i < N_STRINGS; i++)
19646 {
19647 if (tz_strings[i])
19648 putenv ((char*) tz_strings[i]);
19649
19650 for (t = 0; t <= time_t_max - delta; t += delta)
19651 if (! mktime_test (t))
19652 return 1;
19653 if (! (mktime_test ((time_t) 1)
19654 && mktime_test ((time_t) (60 * 60))
19655 && mktime_test ((time_t) (60 * 60 * 24))))
19656 return 1;
19657
19658 for (j = 1; ; j <<= 1)
19659 if (! bigtime_test (j))
19660 return 1;
19661 else if (INT_MAX / 2 < j)
19662 break;
19663 if (! bigtime_test (INT_MAX))
19664 return 1;
19665 }
19666 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
19667 }
19668 _ACEOF
19669 if ac_fn_cxx_try_run "$LINENO"
19670 then :
19671 ac_cv_func_working_mktime=yes
19672 else $as_nop
19673 ac_cv_func_working_mktime=no
19674 fi
19675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19676 conftest.$ac_objext conftest.beam conftest.$ac_ext
19677 fi
19678
19679 fi
19680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
19681 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
19682 if test $ac_cv_func_working_mktime = no; then
19683 case " $LIBOBJS " in
19684 *" mktime.$ac_objext "* ) ;;
19685 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
19686 ;;
19687 esac
19688
19689 fi
19690
19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
19692 printf %s "checking for working strtod... " >&6; }
19693 if test ${ac_cv_func_strtod+y}
19694 then :
19695 printf %s "(cached) " >&6
19696 else $as_nop
19697 if test "$cross_compiling" = yes
19698 then :
19699 ac_cv_func_strtod=no
19700 else $as_nop
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702 /* end confdefs.h. */
19703
19704 $ac_includes_default
19705 #ifndef strtod
19706 double strtod ();
19707 #endif
19708 int
19709 main (void)
19710 {
19711 {
19712 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
19713 char *string = " +69";
19714 char *term;
19715 double value;
19716 value = strtod (string, &term);
19717 if (value != 69 || term != (string + 4))
19718 return 1;
19719 }
19720
19721 {
19722 /* Under Solaris 2.4, strtod returns the wrong value for the
19723 terminating character under some conditions. */
19724 char *string = "NaN";
19725 char *term;
19726 strtod (string, &term);
19727 if (term != string && *(term - 1) == 0)
19728 return 1;
19729 }
19730 return 0;
19731 }
19732
19733 _ACEOF
19734 if ac_fn_cxx_try_run "$LINENO"
19735 then :
19736 ac_cv_func_strtod=yes
19737 else $as_nop
19738 ac_cv_func_strtod=no
19739 fi
19740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19741 conftest.$ac_objext conftest.beam conftest.$ac_ext
19742 fi
19743
19744 fi
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
19746 printf "%s\n" "$ac_cv_func_strtod" >&6; }
19747 if test $ac_cv_func_strtod = no; then
19748 case " $LIBOBJS " in
19749 *" strtod.$ac_objext "* ) ;;
19750 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
19751 ;;
19752 esac
19753
19754 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
19755 if test "x$ac_cv_func_pow" = xyes
19756 then :
19757
19758 fi
19759
19760 if test $ac_cv_func_pow = no; then
19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
19762 printf %s "checking for pow in -lm... " >&6; }
19763 if test ${ac_cv_lib_m_pow+y}
19764 then :
19765 printf %s "(cached) " >&6
19766 else $as_nop
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-lm $LIBS"
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771
19772 namespace conftest {
19773 extern "C" int pow ();
19774 }
19775 int
19776 main (void)
19777 {
19778 return conftest::pow ();
19779 ;
19780 return 0;
19781 }
19782 _ACEOF
19783 if ac_fn_cxx_try_link "$LINENO"
19784 then :
19785 ac_cv_lib_m_pow=yes
19786 else $as_nop
19787 ac_cv_lib_m_pow=no
19788 fi
19789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19790 conftest$ac_exeext conftest.$ac_ext
19791 LIBS=$ac_check_lib_save_LIBS
19792 fi
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
19794 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
19795 if test "x$ac_cv_lib_m_pow" = xyes
19796 then :
19797 POW_LIB=-lm
19798 else $as_nop
19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
19800 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19801 fi
19802
19803 fi
19804
19805 fi
19806
19807
19808
19809
19810
19811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19812 printf %s "checking for working mmap... " >&6; }
19813 if test ${ac_cv_func_mmap_fixed_mapped+y}
19814 then :
19815 printf %s "(cached) " >&6
19816 else $as_nop
19817 if test "$cross_compiling" = yes
19818 then :
19819 case "$host_os" in # ((
19820 # Guess yes on platforms where we know the result.
19821 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
19822 # If we don't know, assume the worst.
19823 *) ac_cv_func_mmap_fixed_mapped=no ;;
19824 esac
19825 else $as_nop
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19828 $ac_includes_default
19829 /* malloc might have been renamed as rpl_malloc. */
19830 #undef malloc
19831
19832 /* Thanks to Mike Haertel and Jim Avera for this test.
19833 Here is a matrix of mmap possibilities:
19834 mmap private not fixed
19835 mmap private fixed at somewhere currently unmapped
19836 mmap private fixed at somewhere already mapped
19837 mmap shared not fixed
19838 mmap shared fixed at somewhere currently unmapped
19839 mmap shared fixed at somewhere already mapped
19840 For private mappings, we should verify that changes cannot be read()
19841 back from the file, nor mmap's back from the file at a different
19842 address. (There have been systems where private was not correctly
19843 implemented like the infamous i386 svr4.0, and systems where the
19844 VM page cache was not coherent with the file system buffer cache
19845 like early versions of FreeBSD and possibly contemporary NetBSD.)
19846 For shared mappings, we should conversely verify that changes get
19847 propagated back to all the places they're supposed to be.
19848
19849 Grep wants private fixed already mapped.
19850 The main things grep needs to know about mmap are:
19851 * does it exist and is it safe to write into the mmap'd area
19852 * how to use it (BSD variants) */
19853
19854 #include <fcntl.h>
19855 #include <sys/mman.h>
19856
19857 /* This mess was copied from the GNU getpagesize.h. */
19858 #ifndef HAVE_GETPAGESIZE
19859 # ifdef _SC_PAGESIZE
19860 # define getpagesize() sysconf(_SC_PAGESIZE)
19861 # else /* no _SC_PAGESIZE */
19862 # ifdef HAVE_SYS_PARAM_H
19863 # include <sys/param.h>
19864 # ifdef EXEC_PAGESIZE
19865 # define getpagesize() EXEC_PAGESIZE
19866 # else /* no EXEC_PAGESIZE */
19867 # ifdef NBPG
19868 # define getpagesize() NBPG * CLSIZE
19869 # ifndef CLSIZE
19870 # define CLSIZE 1
19871 # endif /* no CLSIZE */
19872 # else /* no NBPG */
19873 # ifdef NBPC
19874 # define getpagesize() NBPC
19875 # else /* no NBPC */
19876 # ifdef PAGESIZE
19877 # define getpagesize() PAGESIZE
19878 # endif /* PAGESIZE */
19879 # endif /* no NBPC */
19880 # endif /* no NBPG */
19881 # endif /* no EXEC_PAGESIZE */
19882 # else /* no HAVE_SYS_PARAM_H */
19883 # define getpagesize() 8192 /* punt totally */
19884 # endif /* no HAVE_SYS_PARAM_H */
19885 # endif /* no _SC_PAGESIZE */
19886
19887 #endif /* no HAVE_GETPAGESIZE */
19888
19889 int
19890 main (void)
19891 {
19892 char *data, *data2, *data3;
19893 const char *cdata2;
19894 int i, pagesize;
19895 int fd, fd2;
19896
19897 pagesize = getpagesize ();
19898
19899 /* First, make a file with some known garbage in it. */
19900 data = (char *) malloc (pagesize);
19901 if (!data)
19902 return 1;
19903 for (i = 0; i < pagesize; ++i)
19904 *(data + i) = rand ();
19905 umask (0);
19906 fd = creat ("conftest.mmap", 0600);
19907 if (fd < 0)
19908 return 2;
19909 if (write (fd, data, pagesize) != pagesize)
19910 return 3;
19911 close (fd);
19912
19913 /* Next, check that the tail of a page is zero-filled. File must have
19914 non-zero length, otherwise we risk SIGBUS for entire page. */
19915 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19916 if (fd2 < 0)
19917 return 4;
19918 cdata2 = "";
19919 if (write (fd2, cdata2, 1) != 1)
19920 return 5;
19921 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19922 if (data2 == MAP_FAILED)
19923 return 6;
19924 for (i = 0; i < pagesize; ++i)
19925 if (*(data2 + i))
19926 return 7;
19927 close (fd2);
19928 if (munmap (data2, pagesize))
19929 return 8;
19930
19931 /* Next, try to mmap the file at a fixed address which already has
19932 something else allocated at it. If we can, also make sure that
19933 we see the same garbage. */
19934 fd = open ("conftest.mmap", O_RDWR);
19935 if (fd < 0)
19936 return 9;
19937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19939 return 10;
19940 for (i = 0; i < pagesize; ++i)
19941 if (*(data + i) != *(data2 + i))
19942 return 11;
19943
19944 /* Finally, make sure that changes to the mapped area do not
19945 percolate back to the file as seen by read(). (This is a bug on
19946 some variants of i386 svr4.0.) */
19947 for (i = 0; i < pagesize; ++i)
19948 *(data2 + i) = *(data2 + i) + 1;
19949 data3 = (char *) malloc (pagesize);
19950 if (!data3)
19951 return 12;
19952 if (read (fd, data3, pagesize) != pagesize)
19953 return 13;
19954 for (i = 0; i < pagesize; ++i)
19955 if (*(data + i) != *(data3 + i))
19956 return 14;
19957 close (fd);
19958 free (data);
19959 free (data3);
19960 return 0;
19961 }
19962 _ACEOF
19963 if ac_fn_cxx_try_run "$LINENO"
19964 then :
19965 ac_cv_func_mmap_fixed_mapped=yes
19966 else $as_nop
19967 ac_cv_func_mmap_fixed_mapped=no
19968 fi
19969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19970 conftest.$ac_objext conftest.beam conftest.$ac_ext
19971 fi
19972
19973 fi
19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19975 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
19976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19977
19978 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
19979
19980 fi
19981 rm -f conftest.mmap conftest.txt
19982
19983 apl_missing_functions=0
19984
19985 for ac_func in dup2 floor getcwd gethostbyname gettimeofday memset mkdir modf munmap pow realpath rint rmdir select setenv setlocale socket sqrt strcasecmp strchr strdup strncasecmp strndup strerror strrchr strstr strtol uname
19986 do :
19987 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19988 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
19989 if eval test \"x\$"$as_ac_var"\" = x"yes"
19990 then :
19991 cat >>confdefs.h <<_ACEOF
19992 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19993 _ACEOF
19994
19995 else $as_nop
19996 apl_missing_functions=$(($apl_missing_functions + 1))
19997 fi
19998
19999 done
20000
20001 # keep libraries in inverse-alphabetic order so ./configure prints them
20002 # in alphabetic order
20003 #
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tparm in -ltinfo" >&5
20005 printf %s "checking for tparm in -ltinfo... " >&6; }
20006 if test ${ac_cv_lib_tinfo_tparm+y}
20007 then :
20008 printf %s "(cached) " >&6
20009 else $as_nop
20010 ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-ltinfo $LIBS"
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20014
20015 namespace conftest {
20016 extern "C" int tparm ();
20017 }
20018 int
20019 main (void)
20020 {
20021 return conftest::tparm ();
20022 ;
20023 return 0;
20024 }
20025 _ACEOF
20026 if ac_fn_cxx_try_link "$LINENO"
20027 then :
20028 ac_cv_lib_tinfo_tparm=yes
20029 else $as_nop
20030 ac_cv_lib_tinfo_tparm=no
20031 fi
20032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS=$ac_check_lib_save_LIBS
20035 fi
20036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tparm" >&5
20037 printf "%s\n" "$ac_cv_lib_tinfo_tparm" >&6; }
20038 if test "x$ac_cv_lib_tinfo_tparm" = xyes
20039 then :
20040 printf "%s\n" "#define HAVE_LIBTINFO 1" >>confdefs.h
20041
20042 LIBS="-ltinfo $LIBS"
20043
20044 fi
20045
20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
20047 printf %s "checking for socket in -lsocket... " >&6; }
20048 if test ${ac_cv_lib_socket_socket+y}
20049 then :
20050 printf %s "(cached) " >&6
20051 else $as_nop
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lsocket $LIBS"
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20056
20057 namespace conftest {
20058 extern "C" int socket ();
20059 }
20060 int
20061 main (void)
20062 {
20063 return conftest::socket ();
20064 ;
20065 return 0;
20066 }
20067 _ACEOF
20068 if ac_fn_cxx_try_link "$LINENO"
20069 then :
20070 ac_cv_lib_socket_socket=yes
20071 else $as_nop
20072 ac_cv_lib_socket_socket=no
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20077 fi
20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
20079 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
20080 if test "x$ac_cv_lib_socket_socket" = xyes
20081 then :
20082 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
20083
20084 LIBS="-lsocket $LIBS"
20085
20086 fi
20087 # for Solaris
20088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
20089 printf %s "checking for sem_init in -lpthread... " >&6; }
20090 if test ${ac_cv_lib_pthread_sem_init+y}
20091 then :
20092 printf %s "(cached) " >&6
20093 else $as_nop
20094 ac_check_lib_save_LIBS=$LIBS
20095 LIBS="-lpthread $LIBS"
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098
20099 namespace conftest {
20100 extern "C" int sem_init ();
20101 }
20102 int
20103 main (void)
20104 {
20105 return conftest::sem_init ();
20106 ;
20107 return 0;
20108 }
20109 _ACEOF
20110 if ac_fn_cxx_try_link "$LINENO"
20111 then :
20112 ac_cv_lib_pthread_sem_init=yes
20113 else $as_nop
20114 ac_cv_lib_pthread_sem_init=no
20115 fi
20116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20117 conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20119 fi
20120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
20121 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
20122 if test "x$ac_cv_lib_pthread_sem_init" = xyes
20123 then :
20124 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
20125
20126 LIBS="-lpthread $LIBS"
20127
20128 fi
20129
20130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yp_all in -lnsl" >&5
20131 printf %s "checking for yp_all in -lnsl... " >&6; }
20132 if test ${ac_cv_lib_nsl_yp_all+y}
20133 then :
20134 printf %s "(cached) " >&6
20135 else $as_nop
20136 ac_check_lib_save_LIBS=$LIBS
20137 LIBS="-lnsl $LIBS"
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20140
20141 namespace conftest {
20142 extern "C" int yp_all ();
20143 }
20144 int
20145 main (void)
20146 {
20147 return conftest::yp_all ();
20148 ;
20149 return 0;
20150 }
20151 _ACEOF
20152 if ac_fn_cxx_try_link "$LINENO"
20153 then :
20154 ac_cv_lib_nsl_yp_all=yes
20155 else $as_nop
20156 ac_cv_lib_nsl_yp_all=no
20157 fi
20158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20159 conftest$ac_exeext conftest.$ac_ext
20160 LIBS=$ac_check_lib_save_LIBS
20161 fi
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_all" >&5
20163 printf "%s\n" "$ac_cv_lib_nsl_yp_all" >&6; }
20164 if test "x$ac_cv_lib_nsl_yp_all" = xyes
20165 then :
20166 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
20167
20168 LIBS="-lnsl $LIBS"
20169
20170 fi
20171 # for Solaris
20172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5
20173 printf %s "checking for setupterm in -lcurses... " >&6; }
20174 if test ${ac_cv_lib_curses_setupterm+y}
20175 then :
20176 printf %s "(cached) " >&6
20177 else $as_nop
20178 ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-lcurses $LIBS"
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h. */
20182
20183 namespace conftest {
20184 extern "C" int setupterm ();
20185 }
20186 int
20187 main (void)
20188 {
20189 return conftest::setupterm ();
20190 ;
20191 return 0;
20192 }
20193 _ACEOF
20194 if ac_fn_cxx_try_link "$LINENO"
20195 then :
20196 ac_cv_lib_curses_setupterm=yes
20197 else $as_nop
20198 ac_cv_lib_curses_setupterm=no
20199 fi
20200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20203 fi
20204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5
20205 printf "%s\n" "$ac_cv_lib_curses_setupterm" >&6; }
20206 if test "x$ac_cv_lib_curses_setupterm" = xyes
20207 then :
20208 printf "%s\n" "#define HAVE_LIBCURSES 1" >>confdefs.h
20209
20210 LIBS="-lcurses $LIBS"
20211
20212 fi
20213
20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5
20215 printf %s "checking for setupterm in -lncurses... " >&6; }
20216 if test ${ac_cv_lib_ncurses_setupterm+y}
20217 then :
20218 printf %s "(cached) " >&6
20219 else $as_nop
20220 ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-lncurses $LIBS"
20222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223 /* end confdefs.h. */
20224
20225 namespace conftest {
20226 extern "C" int setupterm ();
20227 }
20228 int
20229 main (void)
20230 {
20231 return conftest::setupterm ();
20232 ;
20233 return 0;
20234 }
20235 _ACEOF
20236 if ac_fn_cxx_try_link "$LINENO"
20237 then :
20238 ac_cv_lib_ncurses_setupterm=yes
20239 else $as_nop
20240 ac_cv_lib_ncurses_setupterm=no
20241 fi
20242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20243 conftest$ac_exeext conftest.$ac_ext
20244 LIBS=$ac_check_lib_save_LIBS
20245 fi
20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5
20247 printf "%s\n" "$ac_cv_lib_ncurses_setupterm" >&6; }
20248 if test "x$ac_cv_lib_ncurses_setupterm" = xyes
20249 then :
20250 printf "%s\n" "#define HAVE_LIBNCURSES 1" >>confdefs.h
20251
20252 LIBS="-lncurses $LIBS"
20253
20254 fi
20255
20256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
20257 printf %s "checking for acosh in -lm... " >&6; }
20258 if test ${ac_cv_lib_m_acosh+y}
20259 then :
20260 printf %s "(cached) " >&6
20261 else $as_nop
20262 ac_check_lib_save_LIBS=$LIBS
20263 LIBS="-lm $LIBS"
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266
20267 namespace conftest {
20268 extern "C" int acosh ();
20269 }
20270 int
20271 main (void)
20272 {
20273 return conftest::acosh ();
20274 ;
20275 return 0;
20276 }
20277 _ACEOF
20278 if ac_fn_cxx_try_link "$LINENO"
20279 then :
20280 ac_cv_lib_m_acosh=yes
20281 else $as_nop
20282 ac_cv_lib_m_acosh=no
20283 fi
20284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
20289 printf "%s\n" "$ac_cv_lib_m_acosh" >&6; }
20290 if test "x$ac_cv_lib_m_acosh" = xyes
20291 then :
20292 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
20293
20294 LIBS="-lm $LIBS"
20295
20296 fi
20297
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20299 printf %s "checking for dlopen in -ldl... " >&6; }
20300 if test ${ac_cv_lib_dl_dlopen+y}
20301 then :
20302 printf %s "(cached) " >&6
20303 else $as_nop
20304 ac_check_lib_save_LIBS=$LIBS
20305 LIBS="-ldl $LIBS"
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20308
20309 namespace conftest {
20310 extern "C" int dlopen ();
20311 }
20312 int
20313 main (void)
20314 {
20315 return conftest::dlopen ();
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 if ac_fn_cxx_try_link "$LINENO"
20321 then :
20322 ac_cv_lib_dl_dlopen=yes
20323 else $as_nop
20324 ac_cv_lib_dl_dlopen=no
20325 fi
20326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20327 conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20329 fi
20330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20331 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20332 if test "x$ac_cv_lib_dl_dlopen" = xyes
20333 then :
20334 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
20335
20336 LIBS="-ldl $LIBS"
20337
20338 fi
20339
20340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initstate_r in -lc" >&5
20341 printf %s "checking for initstate_r in -lc... " >&6; }
20342 if test ${ac_cv_lib_c_initstate_r+y}
20343 then :
20344 printf %s "(cached) " >&6
20345 else $as_nop
20346 ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lc $LIBS"
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20350
20351 namespace conftest {
20352 extern "C" int initstate_r ();
20353 }
20354 int
20355 main (void)
20356 {
20357 return conftest::initstate_r ();
20358 ;
20359 return 0;
20360 }
20361 _ACEOF
20362 if ac_fn_cxx_try_link "$LINENO"
20363 then :
20364 ac_cv_lib_c_initstate_r=yes
20365 else $as_nop
20366 ac_cv_lib_c_initstate_r=no
20367 fi
20368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20369 conftest$ac_exeext conftest.$ac_ext
20370 LIBS=$ac_check_lib_save_LIBS
20371 fi
20372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_initstate_r" >&5
20373 printf "%s\n" "$ac_cv_lib_c_initstate_r" >&6; }
20374 if test "x$ac_cv_lib_c_initstate_r" = xyes
20375 then :
20376 printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
20377
20378 LIBS="-lc $LIBS"
20379
20380 fi
20381
20382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomicity" >&5
20383 printf %s "checking for __atomic_fetch_add_4 in -latomicity... " >&6; }
20384 if test ${ac_cv_lib_atomicity___atomic_fetch_add_4+y}
20385 then :
20386 printf %s "(cached) " >&6
20387 else $as_nop
20388 ac_check_lib_save_LIBS=$LIBS
20389 LIBS="-latomicity $LIBS"
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392
20393 namespace conftest {
20394 extern "C" int __atomic_fetch_add_4 ();
20395 }
20396 int
20397 main (void)
20398 {
20399 return conftest::__atomic_fetch_add_4 ();
20400 ;
20401 return 0;
20402 }
20403 _ACEOF
20404 if ac_fn_cxx_try_link "$LINENO"
20405 then :
20406 ac_cv_lib_atomicity___atomic_fetch_add_4=yes
20407 else $as_nop
20408 ac_cv_lib_atomicity___atomic_fetch_add_4=no
20409 fi
20410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20413 fi
20414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomicity___atomic_fetch_add_4" >&5
20415 printf "%s\n" "$ac_cv_lib_atomicity___atomic_fetch_add_4" >&6; }
20416 if test "x$ac_cv_lib_atomicity___atomic_fetch_add_4" = xyes
20417 then :
20418 printf "%s\n" "#define HAVE_LIBATOMICITY 1" >>confdefs.h
20419
20420 LIBS="-latomicity $LIBS"
20421
20422 fi
20423
20424
20425 ac_fn_cxx_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20426 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
20427 then :
20428
20429 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
20430
20431
20432 printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h
20433
20434 else $as_nop
20435 case " $LIBOBJS " in
20436 *" fileblocks.$ac_objext "* ) ;;
20437 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20438 ;;
20439 esac
20440
20441 fi
20442
20443
20444
20445 { printf "%s\n" ; printf "%s\n" " *** checks for optional (not strictly required) libraries... ***"; printf "%s\n" ; }
20446
20447
20448 # wrap multiple tests into a single dash function from which we may
20449 # return prematurely (which m4 can't) if a sub-test fails...
20450 #
20451 # The total result of this script is apl_X11 which tells if X11 and XCB
20452 # are available or not.
20453 #
20454 # Unfortunately apl_X11 was kind of a misnomer and we therefore# migrate it
20455 # to apl_XCB instead.
20456 #
20457 dash_test_X11()
20458 { {
20459 apl_X11=no # old name
20460 apl_XCB=no # new name
20461
20462 local have_x # 'yes', 'no', or 'disabled' by AC_PATH_X()
20463 local x_includes x_libraries # also set by AC_PATH_X(), normally empty
20464
20465 {
20466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
20467 printf %s "checking for X... " >&6; }
20468
20469
20470 # Check whether --with-x was given.
20471 if test ${with_x+y}
20472 then :
20473 withval=$with_x;
20474 fi
20475
20476 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20477 if test "x$with_x" = xno; then
20478 # The user explicitly disabled X.
20479 have_x=disabled
20480 else
20481 case $x_includes,$x_libraries in #(
20482 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
20483 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
20484 then :
20485 printf %s "(cached) " >&6
20486 else $as_nop
20487 # One or both of the vars are not set, and there is no cached value.
20488 ac_x_includes=no
20489 ac_x_libraries=no
20490 # Do we need to do anything special at all?
20491 ac_save_LIBS=$LIBS
20492 LIBS="-lX11 $LIBS"
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20495 #include <X11/Xlib.h>
20496 int
20497 main (void)
20498 {
20499 XrmInitialize ()
20500 ;
20501 return 0;
20502 }
20503 _ACEOF
20504 if ac_fn_cxx_try_link "$LINENO"
20505 then :
20506 # We can compile and link X programs with no special options.
20507 ac_x_includes=
20508 ac_x_libraries=
20509 fi
20510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20511 conftest$ac_exeext conftest.$ac_ext
20512 LIBS="$ac_save_LIBS"
20513 # If that didn't work, only try xmkmf and file system searches
20514 # for native compilation.
20515 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
20516 then :
20517 rm -f -r conftest.dir
20518 if mkdir conftest.dir; then
20519 cd conftest.dir
20520 cat >Imakefile <<'_ACEOF'
20521 incroot:
20522 @echo incroot='${INCROOT}'
20523 usrlibdir:
20524 @echo usrlibdir='${USRLIBDIR}'
20525 libdir:
20526 @echo libdir='${LIBDIR}'
20527 _ACEOF
20528 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20529 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20530 for ac_var in incroot usrlibdir libdir; do
20531 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20532 done
20533 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20534 for ac_extension in a so sl dylib la dll; do
20535 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20536 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20537 ac_im_usrlibdir=$ac_im_libdir; break
20538 fi
20539 done
20540 # Screen out bogus values from the imake configuration. They are
20541 # bogus both because they are the default anyway, and because
20542 # using them would break gcc on systems where it needs fixed includes.
20543 case $ac_im_incroot in
20544 /usr/include) ac_x_includes= ;;
20545 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20546 esac
20547 case $ac_im_usrlibdir in
20548 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
20549 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20550 esac
20551 fi
20552 cd ..
20553 rm -f -r conftest.dir
20554 fi
20555
20556 # Standard set of common directories for X headers.
20557 # Check X11 before X11Rn because it is often a symlink to the current release.
20558 ac_x_header_dirs='
20559 /usr/X11/include
20560 /usr/X11R7/include
20561 /usr/X11R6/include
20562 /usr/X11R5/include
20563 /usr/X11R4/include
20564
20565 /usr/include/X11
20566 /usr/include/X11R7
20567 /usr/include/X11R6
20568 /usr/include/X11R5
20569 /usr/include/X11R4
20570
20571 /usr/local/X11/include
20572 /usr/local/X11R7/include
20573 /usr/local/X11R6/include
20574 /usr/local/X11R5/include
20575 /usr/local/X11R4/include
20576
20577 /usr/local/include/X11
20578 /usr/local/include/X11R7
20579 /usr/local/include/X11R6
20580 /usr/local/include/X11R5
20581 /usr/local/include/X11R4
20582
20583 /opt/X11/include
20584
20585 /usr/X386/include
20586 /usr/x386/include
20587 /usr/XFree86/include/X11
20588
20589 /usr/include
20590 /usr/local/include
20591 /usr/unsupported/include
20592 /usr/athena/include
20593 /usr/local/x11r5/include
20594 /usr/lpp/Xamples/include
20595
20596 /usr/openwin/include
20597 /usr/openwin/share/include'
20598
20599 if test "$ac_x_includes" = no; then
20600 # Guess where to find include files, by looking for Xlib.h.
20601 # First, try using that file with no special directory specified.
20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20604 #include <X11/Xlib.h>
20605 _ACEOF
20606 if ac_fn_cxx_try_cpp "$LINENO"
20607 then :
20608 # We can compile using X headers with no special include directory.
20609 ac_x_includes=
20610 else $as_nop
20611 for ac_dir in $ac_x_header_dirs; do
20612 if test -r "$ac_dir/X11/Xlib.h"; then
20613 ac_x_includes=$ac_dir
20614 break
20615 fi
20616 done
20617 fi
20618 rm -f conftest.err conftest.i conftest.$ac_ext
20619 fi # $ac_x_includes = no
20620
20621 if test "$ac_x_libraries" = no; then
20622 # Check for the libraries.
20623 # See if we find them without any special options.
20624 # Don't add to $LIBS permanently.
20625 ac_save_LIBS=$LIBS
20626 LIBS="-lX11 $LIBS"
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h. */
20629 #include <X11/Xlib.h>
20630 int
20631 main (void)
20632 {
20633 XrmInitialize ()
20634 ;
20635 return 0;
20636 }
20637 _ACEOF
20638 if ac_fn_cxx_try_link "$LINENO"
20639 then :
20640 LIBS=$ac_save_LIBS
20641 # We can link X programs with no special library path.
20642 ac_x_libraries=
20643 else $as_nop
20644 LIBS=$ac_save_LIBS
20645 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20646 do
20647 # Don't even attempt the hair of trying to link an X program!
20648 for ac_extension in a so sl dylib la dll; do
20649 if test -r "$ac_dir/libX11.$ac_extension"; then
20650 ac_x_libraries=$ac_dir
20651 break 2
20652 fi
20653 done
20654 done
20655 fi
20656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20657 conftest$ac_exeext conftest.$ac_ext
20658 fi # $ac_x_libraries = no
20659
20660 fi
20661 # Record the results.
20662 case $ac_x_includes,$ac_x_libraries in #(
20663 no,* | *,no | *\'*) :
20664 # Didn't find X, or a directory has "'" in its name.
20665 ac_cv_have_x="have_x=no" ;; #(
20666 *) :
20667 # Record where we found X for the cache.
20668 ac_cv_have_x="have_x=yes\
20669 ac_x_includes='$ac_x_includes'\
20670 ac_x_libraries='$ac_x_libraries'" ;;
20671 esac
20672 fi
20673 ;; #(
20674 *) have_x=yes;;
20675 esac
20676 eval "$ac_cv_have_x"
20677 fi # $with_x != no
20678
20679 if test "$have_x" != yes; then
20680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20681 printf "%s\n" "$have_x" >&6; }
20682 no_x=yes
20683 else
20684 # If each of the values was on the command line, it overrides each guess.
20685 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20686 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20687 # Update the cache value to reflect the command line values.
20688 ac_cv_have_x="have_x=yes\
20689 ac_x_includes='$x_includes'\
20690 ac_x_libraries='$x_libraries'"
20691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20692 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
20693 fi
20694 } ; test "x$have_x" != "xyes" && return
20695
20696 # check for header files (#include'd in Plot_xcb.cc)
20697 for ac_header in xcb/xcb.h X11/Xlib.h X11/Xlib-xcb.h X11/Xutil.h X11/XKBlib.h
20698 do :
20699 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
20700 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20701 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20702 then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
20705 _ACEOF
20706
20707 else $as_nop
20708 return
20709 fi
20710
20711 done
20712
20713 # xcb/xproto.h #include's xcb/xcb.h
20714 ac_fn_cxx_check_header_compile "$LINENO" "xcb/xproto.h" "ac_cv_header_xcb_xproto_h" "#include <xcb/xcb.h>
20715 "
20716 if test "x$ac_cv_header_xcb_xproto_h" = xyes
20717 then :
20718
20719 else $as_nop
20720 return
20721 fi
20722
20723
20724 apl_have_opt_lib=yes
20725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
20726 printf %s "checking for XOpenDisplay in -lX11... " >&6; }
20727 if test ${ac_cv_lib_X11_XOpenDisplay+y}
20728 then :
20729 printf %s "(cached) " >&6
20730 else $as_nop
20731 ac_check_lib_save_LIBS=$LIBS
20732 LIBS="-lX11 $LIBS"
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20735
20736 namespace conftest {
20737 extern "C" int XOpenDisplay ();
20738 }
20739 int
20740 main (void)
20741 {
20742 return conftest::XOpenDisplay ();
20743 ;
20744 return 0;
20745 }
20746 _ACEOF
20747 if ac_fn_cxx_try_link "$LINENO"
20748 then :
20749 ac_cv_lib_X11_XOpenDisplay=yes
20750 else $as_nop
20751 ac_cv_lib_X11_XOpenDisplay=no
20752 fi
20753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20754 conftest$ac_exeext conftest.$ac_ext
20755 LIBS=$ac_check_lib_save_LIBS
20756 fi
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
20758 printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
20759 if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
20760 then :
20761 printf "%s\n" "#define HAVE_LIBX11 1" >>confdefs.h
20762
20763 LIBS="-lX11 $LIBS"
20764
20765 else $as_nop
20766 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
20767 fi
20768 # sets apl_have_opt_lib
20769 test "x$apl_have_opt_lib" = "xno" && return
20770
20771 apl_have_opt_lib=yes
20772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb_connect in -lxcb" >&5
20773 printf %s "checking for xcb_connect in -lxcb... " >&6; }
20774 if test ${ac_cv_lib_xcb_xcb_connect+y}
20775 then :
20776 printf %s "(cached) " >&6
20777 else $as_nop
20778 ac_check_lib_save_LIBS=$LIBS
20779 LIBS="-lxcb $LIBS"
20780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781 /* end confdefs.h. */
20782
20783 namespace conftest {
20784 extern "C" int xcb_connect ();
20785 }
20786 int
20787 main (void)
20788 {
20789 return conftest::xcb_connect ();
20790 ;
20791 return 0;
20792 }
20793 _ACEOF
20794 if ac_fn_cxx_try_link "$LINENO"
20795 then :
20796 ac_cv_lib_xcb_xcb_connect=yes
20797 else $as_nop
20798 ac_cv_lib_xcb_xcb_connect=no
20799 fi
20800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20803 fi
20804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xcb_xcb_connect" >&5
20805 printf "%s\n" "$ac_cv_lib_xcb_xcb_connect" >&6; }
20806 if test "x$ac_cv_lib_xcb_xcb_connect" = xyes
20807 then :
20808 printf "%s\n" "#define HAVE_LIBXCB 1" >>confdefs.h
20809
20810 LIBS="-lxcb $LIBS"
20811
20812 else $as_nop
20813 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
20814 fi
20815 # sets apl_have_opt_lib
20816 test "x$apl_have_opt_lib" = "xno" && return
20817
20818 apl_have_opt_lib=yes
20819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGetXCBConnection in -lX11-xcb" >&5
20820 printf %s "checking for XGetXCBConnection in -lX11-xcb... " >&6; }
20821 if test ${ac_cv_lib_X11_xcb_XGetXCBConnection+y}
20822 then :
20823 printf %s "(cached) " >&6
20824 else $as_nop
20825 ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-lX11-xcb $LIBS"
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20829
20830 namespace conftest {
20831 extern "C" int XGetXCBConnection ();
20832 }
20833 int
20834 main (void)
20835 {
20836 return conftest::XGetXCBConnection ();
20837 ;
20838 return 0;
20839 }
20840 _ACEOF
20841 if ac_fn_cxx_try_link "$LINENO"
20842 then :
20843 ac_cv_lib_X11_xcb_XGetXCBConnection=yes
20844 else $as_nop
20845 ac_cv_lib_X11_xcb_XGetXCBConnection=no
20846 fi
20847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20848 conftest$ac_exeext conftest.$ac_ext
20849 LIBS=$ac_check_lib_save_LIBS
20850 fi
20851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_xcb_XGetXCBConnection" >&5
20852 printf "%s\n" "$ac_cv_lib_X11_xcb_XGetXCBConnection" >&6; }
20853 if test "x$ac_cv_lib_X11_xcb_XGetXCBConnection" = xyes
20854 then :
20855 printf "%s\n" "#define HAVE_LIBX11_XCB 1" >>confdefs.h
20856
20857 LIBS="-lX11-xcb $LIBS"
20858
20859 else $as_nop
20860 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
20861 fi
20862
20863 test "x$apl_have_opt_lib" = "xno" && return # sets apl_have_opt_lib
20864
20865 # at this point all libraries needed for XCB are installed
20866 apl_X11=yes
20867 apl_XCB=yes
20868 } }
20869
20870 # call dash_test_X11() above and set result variables...
20871 #
20872 dash_test_X11 # set apl_X11 to yes or no.
20873
20874 # export apl_X11 and apl_XCB to config.h
20875 if test "x$apl_X11" = "xyes"; then
20876
20877 printf "%s\n" "#define apl_X11 1" >>confdefs.h
20878
20879
20880 printf "%s\n" "#define apl_XCB 1" >>confdefs.h
20881
20882 else
20883 printf "%s\n" "#define apl_X11 0" >>confdefs.h
20884
20885 printf "%s\n" "#define apl_XCB 0" >>confdefs.h
20886
20887 fi
20888
20889 # export apl_X11 to Makefile.am
20890 if test "x$apl_X11" = "xyes"; then
20891 apl_X11_TRUE=
20892 apl_X11_FALSE='#'
20893 else
20894 apl_X11_TRUE='#'
20895 apl_X11_FALSE=
20896 fi
20897
20898 if test "x$apl_XCB" = "xyes"; then
20899 apl_XCB_TRUE=
20900 apl_XCB_FALSE='#'
20901 else
20902 apl_XCB_TRUE='#'
20903 apl_XCB_FALSE=
20904 fi
20905
20906
20907
20908 test "x$apl_XCB" != "xyes" && printf "%s\n" " └──── may affect: ⎕PLOT"
20909
20910
20911 # check if libfftw3 is installed and usable
20912
20913 # wrap multiple tests into a single dash function from which we may
20914 # return prematurely (which m4 can't) if a sub-test fails...
20915 #
20916 dash_test_FFT()
20917 { {
20918 apl_FFT=no # assume error
20919
20920 ac_fn_cxx_check_header_compile "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
20921 if test "x$ac_cv_header_fftw3_h" = xyes
20922 then :
20923
20924 else $as_nop
20925 return
20926 fi
20927
20928
20929 apl_have_opt_lib=yes
20930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft in -lfftw3" >&5
20931 printf %s "checking for fftw_plan_dft in -lfftw3... " >&6; }
20932 if test ${ac_cv_lib_fftw3_fftw_plan_dft+y}
20933 then :
20934 printf %s "(cached) " >&6
20935 else $as_nop
20936 ac_check_lib_save_LIBS=$LIBS
20937 LIBS="-lfftw3 $LIBS"
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20940
20941 namespace conftest {
20942 extern "C" int fftw_plan_dft ();
20943 }
20944 int
20945 main (void)
20946 {
20947 return conftest::fftw_plan_dft ();
20948 ;
20949 return 0;
20950 }
20951 _ACEOF
20952 if ac_fn_cxx_try_link "$LINENO"
20953 then :
20954 ac_cv_lib_fftw3_fftw_plan_dft=yes
20955 else $as_nop
20956 ac_cv_lib_fftw3_fftw_plan_dft=no
20957 fi
20958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20959 conftest$ac_exeext conftest.$ac_ext
20960 LIBS=$ac_check_lib_save_LIBS
20961 fi
20962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft" >&5
20963 printf "%s\n" "$ac_cv_lib_fftw3_fftw_plan_dft" >&6; }
20964 if test "x$ac_cv_lib_fftw3_fftw_plan_dft" = xyes
20965 then :
20966 printf "%s\n" "#define HAVE_LIBFFTW3 1" >>confdefs.h
20967
20968 LIBS="-lfftw3 $LIBS"
20969
20970 else $as_nop
20971 test -n "will affect ⎕FFT" && printf "%s\n" " └──── will affect ⎕FFT "; apl_have_opt_lib=no
20972 fi
20973
20974
20975 apl_FFT=$ac_cv_lib_fftw3_fftw_plan_dft
20976 } }
20977 dash_test_FFT # set apl_FFT to yes or no.
20978
20979 test "x$apl_FFT" != "xyes" && printf "%s\n" " └──── will affect: ⎕FFT"
20980
20981
20982 # checks related to ⎕PNG. Final verdict is: apl_PNG=yes or apl_PNG=no.
20983
20984 # wrap multiple tests into a single dash function from which we may
20985 # return prematurely (which m4 can't) if a sub-test fails...
20986 #
20987 dash_test_PNG()
20988 { {
20989 local apl_have_opt_lib
20990 apl_PNG=no
20991
20992 ac_fn_cxx_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
20993 if test "x$ac_cv_header_png_h" = xyes
20994 then :
20995
20996 else $as_nop
20997 return
20998 fi
20999
21000 ac_fn_cxx_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21001 if test "x$ac_cv_header_zlib_h" = xyes
21002 then :
21003
21004 else $as_nop
21005 return
21006 fi
21007
21008
21009 apl_have_opt_lib=yes
21010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5
21011 printf %s "checking for png_init_io in -lpng... " >&6; }
21012 if test ${ac_cv_lib_png_png_init_io+y}
21013 then :
21014 printf %s "(cached) " >&6
21015 else $as_nop
21016 ac_check_lib_save_LIBS=$LIBS
21017 LIBS="-lpng $LIBS"
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h. */
21020
21021 namespace conftest {
21022 extern "C" int png_init_io ();
21023 }
21024 int
21025 main (void)
21026 {
21027 return conftest::png_init_io ();
21028 ;
21029 return 0;
21030 }
21031 _ACEOF
21032 if ac_fn_cxx_try_link "$LINENO"
21033 then :
21034 ac_cv_lib_png_png_init_io=yes
21035 else $as_nop
21036 ac_cv_lib_png_png_init_io=no
21037 fi
21038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21039 conftest$ac_exeext conftest.$ac_ext
21040 LIBS=$ac_check_lib_save_LIBS
21041 fi
21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5
21043 printf "%s\n" "$ac_cv_lib_png_png_init_io" >&6; }
21044 if test "x$ac_cv_lib_png_png_init_io" = xyes
21045 then :
21046 printf "%s\n" "#define HAVE_LIBPNG 1" >>confdefs.h
21047
21048 LIBS="-lpng $LIBS"
21049
21050 else $as_nop
21051 test -n "will affect: ⎕PNG" && printf "%s\n" " └──── will affect: ⎕PNG "; apl_have_opt_lib=no
21052 fi
21053
21054 test "x$apl_have_opt_lib" != "xyes" && return # libpng missing
21055
21056 apl_have_opt_lib=yes
21057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
21058 printf %s "checking for uncompress in -lz... " >&6; }
21059 if test ${ac_cv_lib_z_uncompress+y}
21060 then :
21061 printf %s "(cached) " >&6
21062 else $as_nop
21063 ac_check_lib_save_LIBS=$LIBS
21064 LIBS="-lz $LIBS"
21065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h. */
21067
21068 namespace conftest {
21069 extern "C" int uncompress ();
21070 }
21071 int
21072 main (void)
21073 {
21074 return conftest::uncompress ();
21075 ;
21076 return 0;
21077 }
21078 _ACEOF
21079 if ac_fn_cxx_try_link "$LINENO"
21080 then :
21081 ac_cv_lib_z_uncompress=yes
21082 else $as_nop
21083 ac_cv_lib_z_uncompress=no
21084 fi
21085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21086 conftest$ac_exeext conftest.$ac_ext
21087 LIBS=$ac_check_lib_save_LIBS
21088 fi
21089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
21090 printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
21091 if test "x$ac_cv_lib_z_uncompress" = xyes
21092 then :
21093 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
21094
21095 LIBS="-lz $LIBS"
21096
21097 else $as_nop
21098 test -n "will affect: ⎕PNG" && printf "%s\n" " └──── will affect: ⎕PNG "; apl_have_opt_lib=no
21099 fi
21100
21101 test "x$apl_have_opt_lib" != "xyes" && return # libz missing
21102
21103 apl_PNG=yes # success
21104 } }
21105 dash_test_PNG # set apl_PNG to yes or no.
21106
21107
21108 test "x$apl_PNG" != "xyes" && printf "%s\n" " └──── will affect: ⎕PNG"
21109
21110
21111 # check if SQLite3 is wanted and installed...
21112
21113 # wrap multiple tests into a single dash function from which we may
21114 # return prematurely (which m4 can't) if a sub-test fails...
21115 #
21116 dash_test_SQLITE3()
21117 { {
21118 apl_SQLITE3=no # assume neither wanted nor installed
21119
21120 # no point to proceed without sqlite3.h
21121
21122
21123
21124 # define AX_LIB_SQLITE3()
21125
21126
21127 # Check whether --with-sqlite3 was given.
21128 if test ${with_sqlite3+y}
21129 then :
21130 withval=$with_sqlite3; sqlite_given="yes"
21131 if test "$withval" = "no"; then
21132 WANT_SQLITE3="no"
21133 elif test "$withval" = "yes"; then
21134 WANT_SQLITE3="yes"
21135 ac_sqlite3_path=""
21136 else
21137 WANT_SQLITE3="yes"
21138 ac_sqlite3_path="$withval"
21139 fi
21140
21141 else $as_nop
21142 sqlite_given="no"
21143 WANT_SQLITE3="yes"
21144
21145
21146 fi
21147
21148
21149 SQLITE3_CFLAGS=""
21150 SQLITE3_LDFLAGS=""
21151 SQLITE3_VERSION=""
21152 found_sqlite="no"
21153
21154 if test "x$WANT_SQLITE3" = "xyes"; then
21155
21156 ac_sqlite3_header="sqlite3.h"
21157
21158 sqlite3_version_req=3.0.0
21159 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
21160 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
21161 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
21162 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21163 if test "x$sqlite3_version_req_micro" = "x" ; then
21164 sqlite3_version_req_micro="0"
21165 fi
21166
21167 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
21168 \+ $sqlite3_version_req_minor \* 1000 \
21169 \+ $sqlite3_version_req_micro`
21170
21171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
21172 printf %s "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
21173
21174 if test "$ac_sqlite3_path" != ""; then
21175 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
21176 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
21177 else
21178 for ac_sqlite3_path_tmp in /usr /usr/local /usr/local/opt /opt ; do
21179 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
21180 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
21181 ac_sqlite3_path=$ac_sqlite3_path_tmp
21182 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
21183 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
21184 break;
21185 fi
21186 done
21187 fi
21188
21189 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
21190
21191 saved_CPPFLAGS="$CPPFLAGS"
21192 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
21193
21194 ac_ext=cpp
21195 ac_cpp='$CXXCPP $CPPFLAGS'
21196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21199
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202
21203 #include <sqlite3.h>
21204 int
21205 main (void)
21206 {
21207
21208 #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
21209 // Everything is okay
21210 #else
21211 # error SQLite version is too old
21212 #endif
21213
21214
21215 ;
21216 return 0;
21217 }
21218
21219 _ACEOF
21220 if ac_fn_cxx_try_compile "$LINENO"
21221 then :
21222
21223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21224 printf "%s\n" "yes" >&6; }
21225 success="yes"
21226 found_sqlite="yes"
21227
21228 else $as_nop
21229
21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21231 printf "%s\n" "not found" >&6; }
21232 succees="no"
21233
21234
21235 fi
21236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21237 ac_ext=cpp
21238 ac_cpp='$CXXCPP $CPPFLAGS'
21239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21242
21243
21244 CPPFLAGS="$saved_CPPFLAGS"
21245
21246 if test "$success" = "yes"; then
21247
21248 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
21249 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
21250
21251 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
21252
21253 if test "x$ac_sqlite3_header_path" != "x"; then
21254 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
21255 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
21256 | sed -e 's/"//'`
21257 if test "x$ac_sqlite3_version" != "x"; then
21258 SQLITE3_VERSION=$ac_sqlite3_version
21259 else
21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
21261 printf "%s\n" "$as_me: WARNING: Can not find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
21262 fi
21263 fi
21264
21265
21266
21267
21268
21269 printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h
21270
21271 fi
21272 fi
21273 # call AX_LIB_SQLITE3()
21274 #
21275 # ./configure --with-sqlite3="no" → $withval: "no"
21276 # ./configure --without-sqlite3 → $withval: "no"
21277 # ./configure → $withval: "yes"
21278 # ./configure --with-sqlite3 → $withval: "yes"
21279 # ./configure --with-sqlite3=yes → $withval: "yes"
21280 # ./configure --with-sqlite3=path → $withval: "path"
21281 #
21282 test "x$with_sqlite3" = "xno" && return # the user rejects sqlite3
21283
21284 apl_SQLITE3=$found_sqlite # set to yes/no in m4/ax_lib_sqlite3.m4
21285 if test "x$sqlite_given" = "xyes"; then
21286
21287 printf "%s\n" "#define cfg_USER_WANTS_SQLITE3 1" >>confdefs.h
21288
21289 fi
21290 } }
21291 dash_test_SQLITE3 # set apl_SQLITE3 to yes or no.
21292
21293
21294 # export apl_SQLITE3 to config.h
21295 if test "x$apl_SQLITE3" = "xyes"; then
21296
21297 printf "%s\n" "#define apl_SQLITE3 1" >>confdefs.h
21298
21299 else
21300
21301 printf "%s\n" "#define apl_SQLITE3 0" >>confdefs.h
21302
21303 fi
21304
21305
21306 # export apl_SQLITE3 to Makefile.am
21307 if test "x$apl_SQLITE3" = "xyes"; then
21308 apl_SQLITE3_TRUE=
21309 apl_SQLITE3_FALSE='#'
21310 else
21311 apl_SQLITE3_TRUE='#'
21312 apl_SQLITE3_FALSE=
21313 fi
21314
21315
21316
21317 test "x$apl_SQLITE3" != "xyes" && printf "%s\n" " └──── may affect: ⎕SQL"
21318
21319
21320 # wrap multiple tests into a single dash function from which we may
21321 # return prematurely (which m4 can't) if a sub-test fails...
21322 #
21323 dash_test_POSTGRES()
21324 { {
21325 local found_postgresql # 'yes' or 'no' by AX_LIB_POSTGRESQL()
21326
21327 apl_POSTGRES=no
21328
21329 # ===========================================================================
21330 # http://www.gnu.org/software/autoconf-archive/ax_lib_postgresql.html
21331 # ===========================================================================
21332 #
21333 # SYNOPSIS
21334 #
21335 # AX_LIB_POSTGRESQL([MINIMUM-VERSION])
21336 #
21337 # DESCRIPTION
21338 #
21339 # This macro provides tests of availability of PostgreSQL 'libpq' library
21340 # of particular version or newer.
21341 #
21342 # AX_LIB_POSTGRESQL macro takes only one argument which is optional. If
21343 # there is no required version passed, then macro does not run version
21344 # test.
21345 #
21346 # The --with-postgresql option takes one of three possible values:
21347 #
21348 # no - do not check for PostgreSQL client library
21349 #
21350 # yes - do check for PostgreSQL library in standard locations (pg_config
21351 # should be in the PATH)
21352 #
21353 # path - complete path to pg_config utility, use this option if pg_config
21354 # can't be found in the PATH
21355 #
21356 # This macro calls:
21357 #
21358 # AC_SUBST(POSTGRESQL_CFLAGS)
21359 # AC_SUBST(POSTGRESQL_LDFLAGS)
21360 # AC_SUBST(POSTGRESQL_VERSION)
21361 #
21362 # And sets:
21363 #
21364 # HAVE_POSTGRESQL
21365 #
21366 # LICENSE
21367 #
21368 # Copyright (c) 2008 Mateusz Loskot <[email protected]>
21369 #
21370 # Copying and distribution of this file, with or without modification, are
21371 # permitted in any medium without royalty provided the copyright notice
21372 # and this notice are preserved. This file is offered as-is, without any
21373 # warranty.
21374
21375 #serial 9
21376
21377
21378 # define AX_LIB_POSTGRESQL()
21379
21380
21381 # Check whether --with-postgresql was given.
21382 if test ${with_postgresql+y}
21383 then :
21384 withval=$with_postgresql; postgresql_given="yes"
21385 if test "$withval" = "no"; then
21386 want_postgresql="no"
21387 elif test "$withval" = "yes"; then
21388 want_postgresql="yes"
21389 want1_postgresql="yes"
21390 else
21391 want_postgresql="yes"
21392 want1_postgresql="yes"
21393 PG_CONFIG="$withval"
21394 fi
21395
21396 else $as_nop
21397 postgresql_given="no"
21398 want_postgresql="yes"
21399
21400
21401 fi
21402
21403
21404 POSTGRESQL_CFLAGS=""
21405 POSTGRESQL_LDFLAGS=""
21406 POSTGRESQL_VERSION=""
21407
21408
21409 if test "$want_postgresql" = "yes"; then
21410
21411 if test -z "$PG_CONFIG" -o test; then
21412 # Extract the first word of "pg_config", so it can be a program name with args.
21413 set dummy pg_config; ac_word=$2
21414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415 printf %s "checking for $ac_word... " >&6; }
21416 if test ${ac_cv_path_PG_CONFIG+y}
21417 then :
21418 printf %s "(cached) " >&6
21419 else $as_nop
21420 case $PG_CONFIG in
21421 [\\/]* | ?:[\\/]*)
21422 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21423 ;;
21424 *)
21425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21426 for as_dir in $PATH
21427 do
21428 IFS=$as_save_IFS
21429 case $as_dir in #(((
21430 '') as_dir=./ ;;
21431 */) ;;
21432 *) as_dir=$as_dir/ ;;
21433 esac
21434 for ac_exec_ext in '' $ac_executable_extensions; do
21435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21436 ac_cv_path_PG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21438 break 2
21439 fi
21440 done
21441 done
21442 IFS=$as_save_IFS
21443
21444 ;;
21445 esac
21446 fi
21447 PG_CONFIG=$ac_cv_path_PG_CONFIG
21448 if test -n "$PG_CONFIG"; then
21449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
21450 printf "%s\n" "$PG_CONFIG" >&6; }
21451 else
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 printf "%s\n" "no" >&6; }
21454 fi
21455
21456
21457 fi
21458
21459 if test ! -x "$PG_CONFIG"; then
21460 PG_CONFIG="no"
21461 found_postgresql="no"
21462 fi
21463
21464 if test "$PG_CONFIG" != "no"; then
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5
21466 printf %s "checking for PostgreSQL libraries... " >&6; }
21467
21468 POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
21469 POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
21470
21471 POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
21472
21473
21474 printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h
21475
21476
21477 found_postgresql="yes"
21478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21479 printf "%s\n" "yes" >&6; }
21480 else
21481 found_postgresql="no"
21482 fi
21483 fi
21484
21485
21486
21487 postgresql_version_req=
21488
21489 if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
21490
21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5
21492 printf %s "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
21493
21494 postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
21495 postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
21496 postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21497 if test "x$postgresql_version_req_micro" = "x"; then
21498 postgresql_version_req_micro="0"
21499 fi
21500
21501 postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
21502 \+ $postgresql_version_req_minor \* 1000 \
21503 \+ $postgresql_version_req_micro`
21504
21505 postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
21506 postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
21507 postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21508 if test "x$postgresql_version_micro" = "x"; then
21509 postgresql_version_micro="0"
21510 fi
21511
21512 postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
21513 \+ $postgresql_version_minor \* 1000 \
21514 \+ $postgresql_version_micro`
21515
21516 postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
21517 if test "$postgresql_version_check" = "1"; then
21518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21519 printf "%s\n" "yes" >&6; }
21520 else
21521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 printf "%s\n" "no" >&6; }
21523 fi
21524 fi
21525
21526
21527
21528
21529 # call AX_LIB_POSTGRESQL()
21530 #
21531 # ./configure --with-postgresql="no" → $with_postgresql: "no"
21532 # ./configure --without-postgresql → $with_postgresql: "no"
21533 # ./configure → $with_postgresql: "yes"
21534 # ./configure --with-postgresql → $with_postgresql: "yes"
21535 # ./configure --with-postgresql=yes → $with_postgresql: "yes"
21536 # ./configure --with-postgresql=path → $with_postgresql: "path"
21537 #
21538 test "x$with_postgresql" = "xno" && return # the user rejects POSTSCRIPT
21539
21540 if test "x$postgresql_given" = "xyes"; then
21541
21542 printf "%s\n" "#define cfg_USER_WANTS_POSTGRES 1" >>confdefs.h
21543
21544 fi
21545
21546 test "x$found_postgresql" != "xyes" && return # no POSTSCRIPT
21547
21548 # POSTGRES is present. Check if it is usable (which is the final verdict).
21549 #
21550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL usability" >&5
21551 printf %s "checking for PostgreSQL usability... " >&6; }
21552 saved_CPPFLAGS="$CPPFLAGS"
21553 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CFLAGS"
21554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21555 /* end confdefs.h. */
21556 #include <libpq-fe.h>
21557 int
21558 main (void)
21559 {
21560 PGconn *db = PQconnectdbParams(0, 0, 1);
21561 ;
21562 return 0;
21563 }
21564 _ACEOF
21565 if ac_fn_cxx_try_compile "$LINENO"
21566 then :
21567 apl_POSTGRES=yes
21568 else $as_nop
21569 apl_POSTGRES=no
21570 fi
21571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21572
21573 CPPFLAGS="$saved_CPPFLAGS"
21574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_POSTGRES" >&5
21575 printf "%s\n" "$apl_POSTGRES" >&6; }
21576
21577 } }
21578 dash_test_POSTGRES # set apl_POSTGRES to yes or no.
21579
21580 # export apl_POSTGRES to config.h
21581 if test "x$apl_POSTGRES" = "xyes"; then
21582
21583 printf "%s\n" "#define apl_POSTGRES 1" >>confdefs.h
21584
21585 else
21586
21587 printf "%s\n" "#define apl_POSTGRES 0" >>confdefs.h
21588
21589 fi
21590
21591
21592 # export apl_POSTGRES to Makefile.am
21593 if test "x$apl_POSTGRES" = "xyes"; then
21594 apl_POSTGRES_TRUE=
21595 apl_POSTGRES_FALSE='#'
21596 else
21597 apl_POSTGRES_TRUE='#'
21598 apl_POSTGRES_FALSE=
21599 fi
21600
21601
21602
21603 test "x$apl_POSTGRES" != "xyes" && printf "%s\n" " └──── may affect: ⎕SQL"
21604
21605 # summarize apl_SQLITE3 and apl_POSTGRES as apl_SQL
21606 apl_SQL=no
21607 test "x$apl_SQLITE3" = "xyes" && apl_SQL=yes
21608 test "x$apl_POSTGRES" = "xyes" && apl_POSTGRES=yes
21609
21610
21611 # check if libpcre is installed and usable
21612
21613 # wrap multiple tests into a single dash function from which we may
21614 # return prematurely (which m4 can't) if a sub-test fails...
21615 #
21616 dash_test_PCRE()
21617 { {
21618 apl_PCRE=no
21619
21620 # ===========================================================================
21621 # https://www.gnu.org/software/autoconf-archive/ax_path_lib_pcre.html
21622 # !!! modified for GNU APL needs: better use the original !!!
21623 # ===========================================================================
21624 #
21625 # SYNOPSIS
21626 #
21627 # AX_PATH_LIB_PCRE []
21628 #
21629 # DESCRIPTION
21630 #
21631 # check for pcre lib and set PCRE_LIBS and PCRE_CFLAGS accordingly.
21632 #
21633 # also provide --with-pcre option that may point to the $prefix of the
21634 # pcre installation - the macro will check $pcre/include and $pcre/lib to
21635 # contain the necessary files.
21636 #
21637 # the usual two ACTION-IF-FOUND / ACTION-IF-NOT-FOUND are NOT supported and
21638 # they can NOT take advantage of the LIBS/CFLAGS additions.
21639 #
21640 # LICENSE
21641 #
21642 # Copyright (c) 2008 Guido U. Draheim <[email protected]>
21643 #
21644 # This program is free software; you can redistribute it and/or modify it
21645 # under the terms of the GNU General Public License as published by the
21646 # Free Software Foundation; either version 3 of the License, or (at your
21647 # option) any later version.
21648 #
21649 # This program is distributed in the hope that it will be useful, but
21650 # WITHOUT ANY WARRANTY; without even the implied warranty of
21651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
21652 # Public License for more details.
21653 #
21654 # You should have received a copy of the GNU General Public License along
21655 # with this program. If not, see <https://www.gnu.org/licenses/>.
21656 #
21657 # As a special exception, the respective Autoconf Macro's copyright owner
21658 # gives unlimited permission to copy, distribute and modify the configure
21659 # scripts that are the output of Autoconf when processing the Macro. You
21660 # need not follow the terms of the GNU General Public License when using
21661 # or distributing such scripts, even though portions of the text of the
21662 # Macro appear in them. The GNU General Public License (GPL) does govern
21663 # all other use of the material that constitutes the Autoconf Macro.
21664 #
21665 # This special exception to the GPL applies to versions of the Autoconf
21666 # Macro released by the Autoconf Archive. When you make and distribute a
21667 # modified version of the Autoconf Macro, you may extend this special
21668 # exception to the GPL to apply to your modified version as well.
21669
21670
21671 # define AX_PATH_LIB_PCRE()
21672
21673 # Check whether --with-pcre was given.
21674 if test ${with_pcre+y}
21675 then :
21676 withval=$with_pcre;
21677 else $as_nop
21678 with_pcre="yes"
21679 fi
21680
21681
21682 case $with_pcre in
21683 "no")
21684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled by: --with-pcre=no" >&5
21685 printf "%s\n" "disabled by: --with-pcre=no" >&6; }
21686 ;;
21687 "" | "yes")
21688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_32 in -lpcre2-32" >&5
21689 printf %s "checking for pcre2_compile_32 in -lpcre2-32... " >&6; }
21690 if test ${ac_cv_lib_pcre2_32_pcre2_compile_32+y}
21691 then :
21692 printf %s "(cached) " >&6
21693 else $as_nop
21694 ac_check_lib_save_LIBS=$LIBS
21695 LIBS="-lpcre2-32 $LIBS"
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21698
21699 namespace conftest {
21700 extern "C" int pcre2_compile_32 ();
21701 }
21702 int
21703 main (void)
21704 {
21705 return conftest::pcre2_compile_32 ();
21706 ;
21707 return 0;
21708 }
21709 _ACEOF
21710 if ac_fn_cxx_try_link "$LINENO"
21711 then :
21712 ac_cv_lib_pcre2_32_pcre2_compile_32=yes
21713 else $as_nop
21714 ac_cv_lib_pcre2_32_pcre2_compile_32=no
21715 fi
21716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21717 conftest$ac_exeext conftest.$ac_ext
21718 LIBS=$ac_check_lib_save_LIBS
21719 fi
21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_32_pcre2_compile_32" >&5
21721 printf "%s\n" "$ac_cv_lib_pcre2_32_pcre2_compile_32" >&6; }
21722 if test "x$ac_cv_lib_pcre2_32_pcre2_compile_32" = xyes
21723 then :
21724 printf "%s\n" "#define HAVE_LIBPCRE2_32 1" >>confdefs.h
21725
21726 LIBS="-lpcre2-32 $LIBS"
21727
21728 fi
21729
21730 if test "$ac_cv_lib_pcre2_32_pcre2_compile_32" = "yes" ; then
21731 PCRE_LIBS="-lpcre2-32"
21732 fi
21733 ;;
21734 *)
21735 OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib"
21736 OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include"
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_32 in -lpcre2-32" >&5
21738 printf %s "checking for pcre2_compile_32 in -lpcre2-32... " >&6; }
21739 if test ${ac_cv_lib_pcre2_32_pcre2_compile_32+y}
21740 then :
21741 printf %s "(cached) " >&6
21742 else $as_nop
21743 ac_check_lib_save_LIBS=$LIBS
21744 LIBS="-lpcre2-32 $LIBS"
21745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21747
21748 namespace conftest {
21749 extern "C" int pcre2_compile_32 ();
21750 }
21751 int
21752 main (void)
21753 {
21754 return conftest::pcre2_compile_32 ();
21755 ;
21756 return 0;
21757 }
21758 _ACEOF
21759 if ac_fn_cxx_try_link "$LINENO"
21760 then :
21761 ac_cv_lib_pcre2_32_pcre2_compile_32=yes
21762 else $as_nop
21763 ac_cv_lib_pcre2_32_pcre2_compile_32=no
21764 fi
21765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21766 conftest$ac_exeext conftest.$ac_ext
21767 LIBS=$ac_check_lib_save_LIBS
21768 fi
21769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_32_pcre2_compile_32" >&5
21770 printf "%s\n" "$ac_cv_lib_pcre2_32_pcre2_compile_32" >&6; }
21771 if test "x$ac_cv_lib_pcre2_32_pcre2_compile_32" = xyes
21772 then :
21773 printf "%s\n" "#define HAVE_LIBPCRE2_32 1" >>confdefs.h
21774
21775 LIBS="-lpcre2-32 $LIBS"
21776
21777 fi
21778
21779 CPPFLAGS="$OLDCPPFLAGS"
21780 LDFLAGS="$OLDLDFLAGS"
21781
21782 if test "$ac_cv_lib_pcre2_32_pcre2_compile_32" = "yes" ; then
21783 PCRE_LIBS="-L$with_pcre/lib -lpcre2-32"
21784 test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include"
21785 fi
21786 esac
21787
21788
21789
21790 # set ac_cv_lib_pcre2_32_pcre2_compile_32
21791 apl_PCRE=$ac_cv_lib_pcre2_32_pcre2_compile_32
21792
21793 # export apl_PCRE to Makefile.am
21794 if test "x$apl_PCRE" = "xyes"; then
21795 apl_PCRE_TRUE=
21796 apl_PCRE_FALSE='#'
21797 else
21798 apl_PCRE_TRUE='#'
21799 apl_PCRE_FALSE=
21800 fi
21801
21802 } }
21803 dash_test_PCRE # set apl_PCRE to yes or no.
21804
21805 test "x$apl_PCRE" != "xyes" && printf "%s\n" " └──── will affect: ⎕RE"
21806
21807
21808 # check if libgsl is installed and usable
21809
21810 # we believe that function gsl_linalg_QL_decomp() was added in libgsl 2.7.
21811 # So we simply check the version with the presence of gsl_linalg_QL_decomp().
21812
21813 apl_GSL=yes
21814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cblas_cgemv in -lgslcblas" >&5
21815 printf %s "checking for cblas_cgemv in -lgslcblas... " >&6; }
21816 if test ${ac_cv_lib_gslcblas_cblas_cgemv+y}
21817 then :
21818 printf %s "(cached) " >&6
21819 else $as_nop
21820 ac_check_lib_save_LIBS=$LIBS
21821 LIBS="-lgslcblas $LIBS"
21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h. */
21824
21825 namespace conftest {
21826 extern "C" int cblas_cgemv ();
21827 }
21828 int
21829 main (void)
21830 {
21831 return conftest::cblas_cgemv ();
21832 ;
21833 return 0;
21834 }
21835 _ACEOF
21836 if ac_fn_cxx_try_link "$LINENO"
21837 then :
21838 ac_cv_lib_gslcblas_cblas_cgemv=yes
21839 else $as_nop
21840 ac_cv_lib_gslcblas_cblas_cgemv=no
21841 fi
21842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21843 conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21845 fi
21846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_cgemv" >&5
21847 printf "%s\n" "$ac_cv_lib_gslcblas_cblas_cgemv" >&6; }
21848 if test "x$ac_cv_lib_gslcblas_cblas_cgemv" = xyes
21849 then :
21850 printf "%s\n" "#define HAVE_LIBGSLCBLAS 1" >>confdefs.h
21851
21852 LIBS="-lgslcblas $LIBS"
21853
21854 else $as_nop
21855 apl_GSL=no
21856 fi
21857
21858 ac_fn_cxx_check_header_compile "$LINENO" "gsl/gsl_blas.h" "ac_cv_header_gsl_gsl_blas_h" "$ac_includes_default"
21859 if test "x$ac_cv_header_gsl_gsl_blas_h" = xyes
21860 then :
21861
21862 else $as_nop
21863 apl_GSL=no
21864 fi
21865
21866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsl_linalg_QL_decomp in -lgsl" >&5
21867 printf %s "checking for gsl_linalg_QL_decomp in -lgsl... " >&6; }
21868 if test ${ac_cv_lib_gsl_gsl_linalg_QL_decomp+y}
21869 then :
21870 printf %s "(cached) " >&6
21871 else $as_nop
21872 ac_check_lib_save_LIBS=$LIBS
21873 LIBS="-lgsl $LIBS"
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h. */
21876
21877 namespace conftest {
21878 extern "C" int gsl_linalg_QL_decomp ();
21879 }
21880 int
21881 main (void)
21882 {
21883 return conftest::gsl_linalg_QL_decomp ();
21884 ;
21885 return 0;
21886 }
21887 _ACEOF
21888 if ac_fn_cxx_try_link "$LINENO"
21889 then :
21890 ac_cv_lib_gsl_gsl_linalg_QL_decomp=yes
21891 else $as_nop
21892 ac_cv_lib_gsl_gsl_linalg_QL_decomp=no
21893 fi
21894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21895 conftest$ac_exeext conftest.$ac_ext
21896 LIBS=$ac_check_lib_save_LIBS
21897 fi
21898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_linalg_QL_decomp" >&5
21899 printf "%s\n" "$ac_cv_lib_gsl_gsl_linalg_QL_decomp" >&6; }
21900 if test "x$ac_cv_lib_gsl_gsl_linalg_QL_decomp" = xyes
21901 then :
21902 printf "%s\n" "#define HAVE_LIBGSL 1" >>confdefs.h
21903
21904 LIBS="-lgsl $LIBS"
21905
21906 else $as_nop
21907 apl_GSL=no
21908 fi
21909
21910 ac_fn_cxx_check_header_compile "$LINENO" "gsl/gsl_version.h" "ac_cv_header_gsl_gsl_version_h" "$ac_includes_default"
21911 if test "x$ac_cv_header_gsl_gsl_version_h" = xyes
21912 then :
21913
21914 else $as_nop
21915 apl_GSL=no
21916 fi
21917
21918 if test "x$apl_GSL" = "xyes"; then
21919 apl_GSL_TRUE=
21920 apl_GSL_FALSE='#'
21921 else
21922 apl_GSL_TRUE='#'
21923 apl_GSL_FALSE=
21924 fi
21925
21926
21927
21928 test "x$apl_GSL" != "xyes" && printf "%s\n" " └──── will affect: ⎕MX"
21929
21930
21931 # check if libgtk-3 and related libraries are installed and usable
21932
21933 # wrap multiple tests into a single dash function from which we may
21934 # return prematurely (which m4 can't) if a sub-test fails...
21935 #
21936 dash_test_GTK()
21937 { {
21938 local apl_have_opt_lib # result of apl_OPT_LIB()
21939 apl_GTK3=no # assume error
21940
21941
21942 # Check whether --with-gtk3 was given.
21943 if test ${with_gtk3+y}
21944 then :
21945 withval=$with_gtk3;
21946 fi
21947
21948 #
21949 # ./configure --with-gtk3="no" → $with_gtk3: "no"
21950 # ./configure --without-gtk3 → $with_gtk3: "no"
21951 # ./configure → $with_gtk3: "yes"
21952 # ./configure --with-gtk3 → $with_gtk3: "yes"
21953 # ./configure --with-gtk3=yes → $with_gtk3: "yes"
21954 # ./configure --with-gtk3=path → $with_gtk3: "path"
21955 #
21956 if test "x$with_gtk3" = "xno"; then # user has explicitly disabled GTK
21957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
21958 printf %s "checking for GTK... " >&6; }
21959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - (explicitly disabled by user)" >&5
21960 printf "%s\n" "no - (explicitly disabled by user)" >&6; }
21961 return
21962 fi
21963
21964 # user allows GTK...
21965
21966 # check for pkg-config
21967 # Extract the first word of "pkg-config", so it can be a program name with args.
21968 set dummy pkg-config; ac_word=$2
21969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21970 printf %s "checking for $ac_word... " >&6; }
21971 if test ${ac_cv_path_PKG_CONFIG+y}
21972 then :
21973 printf %s "(cached) " >&6
21974 else $as_nop
21975 case $PKG_CONFIG in
21976 [\\/]* | ?:[\\/]*)
21977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21978 ;;
21979 *)
21980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21981 for as_dir in $PATH
21982 do
21983 IFS=$as_save_IFS
21984 case $as_dir in #(((
21985 '') as_dir=./ ;;
21986 */) ;;
21987 *) as_dir=$as_dir/ ;;
21988 esac
21989 for ac_exec_ext in '' $ac_executable_extensions; do
21990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21991 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21993 break 2
21994 fi
21995 done
21996 done
21997 IFS=$as_save_IFS
21998
21999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22000 ;;
22001 esac
22002 fi
22003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22004 if test -n "$PKG_CONFIG"; then
22005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22006 printf "%s\n" "$PKG_CONFIG" >&6; }
22007 else
22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 printf "%s\n" "no" >&6; }
22010 fi
22011
22012 # locate pkg-config
22013 if test "x$PKG_CONFIG" = "xno"; then # pkg-config missing
22014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config (GTK prerequisite)" >&5
22015 printf %s "checking for pkg-config (GTK prerequisite)... " >&6; }
22016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22017 printf "%s\n" "no" >&6; }
22018 return
22019 fi
22020
22021 # GTK needs libgtk-3
22022 apl_have_opt_lib=yes
22023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk_init in -lgtk-3" >&5
22024 printf %s "checking for gtk_init in -lgtk-3... " >&6; }
22025 if test ${ac_cv_lib_gtk_3_gtk_init+y}
22026 then :
22027 printf %s "(cached) " >&6
22028 else $as_nop
22029 ac_check_lib_save_LIBS=$LIBS
22030 LIBS="-lgtk-3 $LIBS"
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033
22034 namespace conftest {
22035 extern "C" int gtk_init ();
22036 }
22037 int
22038 main (void)
22039 {
22040 return conftest::gtk_init ();
22041 ;
22042 return 0;
22043 }
22044 _ACEOF
22045 if ac_fn_cxx_try_link "$LINENO"
22046 then :
22047 ac_cv_lib_gtk_3_gtk_init=yes
22048 else $as_nop
22049 ac_cv_lib_gtk_3_gtk_init=no
22050 fi
22051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22052 conftest$ac_exeext conftest.$ac_ext
22053 LIBS=$ac_check_lib_save_LIBS
22054 fi
22055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_3_gtk_init" >&5
22056 printf "%s\n" "$ac_cv_lib_gtk_3_gtk_init" >&6; }
22057 if test "x$ac_cv_lib_gtk_3_gtk_init" = xyes
22058 then :
22059 printf "%s\n" "#define HAVE_LIBGTK_3 1" >>confdefs.h
22060
22061 LIBS="-lgtk-3 $LIBS"
22062
22063 else $as_nop
22064 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
22065 fi
22066
22067 test "x$apl_have_opt_lib" = "xno" && return # libgtk-3 missing
22068
22069 # GTK needs libgdk-3
22070 apl_have_opt_lib=yes
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk_init in -lgdk-3" >&5
22072 printf %s "checking for gdk_init in -lgdk-3... " >&6; }
22073 if test ${ac_cv_lib_gdk_3_gdk_init+y}
22074 then :
22075 printf %s "(cached) " >&6
22076 else $as_nop
22077 ac_check_lib_save_LIBS=$LIBS
22078 LIBS="-lgdk-3 $LIBS"
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h. */
22081
22082 namespace conftest {
22083 extern "C" int gdk_init ();
22084 }
22085 int
22086 main (void)
22087 {
22088 return conftest::gdk_init ();
22089 ;
22090 return 0;
22091 }
22092 _ACEOF
22093 if ac_fn_cxx_try_link "$LINENO"
22094 then :
22095 ac_cv_lib_gdk_3_gdk_init=yes
22096 else $as_nop
22097 ac_cv_lib_gdk_3_gdk_init=no
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22100 conftest$ac_exeext conftest.$ac_ext
22101 LIBS=$ac_check_lib_save_LIBS
22102 fi
22103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdk_3_gdk_init" >&5
22104 printf "%s\n" "$ac_cv_lib_gdk_3_gdk_init" >&6; }
22105 if test "x$ac_cv_lib_gdk_3_gdk_init" = xyes
22106 then :
22107 printf "%s\n" "#define HAVE_LIBGDK_3 1" >>confdefs.h
22108
22109 LIBS="-lgdk-3 $LIBS"
22110
22111 else $as_nop
22112 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
22113 fi
22114
22115 test "x$apl_have_opt_lib" != "xyes" && return # libgdk-3 missing
22116
22117 # GTK needs libcairo
22118 apl_have_opt_lib=yes
22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cairo_fill in -lcairo" >&5
22120 printf %s "checking for cairo_fill in -lcairo... " >&6; }
22121 if test ${ac_cv_lib_cairo_cairo_fill+y}
22122 then :
22123 printf %s "(cached) " >&6
22124 else $as_nop
22125 ac_check_lib_save_LIBS=$LIBS
22126 LIBS="-lcairo $LIBS"
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22129
22130 namespace conftest {
22131 extern "C" int cairo_fill ();
22132 }
22133 int
22134 main (void)
22135 {
22136 return conftest::cairo_fill ();
22137 ;
22138 return 0;
22139 }
22140 _ACEOF
22141 if ac_fn_cxx_try_link "$LINENO"
22142 then :
22143 ac_cv_lib_cairo_cairo_fill=yes
22144 else $as_nop
22145 ac_cv_lib_cairo_cairo_fill=no
22146 fi
22147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22148 conftest$ac_exeext conftest.$ac_ext
22149 LIBS=$ac_check_lib_save_LIBS
22150 fi
22151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_fill" >&5
22152 printf "%s\n" "$ac_cv_lib_cairo_cairo_fill" >&6; }
22153 if test "x$ac_cv_lib_cairo_cairo_fill" = xyes
22154 then :
22155 printf "%s\n" "#define HAVE_LIBCAIRO 1" >>confdefs.h
22156
22157 LIBS="-lcairo $LIBS"
22158
22159 else $as_nop
22160 test -n "" && printf "%s\n" " └──── "; apl_have_opt_lib=no
22161 fi
22162
22163 test "x$apl_have_opt_lib" = "xno" && return # libcairo missing
22164
22165
22166
22167 GTK_LDFLAGS=
22168 GTK_CFLAGS=
22169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK (≥ version 3)" >&5
22170 printf %s "checking for GTK (≥ version 3)... " >&6; }
22171
22172 if $PKG_CONFIG --exists gtk+-3.0; then # package gtk+-3.0 exists
22173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22174 printf "%s\n" "yes" >&6; }
22175 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0`
22176 GTK_LDFLAGS=`$PKG_CONFIG --libs gtk+-3.0`
22177 apl_GTK3=yes
22178 else # package gtk+-3.0 missing
22179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (says pkg-config)" >&5
22180 printf "%s\n" "no (says pkg-config)" >&6; }
22181 fi
22182
22183 } }
22184
22185 # call dash_test_GTK() above and set result variables...
22186 #
22187 dash_test_GTK # set apl_GTK3 to yes or no.
22188
22189 # export apl_GTK3 to config.h
22190 #
22191 if test "x$apl_GTK3" = "xyes"; then
22192
22193 printf "%s\n" "#define apl_GTK3 1" >>confdefs.h
22194
22195 else
22196 printf "%s\n" "#define apl_GTK3 0" >>confdefs.h
22197
22198 fi
22199
22200
22201 # export apl_GTK3 to Makefile.am
22202 if test "x$apl_GTK3" = "xyes"; then
22203 apl_GTK3_TRUE=
22204 apl_GTK3_FALSE='#'
22205 else
22206 apl_GTK3_TRUE='#'
22207 apl_GTK3_FALSE=
22208 fi
22209
22210
22211
22212 test "x$apl_GTK3" != "xyes" && printf "%s\n" " └──── may affect: ⎕PLOT, will affect ⎕PNG"
22213
22214 # summarize apl_GTK3 and apl_XCB as apl_GUI
22215 apl_GUI=no
22216 test "x$apl_GTK3" = "xyes" && apl_GUI=yes
22217 test "x$apl_XCB" = "xyes" && apl_GUI=yes
22218
22219 # backtrace() seem to have been moved from libexecinfo to GLIBC_2.2.5,
22220 # so we do not test fore it anymore.
22221 #
22222 # AC_CHECK_LIB([execinfo], [backtrace])
22223
22224 { printf "%s\n" ; printf "%s\n" " *** checks for functions that are missing on some platforms... ***"; printf "%s\n" ; }
22225
22226 ################################# rdtsc check ################################
22227 # check if rdtsc (read CPU cycle counter is available.
22228 # This is expected to succeed only on Intel CPUs
22229 #
22230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CPU has rdtsc (read CPU cycle counter) opcode" >&5
22231 printf %s "checking whether CPU has rdtsc (read CPU cycle counter) opcode... " >&6; }
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233 /* end confdefs.h. */
22234
22235 int
22236 main (void)
22237 {
22238 unsigned int lo, hi;
22239 __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
22240
22241 ;
22242 return 0;
22243 }
22244 _ACEOF
22245 if ac_fn_cxx_try_compile "$LINENO"
22246 then :
22247 HAVE_rdtsc=yes
22248 else $as_nop
22249 HAVE_rdtsc=no
22250 fi
22251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22252 if test "x$HAVE_rdtsc" = "xyes"; then
22253
22254 printf "%s\n" "#define HAVE_RDTSC 1" >>confdefs.h
22255
22256 fi
22257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_rdtsc" >&5
22258 printf "%s\n" "$HAVE_rdtsc" >&6; }
22259
22260 ################################# gettimeofday check #########################
22261 # check if gettimeofday() counter is available on the OS
22262 #
22263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday exists" >&5
22264 printf %s "checking whether gettimeofday exists... " >&6; }
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22267 #include <sys/time.h>
22268 int
22269 main (void)
22270 {
22271 timeval tv; gettimeofday(&tv, 0);
22272
22273 ;
22274 return 0;
22275 }
22276 _ACEOF
22277 if ac_fn_cxx_try_compile "$LINENO"
22278 then :
22279 HAVE_gettimeofday=yes
22280 else $as_nop
22281 HAVE_gettimeofday=no
22282 fi
22283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22284 if test "x$HAVE_gettimeofday" = "xyes"; then
22285
22286 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22287
22288 fi
22289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_gettimeofday" >&5
22290 printf "%s\n" "$HAVE_gettimeofday" >&6; }
22291
22292 ############################### sem_init() check ##############################
22293 # check if sem_init() works (it does not on OS-X)
22294 #
22295 apl_save_CXXFLAGS=$CXXFLAGS
22296 CXXFLAGS="-Wall -Werror"
22297
22298 # This is expected only on Intel CPUs
22299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sem_init() works" >&5
22300 printf %s "checking whether sem_init() works... " >&6; }
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22303 #include <semaphore.h>
22304 int
22305 main (void)
22306 {
22307 sem_t sema;
22308 sem_init(&sema, 0, 0);
22309
22310
22311 ;
22312 return 0;
22313 }
22314 _ACEOF
22315 if ac_fn_cxx_try_compile "$LINENO"
22316 then :
22317 HAVE_SEM_INIT=yes
22318 else $as_nop
22319 HAVE_SEM_INIT=no
22320 fi
22321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22322 if test "x$HAVE_SEM_INIT" = "xyes"; then
22323
22324 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
22325
22326 fi
22327 if test "x$HAVE_SEM_INIT" = "xyes"; then
22328 HAVE_SEM_INIT_TRUE=
22329 HAVE_SEM_INIT_FALSE='#'
22330 else
22331 HAVE_SEM_INIT_TRUE='#'
22332 HAVE_SEM_INIT_FALSE=
22333 fi
22334
22335 CXXFLAGS=$apl_save_CXXFLAGS
22336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_SEM_INIT" >&5
22337 printf "%s\n" "$HAVE_SEM_INIT" >&6; }
22338
22339
22340 ######################## pthread_getaffinity_np() check #######################
22341 # see if TIOCGWINSZ is available
22342 #
22343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ioctl(fd, TIOCGWINSZ, ...) is available" >&5
22344 printf %s "checking whether ioctl(fd, TIOCGWINSZ, ...) is available... " >&6; }
22345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346 /* end confdefs.h. */
22347 #include <sys/ioctl.h>
22348 int
22349 main (void)
22350 {
22351 winsize win; ioctl(/*fd */ 0, TIOCGWINSZ, &win);
22352 ;
22353 return 0;
22354 }
22355
22356 _ACEOF
22357 if ac_fn_cxx_try_compile "$LINENO"
22358 then :
22359 HAVE_IOCTL_TIOCGWINSZ=yes
22360
22361 printf "%s\n" "#define HAVE_IOCTL_TIOCGWINSZ 1" >>confdefs.h
22362
22363
22364 else $as_nop
22365 HAVE_IOCTL_TIOCGWINSZ=no
22366 fi
22367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_IOCTL_TIOCGWINSZ" >&5
22369 printf "%s\n" "$HAVE_IOCTL_TIOCGWINSZ" >&6; }
22370
22371 ######################## pthread_setname_np() check #######################
22372 # see if pthread_setname_np is available
22373 #
22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np is available" >&5
22375 printf %s "checking whether pthread_setname_np is available... " >&6; }
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378 #include <pthread.h>
22379
22380 int
22381 main (void)
22382 {
22383 pthread_t thread = 0;
22384 pthread_setname_np(thread, "thread_name");
22385
22386 ;
22387 return 0;
22388 }
22389 _ACEOF
22390 if ac_fn_cxx_try_compile "$LINENO"
22391 then :
22392 HAVE_PTHREAD_SETNAME_NP=yes
22393
22394 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22395
22396
22397 else $as_nop
22398 HAVE_PTHREAD_SETNAME_NP=no
22399 fi
22400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_PTHREAD_SETNAME_NP" >&5
22402 printf "%s\n" "$HAVE_PTHREAD_SETNAME_NP" >&6; }
22403
22404 ######################## pthread_getaffinity_np() check #######################
22405 # see if pthread_getaffinity_np() and pthread_setaffinity_np are available
22406 #
22407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setaffinity_np is available" >&5
22408 printf %s "checking whether pthread_setaffinity_np is available... " >&6; }
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22411 #include <pthread.h>
22412 #include <ext/atomicity.h>
22413
22414 int
22415 main (void)
22416 {
22417 cpu_set_t cpuset;
22418 pthread_setaffinity_np(0, sizeof(cpuset), &cpuset);
22419 pthread_getaffinity_np(0, sizeof(cpuset), &cpuset);
22420 _Atomic_word count = 0;
22421 __gnu_cxx::__exchange_and_add_dispatch(&count, 1);
22422 __gnu_cxx::__atomic_add_dispatch(&count, 1);
22423
22424 ;
22425 return 0;
22426 }
22427 _ACEOF
22428 if ac_fn_cxx_try_compile "$LINENO"
22429 then :
22430 HAVE_AFFINITY_NP=yes
22431
22432 printf "%s\n" "#define HAVE_AFFINITY_NP 1" >>confdefs.h
22433
22434
22435 else $as_nop
22436 HAVE_AFFINITY_NP=no
22437 fi
22438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_AFFINITY_NP" >&5
22440 printf "%s\n" "$HAVE_AFFINITY_NP" >&6; }
22441
22442 ######################## pthread_setname_np() check #######################
22443 # see if pthread_setname_np is available
22444 #
22445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np is available" >&5
22446 printf %s "checking whether pthread_setname_np is available... " >&6; }
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449 #include <pthread.h>
22450
22451 int
22452 main (void)
22453 {
22454 pthread_t thread = 0;
22455 pthread_setname_np(thread, "thread_name");
22456
22457 ;
22458 return 0;
22459 }
22460 _ACEOF
22461 if ac_fn_cxx_try_compile "$LINENO"
22462 then :
22463 HAVE_PTHREAD_SETNAME_NP=yes
22464
22465 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
22466
22467
22468 else $as_nop
22469 HAVE_PTHREAD_SETNAME_NP=no
22470 fi
22471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_PTHREAD_SETNAME_NP" >&5
22473 printf "%s\n" "$HAVE_PTHREAD_SETNAME_NP" >&6; }
22474
22475 ############################### atomicity checks ##############################
22476 # check for alternatives for ext/atomicity.h on OS/X
22477 #
22478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OSAtomicAdd32Barrier() is available" >&5
22479 printf %s "checking whether OSAtomicAdd32Barrier() is available... " >&6; }
22480 apl_save_CXXFLAGS=$CXXFLAGS
22481 CXXFLAGS="-Wall -Werror"
22482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h. */
22484 #include <libkern/OSAtomic.h>
22485 int
22486 main (void)
22487 {
22488 OSAtomicAdd32Barrier(0, 0);
22489 ;
22490 return 0;
22491 }
22492 _ACEOF
22493 if ac_fn_cxx_try_compile "$LINENO"
22494 then :
22495 HAVE_OSX_ATOMIC=yes
22496
22497 printf "%s\n" "#define HAVE_OSX_ATOMIC 1" >>confdefs.h
22498
22499
22500 else $as_nop
22501 HAVE_OSX_ATOMIC=no
22502 fi
22503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22504 CXXFLAGS=$apl_save_CXXFLAGS
22505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_OSX_ATOMIC" >&5
22506 printf "%s\n" "$HAVE_OSX_ATOMIC" >&6; }
22507
22508
22509 # check for alternatives for ext/atomicity.h on Solaris
22510 #
22511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether atomic_add_32_nv() is available" >&5
22512 printf %s "checking whether atomic_add_32_nv() is available... " >&6; }
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22515 #include <atomic.h>
22516 int
22517 main (void)
22518 {
22519 atomic_add_32_nv(0, 0);
22520 atomic_add_32 (0, 0);
22521
22522 ;
22523 return 0;
22524 }
22525 _ACEOF
22526 if ac_fn_cxx_try_compile "$LINENO"
22527 then :
22528 HAVE_SOLARIS_ATOMIC=yes
22529
22530 printf "%s\n" "#define HAVE_SOLARIS_ATOMIC 1" >>confdefs.h
22531
22532
22533 else $as_nop
22534 HAVE_SOLARIS_ATOMIC=no
22535 fi
22536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_SOLARIS_ATOMIC" >&5
22538 printf "%s\n" "$HAVE_SOLARIS_ATOMIC" >&6; }
22539
22540
22541 { printf "%s\n" ; printf "%s\n" " *** choices made by the user (via ./configure arguments)... ***"; printf "%s\n" ; }
22542
22543 # the standard convention is that ^D means EOF aka. end-of-file. Some users
22544 # prefer ^D to delete one character and ^Z to mean EOF.
22545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ctrl-D shall delete one char (and ctrl-Z be EOF)" >&5
22546 printf %s "checking if ctrl-D shall delete one char (and ctrl-Z be EOF)... " >&6; }
22547
22548 # Check whether --with-ctrld_del was given.
22549 if test ${with_ctrld_del+y}
22550 then :
22551 withval=$with_ctrld_del; cfg_CTRLD_DEL=$withval
22552 else $as_nop
22553 cfg_CTRLD_DEL=no
22554 fi
22555
22556
22557 if test "x$cfg_CTRLD_DEL" = "xyes"; then
22558
22559 printf "%s\n" "#define cfg_WANT_CTRLD_DEL 1" >>confdefs.h
22560
22561 fi
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cfg_CTRLD_DEL" >&5
22563 printf "%s\n" "$cfg_CTRLD_DEL" >&6; }
22564
22565 #
22566 # vim: et:ts=4:sw=4
22567 #
22568 # This file (i.e. apl_TARGETs.m4) checks for different non-standard
22569 # build targets (Android, Erlang, libapl, Python) that can be selected
22570 # by command line options for ./configure
22571 #
22572
22573 ###############################################################################
22574 # check if the user compiles for ANDROID
22575 #
22576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the build target is Android" >&5
22577 printf %s "checking if the build target is Android... " >&6; }
22578
22579 # Check whether --with-android was given.
22580 if test ${with_android+y}
22581 then :
22582 withval=$with_android; apl_TARGET_ANDROID=$withval
22583 else $as_nop
22584 apl_TARGET_ANDROID=no
22585 fi
22586
22587
22588 if test "x$apl_TARGET_ANDROID" = "xyes"; then
22589
22590 printf "%s\n" "#define apl_TARGET_ANDROID 1" >>confdefs.h
22591
22592 fi
22593 if test "x$apl_TARGET_ANDROID" = "xyes"; then
22594 apl_TARGET_ANDROID_TRUE=
22595 apl_TARGET_ANDROID_FALSE='#'
22596 else
22597 apl_TARGET_ANDROID_TRUE='#'
22598 apl_TARGET_ANDROID_FALSE=
22599 fi
22600
22601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_TARGET_ANDROID" >&5
22602 printf "%s\n" "$apl_TARGET_ANDROID" >&6; }
22603
22604 ###############################################################################
22605 # check if the user wants the Erlang interface (and therefore also libapl)
22606 #
22607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the build target is the Erlang interface (also requires libapl.so)" >&5
22608 printf %s "checking if the build target is the Erlang interface (also requires libapl.so)... " >&6; }
22609
22610 # Check whether --with-erlang was given.
22611 if test ${with_erlang+y}
22612 then :
22613 withval=$with_erlang; apl_TARGET_ERLANG=$withval
22614 else $as_nop
22615 apl_TARGET_ERLANG=no
22616 fi
22617
22618
22619
22620 if test "x$apl_TARGET_ERLANG" = "xyes"; then
22621
22622 printf "%s\n" "#define apl_TARGET_ERLANG 1" >>confdefs.h
22623
22624 fi
22625
22626 if test "x$apl_TARGET_ERLANG" = "xyes"; then
22627 apl_TARGET_ERLANG_TRUE=
22628 apl_TARGET_ERLANG_FALSE='#'
22629 else
22630 apl_TARGET_ERLANG_TRUE='#'
22631 apl_TARGET_ERLANG_FALSE=
22632 fi
22633
22634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_TARGET_ERLANG" >&5
22635 printf "%s\n" "$apl_TARGET_ERLANG" >&6; }
22636
22637
22638 ###############################################################################
22639 # check if the user wants to build libapl.so
22640 #
22641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the build target is libapl.so" >&5
22642 printf %s "checking if the build target is libapl.so... " >&6; }
22643 apl_TARGET_LIBAPL=$apl_TARGET_ERLANG # Erlang needs libapl
22644
22645 # Check whether --with-libapl was given.
22646 if test ${with_libapl+y}
22647 then :
22648 withval=$with_libapl; apl_TARGET_LIBAPL=$withval
22649 fi
22650
22651
22652 if test "x$apl_TARGET_LIBAPL" = "xyes"; then
22653
22654 printf "%s\n" "#define apl_TARGET_LIBAPL 1" >>confdefs.h
22655
22656 fi
22657
22658 if test "x$apl_TARGET_LIBAPL" = "xyes"; then
22659 apl_TARGET_LIBAPL_TRUE=
22660 apl_TARGET_LIBAPL_FALSE='#'
22661 else
22662 apl_TARGET_LIBAPL_TRUE='#'
22663 apl_TARGET_LIBAPL_FALSE=
22664 fi
22665
22666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_TARGET_LIBAPL" >&5
22667 printf "%s\n" "$apl_TARGET_LIBAPL" >&6; }
22668
22669
22670 ###############################################################################
22671 # check if the user wants to build the python extension libpython_apl.so
22672 #
22673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the build target is libpython_apl.so" >&5
22674 printf %s "checking if the build target is libpython_apl.so... " >&6; }
22675 apl_TARGET_PYTHON=no
22676
22677 PYTHON_CFLAGS=
22678
22679 # Check whether --with-python was given.
22680 if test ${with_python+y}
22681 then :
22682 withval=$with_python; apl_TARGET_PYTHON=$withval
22683 fi
22684
22685
22686 if test "x$apl_TARGET_PYTHON" = "xyes"; then
22687
22688 printf "%s\n" "#define apl_TARGET_PYTHON 1" >>confdefs.h
22689
22690 # Extract the first word of "pkg-config", so it can be a program name with args.
22691 set dummy pkg-config; ac_word=$2
22692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22693 printf %s "checking for $ac_word... " >&6; }
22694 if test ${ac_cv_path_PKG_CONFIG+y}
22695 then :
22696 printf %s "(cached) " >&6
22697 else $as_nop
22698 case $PKG_CONFIG in
22699 [\\/]* | ?:[\\/]*)
22700 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22701 ;;
22702 *)
22703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22704 for as_dir in $PATH
22705 do
22706 IFS=$as_save_IFS
22707 case $as_dir in #(((
22708 '') as_dir=./ ;;
22709 */) ;;
22710 *) as_dir=$as_dir/ ;;
22711 esac
22712 for ac_exec_ext in '' $ac_executable_extensions; do
22713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22714 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22716 break 2
22717 fi
22718 done
22719 done
22720 IFS=$as_save_IFS
22721
22722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22723 ;;
22724 esac
22725 fi
22726 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22727 if test -n "$PKG_CONFIG"; then
22728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22729 printf "%s\n" "$PKG_CONFIG" >&6; }
22730 else
22731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22732 printf "%s\n" "no" >&6; }
22733 fi
22734
22735 # locate pkg-config
22736 if test "x$PKG_CONFIG" = "xyes"; then # we have pkg-config
22737 if $PKG_CONFIG --exists python3; then # and pkg-config knows python3
22738 PYTHON_CFLAGS=$( $PKG_CONFIG --cflags python3 )
22739 fi
22740 fi
22741 fi
22742 if test "x$apl_TARGET_PYTHON" = "xyes"; then
22743 apl_TARGET_PYTHON_TRUE=
22744 apl_TARGET_PYTHON_FALSE='#'
22745 else
22746 apl_TARGET_PYTHON_TRUE='#'
22747 apl_TARGET_PYTHON_FALSE=
22748 fi
22749
22750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_TARGET_PYTHON" >&5
22751 printf "%s\n" "$apl_TARGET_PYTHON" >&6; }
22752
22753 ###############################################################################
22754
22755
22756 ac_config_files="$ac_config_files Makefile build/Makefile debian/Makefile debian/source/Makefile doc/Makefile doc/DALY/Makefile erlang/Makefile erlang/apl.erl gnu-apl.d/Makefile gnu-apl.d/preferences HOWTOs/Makefile rpm/Makefile rpm/apl.spec src/Makefile src/APs/Makefile src/Gtk/Makefile src/emacs_mode/Makefile src/native/Makefile src/sql/Makefile src/testcases/Makefile src/workspaces/Makefile support-files/Makefile support-files/105-key-International-Keyboard/Makefile support-files/Bill_Daly_Ubuntu/Makefile support-files/Dirk/Makefile support-files/Dyalog-Keyboard/Makefile support-files/Juergen-Mint-19/Makefile support-files/Juergen-Mint-21/Makefile support-files/old-Keyboard/Makefile support-files/OS-X-Keyboard/Makefile support-files/Unicomp-Keyboard/Makefile support-files/WASD-Keyboard/Makefile tools/Makefile websock/Makefile websock/client/Makefile websock/server/Makefile workspaces/Makefile wslib3/Makefile wslib3/DALY/Makefile wslib4/Makefile wslib5/Makefile wslib5/APLComponentFiles/Makefile wslib5/DALY/Makefile wslib5/iso-apl-cf/Makefile"
22757
22758
22759 # AM_CXXFLAGS: do/dont -Werror ?
22760
22761 if test "x$CXX_WERROR" = "xyes"; then CXX_WERROR="-Werror";
22762 else CXX_WERROR=""; fi
22763
22764 # APL: development configuration desired ? Set this before other xxx_WANTED
22765 # options so that the implied xxx_WANTED options set here can be overridden
22766 # further down
22767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether development mode is desired" >&5
22768 printf %s "checking whether development mode is desired... " >&6; }
22769
22770 if test "x$DEVELOP_WANTED" = "xyes"; then
22771
22772 printf "%s\n" "#define cfg_DEVELOP_WANTED 1" >>confdefs.h
22773
22774 ASSERT_LEVEL_WANTED=2
22775 DYNAMIC_LOG_WANTED=yes
22776 PERFORMANCE_COUNTERS_WANTED=yes
22777 VALUE_CHECK_WANTED=yes
22778 VALUE_HISTORY_WANTED=yes
22779 else DEVELOP_WANTED=no
22780 fi
22781 if test "x$DEVELOP_WANTED" = "xyes"; then
22782 apl_DEVELOP_TRUE=
22783 apl_DEVELOP_FALSE='#'
22784 else
22785 apl_DEVELOP_TRUE='#'
22786 apl_DEVELOP_FALSE=
22787 fi
22788
22789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVELOP_WANTED" >&5
22790 printf "%s\n" "$DEVELOP_WANTED" >&6; }
22791
22792
22793 # APL: max. rank ?
22794
22795 if test "x$MAX_RANK_WANTED" = "x"; then MAX_RANK_WANTED=8; fi # set default to 8
22796
22797 printf "%s\n" "#define cfg_MAX_RANK_WANTED $MAX_RANK_WANTED" >>confdefs.h
22798
22799
22800 # APL: alt map desired ?
22801
22802 if test "x$ALT_MAP_WANTED" = "x"; then ALT_MAP_WANTED=0; fi # set default to 0
22803
22804 printf "%s\n" "#define cfg_ALT_MAP_WANTED $ALT_MAP_WANTED" >>confdefs.h
22805
22806
22807
22808 # APL: Value::check_value() desired ?
22809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether internal value checks shall be enabled" >&5
22810 printf %s "checking whether internal value checks shall be enabled... " >&6; }
22811
22812 if test "x$VALUE_CHECK_WANTED" = "xyes"; then
22813
22814 printf "%s\n" "#define cfg_VALUE_CHECK_WANTED 1" >>confdefs.h
22815
22816 else VALUE_CHECK_WANTED="no"
22817 fi
22818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALUE_CHECK_WANTED" >&5
22819 printf "%s\n" "$VALUE_CHECK_WANTED" >&6; }
22820
22821
22822 # APL: performance counters desired ?
22823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether internal performance counters shall be enabled)" >&5
22824 printf %s "checking whether internal performance counters shall be enabled)... " >&6; }
22825
22826 if test "x$PERFORMANCE_COUNTERS_WANTED" = "xyes"; then
22827
22828 printf "%s\n" "#define cfg_PERFORMANCE_COUNTERS_WANTED 1" >>confdefs.h
22829
22830 else PERFORMANCE_COUNTERS_WANTED="no"
22831 fi
22832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERFORMANCE_COUNTERS_WANTED" >&5
22833 printf "%s\n" "$PERFORMANCE_COUNTERS_WANTED" >&6; }
22834
22835
22836 # APL: ADD_EVENT() macro and friends desired ?
22837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to remember the history of APL values (debug feature)" >&5
22838 printf %s "checking whether to remember the history of APL values (debug feature)... " >&6; }
22839
22840 if test "x$VALUE_HISTORY_WANTED" = "xyes"; then
22841
22842 printf "%s\n" "#define cfg_VALUE_HISTORY_WANTED 1" >>confdefs.h
22843
22844 else VALUE_HISTORY_WANTED="no"
22845 fi
22846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALUE_HISTORY_WANTED" >&5
22847 printf "%s\n" "$VALUE_HISTORY_WANTED" >&6; }
22848
22849
22850 # APL: gprof profiling ?
22851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gprof profiling shall be enabled" >&5
22852 printf %s "checking whether gprof profiling shall be enabled... " >&6; }
22853
22854 if test "x$GPROF_WANTED" = "xyes"; then
22855 GPROF_WANTED="-pg"
22856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22857 printf "%s\n" "yes" >&6; }
22858 else
22859 GPROF_WANTED=
22860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 printf "%s\n" "no" >&6; }
22862 fi
22863
22864
22865 # APL: gcov coverage testing ?
22866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcov coverage testing shall be enabled" >&5
22867 printf %s "checking whether gcov coverage testing shall be enabled... " >&6; }
22868
22869 if test "x$GCOV_WANTED" = "xyes"; then
22870 GCOV_WANTED="--coverage"
22871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22872 printf "%s\n" "yes" >&6; }
22873 else
22874 GCOV_WANTED=
22875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22876 printf "%s\n" "no" >&6; }
22877 fi
22878
22879
22880 # APL: dynamic logging desired ?
22881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dynamic logging shall be enabled" >&5
22882 printf %s "checking whether dynamic logging shall be enabled... " >&6; }
22883
22884 if test "x$DYNAMIC_LOG_WANTED" = "xyes"; then
22885
22886 printf "%s\n" "#define cfg_DYNAMIC_LOG_WANTED 1" >>confdefs.h
22887
22888 else DYNAMIC_LOG_WANTED="no"
22889 fi
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNAMIC_LOG_WANTED" >&5
22891 printf "%s\n" "$DYNAMIC_LOG_WANTED" >&6; }
22892
22893
22894 # APL: tracing of value flags (produces lots of messages) desired ?
22895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether value flags shall be traced" >&5
22896 printf %s "checking whether value flags shall be traced... " >&6; }
22897
22898 if test "x$VF_TRACING_WANTED" = "xyes"; then
22899
22900 printf "%s\n" "#define cfg_VF_TRACING_WANTED 1" >>confdefs.h
22901
22902 else VF_TRACING_WANTED="no"
22903 fi
22904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VF_TRACING_WANTED" >&5
22905 printf "%s\n" "$VF_TRACING_WANTED" >&6; }
22906
22907
22908 # APL: desired assert level ?
22909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how picky (0=not, 1=somwhat, 2=very) internal tests shall be" >&5
22910 printf %s "checking how picky (0=not, 1=somwhat, 2=very) internal tests shall be... " >&6; }
22911
22912 if test "x$ASSERT_LEVEL_WANTED" = "x"; then ASSERT_LEVEL_WANTED=1; fi # default: 1
22913
22914 printf "%s\n" "#define cfg_ASSERT_LEVEL_WANTED $ASSERT_LEVEL_WANTED" >>confdefs.h
22915
22916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASSERT_LEVEL_WANTED" >&5
22917 printf "%s\n" "$ASSERT_LEVEL_WANTED" >&6; }
22918
22919
22920 # APL: desired security level ?
22921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking security level (0=none, 1=configured in preferences, 2=all)" >&5
22922 printf %s "checking security level (0=none, 1=configured in preferences, 2=all)... " >&6; }
22923
22924 if test "x$SECURITY_LEVEL_WANTED" = "x"; then SECURITY_LEVEL_WANTED=0; fi
22925
22926 printf "%s\n" "#define cfg_SECURITY_LEVEL_WANTED $SECURITY_LEVEL_WANTED" >>confdefs.h
22927
22928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURITY_LEVEL_WANTED" >&5
22929 printf "%s\n" "$SECURITY_LEVEL_WANTED" >&6; }
22930
22931
22932 # APL: number of cores ?
22933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many CPU cores shall be used by APL (experimental!)" >&5
22934 printf %s "checking how many CPU cores shall be used by APL (experimental!)... " >&6; }
22935
22936 if test "x$CORE_COUNT_WANTED" = "x"; then CORE_COUNT_WANTED=0;
22937 elif test "x$CORE_COUNT_WANTED" = "xall "; then CORE_COUNT_WANTED=-1;
22938 elif test "x$CORE_COUNT_WANTED" = "xALL "; then CORE_COUNT_WANTED=-1;
22939 elif test "x$CORE_COUNT_WANTED" = "xargv"; then CORE_COUNT_WANTED=-2;
22940 elif test "x$CORE_COUNT_WANTED" = "xARGV"; then CORE_COUNT_WANTED=-2;
22941 elif test "x$CORE_COUNT_WANTED" = "xsyl "; then CORE_COUNT_WANTED=-3;
22942 elif test "x$CORE_COUNT_WANTED" = "xSYL "; then CORE_COUNT_WANTED=-3;
22943 fi
22944
22945 printf "%s\n" "#define cfg_CORE_COUNT_WANTED $CORE_COUNT_WANTED" >>confdefs.h
22946
22947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CORE_COUNT_WANTED" >&5
22948 printf "%s\n" "$CORE_COUNT_WANTED" >&6; }
22949
22950
22951 # APL: APserver transport?
22952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which type of socket APserver shall use" >&5
22953 printf %s "checking which type of socket APserver shall use... " >&6; }
22954
22955 if test "x$APSERVER_TRANSPORT" = "x"; then APSERVER_TRANSPORT=0;
22956 elif test "x$APSERVER_TRANSPORT" = "xTCP "; then APSERVER_TRANSPORT=0;
22957 elif test "x$APSERVER_TRANSPORT" = "xLINUX"; then APSERVER_TRANSPORT=1;
22958 elif test "x$APSERVER_TRANSPORT" = "xUNIX "; then APSERVER_TRANSPORT=2;
22959 fi
22960
22961 printf "%s\n" "#define cfg_APSERVER_TRANSPORT $APSERVER_TRANSPORT" >>confdefs.h
22962
22963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APSERVER_TRANSPORT" >&5
22964 printf "%s\n" "$APSERVER_TRANSPORT" >&6; }
22965
22966
22967 # APL: APserver TCP port number?
22968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which port number APserver shall use for TCP or UDP sockets" >&5
22969 printf %s "checking which port number APserver shall use for TCP or UDP sockets... " >&6; }
22970
22971 if test "x$APSERVER_PORT" = "x"; then APSERVER_PORT=16366; fi
22972
22973 printf "%s\n" "#define cfg_APSERVER_PORT $APSERVER_PORT" >>confdefs.h
22974
22975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APSERVER_PORT" >&5
22976 printf "%s\n" "$APSERVER_PORT" >&6; }
22977
22978
22979 # APL: APserver port name ?
22980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which *nix port name APserver shall use" >&5
22981 printf %s "checking which *nix port name APserver shall use... " >&6; }
22982
22983 if test "x$APSERVER_PATH" = "x"; then APSERVER_PATH="/tmp/GNU-APL/APserver"; fi
22984
22985 printf "%s\n" "#define cfg_APSERVER_PATH \"$APSERVER_PATH\"" >>confdefs.h
22986
22987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APSERVER_PATH" >&5
22988 printf "%s\n" "$APSERVER_PATH" >&6; }
22989
22990
22991 # APL: desired cellcount of short values ?
22992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how long a short APL value shall be at most" >&5
22993 printf %s "checking how long a short APL value shall be at most... " >&6; }
22994
22995 if test "x$SHORT_VALUE_LENGTH_WANTED" = "x"; then SHORT_VALUE_LENGTH_WANTED=12; fi
22996
22997 printf "%s\n" "#define cfg_SHORT_VALUE_LENGTH_WANTED $SHORT_VALUE_LENGTH_WANTED" >>confdefs.h
22998
22999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHORT_VALUE_LENGTH_WANTED" >&5
23000 printf "%s\n" "$SHORT_VALUE_LENGTH_WANTED" >&6; }
23001
23002
23003 # APL: visible markers (debug only option) ?
23004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether visible markers shall be used" >&5
23005 printf %s "checking whether visible markers shall be used... " >&6; }
23006
23007 if test "x$VISIBLE_MARKERS_WANTED" = "xyes"; then
23008
23009 printf "%s\n" "#define cfg_VISIBLE_MARKERS_WANTED 1" >>confdefs.h
23010
23011 else VISIBLE_MARKERS_WANTED="no"
23012 fi
23013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VISIBLE_MARKERS_WANTED" >&5
23014 printf "%s\n" "$VISIBLE_MARKERS_WANTED" >&6; }
23015
23016
23017 # APL: support for rational numbers?
23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether support for rational numbers is desired " >&5
23019 printf %s "checking whether support for rational numbers is desired ... " >&6; }
23020
23021 if test "x$RATIONAL_NUMBERS_WANTED" = "xyes"; then
23022
23023 printf "%s\n" "#define cfg_RATIONAL_NUMBERS_WANTED 1" >>confdefs.h
23024
23025 else RATIONAL_NUMBERS_WANTED="no"
23026 fi
23027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RATIONAL_NUMBERS_WANTED" >&5
23028 printf "%s\n" "$RATIONAL_NUMBERS_WANTED" >&6; }
23029
23030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when and where this interpreter was built" >&5
23031 printf %s "checking when and where this interpreter was built... " >&6; }
23032
23033 # compute the GNU APL build date, using $SOURCE_DATE_EPOCH if present.
23034 # if $SOURCE_DATE_EPOCH is set, then this is supposedly a reproducible build
23035 # (see https://reproducible-builds.org/docs/source-date-epoch ).
23036 # Reproducible builds should not contain any non-predictable data.i
23037 # In our case the non-predictable data is apl_BUILD_DATE and apl_BUILD_OS.
23038 #
23039
23040 # format the date, see https://unix.stackexchange.com/questions/230464/how-to-format-date-output-with-spaces-as-variable-in-script
23041 #
23042 dash_format_date()
23043 {
23044 date "+%F %R:%S %Z" "$@"
23045 }
23046
23047 dash_build_date()
23048 { {
23049
23050 DATE_FMT="+%F\ %R:%S\ %Z"
23051 apl_BUILD_DATE=$(dash_format_date) # current time (not predictable)
23052 apl_BUILD_OS=$(uname -s -r -m) # current OS
23053
23054 if test -n "$SOURCE_DATE_EPOCH"
23055 then :
23056 apl_BUILD_OS="none"
23057 apl_BUILD_DATE= $(
23058 dash_format_date -u -d "$SOURCE_DATE_EPOCH" 2>/dev/null ||
23059 dash_format_date -u -r $SOURCE_DATE_EPOCH ||
23060 dash_format_date -u)
23061
23062 fi
23063
23064
23065 } }
23066
23067 dash_build_date # set apl_BUILD_DATE and apl_BUILD_OS
23068
23069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $apl_BUILD_DATE" >&5
23070 printf "%s\n" "$apl_BUILD_DATE" >&6; }
23071
23072 # set 'abs_apl_top' to the "real" top-level directory. The "real" top-level
23073 # directory contains file configure.ac, while the VPATH copies of it do not.
23074 #
23075 if test -f configure.ac; then # normal build
23076 abs_apl_top=`pwd`
23077 else # VPATH build
23078 abs_apl_top="not-found" # assume not found
23079 apl_top=`pwd` # start search at current directory
23080 printf "%s\n" "
23081 $as_me: VPATH build: locating the real GNU APL top-level directory..."
23082
23083 for q in 1 2 3 4; do # at most 4 times...
23084 if test -f "$apl_top/configure.ac" # configure.ac exists in $apl_top ?
23085 then # yes...
23086 printf "%s\n" "$as_me: └── found at: $apl_top"
23087 abs_apl_top="$apl_top" # and remember the directory
23088 break # done.
23089 else # no...
23090 apl_top=`dirname $apl_top` # move upwards towards /
23091 fi
23092 done
23093
23094 if test "x$abs_apl_top" = "xnot-found"; then
23095 abs_apl_top=`pwd`
23096 printf "%s\n" "$as_me: └── *** NOT FOUND, using . (i.e. $abs_apl_top)"
23097 fi
23098 fi
23099
23100
23101 # figure the SVN versions of the interpreter and the (usually older) Archive.cc
23102 #
23103 apl_SVNINFO="no-svnversion"
23104 apl_ARCHIVE_SVNINFO="no-svn"
23105 SVNPROG=`which svn`
23106 SVNVERSION=`which svnversion`
23107 test $SVNVERSION && test -x $SVNVERSION && apl_SVNINFO=`$SVNVERSION`
23108
23109 if test $SVNPROG && test -x $SVNPROG; then
23110 apl_ARCHIVE_SVNINFO=`$SVNPROG info "$abs_apl_top"/src/Archive.cc \
23111 | grep "Last Changed Rev" \
23112 | awk -F : '{print $2;}'`
23113 fi
23114
23115 if test "$configure_args"; then
23116 apl_CONFIGURE_OPTIONS=$configure_options
23117 else
23118 apl_CONFIGURE_OPTIONS="default ./configure options"
23119 fi
23120
23121
23122
23123 cat >>confdefs.h <<_ACEOF
23124 #define BUILDTAG PACKAGE_NAME, PACKAGE_VERSION " / SVN: $apl_SVNINFO", \
23125 "$apl_BUILD_DATE", "$apl_BUILD_OS", "$apl_CONFIGURE_OPTIONS"
23126 _ACEOF
23127
23128
23129
23130 printf "%s\n" "#define ARCHIVE_SVN \"$apl_ARCHIVE_SVNINFO\"" >>confdefs.h
23131
23132
23133 # the user may override the install directories, either with --prefix or
23134 # --exec_prefix (affecting several directories), or by --bindir and friends.
23135 # Figure out the details.
23136 #
23137 # NOTE that, unfortunately, the variables in ./configure will be quoted:
23138 #
23139 # bindir='${exec_prefix}/bin'
23140 # libdir='${exec_prefix}/lib'
23141 # datarootdir='${prefix}/share'
23142 # sysconfdir='${prefix}/etc'
23143 # docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
23144 # ...
23145 #
23146 # Therefore, to figure if a user has overwritten them with ./configure command
23147 # line arguments, we need to prevent the expansion of variables in the second
23148 # argument of apl_EQ() by escaping their leading $. For example (note the \$
23149 # instead of $):
23150 #
23151 # if apl_EQ($bindir, \${exec_prefix}/bin)
23152 #
23153 # NOTE also that some ./configure variables will default to "NONE" instead
23154 # of "" if the user does not overwrite them:
23155 #
23156 # exec_prefix=NONE
23157 # prefix=NONE
23158 # program_prefix=NONE
23159 # program_suffix=NONE
23160 # x_includes=NONE
23161 # x_libraries=NONE
23162 #
23163 if test "x$prefix" = "xNONE"
23164 then # no user --prefix
23165 apl_prefix="$ac_default_prefix" # default: /usr/local
23166 else # --prefix given
23167 apl_prefix=$prefix
23168 printf "%s\n" " --prefix overwrite: $apl_prefix"
23169 fi
23170
23171 if test "x$exec_prefix" = "xNONE"
23172 then # no user --exec_prefix
23173 apl_exec_prefix="$apl_prefix" # default: PREFIX
23174 else # --exec_prefix given
23175 apl_exec_prefix=$exec_prefix
23176 printf "%s\n" " --exec_prefix overwrite: $apl_exec_prefix"
23177 fi
23178
23179
23180 if test "x$bindir" = "x\${exec_prefix}/bin"
23181 then # no user --bindir
23182 apl_bindir="$apl_exec_prefix/bin" # default: EPREFIX/bin
23183 else # --bindir given
23184 apl_bindir="$bindir"
23185 printf "%s\n" " --bindir overwrite: $apl_bindir"
23186 fi
23187
23188
23189 if test "x$libdir" = "x\${exec_prefix}/lib"
23190 then # no user --libdir
23191 apl_libdir="$apl_exec_prefix/lib" # default: EPREFIX/lib
23192 else # --libdir given
23193 apl_libdir="$libdir"
23194 printf "%s\n" " --libdir overwrite: $apl_libdir"
23195 fi
23196
23197
23198 if test "x$datarootdir" = "x\${prefix}/share"
23199 then # no user --datarootdir
23200 apl_datarootdir="${apl_prefix}/share" # default: PREFIX/share
23201 else # --datarootdir given
23202 apl_datarootdir="${datarootdir}"
23203 printf "%s\n" " --apl_datarootdir overwrite: ${apl_datarootdir}"
23204 fi
23205
23206
23207 if test "x$docdir" = "x\${datarootdir}/doc/\${PACKAGE_TARNAME}"
23208 then # no user --docdir
23209 apl_docdir="${apl_datarootdir}/doc/apl" # default
23210 else # --docdir given
23211 apl_docdir="$docdir"
23212 printf "%s\n" " --docdir overwrite: $apl_docdir"
23213 fi
23214
23215 if test "x$localedir" = "x\${datarootdir}/locale"
23216 then # no user --localedir
23217 apl_localedir="${apl_datarootdir}/locale" # default
23218 else # --localedir given
23219 apl_localedir="$localedir"
23220 printf "%s\n" " --localedir overwrite: $apl_localedir"
23221 fi
23222
23223
23224 if test "x$sysconfdir" = "x\${prefix}/etc"
23225 then # no user --sysconfdir
23226 apl_sysconfdir="${apl_prefix}/etc" # default: PREFIX/etc
23227 else # --sysconfdir given
23228 apl_sysconfdir="${sysconfdir}"
23229 printf "%s\n" " --sysconfdir overwrite: ${apl_sysconfdir}"
23230 fi
23231
23232
23233 printf "%s\n" "#define apl_DIR__bin \"$apl_bindir\"" >>confdefs.h
23234
23235
23236 printf "%s\n" "#define apl_DIR__datarootdir \"$apl_datarootdir\"" >>confdefs.h
23237
23238
23239 printf "%s\n" "#define apl_DIR__doc \"$apl_docdir\"" >>confdefs.h
23240
23241
23242 printf "%s\n" "#define apl_DIR__exec_prefix \"$apl_exec_prefix\"" >>confdefs.h
23243
23244
23245 printf "%s\n" "#define apl_DIR__lib \"$apl_libdir\"" >>confdefs.h
23246
23247
23248 printf "%s\n" "#define apl_DIR__locale \"$apl_localedir\"" >>confdefs.h
23249
23250
23251 printf "%s\n" "#define apl_DIR__prefix \"$apl_prefix\"" >>confdefs.h
23252
23253
23254 printf "%s\n" "#define apl_DIR__sysconf \"$apl_sysconfdir\"" >>confdefs.h
23255
23256
23257 printf "%s\n" "#define apl_DIR__pkglib \"$apl_libdir/apl\"" >>confdefs.h
23258
23259
23260 if test -n "$SOURCE_DATE_EPOCH"
23261 then # reproducible build
23262
23263 printf "%s\n" "#define apl_DIR__src \"src\"" >>confdefs.h
23264
23265 else # normal build
23266
23267 printf "%s\n" "#define apl_DIR__src \"$abs_apl_top/src\"" >>confdefs.h
23268
23269 fi
23270
23271 # we want yes/no in the ./configure output, but 0/1 in config.h...
23272 #
23273 if (test "x$apl_FFT" = "xyes"); then
23274
23275 printf "%s\n" "#define apl_FFT 1" >>confdefs.h
23276
23277 else
23278 printf "%s\n" "#define apl_FFT 0" >>confdefs.h
23279
23280 fi
23281
23282 if (test "x$apl_GUI" = "xyes"); then
23283
23284 printf "%s\n" "#define apl_GUI 1" >>confdefs.h
23285
23286 else
23287 printf "%s\n" "#define apl_GUI 0" >>confdefs.h
23288
23289 fi
23290
23291 if (test "x$apl_GSL" = "xyes"); then
23292
23293 printf "%s\n" "#define apl_GSL 1" >>confdefs.h
23294
23295 else
23296 printf "%s\n" "#define apl_GSL 0" >>confdefs.h
23297
23298 fi
23299
23300 if (test "x$apl_PCRE" = "xyes"); then
23301
23302 printf "%s\n" "#define apl_PCRE 1" >>confdefs.h
23303
23304 else
23305 printf "%s\n" "#define apl_PCRE 0" >>confdefs.h
23306
23307 fi
23308
23309 if (test "x$apl_PNG" = "xyes"); then
23310
23311 printf "%s\n" "#define apl_PNG 1" >>confdefs.h
23312
23313 else
23314 printf "%s\n" "#define apl_PNG 0" >>confdefs.h
23315
23316 fi
23317
23318
23319 { printf "%s\n" ; printf "%s\n" " *** ./configure checks done, producing the Makefiles and config.h... ***"; printf "%s\n" ; }
23320
23321 cat >confcache <<\_ACEOF
23322 # This file is a shell script that caches the results of configure
23323 # tests run on this system so they can be shared between configure
23324 # scripts and configure runs, see configure's option --config-cache.
23325 # It is not useful on other systems. If it contains results you don't
23326 # want to keep, you may remove or edit it.
23327 #
23328 # config.status only pays attention to the cache file if you give it
23329 # the --recheck option to rerun configure.
23330 #
23331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23333 # following values.
23334
23335 _ACEOF
23336
23337 # The following way of writing the cache mishandles newlines in values,
23338 # but we know of no workaround that is simple, portable, and efficient.
23339 # So, we kill variables containing newlines.
23340 # Ultrix sh set writes to stderr and can't be redirected directly,
23341 # and sets the high bit in the cache file unless we assign to the vars.
23342 (
23343 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23344 eval ac_val=\$$ac_var
23345 case $ac_val in #(
23346 *${as_nl}*)
23347 case $ac_var in #(
23348 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23349 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23350 esac
23351 case $ac_var in #(
23352 _ | IFS | as_nl) ;; #(
23353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23354 *) { eval $ac_var=; unset $ac_var;} ;;
23355 esac ;;
23356 esac
23357 done
23358
23359 (set) 2>&1 |
23360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23361 *${as_nl}ac_space=\ *)
23362 # `set' does not quote correctly, so add quotes: double-quote
23363 # substitution turns \\\\ into \\, and sed turns \\ into \.
23364 sed -n \
23365 "s/'/'\\\\''/g;
23366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23367 ;; #(
23368 *)
23369 # `set' quotes correctly as required by POSIX, so do not add quotes.
23370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23371 ;;
23372 esac |
23373 sort
23374 ) |
23375 sed '
23376 /^ac_cv_env_/b end
23377 t clear
23378 :clear
23379 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23380 t end
23381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23382 :end' >>confcache
23383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23384 if test -w "$cache_file"; then
23385 if test "x$cache_file" != "x/dev/null"; then
23386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23387 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23388 if test ! -f "$cache_file" || test -h "$cache_file"; then
23389 cat confcache >"$cache_file"
23390 else
23391 case $cache_file in #(
23392 */* | ?:*)
23393 mv -f confcache "$cache_file"$$ &&
23394 mv -f "$cache_file"$$ "$cache_file" ;; #(
23395 *)
23396 mv -f confcache "$cache_file" ;;
23397 esac
23398 fi
23399 fi
23400 else
23401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23402 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23403 fi
23404 fi
23405 rm -f confcache
23406
23407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23408 # Let make expand exec_prefix.
23409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23410
23411 DEFS=-DHAVE_CONFIG_H
23412
23413 ac_libobjs=
23414 ac_ltlibobjs=
23415 U=
23416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23417 # 1. Remove the extension, and $U if already installed.
23418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23419 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23421 # will be set to the directory where LIBOBJS objects are built.
23422 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23423 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23424 done
23425 LIBOBJS=$ac_libobjs
23426
23427 LTLIBOBJS=$ac_ltlibobjs
23428
23429
23430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23431 printf %s "checking that generated files are newer than configure... " >&6; }
23432 if test -n "$am_sleep_pid"; then
23433 # Hide warnings about reused PIDs.
23434 wait $am_sleep_pid 2>/dev/null
23435 fi
23436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23437 printf "%s\n" "done" >&6; }
23438 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23439 as_fn_error $? "conditional \"AMDEP\" was never defined.
23440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23441 fi
23442 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23443 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23445 fi
23446 if test -n "$EXEEXT"; then
23447 am__EXEEXT_TRUE=
23448 am__EXEEXT_FALSE='#'
23449 else
23450 am__EXEEXT_TRUE='#'
23451 am__EXEEXT_FALSE=
23452 fi
23453
23454 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23455 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23457 fi
23458 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23459 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23461 fi
23462 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23463 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23465 fi
23466 if test -z "${apl_X11_TRUE}" && test -z "${apl_X11_FALSE}"; then
23467 as_fn_error $? "conditional \"apl_X11\" was never defined.
23468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23469 fi
23470 if test -z "${apl_XCB_TRUE}" && test -z "${apl_XCB_FALSE}"; then
23471 as_fn_error $? "conditional \"apl_XCB\" was never defined.
23472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23473 fi
23474 if test -z "${apl_SQLITE3_TRUE}" && test -z "${apl_SQLITE3_FALSE}"; then
23475 as_fn_error $? "conditional \"apl_SQLITE3\" was never defined.
23476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23477 fi
23478 if test -z "${apl_POSTGRES_TRUE}" && test -z "${apl_POSTGRES_FALSE}"; then
23479 as_fn_error $? "conditional \"apl_POSTGRES\" was never defined.
23480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23481 fi
23482 if test -z "${apl_PCRE_TRUE}" && test -z "${apl_PCRE_FALSE}"; then
23483 as_fn_error $? "conditional \"apl_PCRE\" was never defined.
23484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23485 fi
23486 if test -z "${apl_GSL_TRUE}" && test -z "${apl_GSL_FALSE}"; then
23487 as_fn_error $? "conditional \"apl_GSL\" was never defined.
23488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23489 fi
23490 if test -z "${apl_GTK3_TRUE}" && test -z "${apl_GTK3_FALSE}"; then
23491 as_fn_error $? "conditional \"apl_GTK3\" was never defined.
23492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23493 fi
23494 if test -z "${HAVE_SEM_INIT_TRUE}" && test -z "${HAVE_SEM_INIT_FALSE}"; then
23495 as_fn_error $? "conditional \"HAVE_SEM_INIT\" was never defined.
23496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23497 fi
23498 if test -z "${apl_TARGET_ANDROID_TRUE}" && test -z "${apl_TARGET_ANDROID_FALSE}"; then
23499 as_fn_error $? "conditional \"apl_TARGET_ANDROID\" was never defined.
23500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23501 fi
23502 if test -z "${apl_TARGET_ERLANG_TRUE}" && test -z "${apl_TARGET_ERLANG_FALSE}"; then
23503 as_fn_error $? "conditional \"apl_TARGET_ERLANG\" was never defined.
23504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23505 fi
23506 if test -z "${apl_TARGET_LIBAPL_TRUE}" && test -z "${apl_TARGET_LIBAPL_FALSE}"; then
23507 as_fn_error $? "conditional \"apl_TARGET_LIBAPL\" was never defined.
23508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23509 fi
23510 if test -z "${apl_TARGET_PYTHON_TRUE}" && test -z "${apl_TARGET_PYTHON_FALSE}"; then
23511 as_fn_error $? "conditional \"apl_TARGET_PYTHON\" was never defined.
23512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23513 fi
23514 if test -z "${apl_DEVELOP_TRUE}" && test -z "${apl_DEVELOP_FALSE}"; then
23515 as_fn_error $? "conditional \"apl_DEVELOP\" was never defined.
23516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23517 fi
23518
23519 : "${CONFIG_STATUS=./config.status}"
23520 ac_write_fail=0
23521 ac_clean_files_save=$ac_clean_files
23522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23524 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23525 as_write_fail=0
23526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23527 #! $SHELL
23528 # Generated by $as_me.
23529 # Run this file to recreate the current configuration.
23530 # Compiler output produced by configure, useful for debugging
23531 # configure, is in config.log if it exists.
23532
23533 debug=false
23534 ac_cs_recheck=false
23535 ac_cs_silent=false
23536
23537 SHELL=\${CONFIG_SHELL-$SHELL}
23538 export SHELL
23539 _ASEOF
23540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23541 ## -------------------- ##
23542 ## M4sh Initialization. ##
23543 ## -------------------- ##
23544
23545 # Be more Bourne compatible
23546 DUALCASE=1; export DUALCASE # for MKS sh
23547 as_nop=:
23548 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23549 then :
23550 emulate sh
23551 NULLCMD=:
23552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23553 # is contrary to our usage. Disable this feature.
23554 alias -g '${1+"$@"}'='"$@"'
23555 setopt NO_GLOB_SUBST
23556 else $as_nop
23557 case `(set -o) 2>/dev/null` in #(
23558 *posix*) :
23559 set -o posix ;; #(
23560 *) :
23561 ;;
23562 esac
23563 fi
23564
23565
23566
23567 # Reset variables that may have inherited troublesome values from
23568 # the environment.
23569
23570 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23571 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23572 # side effect of setting IFS to empty, thus disabling word splitting.)
23573 # Quoting is to prevent editors from complaining about space-tab.
23574 as_nl='
23575 '
23576 export as_nl
23577 IFS=" "" $as_nl"
23578
23579 PS1='$ '
23580 PS2='> '
23581 PS4='+ '
23582
23583 # Ensure predictable behavior from utilities with locale-dependent output.
23584 LC_ALL=C
23585 export LC_ALL
23586 LANGUAGE=C
23587 export LANGUAGE
23588
23589 # We cannot yet rely on "unset" to work, but we need these variables
23590 # to be unset--not just set to an empty or harmless value--now, to
23591 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23592 # also avoids known problems related to "unset" and subshell syntax
23593 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23594 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23595 do eval test \${$as_var+y} \
23596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23597 done
23598
23599 # Ensure that fds 0, 1, and 2 are open.
23600 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23601 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23602 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23603
23604 # The user is always right.
23605 if ${PATH_SEPARATOR+false} :; then
23606 PATH_SEPARATOR=:
23607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23609 PATH_SEPARATOR=';'
23610 }
23611 fi
23612
23613
23614 # Find who we are. Look in the path if we contain no directory separator.
23615 as_myself=
23616 case $0 in #((
23617 *[\\/]* ) as_myself=$0 ;;
23618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23619 for as_dir in $PATH
23620 do
23621 IFS=$as_save_IFS
23622 case $as_dir in #(((
23623 '') as_dir=./ ;;
23624 */) ;;
23625 *) as_dir=$as_dir/ ;;
23626 esac
23627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23628 done
23629 IFS=$as_save_IFS
23630
23631 ;;
23632 esac
23633 # We did not find ourselves, most probably we were run as `sh COMMAND'
23634 # in which case we are not to be found in the path.
23635 if test "x$as_myself" = x; then
23636 as_myself=$0
23637 fi
23638 if test ! -f "$as_myself"; then
23639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23640 exit 1
23641 fi
23642
23643
23644
23645 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23646 # ----------------------------------------
23647 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23648 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23649 # script with STATUS, using 1 if that was 0.
23650 as_fn_error ()
23651 {
23652 as_status=$1; test $as_status -eq 0 && as_status=1
23653 if test "$4"; then
23654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23656 fi
23657 printf "%s\n" "$as_me: error: $2" >&2
23658 as_fn_exit $as_status
23659 } # as_fn_error
23660
23661
23662
23663 # as_fn_set_status STATUS
23664 # -----------------------
23665 # Set $? to STATUS, without forking.
23666 as_fn_set_status ()
23667 {
23668 return $1
23669 } # as_fn_set_status
23670
23671 # as_fn_exit STATUS
23672 # -----------------
23673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23674 as_fn_exit ()
23675 {
23676 set +e
23677 as_fn_set_status $1
23678 exit $1
23679 } # as_fn_exit
23680
23681 # as_fn_unset VAR
23682 # ---------------
23683 # Portably unset VAR.
23684 as_fn_unset ()
23685 {
23686 { eval $1=; unset $1;}
23687 }
23688 as_unset=as_fn_unset
23689
23690 # as_fn_append VAR VALUE
23691 # ----------------------
23692 # Append the text in VALUE to the end of the definition contained in VAR. Take
23693 # advantage of any shell optimizations that allow amortized linear growth over
23694 # repeated appends, instead of the typical quadratic growth present in naive
23695 # implementations.
23696 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23697 then :
23698 eval 'as_fn_append ()
23699 {
23700 eval $1+=\$2
23701 }'
23702 else $as_nop
23703 as_fn_append ()
23704 {
23705 eval $1=\$$1\$2
23706 }
23707 fi # as_fn_append
23708
23709 # as_fn_arith ARG...
23710 # ------------------
23711 # Perform arithmetic evaluation on the ARGs, and store the result in the
23712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23713 # must be portable across $(()) and expr.
23714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23715 then :
23716 eval 'as_fn_arith ()
23717 {
23718 as_val=$(( $* ))
23719 }'
23720 else $as_nop
23721 as_fn_arith ()
23722 {
23723 as_val=`expr "$@" || test $? -eq 1`
23724 }
23725 fi # as_fn_arith
23726
23727
23728 if expr a : '\(a\)' >/dev/null 2>&1 &&
23729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23730 as_expr=expr
23731 else
23732 as_expr=false
23733 fi
23734
23735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23736 as_basename=basename
23737 else
23738 as_basename=false
23739 fi
23740
23741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23742 as_dirname=dirname
23743 else
23744 as_dirname=false
23745 fi
23746
23747 as_me=`$as_basename -- "$0" ||
23748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23749 X"$0" : 'X\(//\)$' \| \
23750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23751 printf "%s\n" X/"$0" |
23752 sed '/^.*\/\([^/][^/]*\)\/*$/{
23753 s//\1/
23754 q
23755 }
23756 /^X\/\(\/\/\)$/{
23757 s//\1/
23758 q
23759 }
23760 /^X\/\(\/\).*/{
23761 s//\1/
23762 q
23763 }
23764 s/.*/./; q'`
23765
23766 # Avoid depending upon Character Ranges.
23767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23770 as_cr_digits='0123456789'
23771 as_cr_alnum=$as_cr_Letters$as_cr_digits
23772
23773
23774 # Determine whether it's possible to make 'echo' print without a newline.
23775 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23776 # for compatibility with existing Makefiles.
23777 ECHO_C= ECHO_N= ECHO_T=
23778 case `echo -n x` in #(((((
23779 -n*)
23780 case `echo 'xy\c'` in
23781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23782 xy) ECHO_C='\c';;
23783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23784 ECHO_T=' ';;
23785 esac;;
23786 *)
23787 ECHO_N='-n';;
23788 esac
23789
23790 # For backward compatibility with old third-party macros, we provide
23791 # the shell variables $as_echo and $as_echo_n. New code should use
23792 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23793 as_echo='printf %s\n'
23794 as_echo_n='printf %s'
23795
23796 rm -f conf$$ conf$$.exe conf$$.file
23797 if test -d conf$$.dir; then
23798 rm -f conf$$.dir/conf$$.file
23799 else
23800 rm -f conf$$.dir
23801 mkdir conf$$.dir 2>/dev/null
23802 fi
23803 if (echo >conf$$.file) 2>/dev/null; then
23804 if ln -s conf$$.file conf$$ 2>/dev/null; then
23805 as_ln_s='ln -s'
23806 # ... but there are two gotchas:
23807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23809 # In both cases, we have to default to `cp -pR'.
23810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23811 as_ln_s='cp -pR'
23812 elif ln conf$$.file conf$$ 2>/dev/null; then
23813 as_ln_s=ln
23814 else
23815 as_ln_s='cp -pR'
23816 fi
23817 else
23818 as_ln_s='cp -pR'
23819 fi
23820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23821 rmdir conf$$.dir 2>/dev/null
23822
23823
23824 # as_fn_mkdir_p
23825 # -------------
23826 # Create "$as_dir" as a directory, including parents if necessary.
23827 as_fn_mkdir_p ()
23828 {
23829
23830 case $as_dir in #(
23831 -*) as_dir=./$as_dir;;
23832 esac
23833 test -d "$as_dir" || eval $as_mkdir_p || {
23834 as_dirs=
23835 while :; do
23836 case $as_dir in #(
23837 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23838 *) as_qdir=$as_dir;;
23839 esac
23840 as_dirs="'$as_qdir' $as_dirs"
23841 as_dir=`$as_dirname -- "$as_dir" ||
23842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23843 X"$as_dir" : 'X\(//\)[^/]' \| \
23844 X"$as_dir" : 'X\(//\)$' \| \
23845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23846 printf "%s\n" X"$as_dir" |
23847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23848 s//\1/
23849 q
23850 }
23851 /^X\(\/\/\)[^/].*/{
23852 s//\1/
23853 q
23854 }
23855 /^X\(\/\/\)$/{
23856 s//\1/
23857 q
23858 }
23859 /^X\(\/\).*/{
23860 s//\1/
23861 q
23862 }
23863 s/.*/./; q'`
23864 test -d "$as_dir" && break
23865 done
23866 test -z "$as_dirs" || eval "mkdir $as_dirs"
23867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23868
23869
23870 } # as_fn_mkdir_p
23871 if mkdir -p . 2>/dev/null; then
23872 as_mkdir_p='mkdir -p "$as_dir"'
23873 else
23874 test -d ./-p && rmdir ./-p
23875 as_mkdir_p=false
23876 fi
23877
23878
23879 # as_fn_executable_p FILE
23880 # -----------------------
23881 # Test if FILE is an executable regular file.
23882 as_fn_executable_p ()
23883 {
23884 test -f "$1" && test -x "$1"
23885 } # as_fn_executable_p
23886 as_test_x='test -x'
23887 as_executable_p=as_fn_executable_p
23888
23889 # Sed expression to map a string onto a valid CPP name.
23890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23891
23892 # Sed expression to map a string onto a valid variable name.
23893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23894
23895
23896 exec 6>&1
23897 ## ----------------------------------- ##
23898 ## Main body of $CONFIG_STATUS script. ##
23899 ## ----------------------------------- ##
23900 _ASEOF
23901 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23902
23903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23904 # Save the log message, to keep $0 and so on meaningful, and to
23905 # report actual input values of CONFIG_FILES etc. instead of their
23906 # values after options handling.
23907 ac_log="
23908 This file was extended by GNU APL $as_me 2.0, which was
23909 generated by GNU Autoconf 2.71. Invocation command line was
23910
23911 CONFIG_FILES = $CONFIG_FILES
23912 CONFIG_HEADERS = $CONFIG_HEADERS
23913 CONFIG_LINKS = $CONFIG_LINKS
23914 CONFIG_COMMANDS = $CONFIG_COMMANDS
23915 $ $0 $@
23916
23917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23918 "
23919
23920 _ACEOF
23921
23922 case $ac_config_files in *"
23923 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23924 esac
23925
23926 case $ac_config_headers in *"
23927 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23928 esac
23929
23930
23931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23932 # Files that config.status was made for.
23933 config_files="$ac_config_files"
23934 config_headers="$ac_config_headers"
23935 config_commands="$ac_config_commands"
23936
23937 _ACEOF
23938
23939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23940 ac_cs_usage="\
23941 \`$as_me' instantiates files and other configuration actions
23942 from templates according to the current configuration. Unless the files
23943 and actions are specified as TAGs, all are instantiated by default.
23944
23945 Usage: $0 [OPTION]... [TAG]...
23946
23947 -h, --help print this help, then exit
23948 -V, --version print version number and configuration settings, then exit
23949 --config print configuration, then exit
23950 -q, --quiet, --silent
23951 do not print progress messages
23952 -d, --debug don't remove temporary files
23953 --recheck update $as_me by reconfiguring in the same conditions
23954 --file=FILE[:TEMPLATE]
23955 instantiate the configuration file FILE
23956 --header=FILE[:TEMPLATE]
23957 instantiate the configuration header FILE
23958
23959 Configuration files:
23960 $config_files
23961
23962 Configuration headers:
23963 $config_headers
23964
23965 Configuration commands:
23966 $config_commands
23967
23968 Report bugs to <[email protected]>.
23969 GNU APL home page: <https://www.gnu.org/software/apl/>.
23970 General help using GNU software: <https://www.gnu.org/gethelp/>."
23971
23972 _ACEOF
23973 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23974 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23976 ac_cs_config='$ac_cs_config_escaped'
23977 ac_cs_version="\\
23978 GNU APL config.status 2.0
23979 configured by $0, generated by GNU Autoconf 2.71,
23980 with options \\"\$ac_cs_config\\"
23981
23982 Copyright (C) 2021 Free Software Foundation, Inc.
23983 This config.status script is free software; the Free Software Foundation
23984 gives unlimited permission to copy, distribute and modify it."
23985
23986 ac_pwd='$ac_pwd'
23987 srcdir='$srcdir'
23988 INSTALL='$INSTALL'
23989 MKDIR_P='$MKDIR_P'
23990 AWK='$AWK'
23991 test -n "\$AWK" || AWK=awk
23992 _ACEOF
23993
23994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23995 # The default lists apply if the user does not specify any file.
23996 ac_need_defaults=:
23997 while test $# != 0
23998 do
23999 case $1 in
24000 --*=?*)
24001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24003 ac_shift=:
24004 ;;
24005 --*=)
24006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24007 ac_optarg=
24008 ac_shift=:
24009 ;;
24010 *)
24011 ac_option=$1
24012 ac_optarg=$2
24013 ac_shift=shift
24014 ;;
24015 esac
24016
24017 case $ac_option in
24018 # Handling of the options.
24019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24020 ac_cs_recheck=: ;;
24021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24022 printf "%s\n" "$ac_cs_version"; exit ;;
24023 --config | --confi | --conf | --con | --co | --c )
24024 printf "%s\n" "$ac_cs_config"; exit ;;
24025 --debug | --debu | --deb | --de | --d | -d )
24026 debug=: ;;
24027 --file | --fil | --fi | --f )
24028 $ac_shift
24029 case $ac_optarg in
24030 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24031 '') as_fn_error $? "missing file argument" ;;
24032 esac
24033 as_fn_append CONFIG_FILES " '$ac_optarg'"
24034 ac_need_defaults=false;;
24035 --header | --heade | --head | --hea )
24036 $ac_shift
24037 case $ac_optarg in
24038 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24039 esac
24040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24041 ac_need_defaults=false;;
24042 --he | --h)
24043 # Conflict between --help and --header
24044 as_fn_error $? "ambiguous option: \`$1'
24045 Try \`$0 --help' for more information.";;
24046 --help | --hel | -h )
24047 printf "%s\n" "$ac_cs_usage"; exit ;;
24048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24050 ac_cs_silent=: ;;
24051
24052 # This is an error.
24053 -*) as_fn_error $? "unrecognized option: \`$1'
24054 Try \`$0 --help' for more information." ;;
24055
24056 *) as_fn_append ac_config_targets " $1"
24057 ac_need_defaults=false ;;
24058
24059 esac
24060 shift
24061 done
24062
24063 ac_configure_extra_args=
24064
24065 if $ac_cs_silent; then
24066 exec 6>/dev/null
24067 ac_configure_extra_args="$ac_configure_extra_args --silent"
24068 fi
24069
24070 _ACEOF
24071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24072 if \$ac_cs_recheck; then
24073 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24074 shift
24075 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24076 CONFIG_SHELL='$SHELL'
24077 export CONFIG_SHELL
24078 exec "\$@"
24079 fi
24080
24081 _ACEOF
24082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24083 exec 5>>config.log
24084 {
24085 echo
24086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24087 ## Running $as_me. ##
24088 _ASBOX
24089 printf "%s\n" "$ac_log"
24090 } >&5
24091
24092 _ACEOF
24093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24094 #
24095 # INIT-COMMANDS
24096 #
24097 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24098
24099
24100 # The HP-UX ksh and POSIX shell print the target directory to stdout
24101 # if CDPATH is set.
24102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24103
24104 sed_quote_subst='$sed_quote_subst'
24105 double_quote_subst='$double_quote_subst'
24106 delay_variable_subst='$delay_variable_subst'
24107 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24108 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24109 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24110 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24111 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24112 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24113 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24114 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24115 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24116 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24117 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24118 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24119 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24120 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24121 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24122 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24123 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24124 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24125 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24126 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24127 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24128 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24129 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24130 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24131 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24132 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24133 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24134 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24135 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24136 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24137 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24138 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24139 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24140 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24141 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24142 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24143 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24144 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24145 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24146 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24147 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24148 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24149 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24150 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24151 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24152 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24153 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24154 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24155 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24156 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24157 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24158 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24159 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24160 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24161 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24162 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24163 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24164 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24165 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"`'
24166 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24167 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24168 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24169 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24170 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24171 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24172 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24173 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24174 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24175 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24176 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24177 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24178 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24179 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24180 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24181 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24182 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24183 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24184 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24185 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24186 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24187 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24188 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24189 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24190 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24191 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24192 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24193 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24194 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24195 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24196 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24197 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24198 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24199 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24200 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24201 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24202 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24203 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24204 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24205 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24206 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24207 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24208 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24209 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24210 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24211 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24212 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24213 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24214 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24215 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24216 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24217 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24218 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24219 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24220 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24221 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24222 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24223 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24224 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24225 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24226 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24227 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24228 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24229 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24230 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24231 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24232 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24233 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24234 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24235 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24236 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24237 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24238 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24239 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24240 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24241 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24242 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24243 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24244 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24245 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24246 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24247 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24248 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24249 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24250 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24251 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24252 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24253 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24254 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24255 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24256 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24257 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24258 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24259 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24260 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24261 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24262 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24263 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24264 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24265 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24266 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24267 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24268 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24269 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24270 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24271 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24272 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24273 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24274 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24275 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24276 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24277 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24278 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24279 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24280 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24281 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24282 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24283 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24284 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24285 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24286 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24287 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24288 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24289 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24290 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24291 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24292 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24293 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24294 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24295 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24296
24297 LTCC='$LTCC'
24298 LTCFLAGS='$LTCFLAGS'
24299 compiler='$compiler_DEFAULT'
24300
24301 # A function that is used when there is no print builtin or printf.
24302 func_fallback_echo ()
24303 {
24304 eval 'cat <<_LTECHO_EOF
24305 \$1
24306 _LTECHO_EOF'
24307 }
24308
24309 # Quote evaled strings.
24310 for var in SHELL \
24311 ECHO \
24312 PATH_SEPARATOR \
24313 SED \
24314 GREP \
24315 EGREP \
24316 FGREP \
24317 LD \
24318 NM \
24319 LN_S \
24320 lt_SP2NL \
24321 lt_NL2SP \
24322 reload_flag \
24323 OBJDUMP \
24324 deplibs_check_method \
24325 file_magic_cmd \
24326 file_magic_glob \
24327 want_nocaseglob \
24328 DLLTOOL \
24329 sharedlib_from_linklib_cmd \
24330 AR \
24331 AR_FLAGS \
24332 archiver_list_spec \
24333 STRIP \
24334 RANLIB \
24335 CC \
24336 CFLAGS \
24337 compiler \
24338 lt_cv_sys_global_symbol_pipe \
24339 lt_cv_sys_global_symbol_to_cdecl \
24340 lt_cv_sys_global_symbol_to_import \
24341 lt_cv_sys_global_symbol_to_c_name_address \
24342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24343 lt_cv_nm_interface \
24344 nm_file_list_spec \
24345 lt_cv_truncate_bin \
24346 lt_prog_compiler_no_builtin_flag \
24347 lt_prog_compiler_pic \
24348 lt_prog_compiler_wl \
24349 lt_prog_compiler_static \
24350 lt_cv_prog_compiler_c_o \
24351 need_locks \
24352 MANIFEST_TOOL \
24353 DSYMUTIL \
24354 NMEDIT \
24355 LIPO \
24356 OTOOL \
24357 OTOOL64 \
24358 shrext_cmds \
24359 export_dynamic_flag_spec \
24360 whole_archive_flag_spec \
24361 compiler_needs_object \
24362 with_gnu_ld \
24363 allow_undefined_flag \
24364 no_undefined_flag \
24365 hardcode_libdir_flag_spec \
24366 hardcode_libdir_separator \
24367 exclude_expsyms \
24368 include_expsyms \
24369 file_list_spec \
24370 variables_saved_for_relink \
24371 libname_spec \
24372 library_names_spec \
24373 soname_spec \
24374 install_override_mode \
24375 finish_eval \
24376 old_striplib \
24377 striplib \
24378 compiler_lib_search_dirs \
24379 predep_objects \
24380 postdep_objects \
24381 predeps \
24382 postdeps \
24383 compiler_lib_search_path \
24384 LD_CXX \
24385 reload_flag_CXX \
24386 compiler_CXX \
24387 lt_prog_compiler_no_builtin_flag_CXX \
24388 lt_prog_compiler_pic_CXX \
24389 lt_prog_compiler_wl_CXX \
24390 lt_prog_compiler_static_CXX \
24391 lt_cv_prog_compiler_c_o_CXX \
24392 export_dynamic_flag_spec_CXX \
24393 whole_archive_flag_spec_CXX \
24394 compiler_needs_object_CXX \
24395 with_gnu_ld_CXX \
24396 allow_undefined_flag_CXX \
24397 no_undefined_flag_CXX \
24398 hardcode_libdir_flag_spec_CXX \
24399 hardcode_libdir_separator_CXX \
24400 exclude_expsyms_CXX \
24401 include_expsyms_CXX \
24402 file_list_spec_CXX \
24403 compiler_lib_search_dirs_CXX \
24404 predep_objects_CXX \
24405 postdep_objects_CXX \
24406 predeps_CXX \
24407 postdeps_CXX \
24408 compiler_lib_search_path_CXX; do
24409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24410 *[\\\\\\\`\\"\\\$]*)
24411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24412 ;;
24413 *)
24414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24415 ;;
24416 esac
24417 done
24418
24419 # Double-quote double-evaled strings.
24420 for var in reload_cmds \
24421 old_postinstall_cmds \
24422 old_postuninstall_cmds \
24423 old_archive_cmds \
24424 extract_expsyms_cmds \
24425 old_archive_from_new_cmds \
24426 old_archive_from_expsyms_cmds \
24427 archive_cmds \
24428 archive_expsym_cmds \
24429 module_cmds \
24430 module_expsym_cmds \
24431 export_symbols_cmds \
24432 prelink_cmds \
24433 postlink_cmds \
24434 postinstall_cmds \
24435 postuninstall_cmds \
24436 finish_cmds \
24437 sys_lib_search_path_spec \
24438 configure_time_dlsearch_path \
24439 configure_time_lt_sys_library_path \
24440 reload_cmds_CXX \
24441 old_archive_cmds_CXX \
24442 old_archive_from_new_cmds_CXX \
24443 old_archive_from_expsyms_cmds_CXX \
24444 archive_cmds_CXX \
24445 archive_expsym_cmds_CXX \
24446 module_cmds_CXX \
24447 module_expsym_cmds_CXX \
24448 export_symbols_cmds_CXX \
24449 prelink_cmds_CXX \
24450 postlink_cmds_CXX; do
24451 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24452 *[\\\\\\\`\\"\\\$]*)
24453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24454 ;;
24455 *)
24456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24457 ;;
24458 esac
24459 done
24460
24461 ac_aux_dir='$ac_aux_dir'
24462
24463 # See if we are running on zsh, and set the options that allow our
24464 # commands through without removal of \ escapes INIT.
24465 if test -n "\${ZSH_VERSION+set}"; then
24466 setopt NO_GLOB_SUBST
24467 fi
24468
24469
24470 PACKAGE='$PACKAGE'
24471 VERSION='$VERSION'
24472 RM='$RM'
24473 ofile='$ofile'
24474
24475
24476
24477
24478
24479
24480 _ACEOF
24481
24482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24483
24484 # Handling of arguments.
24485 for ac_config_target in $ac_config_targets
24486 do
24487 case $ac_config_target in
24488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24489 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24490 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24491 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24492 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
24493 "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
24494 "debian/source/Makefile") CONFIG_FILES="$CONFIG_FILES debian/source/Makefile" ;;
24495 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24496 "doc/DALY/Makefile") CONFIG_FILES="$CONFIG_FILES doc/DALY/Makefile" ;;
24497 "erlang/Makefile") CONFIG_FILES="$CONFIG_FILES erlang/Makefile" ;;
24498 "erlang/apl.erl") CONFIG_FILES="$CONFIG_FILES erlang/apl.erl" ;;
24499 "gnu-apl.d/Makefile") CONFIG_FILES="$CONFIG_FILES gnu-apl.d/Makefile" ;;
24500 "gnu-apl.d/preferences") CONFIG_FILES="$CONFIG_FILES gnu-apl.d/preferences" ;;
24501 "HOWTOs/Makefile") CONFIG_FILES="$CONFIG_FILES HOWTOs/Makefile" ;;
24502 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
24503 "rpm/apl.spec") CONFIG_FILES="$CONFIG_FILES rpm/apl.spec" ;;
24504 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24505 "src/APs/Makefile") CONFIG_FILES="$CONFIG_FILES src/APs/Makefile" ;;
24506 "src/Gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/Gtk/Makefile" ;;
24507 "src/emacs_mode/Makefile") CONFIG_FILES="$CONFIG_FILES src/emacs_mode/Makefile" ;;
24508 "src/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/native/Makefile" ;;
24509 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
24510 "src/testcases/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcases/Makefile" ;;
24511 "src/workspaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/workspaces/Makefile" ;;
24512 "support-files/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Makefile" ;;
24513 "support-files/105-key-International-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/105-key-International-Keyboard/Makefile" ;;
24514 "support-files/Bill_Daly_Ubuntu/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Bill_Daly_Ubuntu/Makefile" ;;
24515 "support-files/Dirk/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Dirk/Makefile" ;;
24516 "support-files/Dyalog-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Dyalog-Keyboard/Makefile" ;;
24517 "support-files/Juergen-Mint-19/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Juergen-Mint-19/Makefile" ;;
24518 "support-files/Juergen-Mint-21/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Juergen-Mint-21/Makefile" ;;
24519 "support-files/old-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/old-Keyboard/Makefile" ;;
24520 "support-files/OS-X-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/OS-X-Keyboard/Makefile" ;;
24521 "support-files/Unicomp-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/Unicomp-Keyboard/Makefile" ;;
24522 "support-files/WASD-Keyboard/Makefile") CONFIG_FILES="$CONFIG_FILES support-files/WASD-Keyboard/Makefile" ;;
24523 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24524 "websock/Makefile") CONFIG_FILES="$CONFIG_FILES websock/Makefile" ;;
24525 "websock/client/Makefile") CONFIG_FILES="$CONFIG_FILES websock/client/Makefile" ;;
24526 "websock/server/Makefile") CONFIG_FILES="$CONFIG_FILES websock/server/Makefile" ;;
24527 "workspaces/Makefile") CONFIG_FILES="$CONFIG_FILES workspaces/Makefile" ;;
24528 "wslib3/Makefile") CONFIG_FILES="$CONFIG_FILES wslib3/Makefile" ;;
24529 "wslib3/DALY/Makefile") CONFIG_FILES="$CONFIG_FILES wslib3/DALY/Makefile" ;;
24530 "wslib4/Makefile") CONFIG_FILES="$CONFIG_FILES wslib4/Makefile" ;;
24531 "wslib5/Makefile") CONFIG_FILES="$CONFIG_FILES wslib5/Makefile" ;;
24532 "wslib5/APLComponentFiles/Makefile") CONFIG_FILES="$CONFIG_FILES wslib5/APLComponentFiles/Makefile" ;;
24533 "wslib5/DALY/Makefile") CONFIG_FILES="$CONFIG_FILES wslib5/DALY/Makefile" ;;
24534 "wslib5/iso-apl-cf/Makefile") CONFIG_FILES="$CONFIG_FILES wslib5/iso-apl-cf/Makefile" ;;
24535
24536 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24537 esac
24538 done
24539
24540
24541 # If the user did not use the arguments to specify the items to instantiate,
24542 # then the envvar interface is used. Set only those that are not.
24543 # We use the long form for the default assignment because of an extremely
24544 # bizarre bug on SunOS 4.1.3.
24545 if $ac_need_defaults; then
24546 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24547 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24548 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24549 fi
24550
24551 # Have a temporary directory for convenience. Make it in the build tree
24552 # simply because there is no reason against having it here, and in addition,
24553 # creating and moving files from /tmp can sometimes cause problems.
24554 # Hook for its removal unless debugging.
24555 # Note that there is a small window in which the directory will not be cleaned:
24556 # after its creation but before its name has been assigned to `$tmp'.
24557 $debug ||
24558 {
24559 tmp= ac_tmp=
24560 trap 'exit_status=$?
24561 : "${ac_tmp:=$tmp}"
24562 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24563 ' 0
24564 trap 'as_fn_exit 1' 1 2 13 15
24565 }
24566 # Create a (secure) tmp directory for tmp files.
24567
24568 {
24569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24570 test -d "$tmp"
24571 } ||
24572 {
24573 tmp=./conf$$-$RANDOM
24574 (umask 077 && mkdir "$tmp")
24575 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24576 ac_tmp=$tmp
24577
24578 # Set up the scripts for CONFIG_FILES section.
24579 # No need to generate them if there are no CONFIG_FILES.
24580 # This happens for instance with `./config.status config.h'.
24581 if test -n "$CONFIG_FILES"; then
24582
24583
24584 ac_cr=`echo X | tr X '\015'`
24585 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24586 # But we know of no other shell where ac_cr would be empty at this
24587 # point, so we can use a bashism as a fallback.
24588 if test "x$ac_cr" = x; then
24589 eval ac_cr=\$\'\\r\'
24590 fi
24591 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24592 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24593 ac_cs_awk_cr='\\r'
24594 else
24595 ac_cs_awk_cr=$ac_cr
24596 fi
24597
24598 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24599 _ACEOF
24600
24601
24602 {
24603 echo "cat >conf$$subs.awk <<_ACEOF" &&
24604 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24605 echo "_ACEOF"
24606 } >conf$$subs.sh ||
24607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24608 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24609 ac_delim='%!_!# '
24610 for ac_last_try in false false false false false :; do
24611 . ./conf$$subs.sh ||
24612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24613
24614 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24615 if test $ac_delim_n = $ac_delim_num; then
24616 break
24617 elif $ac_last_try; then
24618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24619 else
24620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24621 fi
24622 done
24623 rm -f conf$$subs.sh
24624
24625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24626 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24627 _ACEOF
24628 sed -n '
24629 h
24630 s/^/S["/; s/!.*/"]=/
24631 p
24632 g
24633 s/^[^!]*!//
24634 :repl
24635 t repl
24636 s/'"$ac_delim"'$//
24637 t delim
24638 :nl
24639 h
24640 s/\(.\{148\}\)..*/\1/
24641 t more1
24642 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24643 p
24644 n
24645 b repl
24646 :more1
24647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24648 p
24649 g
24650 s/.\{148\}//
24651 t nl
24652 :delim
24653 h
24654 s/\(.\{148\}\)..*/\1/
24655 t more2
24656 s/["\\]/\\&/g; s/^/"/; s/$/"/
24657 p
24658 b
24659 :more2
24660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24661 p
24662 g
24663 s/.\{148\}//
24664 t delim
24665 ' <conf$$subs.awk | sed '
24666 /^[^""]/{
24667 N
24668 s/\n//
24669 }
24670 ' >>$CONFIG_STATUS || ac_write_fail=1
24671 rm -f conf$$subs.awk
24672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24673 _ACAWK
24674 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24675 for (key in S) S_is_set[key] = 1
24676 FS = ""
24677
24678 }
24679 {
24680 line = $ 0
24681 nfields = split(line, field, "@")
24682 substed = 0
24683 len = length(field[1])
24684 for (i = 2; i < nfields; i++) {
24685 key = field[i]
24686 keylen = length(key)
24687 if (S_is_set[key]) {
24688 value = S[key]
24689 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24690 len += length(value) + length(field[++i])
24691 substed = 1
24692 } else
24693 len += 1 + keylen
24694 }
24695
24696 print line
24697 }
24698
24699 _ACAWK
24700 _ACEOF
24701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24702 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24703 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24704 else
24705 cat
24706 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24707 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24708 _ACEOF
24709
24710 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24711 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24712 # trailing colons and then remove the whole line if VPATH becomes empty
24713 # (actually we leave an empty line to preserve line numbers).
24714 if test "x$srcdir" = x.; then
24715 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24716 h
24717 s///
24718 s/^/:/
24719 s/[ ]*$/:/
24720 s/:\$(srcdir):/:/g
24721 s/:\${srcdir}:/:/g
24722 s/:@srcdir@:/:/g
24723 s/^:*//
24724 s/:*$//
24725 x
24726 s/\(=[ ]*\).*/\1/
24727 G
24728 s/\n//
24729 s/^[^=]*=[ ]*$//
24730 }'
24731 fi
24732
24733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24734 fi # test -n "$CONFIG_FILES"
24735
24736 # Set up the scripts for CONFIG_HEADERS section.
24737 # No need to generate them if there are no CONFIG_HEADERS.
24738 # This happens for instance with `./config.status Makefile'.
24739 if test -n "$CONFIG_HEADERS"; then
24740 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24741 BEGIN {
24742 _ACEOF
24743
24744 # Transform confdefs.h into an awk script `defines.awk', embedded as
24745 # here-document in config.status, that substitutes the proper values into
24746 # config.h.in to produce config.h.
24747
24748 # Create a delimiter string that does not exist in confdefs.h, to ease
24749 # handling of long lines.
24750 ac_delim='%!_!# '
24751 for ac_last_try in false false :; do
24752 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24753 if test -z "$ac_tt"; then
24754 break
24755 elif $ac_last_try; then
24756 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24757 else
24758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24759 fi
24760 done
24761
24762 # For the awk script, D is an array of macro values keyed by name,
24763 # likewise P contains macro parameters if any. Preserve backslash
24764 # newline sequences.
24765
24766 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24767 sed -n '
24768 s/.\{148\}/&'"$ac_delim"'/g
24769 t rset
24770 :rset
24771 s/^[ ]*#[ ]*define[ ][ ]*/ /
24772 t def
24773 d
24774 :def
24775 s/\\$//
24776 t bsnl
24777 s/["\\]/\\&/g
24778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24779 D["\1"]=" \3"/p
24780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24781 d
24782 :bsnl
24783 s/["\\]/\\&/g
24784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24785 D["\1"]=" \3\\\\\\n"\\/p
24786 t cont
24787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24788 t cont
24789 d
24790 :cont
24791 n
24792 s/.\{148\}/&'"$ac_delim"'/g
24793 t clear
24794 :clear
24795 s/\\$//
24796 t bsnlc
24797 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24798 d
24799 :bsnlc
24800 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24801 b cont
24802 ' <confdefs.h | sed '
24803 s/'"$ac_delim"'/"\\\
24804 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24805
24806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24807 for (key in D) D_is_set[key] = 1
24808 FS = ""
24809 }
24810 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24811 line = \$ 0
24812 split(line, arg, " ")
24813 if (arg[1] == "#") {
24814 defundef = arg[2]
24815 mac1 = arg[3]
24816 } else {
24817 defundef = substr(arg[1], 2)
24818 mac1 = arg[2]
24819 }
24820 split(mac1, mac2, "(") #)
24821 macro = mac2[1]
24822 prefix = substr(line, 1, index(line, defundef) - 1)
24823 if (D_is_set[macro]) {
24824 # Preserve the white space surrounding the "#".
24825 print prefix "define", macro P[macro] D[macro]
24826 next
24827 } else {
24828 # Replace #undef with comments. This is necessary, for example,
24829 # in the case of _POSIX_SOURCE, which is predefined and required
24830 # on some systems where configure will not decide to define it.
24831 if (defundef == "undef") {
24832 print "/*", prefix defundef, macro, "*/"
24833 next
24834 }
24835 }
24836 }
24837 { print }
24838 _ACAWK
24839 _ACEOF
24840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24841 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24842 fi # test -n "$CONFIG_HEADERS"
24843
24844
24845 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24846 shift
24847 for ac_tag
24848 do
24849 case $ac_tag in
24850 :[FHLC]) ac_mode=$ac_tag; continue;;
24851 esac
24852 case $ac_mode$ac_tag in
24853 :[FHL]*:*);;
24854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24855 :[FH]-) ac_tag=-:-;;
24856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24857 esac
24858 ac_save_IFS=$IFS
24859 IFS=:
24860 set x $ac_tag
24861 IFS=$ac_save_IFS
24862 shift
24863 ac_file=$1
24864 shift
24865
24866 case $ac_mode in
24867 :L) ac_source=$1;;
24868 :[FH])
24869 ac_file_inputs=
24870 for ac_f
24871 do
24872 case $ac_f in
24873 -) ac_f="$ac_tmp/stdin";;
24874 *) # Look for the file first in the build tree, then in the source tree
24875 # (if the path is not absolute). The absolute path cannot be DOS-style,
24876 # because $ac_f cannot contain `:'.
24877 test -f "$ac_f" ||
24878 case $ac_f in
24879 [\\/$]*) false;;
24880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24881 esac ||
24882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24883 esac
24884 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24885 as_fn_append ac_file_inputs " '$ac_f'"
24886 done
24887
24888 # Let's still pretend it is `configure' which instantiates (i.e., don't
24889 # use $as_me), people would be surprised to read:
24890 # /* config.h. Generated by config.status. */
24891 configure_input='Generated from '`
24892 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24893 `' by configure.'
24894 if test x"$ac_file" != x-; then
24895 configure_input="$ac_file. $configure_input"
24896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24897 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24898 fi
24899 # Neutralize special characters interpreted by sed in replacement strings.
24900 case $configure_input in #(
24901 *\&* | *\|* | *\\* )
24902 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24904 *) ac_sed_conf_input=$configure_input;;
24905 esac
24906
24907 case $ac_tag in
24908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24910 esac
24911 ;;
24912 esac
24913
24914 ac_dir=`$as_dirname -- "$ac_file" ||
24915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24916 X"$ac_file" : 'X\(//\)[^/]' \| \
24917 X"$ac_file" : 'X\(//\)$' \| \
24918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24919 printf "%s\n" X"$ac_file" |
24920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24921 s//\1/
24922 q
24923 }
24924 /^X\(\/\/\)[^/].*/{
24925 s//\1/
24926 q
24927 }
24928 /^X\(\/\/\)$/{
24929 s//\1/
24930 q
24931 }
24932 /^X\(\/\).*/{
24933 s//\1/
24934 q
24935 }
24936 s/.*/./; q'`
24937 as_dir="$ac_dir"; as_fn_mkdir_p
24938 ac_builddir=.
24939
24940 case "$ac_dir" in
24941 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24942 *)
24943 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24944 # A ".." for each directory in $ac_dir_suffix.
24945 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24946 case $ac_top_builddir_sub in
24947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24949 esac ;;
24950 esac
24951 ac_abs_top_builddir=$ac_pwd
24952 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24953 # for backward compatibility:
24954 ac_top_builddir=$ac_top_build_prefix
24955
24956 case $srcdir in
24957 .) # We are building in place.
24958 ac_srcdir=.
24959 ac_top_srcdir=$ac_top_builddir_sub
24960 ac_abs_top_srcdir=$ac_pwd ;;
24961 [\\/]* | ?:[\\/]* ) # Absolute name.
24962 ac_srcdir=$srcdir$ac_dir_suffix;
24963 ac_top_srcdir=$srcdir
24964 ac_abs_top_srcdir=$srcdir ;;
24965 *) # Relative name.
24966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24967 ac_top_srcdir=$ac_top_build_prefix$srcdir
24968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24969 esac
24970 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24971
24972
24973 case $ac_mode in
24974 :F)
24975 #
24976 # CONFIG_FILE
24977 #
24978
24979 case $INSTALL in
24980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24982 esac
24983 ac_MKDIR_P=$MKDIR_P
24984 case $MKDIR_P in
24985 [\\/$]* | ?:[\\/]* ) ;;
24986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24987 esac
24988 _ACEOF
24989
24990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24991 # If the template does not know about datarootdir, expand it.
24992 # FIXME: This hack should be removed a few years after 2.60.
24993 ac_datarootdir_hack=; ac_datarootdir_seen=
24994 ac_sed_dataroot='
24995 /datarootdir/ {
24996 p
24997 q
24998 }
24999 /@datadir@/p
25000 /@docdir@/p
25001 /@infodir@/p
25002 /@localedir@/p
25003 /@mandir@/p'
25004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25005 *datarootdir*) ac_datarootdir_seen=yes;;
25006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25008 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25009 _ACEOF
25010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25011 ac_datarootdir_hack='
25012 s&@datadir@&$datadir&g
25013 s&@docdir@&$docdir&g
25014 s&@infodir@&$infodir&g
25015 s&@localedir@&$localedir&g
25016 s&@mandir@&$mandir&g
25017 s&\\\${datarootdir}&$datarootdir&g' ;;
25018 esac
25019 _ACEOF
25020
25021 # Neutralize VPATH when `$srcdir' = `.'.
25022 # Shell code in configure.ac might set extrasub.
25023 # FIXME: do we really want to maintain this feature?
25024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25025 ac_sed_extra="$ac_vpsub
25026 $extrasub
25027 _ACEOF
25028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25029 :t
25030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25031 s|@configure_input@|$ac_sed_conf_input|;t t
25032 s&@top_builddir@&$ac_top_builddir_sub&;t t
25033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25034 s&@srcdir@&$ac_srcdir&;t t
25035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25036 s&@top_srcdir@&$ac_top_srcdir&;t t
25037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25038 s&@builddir@&$ac_builddir&;t t
25039 s&@abs_builddir@&$ac_abs_builddir&;t t
25040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25041 s&@INSTALL@&$ac_INSTALL&;t t
25042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25043 $ac_datarootdir_hack
25044 "
25045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25047
25048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25051 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25053 which seems to be undefined. Please make sure it is defined" >&5
25054 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25055 which seems to be undefined. Please make sure it is defined" >&2;}
25056
25057 rm -f "$ac_tmp/stdin"
25058 case $ac_file in
25059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25061 esac \
25062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25063 ;;
25064 :H)
25065 #
25066 # CONFIG_HEADER
25067 #
25068 if test x"$ac_file" != x-; then
25069 {
25070 printf "%s\n" "/* $configure_input */" >&1 \
25071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25072 } >"$ac_tmp/config.h" \
25073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25076 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25077 else
25078 rm -f "$ac_file"
25079 mv "$ac_tmp/config.h" "$ac_file" \
25080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25081 fi
25082 else
25083 printf "%s\n" "/* $configure_input */" >&1 \
25084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25085 || as_fn_error $? "could not create -" "$LINENO" 5
25086 fi
25087 # Compute "$ac_file"'s index in $config_headers.
25088 _am_arg="$ac_file"
25089 _am_stamp_count=1
25090 for _am_header in $config_headers :; do
25091 case $_am_header in
25092 $_am_arg | $_am_arg:* )
25093 break ;;
25094 * )
25095 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25096 esac
25097 done
25098 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25099 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25100 X"$_am_arg" : 'X\(//\)[^/]' \| \
25101 X"$_am_arg" : 'X\(//\)$' \| \
25102 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25103 printf "%s\n" X"$_am_arg" |
25104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25105 s//\1/
25106 q
25107 }
25108 /^X\(\/\/\)[^/].*/{
25109 s//\1/
25110 q
25111 }
25112 /^X\(\/\/\)$/{
25113 s//\1/
25114 q
25115 }
25116 /^X\(\/\).*/{
25117 s//\1/
25118 q
25119 }
25120 s/.*/./; q'`/stamp-h$_am_stamp_count
25121 ;;
25122
25123 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25124 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25125 ;;
25126 esac
25127
25128
25129 case $ac_file$ac_mode in
25130 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25131 # Older Autoconf quotes --file arguments for eval, but not when files
25132 # are listed without --file. Let's play safe and only enable the eval
25133 # if we detect the quoting.
25134 # TODO: see whether this extra hack can be removed once we start
25135 # requiring Autoconf 2.70 or later.
25136 case $CONFIG_FILES in #(
25137 *\'*) :
25138 eval set x "$CONFIG_FILES" ;; #(
25139 *) :
25140 set x $CONFIG_FILES ;; #(
25141 *) :
25142 ;;
25143 esac
25144 shift
25145 # Used to flag and report bootstrapping failures.
25146 am_rc=0
25147 for am_mf
25148 do
25149 # Strip MF so we end up with the name of the file.
25150 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25151 # Check whether this is an Automake generated Makefile which includes
25152 # dependency-tracking related rules and includes.
25153 # Grep'ing the whole file directly is not great: AIX grep has a line
25154 # limit of 2048, but all sed's we know have understand at least 4000.
25155 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25156 || continue
25157 am_dirpart=`$as_dirname -- "$am_mf" ||
25158 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25159 X"$am_mf" : 'X\(//\)[^/]' \| \
25160 X"$am_mf" : 'X\(//\)$' \| \
25161 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25162 printf "%s\n" X"$am_mf" |
25163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25164 s//\1/
25165 q
25166 }
25167 /^X\(\/\/\)[^/].*/{
25168 s//\1/
25169 q
25170 }
25171 /^X\(\/\/\)$/{
25172 s//\1/
25173 q
25174 }
25175 /^X\(\/\).*/{
25176 s//\1/
25177 q
25178 }
25179 s/.*/./; q'`
25180 am_filepart=`$as_basename -- "$am_mf" ||
25181 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25182 X"$am_mf" : 'X\(//\)$' \| \
25183 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25184 printf "%s\n" X/"$am_mf" |
25185 sed '/^.*\/\([^/][^/]*\)\/*$/{
25186 s//\1/
25187 q
25188 }
25189 /^X\/\(\/\/\)$/{
25190 s//\1/
25191 q
25192 }
25193 /^X\/\(\/\).*/{
25194 s//\1/
25195 q
25196 }
25197 s/.*/./; q'`
25198 { echo "$as_me:$LINENO: cd "$am_dirpart" \
25199 && sed -e '/# am--include-marker/d' "$am_filepart" \
25200 | $MAKE -f - am--depfiles" >&5
25201 (cd "$am_dirpart" \
25202 && sed -e '/# am--include-marker/d' "$am_filepart" \
25203 | $MAKE -f - am--depfiles) >&5 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } || am_rc=$?
25207 done
25208 if test $am_rc -ne 0; then
25209 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25210 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25211 as_fn_error $? "Something went wrong bootstrapping makefile fragments
25212 for automatic dependency tracking. If GNU make was not used, consider
25213 re-running the configure script with MAKE=\"gmake\" (or whatever is
25214 necessary). You can also try re-running configure with the
25215 '--disable-dependency-tracking' option to at least be able to build
25216 the package (albeit without support for automatic dependency tracking).
25217 See \`config.log' for more details" "$LINENO" 5; }
25218 fi
25219 { am_dirpart=; unset am_dirpart;}
25220 { am_filepart=; unset am_filepart;}
25221 { am_mf=; unset am_mf;}
25222 { am_rc=; unset am_rc;}
25223 rm -f conftest-deps.mk
25224 }
25225 ;;
25226 "libtool":C)
25227
25228 # See if we are running on zsh, and set the options that allow our
25229 # commands through without removal of \ escapes.
25230 if test -n "${ZSH_VERSION+set}"; then
25231 setopt NO_GLOB_SUBST
25232 fi
25233
25234 cfgfile=${ofile}T
25235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25236 $RM "$cfgfile"
25237
25238 cat <<_LT_EOF >> "$cfgfile"
25239 #! $SHELL
25240 # Generated automatically by $as_me ($PACKAGE) $VERSION
25241 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25242
25243 # Provide generalized library-building support services.
25244 # Written by Gordon Matzigkeit, 1996
25245
25246 # Copyright (C) 2014 Free Software Foundation, Inc.
25247 # This is free software; see the source for copying conditions. There is NO
25248 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25249
25250 # GNU Libtool is free software; you can redistribute it and/or modify
25251 # it under the terms of the GNU General Public License as published by
25252 # the Free Software Foundation; either version 2 of of the License, or
25253 # (at your option) any later version.
25254 #
25255 # As a special exception to the GNU General Public License, if you
25256 # distribute this file as part of a program or library that is built
25257 # using GNU Libtool, you may include this file under the same
25258 # distribution terms that you use for the rest of that program.
25259 #
25260 # GNU Libtool is distributed in the hope that it will be useful, but
25261 # WITHOUT ANY WARRANTY; without even the implied warranty of
25262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25263 # GNU General Public License for more details.
25264 #
25265 # You should have received a copy of the GNU General Public License
25266 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25267
25268
25269 # The names of the tagged configurations supported by this script.
25270 available_tags='CXX '
25271
25272 # Configured defaults for sys_lib_dlsearch_path munging.
25273 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25274
25275 # ### BEGIN LIBTOOL CONFIG
25276
25277 # Which release of libtool.m4 was used?
25278 macro_version=$macro_version
25279 macro_revision=$macro_revision
25280
25281 # Whether or not to build shared libraries.
25282 build_libtool_libs=$enable_shared
25283
25284 # Whether or not to build static libraries.
25285 build_old_libs=$enable_static
25286
25287 # What type of objects to build.
25288 pic_mode=$pic_mode
25289
25290 # Whether or not to optimize for fast installation.
25291 fast_install=$enable_fast_install
25292
25293 # Shared archive member basename,for filename based shared library versioning on AIX.
25294 shared_archive_member_spec=$shared_archive_member_spec
25295
25296 # Shell to use when invoking shell scripts.
25297 SHELL=$lt_SHELL
25298
25299 # An echo program that protects backslashes.
25300 ECHO=$lt_ECHO
25301
25302 # The PATH separator for the build system.
25303 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25304
25305 # The host system.
25306 host_alias=$host_alias
25307 host=$host
25308 host_os=$host_os
25309
25310 # The build system.
25311 build_alias=$build_alias
25312 build=$build
25313 build_os=$build_os
25314
25315 # A sed program that does not truncate output.
25316 SED=$lt_SED
25317
25318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25319 Xsed="\$SED -e 1s/^X//"
25320
25321 # A grep program that handles long lines.
25322 GREP=$lt_GREP
25323
25324 # An ERE matcher.
25325 EGREP=$lt_EGREP
25326
25327 # A literal string matcher.
25328 FGREP=$lt_FGREP
25329
25330 # A BSD- or MS-compatible name lister.
25331 NM=$lt_NM
25332
25333 # Whether we need soft or hard links.
25334 LN_S=$lt_LN_S
25335
25336 # What is the maximum length of a command?
25337 max_cmd_len=$max_cmd_len
25338
25339 # Object file suffix (normally "o").
25340 objext=$ac_objext
25341
25342 # Executable file suffix (normally "").
25343 exeext=$exeext
25344
25345 # whether the shell understands "unset".
25346 lt_unset=$lt_unset
25347
25348 # turn spaces into newlines.
25349 SP2NL=$lt_lt_SP2NL
25350
25351 # turn newlines into spaces.
25352 NL2SP=$lt_lt_NL2SP
25353
25354 # convert \$build file names to \$host format.
25355 to_host_file_cmd=$lt_cv_to_host_file_cmd
25356
25357 # convert \$build files to toolchain format.
25358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25359
25360 # An object symbol dumper.
25361 OBJDUMP=$lt_OBJDUMP
25362
25363 # Method to check whether dependent libraries are shared objects.
25364 deplibs_check_method=$lt_deplibs_check_method
25365
25366 # Command to use when deplibs_check_method = "file_magic".
25367 file_magic_cmd=$lt_file_magic_cmd
25368
25369 # How to find potential files when deplibs_check_method = "file_magic".
25370 file_magic_glob=$lt_file_magic_glob
25371
25372 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25373 want_nocaseglob=$lt_want_nocaseglob
25374
25375 # DLL creation program.
25376 DLLTOOL=$lt_DLLTOOL
25377
25378 # Command to associate shared and link libraries.
25379 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25380
25381 # The archiver.
25382 AR=$lt_AR
25383
25384 # Flags to create an archive.
25385 AR_FLAGS=$lt_AR_FLAGS
25386
25387 # How to feed a file listing to the archiver.
25388 archiver_list_spec=$lt_archiver_list_spec
25389
25390 # A symbol stripping program.
25391 STRIP=$lt_STRIP
25392
25393 # Commands used to install an old-style archive.
25394 RANLIB=$lt_RANLIB
25395 old_postinstall_cmds=$lt_old_postinstall_cmds
25396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25397
25398 # Whether to use a lock for old archive extraction.
25399 lock_old_archive_extraction=$lock_old_archive_extraction
25400
25401 # A C compiler.
25402 LTCC=$lt_CC
25403
25404 # LTCC compiler flags.
25405 LTCFLAGS=$lt_CFLAGS
25406
25407 # Take the output of nm and produce a listing of raw symbols and C names.
25408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25409
25410 # Transform the output of nm in a proper C declaration.
25411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25412
25413 # Transform the output of nm into a list of symbols to manually relocate.
25414 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25415
25416 # Transform the output of nm in a C name address pair.
25417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25418
25419 # Transform the output of nm in a C name address pair when lib prefix is needed.
25420 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25421
25422 # The name lister interface.
25423 nm_interface=$lt_lt_cv_nm_interface
25424
25425 # Specify filename containing input files for \$NM.
25426 nm_file_list_spec=$lt_nm_file_list_spec
25427
25428 # The root where to search for dependent libraries,and where our libraries should be installed.
25429 lt_sysroot=$lt_sysroot
25430
25431 # Command to truncate a binary pipe.
25432 lt_truncate_bin=$lt_lt_cv_truncate_bin
25433
25434 # The name of the directory that contains temporary libtool files.
25435 objdir=$objdir
25436
25437 # Used to examine libraries when file_magic_cmd begins with "file".
25438 MAGIC_CMD=$MAGIC_CMD
25439
25440 # Must we lock files when doing compilation?
25441 need_locks=$lt_need_locks
25442
25443 # Manifest tool.
25444 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25445
25446 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25447 DSYMUTIL=$lt_DSYMUTIL
25448
25449 # Tool to change global to local symbols on Mac OS X.
25450 NMEDIT=$lt_NMEDIT
25451
25452 # Tool to manipulate fat objects and archives on Mac OS X.
25453 LIPO=$lt_LIPO
25454
25455 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25456 OTOOL=$lt_OTOOL
25457
25458 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25459 OTOOL64=$lt_OTOOL64
25460
25461 # Old archive suffix (normally "a").
25462 libext=$libext
25463
25464 # Shared library suffix (normally ".so").
25465 shrext_cmds=$lt_shrext_cmds
25466
25467 # The commands to extract the exported symbol list from a shared archive.
25468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25469
25470 # Variables whose values should be saved in libtool wrapper scripts and
25471 # restored at link time.
25472 variables_saved_for_relink=$lt_variables_saved_for_relink
25473
25474 # Do we need the "lib" prefix for modules?
25475 need_lib_prefix=$need_lib_prefix
25476
25477 # Do we need a version for libraries?
25478 need_version=$need_version
25479
25480 # Library versioning type.
25481 version_type=$version_type
25482
25483 # Shared library runtime path variable.
25484 runpath_var=$runpath_var
25485
25486 # Shared library path variable.
25487 shlibpath_var=$shlibpath_var
25488
25489 # Is shlibpath searched before the hard-coded library search path?
25490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25491
25492 # Format of library name prefix.
25493 libname_spec=$lt_libname_spec
25494
25495 # List of archive names. First name is the real one, the rest are links.
25496 # The last name is the one that the linker finds with -lNAME
25497 library_names_spec=$lt_library_names_spec
25498
25499 # The coded name of the library, if different from the real name.
25500 soname_spec=$lt_soname_spec
25501
25502 # Permission mode override for installation of shared libraries.
25503 install_override_mode=$lt_install_override_mode
25504
25505 # Command to use after installation of a shared archive.
25506 postinstall_cmds=$lt_postinstall_cmds
25507
25508 # Command to use after uninstallation of a shared archive.
25509 postuninstall_cmds=$lt_postuninstall_cmds
25510
25511 # Commands used to finish a libtool library installation in a directory.
25512 finish_cmds=$lt_finish_cmds
25513
25514 # As "finish_cmds", except a single script fragment to be evaled but
25515 # not shown.
25516 finish_eval=$lt_finish_eval
25517
25518 # Whether we should hardcode library paths into libraries.
25519 hardcode_into_libs=$hardcode_into_libs
25520
25521 # Compile-time system search path for libraries.
25522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25523
25524 # Detected run-time system search path for libraries.
25525 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25526
25527 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25528 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25529
25530 # Whether dlopen is supported.
25531 dlopen_support=$enable_dlopen
25532
25533 # Whether dlopen of programs is supported.
25534 dlopen_self=$enable_dlopen_self
25535
25536 # Whether dlopen of statically linked programs is supported.
25537 dlopen_self_static=$enable_dlopen_self_static
25538
25539 # Commands to strip libraries.
25540 old_striplib=$lt_old_striplib
25541 striplib=$lt_striplib
25542
25543
25544 # The linker used to build libraries.
25545 LD=$lt_LD
25546
25547 # How to create reloadable object files.
25548 reload_flag=$lt_reload_flag
25549 reload_cmds=$lt_reload_cmds
25550
25551 # Commands used to build an old-style archive.
25552 old_archive_cmds=$lt_old_archive_cmds
25553
25554 # A language specific compiler.
25555 CC=$lt_compiler
25556
25557 # Is the compiler the GNU compiler?
25558 with_gcc=$GCC
25559
25560 # Compiler flag to turn off builtin functions.
25561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25562
25563 # Additional compiler flags for building library objects.
25564 pic_flag=$lt_lt_prog_compiler_pic
25565
25566 # How to pass a linker flag through the compiler.
25567 wl=$lt_lt_prog_compiler_wl
25568
25569 # Compiler flag to prevent dynamic linking.
25570 link_static_flag=$lt_lt_prog_compiler_static
25571
25572 # Does compiler simultaneously support -c and -o options?
25573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25574
25575 # Whether or not to add -lc for building shared libraries.
25576 build_libtool_need_lc=$archive_cmds_need_lc
25577
25578 # Whether or not to disallow shared libs when runtime libs are static.
25579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25580
25581 # Compiler flag to allow reflexive dlopens.
25582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25583
25584 # Compiler flag to generate shared objects directly from archives.
25585 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25586
25587 # Whether the compiler copes with passing no objects directly.
25588 compiler_needs_object=$lt_compiler_needs_object
25589
25590 # Create an old-style archive from a shared archive.
25591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25592
25593 # Create a temporary old-style archive to link instead of a shared archive.
25594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25595
25596 # Commands used to build a shared archive.
25597 archive_cmds=$lt_archive_cmds
25598 archive_expsym_cmds=$lt_archive_expsym_cmds
25599
25600 # Commands used to build a loadable module if different from building
25601 # a shared archive.
25602 module_cmds=$lt_module_cmds
25603 module_expsym_cmds=$lt_module_expsym_cmds
25604
25605 # Whether we are building with GNU ld or not.
25606 with_gnu_ld=$lt_with_gnu_ld
25607
25608 # Flag that allows shared libraries with undefined symbols to be built.
25609 allow_undefined_flag=$lt_allow_undefined_flag
25610
25611 # Flag that enforces no undefined symbols.
25612 no_undefined_flag=$lt_no_undefined_flag
25613
25614 # Flag to hardcode \$libdir into a binary during linking.
25615 # This must work even if \$libdir does not exist
25616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25617
25618 # Whether we need a single "-rpath" flag with a separated argument.
25619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25620
25621 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25622 # DIR into the resulting binary.
25623 hardcode_direct=$hardcode_direct
25624
25625 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25626 # DIR into the resulting binary and the resulting library dependency is
25627 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25628 # library is relocated.
25629 hardcode_direct_absolute=$hardcode_direct_absolute
25630
25631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25632 # into the resulting binary.
25633 hardcode_minus_L=$hardcode_minus_L
25634
25635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25636 # into the resulting binary.
25637 hardcode_shlibpath_var=$hardcode_shlibpath_var
25638
25639 # Set to "yes" if building a shared library automatically hardcodes DIR
25640 # into the library and all subsequent libraries and executables linked
25641 # against it.
25642 hardcode_automatic=$hardcode_automatic
25643
25644 # Set to yes if linker adds runtime paths of dependent libraries
25645 # to runtime path list.
25646 inherit_rpath=$inherit_rpath
25647
25648 # Whether libtool must link a program against all its dependency libraries.
25649 link_all_deplibs=$link_all_deplibs
25650
25651 # Set to "yes" if exported symbols are required.
25652 always_export_symbols=$always_export_symbols
25653
25654 # The commands to list exported symbols.
25655 export_symbols_cmds=$lt_export_symbols_cmds
25656
25657 # Symbols that should not be listed in the preloaded symbols.
25658 exclude_expsyms=$lt_exclude_expsyms
25659
25660 # Symbols that must always be exported.
25661 include_expsyms=$lt_include_expsyms
25662
25663 # Commands necessary for linking programs (against libraries) with templates.
25664 prelink_cmds=$lt_prelink_cmds
25665
25666 # Commands necessary for finishing linking programs.
25667 postlink_cmds=$lt_postlink_cmds
25668
25669 # Specify filename containing input files.
25670 file_list_spec=$lt_file_list_spec
25671
25672 # How to hardcode a shared library path into an executable.
25673 hardcode_action=$hardcode_action
25674
25675 # The directories searched by this compiler when creating a shared library.
25676 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25677
25678 # Dependencies to place before and after the objects being linked to
25679 # create a shared library.
25680 predep_objects=$lt_predep_objects
25681 postdep_objects=$lt_postdep_objects
25682 predeps=$lt_predeps
25683 postdeps=$lt_postdeps
25684
25685 # The library search path used internally by the compiler when linking
25686 # a shared library.
25687 compiler_lib_search_path=$lt_compiler_lib_search_path
25688
25689 # ### END LIBTOOL CONFIG
25690
25691 _LT_EOF
25692
25693 cat <<'_LT_EOF' >> "$cfgfile"
25694
25695 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25696
25697 # func_munge_path_list VARIABLE PATH
25698 # -----------------------------------
25699 # VARIABLE is name of variable containing _space_ separated list of
25700 # directories to be munged by the contents of PATH, which is string
25701 # having a format:
25702 # "DIR[:DIR]:"
25703 # string "DIR[ DIR]" will be prepended to VARIABLE
25704 # ":DIR[:DIR]"
25705 # string "DIR[ DIR]" will be appended to VARIABLE
25706 # "DIRP[:DIRP]::[DIRA:]DIRA"
25707 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25708 # "DIRA[ DIRA]" will be appended to VARIABLE
25709 # "DIR[:DIR]"
25710 # VARIABLE will be replaced by "DIR[ DIR]"
25711 func_munge_path_list ()
25712 {
25713 case x$2 in
25714 x)
25715 ;;
25716 *:)
25717 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25718 ;;
25719 x:*)
25720 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25721 ;;
25722 *::*)
25723 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25724 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25725 ;;
25726 *)
25727 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25728 ;;
25729 esac
25730 }
25731
25732
25733 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25734 func_cc_basename ()
25735 {
25736 for cc_temp in $*""; do
25737 case $cc_temp in
25738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25740 \-*) ;;
25741 *) break;;
25742 esac
25743 done
25744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25745 }
25746
25747
25748 # ### END FUNCTIONS SHARED WITH CONFIGURE
25749
25750 _LT_EOF
25751
25752 case $host_os in
25753 aix3*)
25754 cat <<\_LT_EOF >> "$cfgfile"
25755 # AIX sometimes has problems with the GCC collect2 program. For some
25756 # reason, if we set the COLLECT_NAMES environment variable, the problems
25757 # vanish in a puff of smoke.
25758 if test set != "${COLLECT_NAMES+set}"; then
25759 COLLECT_NAMES=
25760 export COLLECT_NAMES
25761 fi
25762 _LT_EOF
25763 ;;
25764 esac
25765
25766
25767
25768 ltmain=$ac_aux_dir/ltmain.sh
25769
25770
25771 # We use sed instead of cat because bash on DJGPP gets confused if
25772 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25773 # text mode, it properly converts lines to CR/LF. This bash problem
25774 # is reportedly fixed, but why not run on old versions too?
25775 sed '$q' "$ltmain" >> "$cfgfile" \
25776 || (rm -f "$cfgfile"; exit 1)
25777
25778 mv -f "$cfgfile" "$ofile" ||
25779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25780 chmod +x "$ofile"
25781
25782
25783 cat <<_LT_EOF >> "$ofile"
25784
25785 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25786
25787 # The linker used to build libraries.
25788 LD=$lt_LD_CXX
25789
25790 # How to create reloadable object files.
25791 reload_flag=$lt_reload_flag_CXX
25792 reload_cmds=$lt_reload_cmds_CXX
25793
25794 # Commands used to build an old-style archive.
25795 old_archive_cmds=$lt_old_archive_cmds_CXX
25796
25797 # A language specific compiler.
25798 CC=$lt_compiler_CXX
25799
25800 # Is the compiler the GNU compiler?
25801 with_gcc=$GCC_CXX
25802
25803 # Compiler flag to turn off builtin functions.
25804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25805
25806 # Additional compiler flags for building library objects.
25807 pic_flag=$lt_lt_prog_compiler_pic_CXX
25808
25809 # How to pass a linker flag through the compiler.
25810 wl=$lt_lt_prog_compiler_wl_CXX
25811
25812 # Compiler flag to prevent dynamic linking.
25813 link_static_flag=$lt_lt_prog_compiler_static_CXX
25814
25815 # Does compiler simultaneously support -c and -o options?
25816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25817
25818 # Whether or not to add -lc for building shared libraries.
25819 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25820
25821 # Whether or not to disallow shared libs when runtime libs are static.
25822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25823
25824 # Compiler flag to allow reflexive dlopens.
25825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25826
25827 # Compiler flag to generate shared objects directly from archives.
25828 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25829
25830 # Whether the compiler copes with passing no objects directly.
25831 compiler_needs_object=$lt_compiler_needs_object_CXX
25832
25833 # Create an old-style archive from a shared archive.
25834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25835
25836 # Create a temporary old-style archive to link instead of a shared archive.
25837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25838
25839 # Commands used to build a shared archive.
25840 archive_cmds=$lt_archive_cmds_CXX
25841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25842
25843 # Commands used to build a loadable module if different from building
25844 # a shared archive.
25845 module_cmds=$lt_module_cmds_CXX
25846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25847
25848 # Whether we are building with GNU ld or not.
25849 with_gnu_ld=$lt_with_gnu_ld_CXX
25850
25851 # Flag that allows shared libraries with undefined symbols to be built.
25852 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25853
25854 # Flag that enforces no undefined symbols.
25855 no_undefined_flag=$lt_no_undefined_flag_CXX
25856
25857 # Flag to hardcode \$libdir into a binary during linking.
25858 # This must work even if \$libdir does not exist
25859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25860
25861 # Whether we need a single "-rpath" flag with a separated argument.
25862 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25863
25864 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25865 # DIR into the resulting binary.
25866 hardcode_direct=$hardcode_direct_CXX
25867
25868 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25869 # DIR into the resulting binary and the resulting library dependency is
25870 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25871 # library is relocated.
25872 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25873
25874 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25875 # into the resulting binary.
25876 hardcode_minus_L=$hardcode_minus_L_CXX
25877
25878 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25879 # into the resulting binary.
25880 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25881
25882 # Set to "yes" if building a shared library automatically hardcodes DIR
25883 # into the library and all subsequent libraries and executables linked
25884 # against it.
25885 hardcode_automatic=$hardcode_automatic_CXX
25886
25887 # Set to yes if linker adds runtime paths of dependent libraries
25888 # to runtime path list.
25889 inherit_rpath=$inherit_rpath_CXX
25890
25891 # Whether libtool must link a program against all its dependency libraries.
25892 link_all_deplibs=$link_all_deplibs_CXX
25893
25894 # Set to "yes" if exported symbols are required.
25895 always_export_symbols=$always_export_symbols_CXX
25896
25897 # The commands to list exported symbols.
25898 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25899
25900 # Symbols that should not be listed in the preloaded symbols.
25901 exclude_expsyms=$lt_exclude_expsyms_CXX
25902
25903 # Symbols that must always be exported.
25904 include_expsyms=$lt_include_expsyms_CXX
25905
25906 # Commands necessary for linking programs (against libraries) with templates.
25907 prelink_cmds=$lt_prelink_cmds_CXX
25908
25909 # Commands necessary for finishing linking programs.
25910 postlink_cmds=$lt_postlink_cmds_CXX
25911
25912 # Specify filename containing input files.
25913 file_list_spec=$lt_file_list_spec_CXX
25914
25915 # How to hardcode a shared library path into an executable.
25916 hardcode_action=$hardcode_action_CXX
25917
25918 # The directories searched by this compiler when creating a shared library.
25919 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25920
25921 # Dependencies to place before and after the objects being linked to
25922 # create a shared library.
25923 predep_objects=$lt_predep_objects_CXX
25924 postdep_objects=$lt_postdep_objects_CXX
25925 predeps=$lt_predeps_CXX
25926 postdeps=$lt_postdeps_CXX
25927
25928 # The library search path used internally by the compiler when linking
25929 # a shared library.
25930 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25931
25932 # ### END LIBTOOL TAG CONFIG: CXX
25933 _LT_EOF
25934
25935 ;;
25936
25937 esac
25938 done # for ac_tag
25939
25940
25941 as_fn_exit 0
25942 _ACEOF
25943 ac_clean_files=$ac_clean_files_save
25944
25945 test $ac_write_fail = 0 ||
25946 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25947
25948
25949 # configure is writing to config.log, and then calls config.status.
25950 # config.status does its own redirection, appending to config.log.
25951 # Unfortunately, on DOS this fails, as config.log is still kept open
25952 # by configure, so config.status won't be able to write to it; its
25953 # output is simply discarded. So we exec the FD to /dev/null,
25954 # effectively closing config.log, so it can be properly (re)opened and
25955 # appended to by config.status. When coming back to configure, we
25956 # need to make the FD available again.
25957 if test "$no_create" != yes; then
25958 ac_cs_success=:
25959 ac_config_status_args=
25960 test "$silent" = yes &&
25961 ac_config_status_args="$ac_config_status_args --quiet"
25962 exec 5>/dev/null
25963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25964 exec 5>>config.log
25965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25966 # would make configure fail if this is the last instruction.
25967 $ac_cs_success || as_fn_exit 1
25968 fi
25969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25971 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25972 fi
25973 # the big bang: create config.h and all Makefiles
25974
25975 # print a summary or maybe complain
25976 #
25977 printf "%s\n" " "
25978 if test "x$want1_postgresql" = "xyes"; then
25979 if test "x$apl_POSTGRES" = "xyes"; then
25980 printf "%s\n" " PostgreSQL looks good."
25981 else
25982 printf "%s\n" "NOTE: PostgreSQL support was requested, but the handler function"
25983 printf "%s\n" " for accessing PostgreSQL cannot be built. Your PostgreSQL"
25984 printf "%s\n" " installation is missing or incomplete. See details above."
25985 printf "%s\n" " "
25986 fi
25987 fi
25988
25989 if test "x$WANT1_SQLITE3" = "xyes"; then
25990 if test "x$apl_SQLITE3" = "xyes"; then
25991 printf "%s\n" " SQLite looks good."
25992 else
25993 printf "%s\n" "NOTE: SQLite support was requested, but the handler function for "
25994 printf "%s\n" " accessing SQLite cannot not be built. Your SQLite"
25995 printf "%s\n" " installation is missing or incomplete. See details above."
25996 printf "%s\n" " "
25997 fi
25998 fi
25999
26000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if any of the optional libraries shall be used" >&5
26001 printf %s "checking if any of the optional libraries shall be used... " >&6; }
26002
26003 # Check whether --with-optional_libs was given.
26004 if test ${with_optional_libs+y}
26005 then :
26006 withval=$with_optional_libs; cfg_OPTIONAL_LIBS=$withval
26007 else $as_nop
26008 cfg_OPTIONAL_LIBS=yes
26009 fi
26010
26011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cfg_OPTIONAL_LIBS" >&5
26012 printf "%s\n" "$cfg_OPTIONAL_LIBS" >&6; }
26013
26014 # we haven't found an easy way to figure if AC_CHECK_LIB([c], ...) was
26015 # successful. We do that by cunsulting $LIBS.
26016 apl_LIBC=no
26017 for LIBs_Lib in $LIBS; do
26018 if test "$LIBs_Lib" = "-lc"; then apl_LIBC=yes; fi
26019 done
26020
26021 config_nolib() {
26022 # set variables $2... in config.h to 0
26023 #
26024 tag=$1 ; shift
26025 printf "%s\n" " disabling $tag ($*)"
26026 for macro in $*; do
26027 sed -i "s/#define $macro 1/#define $macro 0/" config.h
26028 eval "$macro=no"
26029 shift
26030 done
26031 }
26032
26033 if test "x$cfg_OPTIONAL_LIBS" = "xno"; then
26034 config_nolib FFT apl_FFT
26035 config_nolib GSL apl_GSL
26036 config_nolib GUI apl_GUI
26037 config_nolib LIBC HAVE_LIBC
26038 config_nolib PCRE apl_PCRE HAVE_LIBPCRE2_32
26039 config_nolib PNG apl_PNG
26040 config_nolib POSTGRES apl_SQL apl_POSTGRES HAVE_POSTGRESQL
26041 config_nolib SQLITE apl_SQL apl_SQLITE3 HAVE_SQLITE3
26042 config_nolib X11 apl_X11 HAVE_LIBX11 \
26043 HAVE_X11_XLIB_H HAVE_X11_XUTIL_H
26044 config_nolib XCB apl_XCB XCB HAVE_LIBXCB \
26045 HAVE_X11_XLIB_XCB_H HAVE_XCB_XCB_H
26046 config_nolib GTK apl_GTK3 GTK HAVE_LIBGTK_3 HAVE_LIBCAIRO
26047 printf "%s\n" " patching config.h done."
26048 apl_LIBC=no
26049 fi
26050
26051 printf "%s\n" "
26052 $as_me: ---- SUMMARY OF TESTS (please include it in error reports) ----
26053
26054 # A. command line arguments for ./configure
26055 #
26056 prefix: $prefix
26057
26058 DEVELOP_WANTED: $DEVELOP_WANTED
26059 ASSERT_LEVEL_WANTED: $ASSERT_LEVEL_WANTED
26060 ALT_MAP_WANTED: $ALT_MAP_WANTED
26061 DYNAMIC_LOG_WANTED: $DYNAMIC_LOG_WANTED
26062 PERFORMANCE_COUNTERS_WANTED: $PERFORMANCE_COUNTERS_WANTED
26063 VALUE_CHECK_WANTED: $VALUE_CHECK_WANTED
26064 VALUE_HISTORY_WANTED: $VALUE_HISTORY_WANTED
26065
26066 # B. computed variables (most of them in m4/*.m4
26067 #
26068 apl_BUILD_DATE: $apl_BUILD_DATE
26069 apl_BUILD_OS: $apl_BUILD_OS
26070 apl_MAINTAINER_MODE: $apl_MAINTAINER_MODE
26071 apl_missing_headers: $apl_missing_headers
26072 apl_missing_functions: $apl_missing_functions
26073 apl_FFT: $apl_FFT (affects: ⎕FFT)
26074 apl_GSL: $apl_GSL (affects: ⎕MX, ⌹)
26075 apl_PCRE: $apl_PCRE (affects: ⎕RE)
26076 apl_PNG: $apl_PNG (affects: ⎕PNG)
26077 apl_POSTGRES: $apl_POSTGRES (may affect: ⎕SQL)
26078 apl_SQLITE3: $apl_SQLITE3 (may affect: ⎕SQL)
26079 apl_SQL $apl_SQL (affects: ⎕SQL)
26080 apl_XCB $apl_XCB (fallback for ⎕PLOT)
26081 apl_GTK3: $apl_GTK3 (affects: ⎕PNG, ⎕GTK, maybe ⎕PLOT)
26082 apl_GUI: $apl_GUI (affects: ⎕PNG, ⎕GTK, ⎕PLOT)
26083 apl_LIBC: $apl_LIBC (affects: ⎕RVAL)
26084
26085 Special Build targets:
26086 Android: $apl_TARGET_ANDROID
26087 Erlang: $apl_TARGET_ERLANG
26088 libapl: $apl_TARGET_LIBAPL
26089 Python: $apl_TARGET_PYTHON
26090 "
26091