]> jfr.im git - irc/UndernetIRC/gnuworld.git/blob - configure
chanfix: Require opers to be authenticated to use oper level commands
[irc/UndernetIRC/gnuworld.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.42 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for gnuworld 3.0.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else $as_nop
198 as_have_required=no
199 fi
200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
201 then :
202
203 else $as_nop
204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205 as_found=false
206 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207 do
208 IFS=$as_save_IFS
209 case $as_dir in #(((
210 '') as_dir=./ ;;
211 */) ;;
212 *) as_dir=$as_dir/ ;;
213 esac
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
225 then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 IFS=$as_save_IFS
234 if $as_found
235 then :
236
237 else $as_nop
238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi
243 fi
244
245
246 if test "x$CONFIG_SHELL" != x
247 then :
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
267 fi
268
269 if test x$as_have_required = xno
270 then :
271 printf "%s\n" "$0: This script requires a shell more modern than all"
272 printf "%s\n" "$0: the shells that I found on your system."
273 if test ${ZSH_VERSION+y} ; then
274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
278 $0: including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322 # as_fn_nop
323 # ---------
324 # Do nothing but, unlike ":", preserve the value of $?.
325 as_fn_nop ()
326 {
327 return $?
328 }
329 as_nop=as_fn_nop
330
331 # as_fn_mkdir_p
332 # -------------
333 # Create "$as_dir" as a directory, including parents if necessary.
334 as_fn_mkdir_p ()
335 {
336
337 case $as_dir in #(
338 -*) as_dir=./$as_dir;;
339 esac
340 test -d "$as_dir" || eval $as_mkdir_p || {
341 as_dirs=
342 while :; do
343 case $as_dir in #(
344 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
345 *) as_qdir=$as_dir;;
346 esac
347 as_dirs="'$as_qdir' $as_dirs"
348 as_dir=`$as_dirname -- "$as_dir" ||
349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
350 X"$as_dir" : 'X\(//\)[^/]' \| \
351 X"$as_dir" : 'X\(//\)$' \| \
352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
353 printf "%s\n" X"$as_dir" |
354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\/\)[^/].*/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)$/{
363 s//\1/
364 q
365 }
366 /^X\(\/\).*/{
367 s//\1/
368 q
369 }
370 s/.*/./; q'`
371 test -d "$as_dir" && break
372 done
373 test -z "$as_dirs" || eval "mkdir $as_dirs"
374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
375
376
377 } # as_fn_mkdir_p
378
379 # as_fn_executable_p FILE
380 # -----------------------
381 # Test if FILE is an executable regular file.
382 as_fn_executable_p ()
383 {
384 test -f "$1" && test -x "$1"
385 } # as_fn_executable_p
386 # as_fn_append VAR VALUE
387 # ----------------------
388 # Append the text in VALUE to the end of the definition contained in VAR. Take
389 # advantage of any shell optimizations that allow amortized linear growth over
390 # repeated appends, instead of the typical quadratic growth present in naive
391 # implementations.
392 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
393 then :
394 eval 'as_fn_append ()
395 {
396 eval $1+=\$2
397 }'
398 else $as_nop
399 as_fn_append ()
400 {
401 eval $1=\$$1\$2
402 }
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else $as_nop
417 as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 }
421 fi # as_fn_arith
422
423 # as_fn_nop
424 # ---------
425 # Do nothing but, unlike ":", preserve the value of $?.
426 as_fn_nop ()
427 {
428 return $?
429 }
430 as_nop=as_fn_nop
431
432 # as_fn_error STATUS ERROR [LINENO LOG_FD]
433 # ----------------------------------------
434 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
435 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
436 # script with STATUS, using 1 if that was 0.
437 as_fn_error ()
438 {
439 as_status=$1; test $as_status -eq 0 && as_status=1
440 if test "$4"; then
441 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 fi
444 printf "%s\n" "$as_me: error: $2" >&2
445 as_fn_exit $as_status
446 } # as_fn_error
447
448 if expr a : '\(a\)' >/dev/null 2>&1 &&
449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
450 as_expr=expr
451 else
452 as_expr=false
453 fi
454
455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
456 as_basename=basename
457 else
458 as_basename=false
459 fi
460
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462 as_dirname=dirname
463 else
464 as_dirname=false
465 fi
466
467 as_me=`$as_basename -- "$0" ||
468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
469 X"$0" : 'X\(//\)$' \| \
470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
471 printf "%s\n" X/"$0" |
472 sed '/^.*\/\([^/][^/]*\)\/*$/{
473 s//\1/
474 q
475 }
476 /^X\/\(\/\/\)$/{
477 s//\1/
478 q
479 }
480 /^X\/\(\/\).*/{
481 s//\1/
482 q
483 }
484 s/.*/./; q'`
485
486 # Avoid depending upon Character Ranges.
487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
490 as_cr_digits='0123456789'
491 as_cr_alnum=$as_cr_Letters$as_cr_digits
492
493
494 as_lineno_1=$LINENO as_lineno_1a=$LINENO
495 as_lineno_2=$LINENO as_lineno_2a=$LINENO
496 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
497 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
498 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
499 sed -n '
500 p
501 /[$]LINENO/=
502 ' <$as_myself |
503 sed '
504 s/[$]LINENO.*/&-/
505 t lineno
506 b
507 :lineno
508 N
509 :loop
510 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
511 t loop
512 s/-\n.*//
513 ' >$as_me.lineno &&
514 chmod +x "$as_me.lineno" ||
515 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516
517 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
518 # already done that, so ensure we don't try to do so again and fall
519 # in an infinite loop. This has already happened in practice.
520 _as_can_reexec=no; export _as_can_reexec
521 # Don't try to exec as it changes $[0], causing all sort of problems
522 # (the dirname of $[0] is not the place where we might find the
523 # original and so on. Autoconf is especially sensitive to this).
524 . "./$as_me.lineno"
525 # Exit status is that of the last command.
526 exit
527 }
528
529
530 # Determine whether it's possible to make 'echo' print without a newline.
531 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
532 # for compatibility with existing Makefiles.
533 ECHO_C= ECHO_N= ECHO_T=
534 case `echo -n x` in #(((((
535 -n*)
536 case `echo 'xy\c'` in
537 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
538 xy) ECHO_C='\c';;
539 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
540 ECHO_T=' ';;
541 esac;;
542 *)
543 ECHO_N='-n';;
544 esac
545
546 # For backward compatibility with old third-party macros, we provide
547 # the shell variables $as_echo and $as_echo_n. New code should use
548 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
549 as_echo='printf %s\n'
550 as_echo_n='printf %s'
551
552
553 rm -f conf$$ conf$$.exe conf$$.file
554 if test -d conf$$.dir; then
555 rm -f conf$$.dir/conf$$.file
556 else
557 rm -f conf$$.dir
558 mkdir conf$$.dir 2>/dev/null
559 fi
560 if (echo >conf$$.file) 2>/dev/null; then
561 if ln -s conf$$.file conf$$ 2>/dev/null; then
562 as_ln_s='ln -s'
563 # ... but there are two gotchas:
564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
566 # In both cases, we have to default to `cp -pR'.
567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
568 as_ln_s='cp -pR'
569 elif ln conf$$.file conf$$ 2>/dev/null; then
570 as_ln_s=ln
571 else
572 as_ln_s='cp -pR'
573 fi
574 else
575 as_ln_s='cp -pR'
576 fi
577 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
578 rmdir conf$$.dir 2>/dev/null
579
580 if mkdir -p . 2>/dev/null; then
581 as_mkdir_p='mkdir -p "$as_dir"'
582 else
583 test -d ./-p && rmdir ./-p
584 as_mkdir_p=false
585 fi
586
587 as_test_x='test -x'
588 as_executable_p=as_fn_executable_p
589
590 # Sed expression to map a string onto a valid CPP name.
591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
592
593 # Sed expression to map a string onto a valid variable name.
594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
595
596 lt_ltdl_dir='libltdl'
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600 lt_dlopen_dir=$lt_ltdl_dir
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='gnuworld'
625 PACKAGE_TARNAME='gnuworld'
626 PACKAGE_VERSION='3.0'
627 PACKAGE_STRING='gnuworld 3.0'
628 PACKAGE_BUGREPORT=''
629 PACKAGE_URL=''
630
631 ac_unique_file="src/main.cc"
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stddef.h>
635 #ifdef HAVE_STDIO_H
636 # include <stdio.h>
637 #endif
638 #ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 #endif
641 #ifdef HAVE_STRING_H
642 # include <string.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_STRINGS_H
651 # include <strings.h>
652 #endif
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef HAVE_UNISTD_H
660 # include <unistd.h>
661 #endif"
662
663 ac_header_c_list=
664 enable_option_checking=no
665 ac_default_prefix=`pwd`
666 ac_header_cxx_list=
667 ac_subst_vars='ltdl_LTLIBOBJS
668 ltdl_LIBOBJS
669 am__EXEEXT_FALSE
670 am__EXEEXT_TRUE
671 LTLIBOBJS
672 LIBOBJS
673 pgsql_libdir
674 pgsql_includedir
675 LIBTOOL_DEPS
676 NEW_MODS
677 COND_MODSNOOP_FALSE
678 COND_MODSNOOP_TRUE
679 COND_MODSTATS_FALSE
680 COND_MODSTATS_TRUE
681 COND_MODSCANNER_FALSE
682 COND_MODSCANNER_TRUE
683 COND_MODOPENCHANFIX_FALSE
684 COND_MODOPENCHANFIX_TRUE
685 COND_MODNICKSERV_FALSE
686 COND_MODNICKSERV_TRUE
687 COND_MODGNUTEST_FALSE
688 COND_MODGNUTEST_TRUE
689 COND_MODDRONESCAN_FALSE
690 COND_MODDRONESCAN_TRUE
691 COND_MODCSERVICE_FALSE
692 COND_MODCSERVICE_TRUE
693 COND_MODCLONER_FALSE
694 COND_MODCLONER_TRUE
695 COND_MODCLIENTEXAMPLE_FALSE
696 COND_MODCLIENTEXAMPLE_TRUE
697 COND_MODCHANFIX_FALSE
698 COND_MODCHANFIX_TRUE
699 COND_MODCCONTROL_FALSE
700 COND_MODCCONTROL_TRUE
701 HAVE_CXX11
702 BOOST_THREAD_LIB
703 BOOST_LDFLAGS
704 BOOST_CPPFLAGS
705 pg_config_binary
706 COND_TESTDIR_FALSE
707 COND_TESTDIR_TRUE
708 COND_PCRE_FALSE
709 COND_PCRE_TRUE
710 threadLib
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 LTDLOPEN
715 LT_CONFIG_H
716 subdirs
717 CONVENIENCE_LTDL_FALSE
718 CONVENIENCE_LTDL_TRUE
719 INSTALL_LTDL_FALSE
720 INSTALL_LTDL_TRUE
721 LT_ARGZ_H
722 sys_symbol_underscore
723 LIBADD_DL
724 LT_DLPREOPEN
725 LIBADD_DLD_LINK
726 LIBADD_SHL_LOAD
727 LIBADD_DLOPEN
728 LT_DLLOADERS
729 INCLTDL
730 LTDLINCL
731 LTDLDEPS
732 LIBLTDL
733 CXXCPP
734 LT_SYS_LIBRARY_PATH
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 MANIFEST_TOOL
741 RANLIB
742 DLLTOOL
743 OBJDUMP
744 LN_S
745 NM
746 ac_ct_DUMPBIN
747 DUMPBIN
748 LD
749 FGREP
750 EGREP
751 GREP
752 SED
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 LIBTOOL
762 am__fastdepCXX_FALSE
763 am__fastdepCXX_TRUE
764 CXXDEPMODE
765 ac_ct_CXX
766 CXXFLAGS
767 CXX
768 am__fastdepCC_FALSE
769 am__fastdepCC_TRUE
770 CCDEPMODE
771 am__nodep
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__include
776 DEPDIR
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
783 CC
784 ac_ct_AR
785 AR
786 AM_BACKSLASH
787 AM_DEFAULT_VERBOSITY
788 AM_DEFAULT_V
789 AM_V
790 am__untar
791 am__tar
792 AMTAR
793 am__leading_dot
794 SET_MAKE
795 AWK
796 mkdir_p
797 MKDIR_P
798 INSTALL_STRIP_PROGRAM
799 STRIP
800 install_sh
801 MAKEINFO
802 AUTOHEADER
803 AUTOMAKE
804 AUTOCONF
805 ACLOCAL
806 VERSION
807 PACKAGE
808 CYGPATH_W
809 am__isrc
810 INSTALL_DATA
811 INSTALL_SCRIPT
812 INSTALL_PROGRAM
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 runstatedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL
852 am__quote'
853 ac_subst_files=''
854 ac_user_opts='
855 enable_option_checking
856 enable_silent_rules
857 enable_dependency_tracking
858 enable_static
859 enable_shared
860 with_pic
861 enable_fast_install
862 with_aix_soname
863 with_gnu_ld
864 with_sysroot
865 enable_libtool_lock
866 with_included_ltdl
867 with_ltdl_include
868 with_ltdl_lib
869 enable_ltdl_install
870 enable_maintainer_mode
871 enable_threads
872 with_debug
873 with_test
874 with_pedantic
875 with_optimization
876 with_prof
877 with_pgconfig
878 with_log4cplus
879 with_log4cplus_lib
880 with_log4cplus_include
881 with_liboath
882 with_liboath_lib
883 with_liboath_include
884 with_extra_includes
885 with_extra_libraries
886 with_boost
887 with_boost_libdir
888 with_boost_thread
889 enable_modules
890 '
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CXX
900 CXXFLAGS
901 CCC
902 LT_SYS_LIBRARY_PATH
903 CXXCPP'
904 ac_subdirs_all='libltdl'
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 runstatedir='${localstatedir}/run'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -runstatedir | --runstatedir | --runstatedi | --runstated \
1194 | --runstate | --runstat | --runsta | --runst | --runs \
1195 | --run | --ru | --r)
1196 ac_prev=runstatedir ;;
1197 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1198 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1199 | --run=* | --ru=* | --r=*)
1200 runstatedir=$ac_optarg ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1246
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: \`$ac_useropt'"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1262
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: \`$ac_useropt'"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1299 ;;
1300
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1325 fi
1326
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir runstatedir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370 fi
1371
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375 test "$silent" = yes && exec 6>/dev/null
1376
1377
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1384
1385
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 printf "%s\n" X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1416 fi
1417 else
1418 ac_srcdir_defaulted=no
1419 fi
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures gnuworld 3.0 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/gnuworld]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive ) echo "Configuration of gnuworld 3.0:";;
1524 esac
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-silent-rules less verbose build output (undo: "make V=1")
1532 --disable-silent-rules verbose build output (undo: "make V=0")
1533 --enable-dependency-tracking
1534 do not reject slow dependency extractors
1535 --disable-dependency-tracking
1536 speeds up one-time build
1537 --enable-static[=PKGS] build static libraries [default=no]
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-fast-install[=PKGS]
1540 optimize for fast installation [default=yes]
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --enable-ltdl-install install libltdl
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --disable-threads disable the linking of the pthread library (default
1547 = no)
1548 --enable-modules=mods Enable one or more modules; all modules found in the
1549 current directory are enabled by default. Specify
1550 "no" (without quotes) to build server only
1551
1552 Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1556 both]
1557 --with-aix-soname=aix|svr4|both
1558 shared library versioning (aka "SONAME") variant to
1559 provide on AIX, [default=aix].
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1562 compiler's sysroot if not specified).
1563 --with-included-ltdl use the GNU ltdl sources included here
1564 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1565 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1566 --without-debug Disable debugging in the executables
1567 --with-test Enable building of test programs
1568 --with-pedantic Add -pedantic to compile options
1569 --with-optimization Optimize the executables
1570 --with-prof Generate profiling information
1571 --with-pgconfig=FILE Specify an alternate pg_config location.
1572 --with-log4cplus Check log4cplus, if not enabled some modules may not
1573 have logging support
1574 --with-log4cplus-lib=LOG4CPLUSLIBDIR
1575 Specify location to find liblog4cplus.so
1576 --with-log4cplus-include=LOG4CPLUSINCLUDEDIR
1577 Specify location to find logger.h
1578 --with-liboath Check liboath, if not enabled TOTP functionality
1579 will not be available
1580 --with-liboath-lib=LIBOATHLIBDIR
1581 Specify location to find liboath.so
1582 --with-liboath-include=OATHINCLUDEDIR
1583 Specify location to find oath.h
1584 --with-extra-includes=INCLUDESDIR
1585 Specify location to find additional include files
1586 --with-extra-libraries=LIBRARYDIR
1587 Specify location to find additional libraries
1588 --with-boost[=ARG] use Boost library from a standard location
1589 (ARG=yes), from the specified location (ARG=<path>),
1590 or disable it (ARG=no) [ARG=yes]
1591 --with-boost-libdir=LIB_DIR
1592 Force given directory for boost libraries. Note that
1593 this will override library path detection, so use
1594 this parameter only if default library detection
1595 fails and you know exactly where your boost
1596 libraries are located.
1597 --with-boost-thread[=special-lib]
1598 use the Thread library from boost - it is possible
1599 to specify a certain library for the linker e.g.
1600 --with-boost-thread=boost_thread-gcc-mt
1601
1602 Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
1607 LIBS libraries to pass to the linker, e.g. -l<library>
1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CXX C++ compiler command
1611 CXXFLAGS C++ compiler flags
1612 LT_SYS_LIBRARY_PATH
1613 User-defined run-time library search path.
1614 CXXCPP C++ preprocessor
1615
1616 Use these variables to override the choices made by `configure' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1618
1619 Report bugs to the package provider.
1620 _ACEOF
1621 ac_status=$?
1622 fi
1623
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1631
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *)
1635 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1647
1648 case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for configure.gnu first; this name is used for a wrapper for
1666 # Metaconfig's "Configure" on case-insensitive file systems.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 gnuworld configure 3.0
1684 generated by GNU Autoconf 2.71
1685
1686 Copyright (C) 2021 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1691 fi
1692
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1696
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest.beam
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 printf "%s\n" "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext
1723 then :
1724 ac_retval=0
1725 else $as_nop
1726 printf "%s\n" "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_compile
1735
1736 # ac_fn_cxx_try_compile LINENO
1737 # ----------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_cxx_try_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest.beam
1743 if { { ac_try="$ac_compile"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 printf "%s\n" "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_cxx_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext
1762 then :
1763 ac_retval=0
1764 else $as_nop
1765 printf "%s\n" "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_cxx_try_compile
1774
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }
1804 then :
1805 ac_retval=0
1806 else $as_nop
1807 printf "%s\n" "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_link
1821
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 printf %s "checking for $2... " >&6; }
1831 if eval test \${$3+y}
1832 then :
1833 printf %s "(cached) " >&6
1834 else $as_nop
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"
1841 then :
1842 eval "$3=yes"
1843 else $as_nop
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 printf "%s\n" "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853 } # ac_fn_c_check_header_compile
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 printf %s "checking for $2... " >&6; }
1863 if eval test \${$3+y}
1864 then :
1865 printf %s "(cached) " >&6
1866 else $as_nop
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1872
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below. */
1875
1876 #include <limits.h>
1877 #undef $2
1878
1879 /* Override any GCC internal prototype to avoid an error.
1880 Use char because int might match the return type of a GCC
1881 builtin and then its argument prototype would still apply. */
1882 #ifdef __cplusplus
1883 extern "C"
1884 #endif
1885 char $2 ();
1886 /* The GNU C library defines this for functions which it implements
1887 to always fail with ENOSYS. Some functions are actually named
1888 something starting with __ and the normal name is an alias. */
1889 #if defined __stub_$2 || defined __stub___$2
1890 choke me
1891 #endif
1892
1893 int
1894 main (void)
1895 {
1896 return $2 ();
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_link "$LINENO"
1902 then :
1903 eval "$3=yes"
1904 else $as_nop
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1908 conftest$ac_exeext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 printf "%s\n" "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915 } # ac_fn_c_check_func
1916
1917 # ac_fn_cxx_try_cpp LINENO
1918 # ------------------------
1919 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_cpp ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 printf "%s\n" "$ac_try_echo"; } >&5
1930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } > conftest.i && {
1939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 }
1942 then :
1943 ac_retval=0
1944 else $as_nop
1945 printf "%s\n" "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1
1949 fi
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_cpp
1954
1955 # ac_fn_cxx_try_link LINENO
1956 # -------------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_link ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 printf "%s\n" "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 test -x conftest$ac_exeext
1983 }
1984 then :
1985 ac_retval=0
1986 else $as_nop
1987 printf "%s\n" "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
1999
2000 } # ac_fn_cxx_try_link
2001
2002 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2003 # ---------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_cxx_check_header_compile ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 printf %s "checking for $2... " >&6; }
2011 if eval test \${$3+y}
2012 then :
2013 printf %s "(cached) " >&6
2014 else $as_nop
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_cxx_try_compile "$LINENO"
2021 then :
2022 eval "$3=yes"
2023 else $as_nop
2024 eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 printf "%s\n" "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_cxx_check_header_compile
2034
2035 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2036 # ------------------------------------------------------------------
2037 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2038 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2039 ac_fn_check_decl ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 as_decl_name=`echo $2|sed 's/ *(.*//'`
2043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044 printf %s "checking whether $as_decl_name is declared... " >&6; }
2045 if eval test \${$3+y}
2046 then :
2047 printf %s "(cached) " >&6
2048 else $as_nop
2049 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2050 eval ac_save_FLAGS=\$$6
2051 as_fn_append $6 " $5"
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main (void)
2057 {
2058 #ifndef $as_decl_name
2059 #ifdef __cplusplus
2060 (void) $as_decl_use;
2061 #else
2062 (void) $as_decl_name;
2063 #endif
2064 #endif
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_cxx_try_compile "$LINENO"
2071 then :
2072 eval "$3=yes"
2073 else $as_nop
2074 eval "$3=no"
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 eval $6=\$ac_save_FLAGS
2078
2079 fi
2080 eval ac_res=\$$3
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 printf "%s\n" "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_check_decl
2086
2087 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2088 # ---------------------------------------------
2089 # Tests whether TYPE exists after having included INCLUDES, setting cache
2090 # variable VAR accordingly.
2091 ac_fn_cxx_check_type ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 printf %s "checking for $2... " >&6; }
2096 if eval test \${$3+y}
2097 then :
2098 printf %s "(cached) " >&6
2099 else $as_nop
2100 eval "$3=no"
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main (void)
2106 {
2107 if (sizeof ($2))
2108 return 0;
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"
2114 then :
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main (void)
2120 {
2121 if (sizeof (($2)))
2122 return 0;
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_cxx_try_compile "$LINENO"
2128 then :
2129
2130 else $as_nop
2131 eval "$3=yes"
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2136 fi
2137 eval ac_res=\$$3
2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 printf "%s\n" "$ac_res" >&6; }
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142 } # ac_fn_cxx_check_type
2143
2144 # ac_fn_cxx_check_func LINENO FUNC VAR
2145 # ------------------------------------
2146 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2147 ac_fn_cxx_check_func ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 printf %s "checking for $2... " >&6; }
2152 if eval test \${$3+y}
2153 then :
2154 printf %s "(cached) " >&6
2155 else $as_nop
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2160 #define $2 innocuous_$2
2161
2162 /* System header to define __stub macros and hopefully few prototypes,
2163 which can conflict with char $2 (); below. */
2164
2165 #include <limits.h>
2166 #undef $2
2167
2168 /* Override any GCC internal prototype to avoid an error.
2169 Use char because int might match the return type of a GCC
2170 builtin and then its argument prototype would still apply. */
2171 #ifdef __cplusplus
2172 extern "C"
2173 #endif
2174 char $2 ();
2175 /* The GNU C library defines this for functions which it implements
2176 to always fail with ENOSYS. Some functions are actually named
2177 something starting with __ and the normal name is an alias. */
2178 #if defined __stub_$2 || defined __stub___$2
2179 choke me
2180 #endif
2181
2182 int
2183 main (void)
2184 {
2185 return $2 ();
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_cxx_try_link "$LINENO"
2191 then :
2192 eval "$3=yes"
2193 else $as_nop
2194 eval "$3=no"
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2197 conftest$ac_exeext conftest.$ac_ext
2198 fi
2199 eval ac_res=\$$3
2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 printf "%s\n" "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204 } # ac_fn_cxx_check_func
2205 ac_configure_args_raw=
2206 for ac_arg
2207 do
2208 case $ac_arg in
2209 *\'*)
2210 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 esac
2212 as_fn_append ac_configure_args_raw " '$ac_arg'"
2213 done
2214
2215 case $ac_configure_args_raw in
2216 *$as_nl*)
2217 ac_safe_unquote= ;;
2218 *)
2219 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2220 ac_unsafe_a="$ac_unsafe_z#~"
2221 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2222 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2223 esac
2224
2225 cat >config.log <<_ACEOF
2226 This file contains any messages produced by compilers while
2227 running configure, to aid debugging if configure makes a mistake.
2228
2229 It was created by gnuworld $as_me 3.0, which was
2230 generated by GNU Autoconf 2.71. Invocation command line was
2231
2232 $ $0$ac_configure_args_raw
2233
2234 _ACEOF
2235 exec 5>>config.log
2236 {
2237 cat <<_ASUNAME
2238 ## --------- ##
2239 ## Platform. ##
2240 ## --------- ##
2241
2242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2250
2251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2258
2259 _ASUNAME
2260
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264 IFS=$as_save_IFS
2265 case $as_dir in #(((
2266 '') as_dir=./ ;;
2267 */) ;;
2268 *) as_dir=$as_dir/ ;;
2269 esac
2270 printf "%s\n" "PATH: $as_dir"
2271 done
2272 IFS=$as_save_IFS
2273
2274 } >&5
2275
2276 cat >&5 <<_ACEOF
2277
2278
2279 ## ----------- ##
2280 ## Core tests. ##
2281 ## ----------- ##
2282
2283 _ACEOF
2284
2285
2286 # Keep a trace of the command line.
2287 # Strip out --no-create and --no-recursion so they do not pile up.
2288 # Strip out --silent because we don't want to record it for future runs.
2289 # Also quote any args containing shell meta-characters.
2290 # Make two passes to allow for proper duplicate-argument suppression.
2291 ac_configure_args=
2292 ac_configure_args0=
2293 ac_configure_args1=
2294 ac_must_keep_next=false
2295 for ac_pass in 1 2
2296 do
2297 for ac_arg
2298 do
2299 case $ac_arg in
2300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302 | -silent | --silent | --silen | --sile | --sil)
2303 continue ;;
2304 *\'*)
2305 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 esac
2307 case $ac_pass in
2308 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309 2)
2310 as_fn_append ac_configure_args1 " '$ac_arg'"
2311 if test $ac_must_keep_next = true; then
2312 ac_must_keep_next=false # Got value, back to normal.
2313 else
2314 case $ac_arg in
2315 *=* | --config-cache | -C | -disable-* | --disable-* \
2316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318 | -with-* | --with-* | -without-* | --without-* | --x)
2319 case "$ac_configure_args0 " in
2320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321 esac
2322 ;;
2323 -* ) ac_must_keep_next=true ;;
2324 esac
2325 fi
2326 as_fn_append ac_configure_args " '$ac_arg'"
2327 ;;
2328 esac
2329 done
2330 done
2331 { ac_configure_args0=; unset ac_configure_args0;}
2332 { ac_configure_args1=; unset ac_configure_args1;}
2333
2334 # When interrupted or exit'd, cleanup temporary files, and complete
2335 # config.log. We remove comments because anyway the quotes in there
2336 # would cause problems or look ugly.
2337 # WARNING: Use '\'' to represent an apostrophe within the trap.
2338 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339 trap 'exit_status=$?
2340 # Sanitize IFS.
2341 IFS=" "" $as_nl"
2342 # Save into config.log some information that might help in debugging.
2343 {
2344 echo
2345
2346 printf "%s\n" "## ---------------- ##
2347 ## Cache variables. ##
2348 ## ---------------- ##"
2349 echo
2350 # The following way of writing the cache mishandles newlines in values,
2351 (
2352 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2353 eval ac_val=\$$ac_var
2354 case $ac_val in #(
2355 *${as_nl}*)
2356 case $ac_var in #(
2357 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2358 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359 esac
2360 case $ac_var in #(
2361 _ | IFS | as_nl) ;; #(
2362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2363 *) { eval $ac_var=; unset $ac_var;} ;;
2364 esac ;;
2365 esac
2366 done
2367 (set) 2>&1 |
2368 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2369 *${as_nl}ac_space=\ *)
2370 sed -n \
2371 "s/'\''/'\''\\\\'\'''\''/g;
2372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373 ;; #(
2374 *)
2375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376 ;;
2377 esac |
2378 sort
2379 )
2380 echo
2381
2382 printf "%s\n" "## ----------------- ##
2383 ## Output variables. ##
2384 ## ----------------- ##"
2385 echo
2386 for ac_var in $ac_subst_vars
2387 do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in
2390 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391 esac
2392 printf "%s\n" "$ac_var='\''$ac_val'\''"
2393 done | sort
2394 echo
2395
2396 if test -n "$ac_subst_files"; then
2397 printf "%s\n" "## ------------------- ##
2398 ## File substitutions. ##
2399 ## ------------------- ##"
2400 echo
2401 for ac_var in $ac_subst_files
2402 do
2403 eval ac_val=\$$ac_var
2404 case $ac_val in
2405 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2406 esac
2407 printf "%s\n" "$ac_var='\''$ac_val'\''"
2408 done | sort
2409 echo
2410 fi
2411
2412 if test -s confdefs.h; then
2413 printf "%s\n" "## ----------- ##
2414 ## confdefs.h. ##
2415 ## ----------- ##"
2416 echo
2417 cat confdefs.h
2418 echo
2419 fi
2420 test "$ac_signal" != 0 &&
2421 printf "%s\n" "$as_me: caught signal $ac_signal"
2422 printf "%s\n" "$as_me: exit $exit_status"
2423 } >&5
2424 rm -f core *.core core.conftest.* &&
2425 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 exit $exit_status
2427 ' 0
2428 for ac_signal in 1 2 13 15; do
2429 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2430 done
2431 ac_signal=0
2432
2433 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2434 rm -f -r conftest* confdefs.h
2435
2436 printf "%s\n" "/* confdefs.h */" > confdefs.h
2437
2438 # Predefined preprocessor variables.
2439
2440 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2441
2442 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2443
2444 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2445
2446 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2447
2448 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2449
2450 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2451
2452
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2455 if test -n "$CONFIG_SITE"; then
2456 ac_site_files="$CONFIG_SITE"
2457 elif test "x$prefix" != xNONE; then
2458 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2459 else
2460 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2461 fi
2462
2463 for ac_site_file in $ac_site_files
2464 do
2465 case $ac_site_file in #(
2466 */*) :
2467 ;; #(
2468 *) :
2469 ac_site_file=./$ac_site_file ;;
2470 esac
2471 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2474 sed 's/^/| /' "$ac_site_file" >&5
2475 . "$ac_site_file" \
2476 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2478 as_fn_error $? "failed to load site script $ac_site_file
2479 See \`config.log' for more details" "$LINENO" 5; }
2480 fi
2481 done
2482
2483 if test -r "$cache_file"; then
2484 # Some versions of bash will fail to source /dev/null (special files
2485 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2489 case $cache_file in
2490 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491 *) . "./$cache_file";;
2492 esac
2493 fi
2494 else
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2497 >$cache_file
2498 fi
2499
2500 # Test code for whether the C compiler supports C89 (global declarations)
2501 ac_c_conftest_c89_globals='
2502 /* Does the compiler advertise C89 conformance?
2503 Do not test the value of __STDC__, because some compilers set it to 0
2504 while being otherwise adequately conformant. */
2505 #if !defined __STDC__
2506 # error "Compiler does not advertise C89 conformance"
2507 #endif
2508
2509 #include <stddef.h>
2510 #include <stdarg.h>
2511 struct stat;
2512 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2513 struct buf { int x; };
2514 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2515 static char *e (p, i)
2516 char **p;
2517 int i;
2518 {
2519 return p[i];
2520 }
2521 static char *f (char * (*g) (char **, int), char **p, ...)
2522 {
2523 char *s;
2524 va_list v;
2525 va_start (v,p);
2526 s = g (p, va_arg (v,int));
2527 va_end (v);
2528 return s;
2529 }
2530
2531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2532 function prototypes and stuff, but not \xHH hex character constants.
2533 These do not provoke an error unfortunately, instead are silently treated
2534 as an "x". The following induces an error, until -std is added to get
2535 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2536 array size at least. It is necessary to write \x00 == 0 to get something
2537 that is true only with -std. */
2538 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2539
2540 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2541 inside strings and character constants. */
2542 #define FOO(x) '\''x'\''
2543 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2544
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2549 int, int);'
2550
2551 # Test code for whether the C compiler supports C89 (body of main).
2552 ac_c_conftest_c89_main='
2553 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2554 '
2555
2556 # Test code for whether the C compiler supports C99 (global declarations)
2557 ac_c_conftest_c99_globals='
2558 // Does the compiler advertise C99 conformance?
2559 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2560 # error "Compiler does not advertise C99 conformance"
2561 #endif
2562
2563 #include <stdbool.h>
2564 extern int puts (const char *);
2565 extern int printf (const char *, ...);
2566 extern int dprintf (int, const char *, ...);
2567 extern void *malloc (size_t);
2568
2569 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2570 // dprintf is used instead of fprintf to avoid needing to declare
2571 // FILE and stderr.
2572 #define debug(...) dprintf (2, __VA_ARGS__)
2573 #define showlist(...) puts (#__VA_ARGS__)
2574 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2575 static void
2576 test_varargs_macros (void)
2577 {
2578 int x = 1234;
2579 int y = 5678;
2580 debug ("Flag");
2581 debug ("X = %d\n", x);
2582 showlist (The first, second, and third items.);
2583 report (x>y, "x is %d but y is %d", x, y);
2584 }
2585
2586 // Check long long types.
2587 #define BIG64 18446744073709551615ull
2588 #define BIG32 4294967295ul
2589 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2590 #if !BIG_OK
2591 #error "your preprocessor is broken"
2592 #endif
2593 #if BIG_OK
2594 #else
2595 #error "your preprocessor is broken"
2596 #endif
2597 static long long int bignum = -9223372036854775807LL;
2598 static unsigned long long int ubignum = BIG64;
2599
2600 struct incomplete_array
2601 {
2602 int datasize;
2603 double data[];
2604 };
2605
2606 struct named_init {
2607 int number;
2608 const wchar_t *name;
2609 double average;
2610 };
2611
2612 typedef const char *ccp;
2613
2614 static inline int
2615 test_restrict (ccp restrict text)
2616 {
2617 // See if C++-style comments work.
2618 // Iterate through items via the restricted pointer.
2619 // Also check for declarations in for loops.
2620 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2621 continue;
2622 return 0;
2623 }
2624
2625 // Check varargs and va_copy.
2626 static bool
2627 test_varargs (const char *format, ...)
2628 {
2629 va_list args;
2630 va_start (args, format);
2631 va_list args_copy;
2632 va_copy (args_copy, args);
2633
2634 const char *str = "";
2635 int number = 0;
2636 float fnumber = 0;
2637
2638 while (*format)
2639 {
2640 switch (*format++)
2641 {
2642 case '\''s'\'': // string
2643 str = va_arg (args_copy, const char *);
2644 break;
2645 case '\''d'\'': // int
2646 number = va_arg (args_copy, int);
2647 break;
2648 case '\''f'\'': // float
2649 fnumber = va_arg (args_copy, double);
2650 break;
2651 default:
2652 break;
2653 }
2654 }
2655 va_end (args_copy);
2656 va_end (args);
2657
2658 return *str && number && fnumber;
2659 }
2660 '
2661
2662 # Test code for whether the C compiler supports C99 (body of main).
2663 ac_c_conftest_c99_main='
2664 // Check bool.
2665 _Bool success = false;
2666 success |= (argc != 0);
2667
2668 // Check restrict.
2669 if (test_restrict ("String literal") == 0)
2670 success = true;
2671 char *restrict newvar = "Another string";
2672
2673 // Check varargs.
2674 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2675 test_varargs_macros ();
2676
2677 // Check flexible array members.
2678 struct incomplete_array *ia =
2679 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2680 ia->datasize = 10;
2681 for (int i = 0; i < ia->datasize; ++i)
2682 ia->data[i] = i * 1.234;
2683
2684 // Check named initializers.
2685 struct named_init ni = {
2686 .number = 34,
2687 .name = L"Test wide string",
2688 .average = 543.34343,
2689 };
2690
2691 ni.number = 58;
2692
2693 int dynamic_array[ni.number];
2694 dynamic_array[0] = argv[0][0];
2695 dynamic_array[ni.number - 1] = 543;
2696
2697 // work around unused variable warnings
2698 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2699 || dynamic_array[ni.number - 1] != 543);
2700 '
2701
2702 # Test code for whether the C compiler supports C11 (global declarations)
2703 ac_c_conftest_c11_globals='
2704 // Does the compiler advertise C11 conformance?
2705 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2706 # error "Compiler does not advertise C11 conformance"
2707 #endif
2708
2709 // Check _Alignas.
2710 char _Alignas (double) aligned_as_double;
2711 char _Alignas (0) no_special_alignment;
2712 extern char aligned_as_int;
2713 char _Alignas (0) _Alignas (int) aligned_as_int;
2714
2715 // Check _Alignof.
2716 enum
2717 {
2718 int_alignment = _Alignof (int),
2719 int_array_alignment = _Alignof (int[100]),
2720 char_alignment = _Alignof (char)
2721 };
2722 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2723
2724 // Check _Noreturn.
2725 int _Noreturn does_not_return (void) { for (;;) continue; }
2726
2727 // Check _Static_assert.
2728 struct test_static_assert
2729 {
2730 int x;
2731 _Static_assert (sizeof (int) <= sizeof (long int),
2732 "_Static_assert does not work in struct");
2733 long int y;
2734 };
2735
2736 // Check UTF-8 literals.
2737 #define u8 syntax error!
2738 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2739
2740 // Check duplicate typedefs.
2741 typedef long *long_ptr;
2742 typedef long int *long_ptr;
2743 typedef long_ptr long_ptr;
2744
2745 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2746 struct anonymous
2747 {
2748 union {
2749 struct { int i; int j; };
2750 struct { int k; long int l; } w;
2751 };
2752 int m;
2753 } v1;
2754 '
2755
2756 # Test code for whether the C compiler supports C11 (body of main).
2757 ac_c_conftest_c11_main='
2758 _Static_assert ((offsetof (struct anonymous, i)
2759 == offsetof (struct anonymous, w.k)),
2760 "Anonymous union alignment botch");
2761 v1.i = 2;
2762 v1.w.k = 5;
2763 ok |= v1.i != 5;
2764 '
2765
2766 # Test code for whether the C compiler supports C11 (complete).
2767 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2768 ${ac_c_conftest_c99_globals}
2769 ${ac_c_conftest_c11_globals}
2770
2771 int
2772 main (int argc, char **argv)
2773 {
2774 int ok = 0;
2775 ${ac_c_conftest_c89_main}
2776 ${ac_c_conftest_c99_main}
2777 ${ac_c_conftest_c11_main}
2778 return ok;
2779 }
2780 "
2781
2782 # Test code for whether the C compiler supports C99 (complete).
2783 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2784 ${ac_c_conftest_c99_globals}
2785
2786 int
2787 main (int argc, char **argv)
2788 {
2789 int ok = 0;
2790 ${ac_c_conftest_c89_main}
2791 ${ac_c_conftest_c99_main}
2792 return ok;
2793 }
2794 "
2795
2796 # Test code for whether the C compiler supports C89 (complete).
2797 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2798
2799 int
2800 main (int argc, char **argv)
2801 {
2802 int ok = 0;
2803 ${ac_c_conftest_c89_main}
2804 return ok;
2805 }
2806 "
2807
2808 # Test code for whether the C++ compiler supports C++98 (global declarations)
2809 ac_cxx_conftest_cxx98_globals='
2810 // Does the compiler advertise C++98 conformance?
2811 #if !defined __cplusplus || __cplusplus < 199711L
2812 # error "Compiler does not advertise C++98 conformance"
2813 #endif
2814
2815 // These inclusions are to reject old compilers that
2816 // lack the unsuffixed header files.
2817 #include <cstdlib>
2818 #include <exception>
2819
2820 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2821 extern void assert (int);
2822 namespace std {
2823 extern int strcmp (const char *, const char *);
2824 }
2825
2826 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2827 using std::exception;
2828 using std::strcmp;
2829
2830 namespace {
2831
2832 void test_exception_syntax()
2833 {
2834 try {
2835 throw "test";
2836 } catch (const char *s) {
2837 // Extra parentheses suppress a warning when building autoconf itself,
2838 // due to lint rules shared with more typical C programs.
2839 assert (!(strcmp) (s, "test"));
2840 }
2841 }
2842
2843 template <typename T> struct test_template
2844 {
2845 T const val;
2846 explicit test_template(T t) : val(t) {}
2847 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2848 };
2849
2850 } // anonymous namespace
2851 '
2852
2853 # Test code for whether the C++ compiler supports C++98 (body of main)
2854 ac_cxx_conftest_cxx98_main='
2855 assert (argc);
2856 assert (! argv[0]);
2857 {
2858 test_exception_syntax ();
2859 test_template<double> tt (2.0);
2860 assert (tt.add (4) == 6.0);
2861 assert (true && !false);
2862 }
2863 '
2864
2865 # Test code for whether the C++ compiler supports C++11 (global declarations)
2866 ac_cxx_conftest_cxx11_globals='
2867 // Does the compiler advertise C++ 2011 conformance?
2868 #if !defined __cplusplus || __cplusplus < 201103L
2869 # error "Compiler does not advertise C++11 conformance"
2870 #endif
2871
2872 namespace cxx11test
2873 {
2874 constexpr int get_val() { return 20; }
2875
2876 struct testinit
2877 {
2878 int i;
2879 double d;
2880 };
2881
2882 class delegate
2883 {
2884 public:
2885 delegate(int n) : n(n) {}
2886 delegate(): delegate(2354) {}
2887
2888 virtual int getval() { return this->n; };
2889 protected:
2890 int n;
2891 };
2892
2893 class overridden : public delegate
2894 {
2895 public:
2896 overridden(int n): delegate(n) {}
2897 virtual int getval() override final { return this->n * 2; }
2898 };
2899
2900 class nocopy
2901 {
2902 public:
2903 nocopy(int i): i(i) {}
2904 nocopy() = default;
2905 nocopy(const nocopy&) = delete;
2906 nocopy & operator=(const nocopy&) = delete;
2907 private:
2908 int i;
2909 };
2910
2911 // for testing lambda expressions
2912 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2913 {
2914 return f(v);
2915 }
2916
2917 // for testing variadic templates and trailing return types
2918 template <typename V> auto sum(V first) -> V
2919 {
2920 return first;
2921 }
2922 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2923 {
2924 return first + sum(rest...);
2925 }
2926 }
2927 '
2928
2929 # Test code for whether the C++ compiler supports C++11 (body of main)
2930 ac_cxx_conftest_cxx11_main='
2931 {
2932 // Test auto and decltype
2933 auto a1 = 6538;
2934 auto a2 = 48573953.4;
2935 auto a3 = "String literal";
2936
2937 int total = 0;
2938 for (auto i = a3; *i; ++i) { total += *i; }
2939
2940 decltype(a2) a4 = 34895.034;
2941 }
2942 {
2943 // Test constexpr
2944 short sa[cxx11test::get_val()] = { 0 };
2945 }
2946 {
2947 // Test initializer lists
2948 cxx11test::testinit il = { 4323, 435234.23544 };
2949 }
2950 {
2951 // Test range-based for
2952 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2953 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2954 for (auto &x : array) { x += 23; }
2955 }
2956 {
2957 // Test lambda expressions
2958 using cxx11test::eval;
2959 assert (eval ([](int x) { return x*2; }, 21) == 42);
2960 double d = 2.0;
2961 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2962 assert (d == 5.0);
2963 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2964 assert (d == 5.0);
2965 }
2966 {
2967 // Test use of variadic templates
2968 using cxx11test::sum;
2969 auto a = sum(1);
2970 auto b = sum(1, 2);
2971 auto c = sum(1.0, 2.0, 3.0);
2972 }
2973 {
2974 // Test constructor delegation
2975 cxx11test::delegate d1;
2976 cxx11test::delegate d2();
2977 cxx11test::delegate d3(45);
2978 }
2979 {
2980 // Test override and final
2981 cxx11test::overridden o1(55464);
2982 }
2983 {
2984 // Test nullptr
2985 char *c = nullptr;
2986 }
2987 {
2988 // Test template brackets
2989 test_template<::test_template<int>> v(test_template<int>(12));
2990 }
2991 {
2992 // Unicode literals
2993 char const *utf8 = u8"UTF-8 string \u2500";
2994 char16_t const *utf16 = u"UTF-8 string \u2500";
2995 char32_t const *utf32 = U"UTF-32 string \u2500";
2996 }
2997 '
2998
2999 # Test code for whether the C compiler supports C++11 (complete).
3000 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3001 ${ac_cxx_conftest_cxx11_globals}
3002
3003 int
3004 main (int argc, char **argv)
3005 {
3006 int ok = 0;
3007 ${ac_cxx_conftest_cxx98_main}
3008 ${ac_cxx_conftest_cxx11_main}
3009 return ok;
3010 }
3011 "
3012
3013 # Test code for whether the C compiler supports C++98 (complete).
3014 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3015 int
3016 main (int argc, char **argv)
3017 {
3018 int ok = 0;
3019 ${ac_cxx_conftest_cxx98_main}
3020 return ok;
3021 }
3022 "
3023
3024 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3025 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3026 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3027 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3028 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3029 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3030 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3031 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3032 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3033 as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3034
3035 # Auxiliary files required by this configure script.
3036 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
3037
3038 # Locations in which to look for auxiliary files.
3039 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3040
3041 # Search for a directory containing all of the required auxiliary files,
3042 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3043 # If we don't find one directory that contains all the files we need,
3044 # we report the set of missing files from the *first* directory in
3045 # $ac_aux_dir_candidates and give up.
3046 ac_missing_aux_files=""
3047 ac_first_candidate=:
3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 as_found=false
3051 for as_dir in $ac_aux_dir_candidates
3052 do
3053 IFS=$as_save_IFS
3054 case $as_dir in #(((
3055 '') as_dir=./ ;;
3056 */) ;;
3057 *) as_dir=$as_dir/ ;;
3058 esac
3059 as_found=:
3060
3061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3062 ac_aux_dir_found=yes
3063 ac_install_sh=
3064 for ac_aux in $ac_aux_files
3065 do
3066 # As a special case, if "install-sh" is required, that requirement
3067 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3068 # and $ac_install_sh is set appropriately for whichever one is found.
3069 if test x"$ac_aux" = x"install-sh"
3070 then
3071 if test -f "${as_dir}install-sh"; then
3072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3073 ac_install_sh="${as_dir}install-sh -c"
3074 elif test -f "${as_dir}install.sh"; then
3075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3076 ac_install_sh="${as_dir}install.sh -c"
3077 elif test -f "${as_dir}shtool"; then
3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3079 ac_install_sh="${as_dir}shtool install -c"
3080 else
3081 ac_aux_dir_found=no
3082 if $ac_first_candidate; then
3083 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3084 else
3085 break
3086 fi
3087 fi
3088 else
3089 if test -f "${as_dir}${ac_aux}"; then
3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3091 else
3092 ac_aux_dir_found=no
3093 if $ac_first_candidate; then
3094 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3095 else
3096 break
3097 fi
3098 fi
3099 fi
3100 done
3101 if test "$ac_aux_dir_found" = yes; then
3102 ac_aux_dir="$as_dir"
3103 break
3104 fi
3105 ac_first_candidate=false
3106
3107 as_found=false
3108 done
3109 IFS=$as_save_IFS
3110 if $as_found
3111 then :
3112
3113 else $as_nop
3114 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3115 fi
3116
3117
3118 # These three variables are undocumented and unsupported,
3119 # and are intended to be withdrawn in a future Autoconf release.
3120 # They can cause serious problems if a builder's source tree is in a directory
3121 # whose full name contains unusual characters.
3122 if test -f "${ac_aux_dir}config.guess"; then
3123 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3124 fi
3125 if test -f "${ac_aux_dir}config.sub"; then
3126 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3127 fi
3128 if test -f "$ac_aux_dir/configure"; then
3129 ac_configure="$SHELL ${ac_aux_dir}configure"
3130 fi
3131
3132 # Check that the precious variables saved in the cache have kept the same
3133 # value.
3134 ac_cache_corrupted=false
3135 for ac_var in $ac_precious_vars; do
3136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3137 eval ac_new_set=\$ac_env_${ac_var}_set
3138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3139 eval ac_new_val=\$ac_env_${ac_var}_value
3140 case $ac_old_set,$ac_new_set in
3141 set,)
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3143 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3144 ac_cache_corrupted=: ;;
3145 ,set)
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3147 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3148 ac_cache_corrupted=: ;;
3149 ,);;
3150 *)
3151 if test "x$ac_old_val" != "x$ac_new_val"; then
3152 # differences in whitespace do not lead to failure.
3153 ac_old_val_w=`echo x $ac_old_val`
3154 ac_new_val_w=`echo x $ac_new_val`
3155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3157 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3158 ac_cache_corrupted=:
3159 else
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3161 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3162 eval $ac_var=\$ac_old_val
3163 fi
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3165 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3167 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3168 fi;;
3169 esac
3170 # Pass precious variables to config.status.
3171 if test "$ac_new_set" = set; then
3172 case $ac_new_val in
3173 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 *) ac_arg=$ac_var=$ac_new_val ;;
3175 esac
3176 case " $ac_configure_args " in
3177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3179 esac
3180 fi
3181 done
3182 if $ac_cache_corrupted; then
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3186 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3187 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3188 and start over" "$LINENO" 5
3189 fi
3190 ## -------------------- ##
3191 ## Main body of script. ##
3192 ## -------------------- ##
3193
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201
3202
3203 ac_config_headers="$ac_config_headers include/defs.h"
3204
3205 am__api_version='1.16'
3206
3207
3208
3209 # Find a good install program. We prefer a C program (faster),
3210 # so one script is as good as another. But avoid the broken or
3211 # incompatible versions:
3212 # SysV /etc/install, /usr/sbin/install
3213 # SunOS /usr/etc/install
3214 # IRIX /sbin/install
3215 # AIX /bin/install
3216 # AmigaOS /C/install, which installs bootblocks on floppy discs
3217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3220 # OS/2's system install, which has a completely different semantic
3221 # ./install, which can be erroneously created by make from ./install.sh.
3222 # Reject install programs that cannot install multiple files.
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3224 printf %s "checking for a BSD-compatible install... " >&6; }
3225 if test -z "$INSTALL"; then
3226 if test ${ac_cv_path_install+y}
3227 then :
3228 printf %s "(cached) " >&6
3229 else $as_nop
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 case $as_dir in #(((
3235 '') as_dir=./ ;;
3236 */) ;;
3237 *) as_dir=$as_dir/ ;;
3238 esac
3239 # Account for fact that we put trailing slashes in our PATH walk.
3240 case $as_dir in #((
3241 ./ | /[cC]/* | \
3242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3243 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3244 /usr/ucb/* ) ;;
3245 *)
3246 # OSF1 and SCO ODT 3.0 have their own names for install.
3247 # Don't use installbsd from OSF since it installs stuff as root
3248 # by default.
3249 for ac_prog in ginstall scoinst install; do
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3252 if test $ac_prog = install &&
3253 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3254 # AIX install. It has an incompatible calling convention.
3255 :
3256 elif test $ac_prog = install &&
3257 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3258 # program-specific install script used by HP pwplus--don't use.
3259 :
3260 else
3261 rm -rf conftest.one conftest.two conftest.dir
3262 echo one > conftest.one
3263 echo two > conftest.two
3264 mkdir conftest.dir
3265 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3266 test -s conftest.one && test -s conftest.two &&
3267 test -s conftest.dir/conftest.one &&
3268 test -s conftest.dir/conftest.two
3269 then
3270 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3271 break 3
3272 fi
3273 fi
3274 fi
3275 done
3276 done
3277 ;;
3278 esac
3279
3280 done
3281 IFS=$as_save_IFS
3282
3283 rm -rf conftest.one conftest.two conftest.dir
3284
3285 fi
3286 if test ${ac_cv_path_install+y}; then
3287 INSTALL=$ac_cv_path_install
3288 else
3289 # As a last resort, use the slow shell script. Don't cache a
3290 # value for INSTALL within a source directory, because that will
3291 # break other packages using the cache if that directory is
3292 # removed, or if the value is a relative name.
3293 INSTALL=$ac_install_sh
3294 fi
3295 fi
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3297 printf "%s\n" "$INSTALL" >&6; }
3298
3299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3300 # It thinks the first close brace ends the variable substitution.
3301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3302
3303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3304
3305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3306
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3308 printf %s "checking whether build environment is sane... " >&6; }
3309 # Reject unsafe characters in $srcdir or the absolute working directory
3310 # name. Accept space and tab only in the latter.
3311 am_lf='
3312 '
3313 case `pwd` in
3314 *[\\\"\#\$\&\'\`$am_lf]*)
3315 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3316 esac
3317 case $srcdir in
3318 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3319 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3320 esac
3321
3322 # Do 'set' in a subshell so we don't clobber the current shell's
3323 # arguments. Must try -L first in case configure is actually a
3324 # symlink; some systems play weird games with the mod time of symlinks
3325 # (eg FreeBSD returns the mod time of the symlink's containing
3326 # directory).
3327 if (
3328 am_has_slept=no
3329 for am_try in 1 2; do
3330 echo "timestamp, slept: $am_has_slept" > conftest.file
3331 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3332 if test "$*" = "X"; then
3333 # -L didn't work.
3334 set X `ls -t "$srcdir/configure" conftest.file`
3335 fi
3336 if test "$*" != "X $srcdir/configure conftest.file" \
3337 && test "$*" != "X conftest.file $srcdir/configure"; then
3338
3339 # If neither matched, then we have a broken ls. This can happen
3340 # if, for instance, CONFIG_SHELL is bash and it inherits a
3341 # broken ls alias from the environment. This has actually
3342 # happened. Such a system could not be considered "sane".
3343 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3344 alias in your environment" "$LINENO" 5
3345 fi
3346 if test "$2" = conftest.file || test $am_try -eq 2; then
3347 break
3348 fi
3349 # Just in case.
3350 sleep 1
3351 am_has_slept=yes
3352 done
3353 test "$2" = conftest.file
3354 )
3355 then
3356 # Ok.
3357 :
3358 else
3359 as_fn_error $? "newly created file is older than distributed files!
3360 Check your system clock" "$LINENO" 5
3361 fi
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363 printf "%s\n" "yes" >&6; }
3364 # If we didn't sleep, we still need to ensure time stamps of config.status and
3365 # generated files are strictly newer.
3366 am_sleep_pid=
3367 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3368 ( sleep 1 ) &
3369 am_sleep_pid=$!
3370 fi
3371
3372 rm -f conftest.file
3373
3374 test "$program_prefix" != NONE &&
3375 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3376 # Use a double $ so make ignores it.
3377 test "$program_suffix" != NONE &&
3378 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3379 # Double any \ or $.
3380 # By default was `s,x,x', remove it if useless.
3381 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3382 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3383
3384
3385 # Expand $ac_aux_dir to an absolute path.
3386 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3387
3388
3389 if test x"${MISSING+set}" != xset; then
3390 MISSING="\${SHELL} '$am_aux_dir/missing'"
3391 fi
3392 # Use eval to expand $SHELL
3393 if eval "$MISSING --is-lightweight"; then
3394 am_missing_run="$MISSING "
3395 else
3396 am_missing_run=
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3398 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3399 fi
3400
3401 if test x"${install_sh+set}" != xset; then
3402 case $am_aux_dir in
3403 *\ * | *\ *)
3404 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3405 *)
3406 install_sh="\${SHELL} $am_aux_dir/install-sh"
3407 esac
3408 fi
3409
3410 # Installed binaries are usually stripped using 'strip' when the user
3411 # run "make install-strip". However 'strip' might not be the right
3412 # tool to use in cross-compilation environments, therefore Automake
3413 # will honor the 'STRIP' environment variable to overrule this program.
3414 if test "$cross_compiling" != no; then
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}strip; ac_word=$2
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 printf %s "checking for $ac_word... " >&6; }
3420 if test ${ac_cv_prog_STRIP+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else $as_nop
3424 if test -n "$STRIP"; then
3425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 case $as_dir in #(((
3432 '') as_dir=./ ;;
3433 */) ;;
3434 *) as_dir=$as_dir/ ;;
3435 esac
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 STRIP=$ac_cv_prog_STRIP
3449 if test -n "$STRIP"; then
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3451 printf "%s\n" "$STRIP" >&6; }
3452 else
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 printf "%s\n" "no" >&6; }
3455 fi
3456
3457
3458 fi
3459 if test -z "$ac_cv_prog_STRIP"; then
3460 ac_ct_STRIP=$STRIP
3461 # Extract the first word of "strip", so it can be a program name with args.
3462 set dummy strip; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_ac_ct_STRIP+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_STRIP="strip"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3494 if test -n "$ac_ct_STRIP"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3496 printf "%s\n" "$ac_ct_STRIP" >&6; }
3497 else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 printf "%s\n" "no" >&6; }
3500 fi
3501
3502 if test "x$ac_ct_STRIP" = x; then
3503 STRIP=":"
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 STRIP=$ac_ct_STRIP
3512 fi
3513 else
3514 STRIP="$ac_cv_prog_STRIP"
3515 fi
3516
3517 fi
3518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3519
3520
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3522 printf %s "checking for a race-free mkdir -p... " >&6; }
3523 if test -z "$MKDIR_P"; then
3524 if test ${ac_cv_path_mkdir+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else $as_nop
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3530 do
3531 IFS=$as_save_IFS
3532 case $as_dir in #(((
3533 '') as_dir=./ ;;
3534 */) ;;
3535 *) as_dir=$as_dir/ ;;
3536 esac
3537 for ac_prog in mkdir gmkdir; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3540 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3541 'mkdir ('*'coreutils) '* | \
3542 'BusyBox '* | \
3543 'mkdir (fileutils) '4.1*)
3544 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3545 break 3;;
3546 esac
3547 done
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553
3554 test -d ./--version && rmdir ./--version
3555 if test ${ac_cv_path_mkdir+y}; then
3556 MKDIR_P="$ac_cv_path_mkdir -p"
3557 else
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for MKDIR_P within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 MKDIR_P="$ac_install_sh -d"
3563 fi
3564 fi
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3566 printf "%s\n" "$MKDIR_P" >&6; }
3567
3568 for ac_prog in gawk mawk nawk awk
3569 do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_AWK+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$AWK"; then
3579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_AWK="$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 AWK=$ac_cv_prog_AWK
3603 if test -n "$AWK"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3605 printf "%s\n" "$AWK" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 test -n "$AWK" && break
3613 done
3614
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3616 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3617 set x ${MAKE-make}
3618 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3619 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3620 then :
3621 printf %s "(cached) " >&6
3622 else $as_nop
3623 cat >conftest.make <<\_ACEOF
3624 SHELL = /bin/sh
3625 all:
3626 @echo '@@@%%%=$(MAKE)=@@@%%%'
3627 _ACEOF
3628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3630 *@@@%%%=?*=@@@%%%*)
3631 eval ac_cv_prog_make_${ac_make}_set=yes;;
3632 *)
3633 eval ac_cv_prog_make_${ac_make}_set=no;;
3634 esac
3635 rm -f conftest.make
3636 fi
3637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 printf "%s\n" "yes" >&6; }
3640 SET_MAKE=
3641 else
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 SET_MAKE="MAKE=${MAKE-make}"
3645 fi
3646
3647 rm -rf .tst 2>/dev/null
3648 mkdir .tst 2>/dev/null
3649 if test -d .tst; then
3650 am__leading_dot=.
3651 else
3652 am__leading_dot=_
3653 fi
3654 rmdir .tst 2>/dev/null
3655
3656 # Check whether --enable-silent-rules was given.
3657 if test ${enable_silent_rules+y}
3658 then :
3659 enableval=$enable_silent_rules;
3660 fi
3661
3662 case $enable_silent_rules in # (((
3663 yes) AM_DEFAULT_VERBOSITY=0;;
3664 no) AM_DEFAULT_VERBOSITY=1;;
3665 *) AM_DEFAULT_VERBOSITY=1;;
3666 esac
3667 am_make=${MAKE-make}
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3669 printf %s "checking whether $am_make supports nested variables... " >&6; }
3670 if test ${am_cv_make_support_nested_variables+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else $as_nop
3674 if printf "%s\n" 'TRUE=$(BAR$(V))
3675 BAR0=false
3676 BAR1=true
3677 V=1
3678 am__doit:
3679 @$(TRUE)
3680 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3681 am_cv_make_support_nested_variables=yes
3682 else
3683 am_cv_make_support_nested_variables=no
3684 fi
3685 fi
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3687 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3688 if test $am_cv_make_support_nested_variables = yes; then
3689 AM_V='$(V)'
3690 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3691 else
3692 AM_V=$AM_DEFAULT_VERBOSITY
3693 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3694 fi
3695 AM_BACKSLASH='\'
3696
3697 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3698 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3699 # is not polluted with repeated "-I."
3700 am__isrc=' -I$(srcdir)'
3701 # test to see if srcdir already configured
3702 if test -f $srcdir/config.status; then
3703 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3704 fi
3705 fi
3706
3707 # test whether we have cygpath
3708 if test -z "$CYGPATH_W"; then
3709 if (cygpath --version) >/dev/null 2>/dev/null; then
3710 CYGPATH_W='cygpath -w'
3711 else
3712 CYGPATH_W=echo
3713 fi
3714 fi
3715
3716
3717 # Define the identity of the package.
3718 PACKAGE='gnuworld'
3719 VERSION='3.0'
3720
3721
3722 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3723
3724
3725 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3726
3727 # Some tools Automake needs.
3728
3729 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3730
3731
3732 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3733
3734
3735 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3736
3737
3738 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3739
3740
3741 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3742
3743 # For better backward compatibility. To be removed once Automake 1.9.x
3744 # dies out for good. For more background, see:
3745 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3747 mkdir_p='$(MKDIR_P)'
3748
3749 # We need awk for the "check" target (and possibly the TAP driver). The
3750 # system "awk" is bad on some platforms.
3751 # Always define AMTAR for backward compatibility. Yes, it's still used
3752 # in the wild :-( We should find a proper way to deprecate it ...
3753 AMTAR='$${TAR-tar}'
3754
3755
3756 # We'll loop over all known methods to create a tar archive until one works.
3757 _am_tools='gnutar pax cpio none'
3758
3759 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3760
3761
3762
3763
3764
3765
3766 # POSIX will say in a future version that running "rm -f" with no argument
3767 # is OK; and we want to be able to make that assumption in our Makefile
3768 # recipes. So use an aggressive probe to check that the usage we want is
3769 # actually supported "in the wild" to an acceptable degree.
3770 # See automake bug#10828.
3771 # To make any issue more visible, cause the running configure to be aborted
3772 # by default if the 'rm' program in use doesn't match our expectations; the
3773 # user can still override this though.
3774 if rm -f && rm -fr && rm -rf; then : OK; else
3775 cat >&2 <<'END'
3776 Oops!
3777
3778 Your 'rm' program seems unable to run without file operands specified
3779 on the command line, even when the '-f' option is present. This is contrary
3780 to the behaviour of most rm programs out there, and not conforming with
3781 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3782
3783 Please tell bug-automake@gnu.org about your system, including the value
3784 of your $PATH and any error possibly output before this message. This
3785 can help us improve future automake versions.
3786
3787 END
3788 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3789 echo 'Configuration will proceed anyway, since you have set the' >&2
3790 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3791 echo >&2
3792 else
3793 cat >&2 <<'END'
3794 Aborting the configuration process, to ensure you take notice of the issue.
3795
3796 You can download and install GNU coreutils to get an 'rm' implementation
3797 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3798
3799 If you want to complete the configuration process using your problematic
3800 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3801 to "yes", and re-run configure.
3802
3803 END
3804 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3805 fi
3806 fi
3807
3808 # Check whether --enable-silent-rules was given.
3809 if test ${enable_silent_rules+y}
3810 then :
3811 enableval=$enable_silent_rules;
3812 fi
3813
3814 case $enable_silent_rules in # (((
3815 yes) AM_DEFAULT_VERBOSITY=0;;
3816 no) AM_DEFAULT_VERBOSITY=1;;
3817 *) AM_DEFAULT_VERBOSITY=0;;
3818 esac
3819 am_make=${MAKE-make}
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3821 printf %s "checking whether $am_make supports nested variables... " >&6; }
3822 if test ${am_cv_make_support_nested_variables+y}
3823 then :
3824 printf %s "(cached) " >&6
3825 else $as_nop
3826 if printf "%s\n" 'TRUE=$(BAR$(V))
3827 BAR0=false
3828 BAR1=true
3829 V=1
3830 am__doit:
3831 @$(TRUE)
3832 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3833 am_cv_make_support_nested_variables=yes
3834 else
3835 am_cv_make_support_nested_variables=no
3836 fi
3837 fi
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3839 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3840 if test $am_cv_make_support_nested_variables = yes; then
3841 AM_V='$(V)'
3842 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3843 else
3844 AM_V=$AM_DEFAULT_VERBOSITY
3845 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3846 fi
3847 AM_BACKSLASH='\'
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859 DEPDIR="${am__leading_dot}deps"
3860
3861 ac_config_commands="$ac_config_commands depfiles"
3862
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3864 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3865 cat > confinc.mk << 'END'
3866 am__doit:
3867 @echo this is the am__doit target >confinc.out
3868 .PHONY: am__doit
3869 END
3870 am__include="#"
3871 am__quote=
3872 # BSD make does it like this.
3873 echo '.include "confinc.mk" # ignored' > confmf.BSD
3874 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3875 echo 'include confinc.mk # ignored' > confmf.GNU
3876 _am_result=no
3877 for s in GNU BSD; do
3878 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3879 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }
3883 case $?:`cat confinc.out 2>/dev/null` in #(
3884 '0:this is the am__doit target') :
3885 case $s in #(
3886 BSD) :
3887 am__include='.include' am__quote='"' ;; #(
3888 *) :
3889 am__include='include' am__quote='' ;;
3890 esac ;; #(
3891 *) :
3892 ;;
3893 esac
3894 if test "$am__include" != "#"; then
3895 _am_result="yes ($s style)"
3896 break
3897 fi
3898 done
3899 rm -f confinc.* confmf.*
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3901 printf "%s\n" "${_am_result}" >&6; }
3902
3903 # Check whether --enable-dependency-tracking was given.
3904 if test ${enable_dependency_tracking+y}
3905 then :
3906 enableval=$enable_dependency_tracking;
3907 fi
3908
3909 if test "x$enable_dependency_tracking" != xno; then
3910 am_depcomp="$ac_aux_dir/depcomp"
3911 AMDEPBACKSLASH='\'
3912 am__nodep='_no'
3913 fi
3914 if test "x$enable_dependency_tracking" != xno; then
3915 AMDEP_TRUE=
3916 AMDEP_FALSE='#'
3917 else
3918 AMDEP_TRUE='#'
3919 AMDEP_FALSE=
3920 fi
3921
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 printf %s "checking for $ac_word... " >&6; }
3933 if test ${ac_cv_prog_CC+y}
3934 then :
3935 printf %s "(cached) " >&6
3936 else $as_nop
3937 if test -n "$CC"; then
3938 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943 IFS=$as_save_IFS
3944 case $as_dir in #(((
3945 '') as_dir=./ ;;
3946 */) ;;
3947 *) as_dir=$as_dir/ ;;
3948 esac
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 CC=$ac_cv_prog_CC
3962 if test -n "$CC"; then
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 printf "%s\n" "$CC" >&6; }
3965 else
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 printf "%s\n" "no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_prog_CC"; then
3973 ac_ct_CC=$CC
3974 # Extract the first word of "gcc", so it can be a program name with args.
3975 set dummy gcc; ac_word=$2
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 printf %s "checking for $ac_word... " >&6; }
3978 if test ${ac_cv_prog_ac_ct_CC+y}
3979 then :
3980 printf %s "(cached) " >&6
3981 else $as_nop
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 case $as_dir in #(((
3990 '') as_dir=./ ;;
3991 */) ;;
3992 *) as_dir=$as_dir/ ;;
3993 esac
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CC="gcc"
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 printf "%s\n" "$ac_ct_CC" >&6; }
4010 else
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 printf "%s\n" "no" >&6; }
4013 fi
4014
4015 if test "x$ac_ct_CC" = x; then
4016 CC=""
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019 yes:)
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned=yes ;;
4023 esac
4024 CC=$ac_ct_CC
4025 fi
4026 else
4027 CC="$ac_cv_prog_CC"
4028 fi
4029
4030 if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}cc; ac_word=$2
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 printf %s "checking for $ac_word... " >&6; }
4036 if test ${ac_cv_prog_CC+y}
4037 then :
4038 printf %s "(cached) " >&6
4039 else $as_nop
4040 if test -n "$CC"; then
4041 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 case $as_dir in #(((
4048 '') as_dir=./ ;;
4049 */) ;;
4050 *) as_dir=$as_dir/ ;;
4051 esac
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_CC="${ac_tool_prefix}cc"
4055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058 done
4059 done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 CC=$ac_cv_prog_CC
4065 if test -n "$CC"; then
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4067 printf "%s\n" "$CC" >&6; }
4068 else
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 printf "%s\n" "no" >&6; }
4071 fi
4072
4073
4074 fi
4075 fi
4076 if test -z "$CC"; then
4077 # Extract the first word of "cc", so it can be a program name with args.
4078 set dummy cc; ac_word=$2
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 printf %s "checking for $ac_word... " >&6; }
4081 if test ${ac_cv_prog_CC+y}
4082 then :
4083 printf %s "(cached) " >&6
4084 else $as_nop
4085 if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 ac_prog_rejected=no
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 case $as_dir in #(((
4094 '') as_dir=./ ;;
4095 */) ;;
4096 *) as_dir=$as_dir/ ;;
4097 esac
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4100 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4101 ac_prog_rejected=yes
4102 continue
4103 fi
4104 ac_cv_prog_CC="cc"
4105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 if test $ac_prog_rejected = yes; then
4113 # We found a bogon in the path, so make sure we never use it.
4114 set dummy $ac_cv_prog_CC
4115 shift
4116 if test $# != 0; then
4117 # We chose a different compiler from the bogus one.
4118 # However, it has the same basename, so the bogon will be chosen
4119 # first if we set CC to just the basename; use the full file name.
4120 shift
4121 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4122 fi
4123 fi
4124 fi
4125 fi
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 printf "%s\n" "$CC" >&6; }
4130 else
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 printf "%s\n" "no" >&6; }
4133 fi
4134
4135
4136 fi
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 for ac_prog in cl.exe
4140 do
4141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 printf %s "checking for $ac_word... " >&6; }
4145 if test ${ac_cv_prog_CC+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else $as_nop
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 case $as_dir in #(((
4157 '') as_dir=./ ;;
4158 */) ;;
4159 *) as_dir=$as_dir/ ;;
4160 esac
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169 IFS=$as_save_IFS
4170
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 printf "%s\n" "$CC" >&6; }
4177 else
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 printf "%s\n" "no" >&6; }
4180 fi
4181
4182
4183 test -n "$CC" && break
4184 done
4185 fi
4186 if test -z "$CC"; then
4187 ac_ct_CC=$CC
4188 for ac_prog in cl.exe
4189 do
4190 # Extract the first word of "$ac_prog", so it can be a program name with args.
4191 set dummy $ac_prog; ac_word=$2
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 printf %s "checking for $ac_word... " >&6; }
4194 if test ${ac_cv_prog_ac_ct_CC+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 case $as_dir in #(((
4206 '') as_dir=./ ;;
4207 */) ;;
4208 *) as_dir=$as_dir/ ;;
4209 esac
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_CC="$ac_prog"
4213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 fi
4221 fi
4222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4223 if test -n "$ac_ct_CC"; then
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4225 printf "%s\n" "$ac_ct_CC" >&6; }
4226 else
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 printf "%s\n" "no" >&6; }
4229 fi
4230
4231
4232 test -n "$ac_ct_CC" && break
4233 done
4234
4235 if test "x$ac_ct_CC" = x; then
4236 CC=""
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239 yes:)
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 CC=$ac_ct_CC
4245 fi
4246 fi
4247
4248 fi
4249 if test -z "$CC"; then
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}clang; ac_word=$2
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 printf %s "checking for $ac_word... " >&6; }
4255 if test ${ac_cv_prog_CC+y}
4256 then :
4257 printf %s "(cached) " >&6
4258 else $as_nop
4259 if test -n "$CC"; then
4260 ac_cv_prog_CC="$CC" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 case $as_dir in #(((
4267 '') as_dir=./ ;;
4268 */) ;;
4269 *) as_dir=$as_dir/ ;;
4270 esac
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}clang"
4274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 CC=$ac_cv_prog_CC
4284 if test -n "$CC"; then
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4286 printf "%s\n" "$CC" >&6; }
4287 else
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 printf "%s\n" "no" >&6; }
4290 fi
4291
4292
4293 fi
4294 if test -z "$ac_cv_prog_CC"; then
4295 ac_ct_CC=$CC
4296 # Extract the first word of "clang", so it can be a program name with args.
4297 set dummy clang; ac_word=$2
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 printf %s "checking for $ac_word... " >&6; }
4300 if test ${ac_cv_prog_ac_ct_CC+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 if test -n "$ac_ct_CC"; then
4305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 case $as_dir in #(((
4312 '') as_dir=./ ;;
4313 */) ;;
4314 *) as_dir=$as_dir/ ;;
4315 esac
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_ac_ct_CC="clang"
4319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4331 printf "%s\n" "$ac_ct_CC" >&6; }
4332 else
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 printf "%s\n" "no" >&6; }
4335 fi
4336
4337 if test "x$ac_ct_CC" = x; then
4338 CC=""
4339 else
4340 case $cross_compiling:$ac_tool_warned in
4341 yes:)
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4343 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4344 ac_tool_warned=yes ;;
4345 esac
4346 CC=$ac_ct_CC
4347 fi
4348 else
4349 CC="$ac_cv_prog_CC"
4350 fi
4351
4352 fi
4353
4354
4355 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4357 as_fn_error $? "no acceptable C compiler found in \$PATH
4358 See \`config.log' for more details" "$LINENO" 5; }
4359
4360 # Provide some information about the compiler.
4361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4362 set X $ac_compile
4363 ac_compiler=$2
4364 for ac_option in --version -v -V -qversion -version; do
4365 { { ac_try="$ac_compiler $ac_option >&5"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 printf "%s\n" "$ac_try_echo"; } >&5
4372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4373 ac_status=$?
4374 if test -s conftest.err; then
4375 sed '10a\
4376 ... rest of stderr output deleted ...
4377 10q' conftest.err >conftest.er1
4378 cat conftest.er1 >&5
4379 fi
4380 rm -f conftest.er1 conftest.err
4381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }
4383 done
4384
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 int
4389 main (void)
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 ac_clean_files_save=$ac_clean_files
4397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4398 # Try to create an executable without -o first, disregard a.out.
4399 # It will help us diagnose broken compilers, and finding out an intuition
4400 # of exeext.
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4402 printf %s "checking whether the C compiler works... " >&6; }
4403 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4404
4405 # The possible output files:
4406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4407
4408 ac_rmfiles=
4409 for ac_file in $ac_files
4410 do
4411 case $ac_file in
4412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4414 esac
4415 done
4416 rm -f $ac_rmfiles
4417
4418 if { { ac_try="$ac_link_default"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 printf "%s\n" "$ac_try_echo"; } >&5
4425 (eval "$ac_link_default") 2>&5
4426 ac_status=$?
4427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 then :
4430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4433 # so that the user can short-circuit this test for compilers unknown to
4434 # Autoconf.
4435 for ac_file in $ac_files ''
4436 do
4437 test -f "$ac_file" || continue
4438 case $ac_file in
4439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4440 ;;
4441 [ab].out )
4442 # We found the default executable, but exeext='' is most
4443 # certainly right.
4444 break;;
4445 *.* )
4446 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4447 then :; else
4448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4449 fi
4450 # We set ac_cv_exeext here because the later test for it is not
4451 # safe: cross compilers may not add the suffix if given an `-o'
4452 # argument, so we may need to know it at that point already.
4453 # Even if this section looks crufty: it has the advantage of
4454 # actually working.
4455 break;;
4456 * )
4457 break;;
4458 esac
4459 done
4460 test "$ac_cv_exeext" = no && ac_cv_exeext=
4461
4462 else $as_nop
4463 ac_file=''
4464 fi
4465 if test -z "$ac_file"
4466 then :
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 printf "%s\n" "no" >&6; }
4469 printf "%s\n" "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error 77 "C compiler cannot create executables
4475 See \`config.log' for more details" "$LINENO" 5; }
4476 else $as_nop
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 printf "%s\n" "yes" >&6; }
4479 fi
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4481 printf %s "checking for C compiler default output file name... " >&6; }
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4483 printf "%s\n" "$ac_file" >&6; }
4484 ac_exeext=$ac_cv_exeext
4485
4486 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4487 ac_clean_files=$ac_clean_files_save
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4489 printf %s "checking for suffix of executables... " >&6; }
4490 if { { ac_try="$ac_link"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 printf "%s\n" "$ac_try_echo"; } >&5
4497 (eval "$ac_link") 2>&5
4498 ac_status=$?
4499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }
4501 then :
4502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4504 # work properly (i.e., refer to `conftest.exe'), while it won't with
4505 # `rm'.
4506 for ac_file in conftest.exe conftest conftest.*; do
4507 test -f "$ac_file" || continue
4508 case $ac_file in
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511 break;;
4512 * ) break;;
4513 esac
4514 done
4515 else $as_nop
4516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4519 See \`config.log' for more details" "$LINENO" 5; }
4520 fi
4521 rm -f conftest conftest$ac_cv_exeext
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4523 printf "%s\n" "$ac_cv_exeext" >&6; }
4524
4525 rm -f conftest.$ac_ext
4526 EXEEXT=$ac_cv_exeext
4527 ac_exeext=$EXEEXT
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 #include <stdio.h>
4531 int
4532 main (void)
4533 {
4534 FILE *f = fopen ("conftest.out", "w");
4535 return ferror (f) || fclose (f) != 0;
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 ac_clean_files="$ac_clean_files conftest.out"
4542 # Check that the compiler produces executables we can run. If not, either
4543 # the compiler is broken, or we cross compile.
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4545 printf %s "checking whether we are cross compiling... " >&6; }
4546 if test "$cross_compiling" != yes; then
4547 { { ac_try="$ac_link"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 printf "%s\n" "$ac_try_echo"; } >&5
4554 (eval "$ac_link") 2>&5
4555 ac_status=$?
4556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }
4558 if { ac_try='./conftest$ac_cv_exeext'
4559 { { case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4564 printf "%s\n" "$ac_try_echo"; } >&5
4565 (eval "$ac_try") 2>&5
4566 ac_status=$?
4567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568 test $ac_status = 0; }; }; then
4569 cross_compiling=no
4570 else
4571 if test "$cross_compiling" = maybe; then
4572 cross_compiling=yes
4573 else
4574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error 77 "cannot run C compiled programs.
4577 If you meant to cross compile, use \`--host'.
4578 See \`config.log' for more details" "$LINENO" 5; }
4579 fi
4580 fi
4581 fi
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4583 printf "%s\n" "$cross_compiling" >&6; }
4584
4585 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4586 ac_clean_files=$ac_clean_files_save
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588 printf %s "checking for suffix of object files... " >&6; }
4589 if test ${ac_cv_objext+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else $as_nop
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.o conftest.obj
4605 if { { ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 printf "%s\n" "$ac_try_echo"; } >&5
4612 (eval "$ac_compile") 2>&5
4613 ac_status=$?
4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }
4616 then :
4617 for ac_file in conftest.o conftest.obj conftest.*; do
4618 test -f "$ac_file" || continue;
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4622 break;;
4623 esac
4624 done
4625 else $as_nop
4626 printf "%s\n" "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error $? "cannot compute suffix of object files: cannot compile
4632 See \`config.log' for more details" "$LINENO" 5; }
4633 fi
4634 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4637 printf "%s\n" "$ac_cv_objext" >&6; }
4638 OBJEXT=$ac_cv_objext
4639 ac_objext=$OBJEXT
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4641 printf %s "checking whether the compiler supports GNU C... " >&6; }
4642 if test ${ac_cv_c_compiler_gnu+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else $as_nop
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main (void)
4651 {
4652 #ifndef __GNUC__
4653 choke me
4654 #endif
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"
4661 then :
4662 ac_compiler_gnu=yes
4663 else $as_nop
4664 ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4671 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674 if test $ac_compiler_gnu = yes; then
4675 GCC=yes
4676 else
4677 GCC=
4678 fi
4679 ac_test_CFLAGS=${CFLAGS+y}
4680 ac_save_CFLAGS=$CFLAGS
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4682 printf %s "checking whether $CC accepts -g... " >&6; }
4683 if test ${ac_cv_prog_cc_g+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else $as_nop
4687 ac_save_c_werror_flag=$ac_c_werror_flag
4688 ac_c_werror_flag=yes
4689 ac_cv_prog_cc_g=no
4690 CFLAGS="-g"
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 int
4695 main (void)
4696 {
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"
4703 then :
4704 ac_cv_prog_cc_g=yes
4705 else $as_nop
4706 CFLAGS=""
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main (void)
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"
4719 then :
4720
4721 else $as_nop
4722 ac_c_werror_flag=$ac_save_c_werror_flag
4723 CFLAGS="-g"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main (void)
4729 {
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"
4736 then :
4737 ac_cv_prog_cc_g=yes
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4745 fi
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4747 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4748 if test $ac_test_CFLAGS; then
4749 CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4752 CFLAGS="-g -O2"
4753 else
4754 CFLAGS="-g"
4755 fi
4756 else
4757 if test "$GCC" = yes; then
4758 CFLAGS="-O2"
4759 else
4760 CFLAGS=
4761 fi
4762 fi
4763 ac_prog_cc_stdc=no
4764 if test x$ac_prog_cc_stdc = xno
4765 then :
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4767 printf %s "checking for $CC option to enable C11 features... " >&6; }
4768 if test ${ac_cv_prog_cc_c11+y}
4769 then :
4770 printf %s "(cached) " >&6
4771 else $as_nop
4772 ac_cv_prog_cc_c11=no
4773 ac_save_CC=$CC
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 $ac_c_conftest_c11_program
4777 _ACEOF
4778 for ac_arg in '' -std=gnu11
4779 do
4780 CC="$ac_save_CC $ac_arg"
4781 if ac_fn_c_try_compile "$LINENO"
4782 then :
4783 ac_cv_prog_cc_c11=$ac_arg
4784 fi
4785 rm -f core conftest.err conftest.$ac_objext conftest.beam
4786 test "x$ac_cv_prog_cc_c11" != "xno" && break
4787 done
4788 rm -f conftest.$ac_ext
4789 CC=$ac_save_CC
4790 fi
4791
4792 if test "x$ac_cv_prog_cc_c11" = xno
4793 then :
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795 printf "%s\n" "unsupported" >&6; }
4796 else $as_nop
4797 if test "x$ac_cv_prog_cc_c11" = x
4798 then :
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4800 printf "%s\n" "none needed" >&6; }
4801 else $as_nop
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4803 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4804 CC="$CC $ac_cv_prog_cc_c11"
4805 fi
4806 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4807 ac_prog_cc_stdc=c11
4808 fi
4809 fi
4810 if test x$ac_prog_cc_stdc = xno
4811 then :
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4813 printf %s "checking for $CC option to enable C99 features... " >&6; }
4814 if test ${ac_cv_prog_cc_c99+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else $as_nop
4818 ac_cv_prog_cc_c99=no
4819 ac_save_CC=$CC
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 $ac_c_conftest_c99_program
4823 _ACEOF
4824 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4825 do
4826 CC="$ac_save_CC $ac_arg"
4827 if ac_fn_c_try_compile "$LINENO"
4828 then :
4829 ac_cv_prog_cc_c99=$ac_arg
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.beam
4832 test "x$ac_cv_prog_cc_c99" != "xno" && break
4833 done
4834 rm -f conftest.$ac_ext
4835 CC=$ac_save_CC
4836 fi
4837
4838 if test "x$ac_cv_prog_cc_c99" = xno
4839 then :
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4841 printf "%s\n" "unsupported" >&6; }
4842 else $as_nop
4843 if test "x$ac_cv_prog_cc_c99" = x
4844 then :
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4846 printf "%s\n" "none needed" >&6; }
4847 else $as_nop
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4849 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4850 CC="$CC $ac_cv_prog_cc_c99"
4851 fi
4852 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4853 ac_prog_cc_stdc=c99
4854 fi
4855 fi
4856 if test x$ac_prog_cc_stdc = xno
4857 then :
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4859 printf %s "checking for $CC option to enable C89 features... " >&6; }
4860 if test ${ac_cv_prog_cc_c89+y}
4861 then :
4862 printf %s "(cached) " >&6
4863 else $as_nop
4864 ac_cv_prog_cc_c89=no
4865 ac_save_CC=$CC
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 $ac_c_conftest_c89_program
4869 _ACEOF
4870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4871 do
4872 CC="$ac_save_CC $ac_arg"
4873 if ac_fn_c_try_compile "$LINENO"
4874 then :
4875 ac_cv_prog_cc_c89=$ac_arg
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.beam
4878 test "x$ac_cv_prog_cc_c89" != "xno" && break
4879 done
4880 rm -f conftest.$ac_ext
4881 CC=$ac_save_CC
4882 fi
4883
4884 if test "x$ac_cv_prog_cc_c89" = xno
4885 then :
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4887 printf "%s\n" "unsupported" >&6; }
4888 else $as_nop
4889 if test "x$ac_cv_prog_cc_c89" = x
4890 then :
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4892 printf "%s\n" "none needed" >&6; }
4893 else $as_nop
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4895 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 fi
4898 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4899 ac_prog_cc_stdc=c89
4900 fi
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4916 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4917 if test ${am_cv_prog_cc_c_o+y}
4918 then :
4919 printf %s "(cached) " >&6
4920 else $as_nop
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923
4924 int
4925 main (void)
4926 {
4927
4928 ;
4929 return 0;
4930 }
4931 _ACEOF
4932 # Make sure it works both with $CC and with simple cc.
4933 # Following AC_PROG_CC_C_O, we do the test twice because some
4934 # compilers refuse to overwrite an existing .o file with -o,
4935 # though they will create one.
4936 am_cv_prog_cc_c_o=yes
4937 for am_i in 1 2; do
4938 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4939 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } \
4943 && test -f conftest2.$ac_objext; then
4944 : OK
4945 else
4946 am_cv_prog_cc_c_o=no
4947 break
4948 fi
4949 done
4950 rm -f core conftest*
4951 unset am_i
4952 fi
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4954 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4955 if test "$am_cv_prog_cc_c_o" != yes; then
4956 # Losing compiler, so override with the script.
4957 # FIXME: It is wrong to rewrite CC.
4958 # But if we don't then we get into trouble of one sort or another.
4959 # A longer-term fix would be to have automake use am__CC in this case,
4960 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4961 CC="$am_aux_dir/compile $CC"
4962 fi
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969
4970 depcc="$CC" am_compiler_list=
4971
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4973 printf %s "checking dependency style of $depcc... " >&6; }
4974 if test ${am_cv_CC_dependencies_compiler_type+y}
4975 then :
4976 printf %s "(cached) " >&6
4977 else $as_nop
4978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4979 # We make a subdir and do the tests there. Otherwise we can end up
4980 # making bogus files that we don't know about and never remove. For
4981 # instance it was reported that on HP-UX the gcc test will end up
4982 # making a dummy file named 'D' -- because '-MD' means "put the output
4983 # in D".
4984 rm -rf conftest.dir
4985 mkdir conftest.dir
4986 # Copy depcomp to subdir because otherwise we won't find it if we're
4987 # using a relative directory.
4988 cp "$am_depcomp" conftest.dir
4989 cd conftest.dir
4990 # We will build objects and dependencies in a subdirectory because
4991 # it helps to detect inapplicable dependency modes. For instance
4992 # both Tru64's cc and ICC support -MD to output dependencies as a
4993 # side effect of compilation, but ICC will put the dependencies in
4994 # the current directory while Tru64 will put them in the object
4995 # directory.
4996 mkdir sub
4997
4998 am_cv_CC_dependencies_compiler_type=none
4999 if test "$am_compiler_list" = ""; then
5000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5001 fi
5002 am__universal=false
5003 case " $depcc " in #(
5004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5005 esac
5006
5007 for depmode in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5011 #
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5015 : > sub/conftest.c
5016 for i in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5019 # Solaris 10 /bin/sh.
5020 echo '/* dummy */' > sub/conftst$i.h
5021 done
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5023
5024 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle '-M -o', and we need to detect this. Also, some Intel
5027 # versions had trouble with output in subdirs.
5028 am__obj=sub/conftest.${OBJEXT-o}
5029 am__minus_obj="-o $am__obj"
5030 case $depmode in
5031 gcc)
5032 # This depmode causes a compiler race in universal mode.
5033 test "$am__universal" = false || continue
5034 ;;
5035 nosideeffect)
5036 # After this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested.
5038 if test "x$enable_dependency_tracking" = xyes; then
5039 continue
5040 else
5041 break
5042 fi
5043 ;;
5044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5045 # This compiler won't grok '-c -o', but also, the minuso test has
5046 # not run yet. These depmodes are late enough in the game, and
5047 # so weak that their functioning should not be impacted.
5048 am__obj=conftest.${OBJEXT-o}
5049 am__minus_obj=
5050 ;;
5051 none) break ;;
5052 esac
5053 if depmode=$depmode \
5054 source=sub/conftest.c object=$am__obj \
5055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5057 >/dev/null 2>conftest.err &&
5058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type=$depmode
5072 break
5073 fi
5074 fi
5075 done
5076
5077 cd ..
5078 rm -rf conftest.dir
5079 else
5080 am_cv_CC_dependencies_compiler_type=none
5081 fi
5082
5083 fi
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5085 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5087
5088 if
5089 test "x$enable_dependency_tracking" != xno \
5090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5091 am__fastdepCC_TRUE=
5092 am__fastdepCC_FALSE='#'
5093 else
5094 am__fastdepCC_TRUE='#'
5095 am__fastdepCC_FALSE=
5096 fi
5097
5098
5099
5100
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in ar lib "link -lib"
5103 do
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 printf %s "checking for $ac_word... " >&6; }
5108 if test ${ac_cv_prog_AR+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 if test -n "$AR"; then
5113 ac_cv_prog_AR="$AR" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 case $as_dir in #(((
5120 '') as_dir=./ ;;
5121 */) ;;
5122 *) as_dir=$as_dir/ ;;
5123 esac
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 AR=$ac_cv_prog_AR
5137 if test -n "$AR"; then
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139 printf "%s\n" "$AR" >&6; }
5140 else
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 printf "%s\n" "no" >&6; }
5143 fi
5144
5145
5146 test -n "$AR" && break
5147 done
5148 fi
5149 if test -z "$AR"; then
5150 ac_ct_AR=$AR
5151 for ac_prog in ar lib "link -lib"
5152 do
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 printf %s "checking for $ac_word... " >&6; }
5157 if test ${ac_cv_prog_ac_ct_AR+y}
5158 then :
5159 printf %s "(cached) " >&6
5160 else $as_nop
5161 if test -n "$ac_ct_AR"; then
5162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 case $as_dir in #(((
5169 '') as_dir=./ ;;
5170 */) ;;
5171 *) as_dir=$as_dir/ ;;
5172 esac
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_AR="$ac_prog"
5176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5186 if test -n "$ac_ct_AR"; then
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5188 printf "%s\n" "$ac_ct_AR" >&6; }
5189 else
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 printf "%s\n" "no" >&6; }
5192 fi
5193
5194
5195 test -n "$ac_ct_AR" && break
5196 done
5197
5198 if test "x$ac_ct_AR" = x; then
5199 AR="false"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 AR=$ac_ct_AR
5208 fi
5209 fi
5210
5211 : ${AR=ar}
5212
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5214 printf %s "checking the archiver ($AR) interface... " >&6; }
5215 if test ${am_cv_ar_interface+y}
5216 then :
5217 printf %s "(cached) " >&6
5218 else $as_nop
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225 am_cv_ar_interface=ar
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 int some_variable = 0;
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"
5231 then :
5232 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5234 (eval $am_ar_try) 2>&5
5235 ac_status=$?
5236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5237 test $ac_status = 0; }
5238 if test "$ac_status" -eq 0; then
5239 am_cv_ar_interface=ar
5240 else
5241 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5243 (eval $am_ar_try) 2>&5
5244 ac_status=$?
5245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }
5247 if test "$ac_status" -eq 0; then
5248 am_cv_ar_interface=lib
5249 else
5250 am_cv_ar_interface=unknown
5251 fi
5252 fi
5253 rm -f conftest.lib libconftest.a
5254
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
5263 fi
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5265 printf "%s\n" "$am_cv_ar_interface" >&6; }
5266
5267 case $am_cv_ar_interface in
5268 ar)
5269 ;;
5270 lib)
5271 # Microsoft lib, so override with the ar-lib wrapper script.
5272 # FIXME: It is wrong to rewrite AR.
5273 # But if we don't then we get into trouble of one sort or another.
5274 # A longer-term fix would be to have automake use am__AR in this case,
5275 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5276 # similar.
5277 AR="$am_aux_dir/ar-lib $AR"
5278 ;;
5279 unknown)
5280 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5281 ;;
5282 esac
5283
5284
5285
5286
5287
5288
5289
5290 ac_ext=cpp
5291 ac_cpp='$CXXCPP $CPPFLAGS'
5292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5295 if test -z "$CXX"; then
5296 if test -n "$CCC"; then
5297 CXX=$CCC
5298 else
5299 if test -n "$ac_tool_prefix"; then
5300 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5301 do
5302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 printf %s "checking for $ac_word... " >&6; }
5306 if test ${ac_cv_prog_CXX+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else $as_nop
5310 if test -n "$CXX"; then
5311 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316 IFS=$as_save_IFS
5317 case $as_dir in #(((
5318 '') as_dir=./ ;;
5319 */) ;;
5320 *) as_dir=$as_dir/ ;;
5321 esac
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5326 break 2
5327 fi
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 CXX=$ac_cv_prog_CXX
5335 if test -n "$CXX"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5337 printf "%s\n" "$CXX" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 printf "%s\n" "no" >&6; }
5341 fi
5342
5343
5344 test -n "$CXX" && break
5345 done
5346 fi
5347 if test -z "$CXX"; then
5348 ac_ct_CXX=$CXX
5349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5350 do
5351 # Extract the first word of "$ac_prog", so it can be a program name with args.
5352 set dummy $ac_prog; ac_word=$2
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 printf %s "checking for $ac_word... " >&6; }
5355 if test ${ac_cv_prog_ac_ct_CXX+y}
5356 then :
5357 printf %s "(cached) " >&6
5358 else $as_nop
5359 if test -n "$ac_ct_CXX"; then
5360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365 IFS=$as_save_IFS
5366 case $as_dir in #(((
5367 '') as_dir=./ ;;
5368 */) ;;
5369 *) as_dir=$as_dir/ ;;
5370 esac
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_CXX="$ac_prog"
5374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5384 if test -n "$ac_ct_CXX"; then
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5386 printf "%s\n" "$ac_ct_CXX" >&6; }
5387 else
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 printf "%s\n" "no" >&6; }
5390 fi
5391
5392
5393 test -n "$ac_ct_CXX" && break
5394 done
5395
5396 if test "x$ac_ct_CXX" = x; then
5397 CXX="g++"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 CXX=$ac_ct_CXX
5406 fi
5407 fi
5408
5409 fi
5410 fi
5411 # Provide some information about the compiler.
5412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5413 set X $ac_compile
5414 ac_compiler=$2
5415 for ac_option in --version -v -V -qversion; do
5416 { { ac_try="$ac_compiler $ac_option >&5"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 printf "%s\n" "$ac_try_echo"; } >&5
5423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5424 ac_status=$?
5425 if test -s conftest.err; then
5426 sed '10a\
5427 ... rest of stderr output deleted ...
5428 10q' conftest.err >conftest.er1
5429 cat conftest.er1 >&5
5430 fi
5431 rm -f conftest.er1 conftest.err
5432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5433 test $ac_status = 0; }
5434 done
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5437 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5438 if test ${ac_cv_cxx_compiler_gnu+y}
5439 then :
5440 printf %s "(cached) " >&6
5441 else $as_nop
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444
5445 int
5446 main (void)
5447 {
5448 #ifndef __GNUC__
5449 choke me
5450 #endif
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_cxx_try_compile "$LINENO"
5457 then :
5458 ac_compiler_gnu=yes
5459 else $as_nop
5460 ac_compiler_gnu=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5464
5465 fi
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5467 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5469
5470 if test $ac_compiler_gnu = yes; then
5471 GXX=yes
5472 else
5473 GXX=
5474 fi
5475 ac_test_CXXFLAGS=${CXXFLAGS+y}
5476 ac_save_CXXFLAGS=$CXXFLAGS
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5478 printf %s "checking whether $CXX accepts -g... " >&6; }
5479 if test ${ac_cv_prog_cxx_g+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5484 ac_cxx_werror_flag=yes
5485 ac_cv_prog_cxx_g=no
5486 CXXFLAGS="-g"
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489
5490 int
5491 main (void)
5492 {
5493
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_cxx_try_compile "$LINENO"
5499 then :
5500 ac_cv_prog_cxx_g=yes
5501 else $as_nop
5502 CXXFLAGS=""
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505
5506 int
5507 main (void)
5508 {
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 if ac_fn_cxx_try_compile "$LINENO"
5515 then :
5516
5517 else $as_nop
5518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5519 CXXFLAGS="-g"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522
5523 int
5524 main (void)
5525 {
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_cxx_try_compile "$LINENO"
5532 then :
5533 ac_cv_prog_cxx_g=yes
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5541 fi
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5543 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5544 if test $ac_test_CXXFLAGS; then
5545 CXXFLAGS=$ac_save_CXXFLAGS
5546 elif test $ac_cv_prog_cxx_g = yes; then
5547 if test "$GXX" = yes; then
5548 CXXFLAGS="-g -O2"
5549 else
5550 CXXFLAGS="-g"
5551 fi
5552 else
5553 if test "$GXX" = yes; then
5554 CXXFLAGS="-O2"
5555 else
5556 CXXFLAGS=
5557 fi
5558 fi
5559 ac_prog_cxx_stdcxx=no
5560 if test x$ac_prog_cxx_stdcxx = xno
5561 then :
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5563 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5564 if test ${ac_cv_prog_cxx_cxx11+y}
5565 then :
5566 printf %s "(cached) " >&6
5567 else $as_nop
5568 ac_cv_prog_cxx_cxx11=no
5569 ac_save_CXX=$CXX
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 $ac_cxx_conftest_cxx11_program
5573 _ACEOF
5574 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5575 do
5576 CXX="$ac_save_CXX $ac_arg"
5577 if ac_fn_cxx_try_compile "$LINENO"
5578 then :
5579 ac_cv_prog_cxx_cxx11=$ac_arg
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.beam
5582 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5583 done
5584 rm -f conftest.$ac_ext
5585 CXX=$ac_save_CXX
5586 fi
5587
5588 if test "x$ac_cv_prog_cxx_cxx11" = xno
5589 then :
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5591 printf "%s\n" "unsupported" >&6; }
5592 else $as_nop
5593 if test "x$ac_cv_prog_cxx_cxx11" = x
5594 then :
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596 printf "%s\n" "none needed" >&6; }
5597 else $as_nop
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5599 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5600 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5601 fi
5602 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5603 ac_prog_cxx_stdcxx=cxx11
5604 fi
5605 fi
5606 if test x$ac_prog_cxx_stdcxx = xno
5607 then :
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5609 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5610 if test ${ac_cv_prog_cxx_cxx98+y}
5611 then :
5612 printf %s "(cached) " >&6
5613 else $as_nop
5614 ac_cv_prog_cxx_cxx98=no
5615 ac_save_CXX=$CXX
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 $ac_cxx_conftest_cxx98_program
5619 _ACEOF
5620 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5621 do
5622 CXX="$ac_save_CXX $ac_arg"
5623 if ac_fn_cxx_try_compile "$LINENO"
5624 then :
5625 ac_cv_prog_cxx_cxx98=$ac_arg
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.beam
5628 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5629 done
5630 rm -f conftest.$ac_ext
5631 CXX=$ac_save_CXX
5632 fi
5633
5634 if test "x$ac_cv_prog_cxx_cxx98" = xno
5635 then :
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5637 printf "%s\n" "unsupported" >&6; }
5638 else $as_nop
5639 if test "x$ac_cv_prog_cxx_cxx98" = x
5640 then :
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5642 printf "%s\n" "none needed" >&6; }
5643 else $as_nop
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5645 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5646 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5647 fi
5648 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5649 ac_prog_cxx_stdcxx=cxx98
5650 fi
5651 fi
5652
5653 ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659 depcc="$CXX" am_compiler_list=
5660
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5662 printf %s "checking dependency style of $depcc... " >&6; }
5663 if test ${am_cv_CXX_dependencies_compiler_type+y}
5664 then :
5665 printf %s "(cached) " >&6
5666 else $as_nop
5667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5668 # We make a subdir and do the tests there. Otherwise we can end up
5669 # making bogus files that we don't know about and never remove. For
5670 # instance it was reported that on HP-UX the gcc test will end up
5671 # making a dummy file named 'D' -- because '-MD' means "put the output
5672 # in D".
5673 rm -rf conftest.dir
5674 mkdir conftest.dir
5675 # Copy depcomp to subdir because otherwise we won't find it if we're
5676 # using a relative directory.
5677 cp "$am_depcomp" conftest.dir
5678 cd conftest.dir
5679 # We will build objects and dependencies in a subdirectory because
5680 # it helps to detect inapplicable dependency modes. For instance
5681 # both Tru64's cc and ICC support -MD to output dependencies as a
5682 # side effect of compilation, but ICC will put the dependencies in
5683 # the current directory while Tru64 will put them in the object
5684 # directory.
5685 mkdir sub
5686
5687 am_cv_CXX_dependencies_compiler_type=none
5688 if test "$am_compiler_list" = ""; then
5689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5690 fi
5691 am__universal=false
5692 case " $depcc " in #(
5693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5694 esac
5695
5696 for depmode in $am_compiler_list; do
5697 # Setup a source with many dependencies, because some compilers
5698 # like to wrap large dependency lists on column 80 (with \), and
5699 # we should not choose a depcomp mode which is confused by this.
5700 #
5701 # We need to recreate these files for each test, as the compiler may
5702 # overwrite some of them when testing with obscure command lines.
5703 # This happens at least with the AIX C compiler.
5704 : > sub/conftest.c
5705 for i in 1 2 3 4 5 6; do
5706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5708 # Solaris 10 /bin/sh.
5709 echo '/* dummy */' > sub/conftst$i.h
5710 done
5711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5712
5713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5714 # mode. It turns out that the SunPro C++ compiler does not properly
5715 # handle '-M -o', and we need to detect this. Also, some Intel
5716 # versions had trouble with output in subdirs.
5717 am__obj=sub/conftest.${OBJEXT-o}
5718 am__minus_obj="-o $am__obj"
5719 case $depmode in
5720 gcc)
5721 # This depmode causes a compiler race in universal mode.
5722 test "$am__universal" = false || continue
5723 ;;
5724 nosideeffect)
5725 # After this tag, mechanisms are not by side-effect, so they'll
5726 # only be used when explicitly requested.
5727 if test "x$enable_dependency_tracking" = xyes; then
5728 continue
5729 else
5730 break
5731 fi
5732 ;;
5733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5734 # This compiler won't grok '-c -o', but also, the minuso test has
5735 # not run yet. These depmodes are late enough in the game, and
5736 # so weak that their functioning should not be impacted.
5737 am__obj=conftest.${OBJEXT-o}
5738 am__minus_obj=
5739 ;;
5740 none) break ;;
5741 esac
5742 if depmode=$depmode \
5743 source=sub/conftest.c object=$am__obj \
5744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5746 >/dev/null 2>conftest.err &&
5747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5751 # icc doesn't choke on unknown options, it will just issue warnings
5752 # or remarks (even with -Werror). So we grep stderr for any message
5753 # that says an option was ignored or not supported.
5754 # When given -MP, icc 7.0 and 7.1 complain thusly:
5755 # icc: Command line warning: ignoring option '-M'; no argument required
5756 # The diagnosis changed in icc 8.0:
5757 # icc: Command line remark: option '-MP' not supported
5758 if (grep 'ignoring option' conftest.err ||
5759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5760 am_cv_CXX_dependencies_compiler_type=$depmode
5761 break
5762 fi
5763 fi
5764 done
5765
5766 cd ..
5767 rm -rf conftest.dir
5768 else
5769 am_cv_CXX_dependencies_compiler_type=none
5770 fi
5771
5772 fi
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5774 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5775 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5776
5777 if
5778 test "x$enable_dependency_tracking" != xno \
5779 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5780 am__fastdepCXX_TRUE=
5781 am__fastdepCXX_FALSE='#'
5782 else
5783 am__fastdepCXX_TRUE='#'
5784 am__fastdepCXX_FALSE=
5785 fi
5786
5787
5788 ac_ext=cpp
5789 ac_cpp='$CXXCPP $CPPFLAGS'
5790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5793
5794
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5796 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5797 set x ${MAKE-make}
5798 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5799 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else $as_nop
5803 cat >conftest.make <<\_ACEOF
5804 SHELL = /bin/sh
5805 all:
5806 @echo '@@@%%%=$(MAKE)=@@@%%%'
5807 _ACEOF
5808 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5809 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5810 *@@@%%%=?*=@@@%%%*)
5811 eval ac_cv_prog_make_${ac_make}_set=yes;;
5812 *)
5813 eval ac_cv_prog_make_${ac_make}_set=no;;
5814 esac
5815 rm -f conftest.make
5816 fi
5817 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819 printf "%s\n" "yes" >&6; }
5820 SET_MAKE=
5821 else
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 printf "%s\n" "no" >&6; }
5824 SET_MAKE="MAKE=${MAKE-make}"
5825 fi
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 case `pwd` in
5837 *\ * | *\ *)
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5839 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5840 esac
5841
5842
5843
5844 macro_version='2.4.6'
5845 macro_revision='2.4.6'
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860 ltmain=$ac_aux_dir/ltmain.sh
5861
5862
5863
5864 # Make sure we can run config.sub.
5865 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5866 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5867
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5869 printf %s "checking build system type... " >&6; }
5870 if test ${ac_cv_build+y}
5871 then :
5872 printf %s "(cached) " >&6
5873 else $as_nop
5874 ac_build_alias=$build_alias
5875 test "x$ac_build_alias" = x &&
5876 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5877 test "x$ac_build_alias" = x &&
5878 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5879 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5880 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5881
5882 fi
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5884 printf "%s\n" "$ac_cv_build" >&6; }
5885 case $ac_cv_build in
5886 *-*-*) ;;
5887 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5888 esac
5889 build=$ac_cv_build
5890 ac_save_IFS=$IFS; IFS='-'
5891 set x $ac_cv_build
5892 shift
5893 build_cpu=$1
5894 build_vendor=$2
5895 shift; shift
5896 # Remember, the first character of IFS is used to create $*,
5897 # except with old shells:
5898 build_os=$*
5899 IFS=$ac_save_IFS
5900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5901
5902
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5904 printf %s "checking host system type... " >&6; }
5905 if test ${ac_cv_host+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else $as_nop
5909 if test "x$host_alias" = x; then
5910 ac_cv_host=$ac_cv_build
5911 else
5912 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5913 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5914 fi
5915
5916 fi
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5918 printf "%s\n" "$ac_cv_host" >&6; }
5919 case $ac_cv_host in
5920 *-*-*) ;;
5921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5922 esac
5923 host=$ac_cv_host
5924 ac_save_IFS=$IFS; IFS='-'
5925 set x $ac_cv_host
5926 shift
5927 host_cpu=$1
5928 host_vendor=$2
5929 shift; shift
5930 # Remember, the first character of IFS is used to create $*,
5931 # except with old shells:
5932 host_os=$*
5933 IFS=$ac_save_IFS
5934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5935
5936
5937 # Backslashify metacharacters that are still active within
5938 # double-quoted strings.
5939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5940
5941 # Same as above, but do not quote variable references.
5942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5943
5944 # Sed substitution to delay expansion of an escaped shell variable in a
5945 # double_quote_subst'ed string.
5946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5947
5948 # Sed substitution to delay expansion of an escaped single quote.
5949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5950
5951 # Sed substitution to avoid accidental globbing in evaled expressions
5952 no_glob_subst='s/\*/\\\*/g'
5953
5954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5957
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5959 printf %s "checking how to print strings... " >&6; }
5960 # Test print first, because it will be a builtin if present.
5961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5962 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5963 ECHO='print -r --'
5964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5965 ECHO='printf %s\n'
5966 else
5967 # Use this function as a fallback that always works.
5968 func_fallback_echo ()
5969 {
5970 eval 'cat <<_LTECHO_EOF
5971 $1
5972 _LTECHO_EOF'
5973 }
5974 ECHO='func_fallback_echo'
5975 fi
5976
5977 # func_echo_all arg...
5978 # Invoke $ECHO with all args, space-separated.
5979 func_echo_all ()
5980 {
5981 $ECHO ""
5982 }
5983
5984 case $ECHO in
5985 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5986 printf "%s\n" "printf" >&6; } ;;
5987 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5988 printf "%s\n" "print -r" >&6; } ;;
5989 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5990 printf "%s\n" "cat" >&6; } ;;
5991 esac
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6007 printf %s "checking for a sed that does not truncate output... " >&6; }
6008 if test ${ac_cv_path_SED+y}
6009 then :
6010 printf %s "(cached) " >&6
6011 else $as_nop
6012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6013 for ac_i in 1 2 3 4 5 6 7; do
6014 ac_script="$ac_script$as_nl$ac_script"
6015 done
6016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6017 { ac_script=; unset ac_script;}
6018 if test -z "$SED"; then
6019 ac_path_SED_found=false
6020 # Loop through the user's path and test for each of PROGNAME-LIST
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024 IFS=$as_save_IFS
6025 case $as_dir in #(((
6026 '') as_dir=./ ;;
6027 */) ;;
6028 *) as_dir=$as_dir/ ;;
6029 esac
6030 for ac_prog in sed gsed
6031 do
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6034 as_fn_executable_p "$ac_path_SED" || continue
6035 # Check for GNU ac_path_SED and select it if it is found.
6036 # Check for GNU $ac_path_SED
6037 case `"$ac_path_SED" --version 2>&1` in
6038 *GNU*)
6039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6040 *)
6041 ac_count=0
6042 printf %s 0123456789 >"conftest.in"
6043 while :
6044 do
6045 cat "conftest.in" "conftest.in" >"conftest.tmp"
6046 mv "conftest.tmp" "conftest.in"
6047 cp "conftest.in" "conftest.nl"
6048 printf "%s\n" '' >> "conftest.nl"
6049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051 as_fn_arith $ac_count + 1 && ac_count=$as_val
6052 if test $ac_count -gt ${ac_path_SED_max-0}; then
6053 # Best one so far, save it but keep looking for a better one
6054 ac_cv_path_SED="$ac_path_SED"
6055 ac_path_SED_max=$ac_count
6056 fi
6057 # 10*(2^10) chars as input seems more than enough
6058 test $ac_count -gt 10 && break
6059 done
6060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6061 esac
6062
6063 $ac_path_SED_found && break 3
6064 done
6065 done
6066 done
6067 IFS=$as_save_IFS
6068 if test -z "$ac_cv_path_SED"; then
6069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6070 fi
6071 else
6072 ac_cv_path_SED=$SED
6073 fi
6074
6075 fi
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6077 printf "%s\n" "$ac_cv_path_SED" >&6; }
6078 SED="$ac_cv_path_SED"
6079 rm -f conftest.sed
6080
6081 test -z "$SED" && SED=sed
6082 Xsed="$SED -e 1s/^X//"
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6095 printf %s "checking for grep that handles long lines and -e... " >&6; }
6096 if test ${ac_cv_path_GREP+y}
6097 then :
6098 printf %s "(cached) " >&6
6099 else $as_nop
6100 if test -z "$GREP"; then
6101 ac_path_GREP_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105 do
6106 IFS=$as_save_IFS
6107 case $as_dir in #(((
6108 '') as_dir=./ ;;
6109 */) ;;
6110 *) as_dir=$as_dir/ ;;
6111 esac
6112 for ac_prog in grep ggrep
6113 do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6116 as_fn_executable_p "$ac_path_GREP" || continue
6117 # Check for GNU ac_path_GREP and select it if it is found.
6118 # Check for GNU $ac_path_GREP
6119 case `"$ac_path_GREP" --version 2>&1` in
6120 *GNU*)
6121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6122 *)
6123 ac_count=0
6124 printf %s 0123456789 >"conftest.in"
6125 while :
6126 do
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 printf "%s\n" 'GREP' >> "conftest.nl"
6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133 as_fn_arith $ac_count + 1 && ac_count=$as_val
6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_GREP="$ac_path_GREP"
6137 ac_path_GREP_max=$ac_count
6138 fi
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6141 done
6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6143 esac
6144
6145 $ac_path_GREP_found && break 3
6146 done
6147 done
6148 done
6149 IFS=$as_save_IFS
6150 if test -z "$ac_cv_path_GREP"; then
6151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6152 fi
6153 else
6154 ac_cv_path_GREP=$GREP
6155 fi
6156
6157 fi
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6160 GREP="$ac_cv_path_GREP"
6161
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164 printf %s "checking for egrep... " >&6; }
6165 if test ${ac_cv_path_EGREP+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else $as_nop
6169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6170 then ac_cv_path_EGREP="$GREP -E"
6171 else
6172 if test -z "$EGREP"; then
6173 ac_path_EGREP_found=false
6174 # Loop through the user's path and test for each of PROGNAME-LIST
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6177 do
6178 IFS=$as_save_IFS
6179 case $as_dir in #(((
6180 '') as_dir=./ ;;
6181 */) ;;
6182 *) as_dir=$as_dir/ ;;
6183 esac
6184 for ac_prog in egrep
6185 do
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6188 as_fn_executable_p "$ac_path_EGREP" || continue
6189 # Check for GNU ac_path_EGREP and select it if it is found.
6190 # Check for GNU $ac_path_EGREP
6191 case `"$ac_path_EGREP" --version 2>&1` in
6192 *GNU*)
6193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6194 *)
6195 ac_count=0
6196 printf %s 0123456789 >"conftest.in"
6197 while :
6198 do
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 printf "%s\n" 'EGREP' >> "conftest.nl"
6203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6205 as_fn_arith $ac_count + 1 && ac_count=$as_val
6206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_EGREP="$ac_path_EGREP"
6209 ac_path_EGREP_max=$ac_count
6210 fi
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6213 done
6214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6215 esac
6216
6217 $ac_path_EGREP_found && break 3
6218 done
6219 done
6220 done
6221 IFS=$as_save_IFS
6222 if test -z "$ac_cv_path_EGREP"; then
6223 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6224 fi
6225 else
6226 ac_cv_path_EGREP=$EGREP
6227 fi
6228
6229 fi
6230 fi
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6232 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6233 EGREP="$ac_cv_path_EGREP"
6234
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6237 printf %s "checking for fgrep... " >&6; }
6238 if test ${ac_cv_path_FGREP+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6243 then ac_cv_path_FGREP="$GREP -F"
6244 else
6245 if test -z "$FGREP"; then
6246 ac_path_FGREP_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 do
6251 IFS=$as_save_IFS
6252 case $as_dir in #(((
6253 '') as_dir=./ ;;
6254 */) ;;
6255 *) as_dir=$as_dir/ ;;
6256 esac
6257 for ac_prog in fgrep
6258 do
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6261 as_fn_executable_p "$ac_path_FGREP" || continue
6262 # Check for GNU ac_path_FGREP and select it if it is found.
6263 # Check for GNU $ac_path_FGREP
6264 case `"$ac_path_FGREP" --version 2>&1` in
6265 *GNU*)
6266 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6267 *)
6268 ac_count=0
6269 printf %s 0123456789 >"conftest.in"
6270 while :
6271 do
6272 cat "conftest.in" "conftest.in" >"conftest.tmp"
6273 mv "conftest.tmp" "conftest.in"
6274 cp "conftest.in" "conftest.nl"
6275 printf "%s\n" 'FGREP' >> "conftest.nl"
6276 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6278 as_fn_arith $ac_count + 1 && ac_count=$as_val
6279 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6280 # Best one so far, save it but keep looking for a better one
6281 ac_cv_path_FGREP="$ac_path_FGREP"
6282 ac_path_FGREP_max=$ac_count
6283 fi
6284 # 10*(2^10) chars as input seems more than enough
6285 test $ac_count -gt 10 && break
6286 done
6287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6288 esac
6289
6290 $ac_path_FGREP_found && break 3
6291 done
6292 done
6293 done
6294 IFS=$as_save_IFS
6295 if test -z "$ac_cv_path_FGREP"; then
6296 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6297 fi
6298 else
6299 ac_cv_path_FGREP=$FGREP
6300 fi
6301
6302 fi
6303 fi
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6305 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6306 FGREP="$ac_cv_path_FGREP"
6307
6308
6309 test -z "$GREP" && GREP=grep
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 # Check whether --with-gnu-ld was given.
6330 if test ${with_gnu_ld+y}
6331 then :
6332 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6333 else $as_nop
6334 with_gnu_ld=no
6335 fi
6336
6337 ac_prog=ld
6338 if test yes = "$GCC"; then
6339 # Check if gcc -print-prog-name=ld gives a path.
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6341 printf %s "checking for ld used by $CC... " >&6; }
6342 case $host in
6343 *-*-mingw*)
6344 # gcc leaves a trailing carriage return, which upsets mingw
6345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6346 *)
6347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6348 esac
6349 case $ac_prog in
6350 # Accept absolute paths.
6351 [\\/]* | ?:[\\/]*)
6352 re_direlt='/[^/][^/]*/\.\./'
6353 # Canonicalize the pathname of ld
6354 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6355 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6356 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6357 done
6358 test -z "$LD" && LD=$ac_prog
6359 ;;
6360 "")
6361 # If it fails, then pretend we aren't using GCC.
6362 ac_prog=ld
6363 ;;
6364 *)
6365 # If it is relative, then search for the first ld in PATH.
6366 with_gnu_ld=unknown
6367 ;;
6368 esac
6369 elif test yes = "$with_gnu_ld"; then
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6371 printf %s "checking for GNU ld... " >&6; }
6372 else
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6374 printf %s "checking for non-GNU ld... " >&6; }
6375 fi
6376 if test ${lt_cv_path_LD+y}
6377 then :
6378 printf %s "(cached) " >&6
6379 else $as_nop
6380 if test -z "$LD"; then
6381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6382 for ac_dir in $PATH; do
6383 IFS=$lt_save_ifs
6384 test -z "$ac_dir" && ac_dir=.
6385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6386 lt_cv_path_LD=$ac_dir/$ac_prog
6387 # Check to see if the program is GNU ld. I'd rather use --version,
6388 # but apparently some variants of GNU ld only accept -v.
6389 # Break only if it was the GNU/non-GNU ld that we prefer.
6390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6391 *GNU* | *'with BFD'*)
6392 test no != "$with_gnu_ld" && break
6393 ;;
6394 *)
6395 test yes != "$with_gnu_ld" && break
6396 ;;
6397 esac
6398 fi
6399 done
6400 IFS=$lt_save_ifs
6401 else
6402 lt_cv_path_LD=$LD # Let the user override the test with a path.
6403 fi
6404 fi
6405
6406 LD=$lt_cv_path_LD
6407 if test -n "$LD"; then
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6409 printf "%s\n" "$LD" >&6; }
6410 else
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 printf "%s\n" "no" >&6; }
6413 fi
6414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6416 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6417 if test ${lt_cv_prog_gnu_ld+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6422 case `$LD -v 2>&1 </dev/null` in
6423 *GNU* | *'with BFD'*)
6424 lt_cv_prog_gnu_ld=yes
6425 ;;
6426 *)
6427 lt_cv_prog_gnu_ld=no
6428 ;;
6429 esac
6430 fi
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6432 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6433 with_gnu_ld=$lt_cv_prog_gnu_ld
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6444 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6445 if test ${lt_cv_path_NM+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else $as_nop
6449 if test -n "$NM"; then
6450 # Let the user override the test.
6451 lt_cv_path_NM=$NM
6452 else
6453 lt_nm_to_check=${ac_tool_prefix}nm
6454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6455 lt_nm_to_check="$lt_nm_to_check nm"
6456 fi
6457 for lt_tmp_nm in $lt_nm_to_check; do
6458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6460 IFS=$lt_save_ifs
6461 test -z "$ac_dir" && ac_dir=.
6462 tmp_nm=$ac_dir/$lt_tmp_nm
6463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6464 # Check to see if the nm accepts a BSD-compat flag.
6465 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6466 # nm: unknown option "B" ignored
6467 # Tru64's nm complains that /dev/null is an invalid object file
6468 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6469 case $build_os in
6470 mingw*) lt_bad_file=conftest.nm/nofile ;;
6471 *) lt_bad_file=/dev/null ;;
6472 esac
6473 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6474 *$lt_bad_file* | *'Invalid file or object type'*)
6475 lt_cv_path_NM="$tmp_nm -B"
6476 break 2
6477 ;;
6478 *)
6479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6480 */dev/null*)
6481 lt_cv_path_NM="$tmp_nm -p"
6482 break 2
6483 ;;
6484 *)
6485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6486 continue # so that we can try to find one that supports BSD flags
6487 ;;
6488 esac
6489 ;;
6490 esac
6491 fi
6492 done
6493 IFS=$lt_save_ifs
6494 done
6495 : ${lt_cv_path_NM=no}
6496 fi
6497 fi
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6499 printf "%s\n" "$lt_cv_path_NM" >&6; }
6500 if test no != "$lt_cv_path_NM"; then
6501 NM=$lt_cv_path_NM
6502 else
6503 # Didn't find any BSD compatible name lister, look for dumpbin.
6504 if test -n "$DUMPBIN"; then :
6505 # Let the user override the test.
6506 else
6507 if test -n "$ac_tool_prefix"; then
6508 for ac_prog in dumpbin "link -dump"
6509 do
6510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 printf %s "checking for $ac_word... " >&6; }
6514 if test ${ac_cv_prog_DUMPBIN+y}
6515 then :
6516 printf %s "(cached) " >&6
6517 else $as_nop
6518 if test -n "$DUMPBIN"; then
6519 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524 IFS=$as_save_IFS
6525 case $as_dir in #(((
6526 '') as_dir=./ ;;
6527 */) ;;
6528 *) as_dir=$as_dir/ ;;
6529 esac
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 DUMPBIN=$ac_cv_prog_DUMPBIN
6543 if test -n "$DUMPBIN"; then
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6545 printf "%s\n" "$DUMPBIN" >&6; }
6546 else
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 printf "%s\n" "no" >&6; }
6549 fi
6550
6551
6552 test -n "$DUMPBIN" && break
6553 done
6554 fi
6555 if test -z "$DUMPBIN"; then
6556 ac_ct_DUMPBIN=$DUMPBIN
6557 for ac_prog in dumpbin "link -dump"
6558 do
6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 printf %s "checking for $ac_word... " >&6; }
6563 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 if test -n "$ac_ct_DUMPBIN"; then
6568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573 IFS=$as_save_IFS
6574 case $as_dir in #(((
6575 '') as_dir=./ ;;
6576 */) ;;
6577 *) as_dir=$as_dir/ ;;
6578 esac
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6592 if test -n "$ac_ct_DUMPBIN"; then
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6594 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6595 else
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 printf "%s\n" "no" >&6; }
6598 fi
6599
6600
6601 test -n "$ac_ct_DUMPBIN" && break
6602 done
6603
6604 if test "x$ac_ct_DUMPBIN" = x; then
6605 DUMPBIN=":"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 DUMPBIN=$ac_ct_DUMPBIN
6614 fi
6615 fi
6616
6617 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6618 *COFF*)
6619 DUMPBIN="$DUMPBIN -symbols -headers"
6620 ;;
6621 *)
6622 DUMPBIN=:
6623 ;;
6624 esac
6625 fi
6626
6627 if test : != "$DUMPBIN"; then
6628 NM=$DUMPBIN
6629 fi
6630 fi
6631 test -z "$NM" && NM=nm
6632
6633
6634
6635
6636
6637
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6639 printf %s "checking the name lister ($NM) interface... " >&6; }
6640 if test ${lt_cv_nm_interface+y}
6641 then :
6642 printf %s "(cached) " >&6
6643 else $as_nop
6644 lt_cv_nm_interface="BSD nm"
6645 echo "int some_variable = 0;" > conftest.$ac_ext
6646 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6647 (eval "$ac_compile" 2>conftest.err)
6648 cat conftest.err >&5
6649 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6650 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6651 cat conftest.err >&5
6652 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6653 cat conftest.out >&5
6654 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6655 lt_cv_nm_interface="MS dumpbin"
6656 fi
6657 rm -f conftest*
6658 fi
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6660 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6661
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6663 printf %s "checking whether ln -s works... " >&6; }
6664 LN_S=$as_ln_s
6665 if test "$LN_S" = "ln -s"; then
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6667 printf "%s\n" "yes" >&6; }
6668 else
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6670 printf "%s\n" "no, using $LN_S" >&6; }
6671 fi
6672
6673 # find the maximum length of command line arguments
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6675 printf %s "checking the maximum length of command line arguments... " >&6; }
6676 if test ${lt_cv_sys_max_cmd_len+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else $as_nop
6680 i=0
6681 teststring=ABCD
6682
6683 case $build_os in
6684 msdosdjgpp*)
6685 # On DJGPP, this test can blow up pretty badly due to problems in libc
6686 # (any single argument exceeding 2000 bytes causes a buffer overrun
6687 # during glob expansion). Even if it were fixed, the result of this
6688 # check would be larger than it should be.
6689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6690 ;;
6691
6692 gnu*)
6693 # Under GNU Hurd, this test is not required because there is
6694 # no limit to the length of command line arguments.
6695 # Libtool will interpret -1 as no limit whatsoever
6696 lt_cv_sys_max_cmd_len=-1;
6697 ;;
6698
6699 cygwin* | mingw* | cegcc*)
6700 # On Win9x/ME, this test blows up -- it succeeds, but takes
6701 # about 5 minutes as the teststring grows exponentially.
6702 # Worse, since 9x/ME are not pre-emptively multitasking,
6703 # you end up with a "frozen" computer, even though with patience
6704 # the test eventually succeeds (with a max line length of 256k).
6705 # Instead, let's just punt: use the minimum linelength reported by
6706 # all of the supported platforms: 8192 (on NT/2K/XP).
6707 lt_cv_sys_max_cmd_len=8192;
6708 ;;
6709
6710 mint*)
6711 # On MiNT this can take a long time and run out of memory.
6712 lt_cv_sys_max_cmd_len=8192;
6713 ;;
6714
6715 amigaos*)
6716 # On AmigaOS with pdksh, this test takes hours, literally.
6717 # So we just punt and use a minimum line length of 8192.
6718 lt_cv_sys_max_cmd_len=8192;
6719 ;;
6720
6721 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6722 # This has been around since 386BSD, at least. Likely further.
6723 if test -x /sbin/sysctl; then
6724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6725 elif test -x /usr/sbin/sysctl; then
6726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6727 else
6728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6729 fi
6730 # And add a safety zone
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6733 ;;
6734
6735 interix*)
6736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6737 lt_cv_sys_max_cmd_len=196608
6738 ;;
6739
6740 os2*)
6741 # The test takes a long time on OS/2.
6742 lt_cv_sys_max_cmd_len=8192
6743 ;;
6744
6745 osf*)
6746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6748 # nice to cause kernel panics so lets avoid the loop below.
6749 # First set a reasonable default.
6750 lt_cv_sys_max_cmd_len=16384
6751 #
6752 if test -x /sbin/sysconfig; then
6753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6754 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6755 esac
6756 fi
6757 ;;
6758 sco3.2v5*)
6759 lt_cv_sys_max_cmd_len=102400
6760 ;;
6761 sysv5* | sco5v6* | sysv4.2uw2*)
6762 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6763 if test -n "$kargmax"; then
6764 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6765 else
6766 lt_cv_sys_max_cmd_len=32768
6767 fi
6768 ;;
6769 *)
6770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6771 if test -n "$lt_cv_sys_max_cmd_len" && \
6772 test undefined != "$lt_cv_sys_max_cmd_len"; then
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775 else
6776 # Make teststring a little bigger before we do anything with it.
6777 # a 1K string should be a reasonable start.
6778 for i in 1 2 3 4 5 6 7 8; do
6779 teststring=$teststring$teststring
6780 done
6781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6782 # If test is not a shell built-in, we'll probably end up computing a
6783 # maximum length that is only half of the actual maximum length, but
6784 # we can't tell.
6785 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6786 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6787 test 17 != "$i" # 1/2 MB should be enough
6788 do
6789 i=`expr $i + 1`
6790 teststring=$teststring$teststring
6791 done
6792 # Only check the string length outside the loop.
6793 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6794 teststring=
6795 # Add a significant safety factor because C++ compilers can tack on
6796 # massive amounts of additional arguments before passing them to the
6797 # linker. It appears as though 1/2 is a usable value.
6798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6799 fi
6800 ;;
6801 esac
6802
6803 fi
6804
6805 if test -n "$lt_cv_sys_max_cmd_len"; then
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6807 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6808 else
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6810 printf "%s\n" "none" >&6; }
6811 fi
6812 max_cmd_len=$lt_cv_sys_max_cmd_len
6813
6814
6815
6816
6817
6818
6819 : ${CP="cp -f"}
6820 : ${MV="mv -f"}
6821 : ${RM="rm -f"}
6822
6823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6824 lt_unset=unset
6825 else
6826 lt_unset=false
6827 fi
6828
6829
6830
6831
6832
6833 # test EBCDIC or ASCII
6834 case `echo X|tr X '\101'` in
6835 A) # ASCII based system
6836 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6837 lt_SP2NL='tr \040 \012'
6838 lt_NL2SP='tr \015\012 \040\040'
6839 ;;
6840 *) # EBCDIC based system
6841 lt_SP2NL='tr \100 \n'
6842 lt_NL2SP='tr \r\n \100\100'
6843 ;;
6844 esac
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6855 printf %s "checking how to convert $build file names to $host format... " >&6; }
6856 if test ${lt_cv_to_host_file_cmd+y}
6857 then :
6858 printf %s "(cached) " >&6
6859 else $as_nop
6860 case $host in
6861 *-*-mingw* )
6862 case $build in
6863 *-*-mingw* ) # actually msys
6864 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6865 ;;
6866 *-*-cygwin* )
6867 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6868 ;;
6869 * ) # otherwise, assume *nix
6870 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6871 ;;
6872 esac
6873 ;;
6874 *-*-cygwin* )
6875 case $build in
6876 *-*-mingw* ) # actually msys
6877 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6878 ;;
6879 *-*-cygwin* )
6880 lt_cv_to_host_file_cmd=func_convert_file_noop
6881 ;;
6882 * ) # otherwise, assume *nix
6883 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6884 ;;
6885 esac
6886 ;;
6887 * ) # unhandled hosts (and "normal" native builds)
6888 lt_cv_to_host_file_cmd=func_convert_file_noop
6889 ;;
6890 esac
6891
6892 fi
6893
6894 to_host_file_cmd=$lt_cv_to_host_file_cmd
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6896 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6897
6898
6899
6900
6901
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6903 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6904 if test ${lt_cv_to_tool_file_cmd+y}
6905 then :
6906 printf %s "(cached) " >&6
6907 else $as_nop
6908 #assume ordinary cross tools, or native build.
6909 lt_cv_to_tool_file_cmd=func_convert_file_noop
6910 case $host in
6911 *-*-mingw* )
6912 case $build in
6913 *-*-mingw* ) # actually msys
6914 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6915 ;;
6916 esac
6917 ;;
6918 esac
6919
6920 fi
6921
6922 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6924 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6925
6926
6927
6928
6929
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6931 printf %s "checking for $LD option to reload object files... " >&6; }
6932 if test ${lt_cv_ld_reload_flag+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else $as_nop
6936 lt_cv_ld_reload_flag='-r'
6937 fi
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6939 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6940 reload_flag=$lt_cv_ld_reload_flag
6941 case $reload_flag in
6942 "" | " "*) ;;
6943 *) reload_flag=" $reload_flag" ;;
6944 esac
6945 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6946 case $host_os in
6947 cygwin* | mingw* | pw32* | cegcc*)
6948 if test yes != "$GCC"; then
6949 reload_cmds=false
6950 fi
6951 ;;
6952 darwin*)
6953 if test yes = "$GCC"; then
6954 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6955 else
6956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6957 fi
6958 ;;
6959 esac
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 printf %s "checking for $ac_word... " >&6; }
6974 if test ${ac_cv_prog_OBJDUMP+y}
6975 then :
6976 printf %s "(cached) " >&6
6977 else $as_nop
6978 if test -n "$OBJDUMP"; then
6979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 case $as_dir in #(((
6986 '') as_dir=./ ;;
6987 */) ;;
6988 *) as_dir=$as_dir/ ;;
6989 esac
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi
7001 fi
7002 OBJDUMP=$ac_cv_prog_OBJDUMP
7003 if test -n "$OBJDUMP"; then
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7005 printf "%s\n" "$OBJDUMP" >&6; }
7006 else
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 printf "%s\n" "no" >&6; }
7009 fi
7010
7011
7012 fi
7013 if test -z "$ac_cv_prog_OBJDUMP"; then
7014 ac_ct_OBJDUMP=$OBJDUMP
7015 # Extract the first word of "objdump", so it can be a program name with args.
7016 set dummy objdump; ac_word=$2
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 printf %s "checking for $ac_word... " >&6; }
7019 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7020 then :
7021 printf %s "(cached) " >&6
7022 else $as_nop
7023 if test -n "$ac_ct_OBJDUMP"; then
7024 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 case $as_dir in #(((
7031 '') as_dir=./ ;;
7032 */) ;;
7033 *) as_dir=$as_dir/ ;;
7034 esac
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7048 if test -n "$ac_ct_OBJDUMP"; then
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7050 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7051 else
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 printf "%s\n" "no" >&6; }
7054 fi
7055
7056 if test "x$ac_ct_OBJDUMP" = x; then
7057 OBJDUMP="false"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7064 esac
7065 OBJDUMP=$ac_ct_OBJDUMP
7066 fi
7067 else
7068 OBJDUMP="$ac_cv_prog_OBJDUMP"
7069 fi
7070
7071 test -z "$OBJDUMP" && OBJDUMP=objdump
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7082 printf %s "checking how to recognize dependent libraries... " >&6; }
7083 if test ${lt_cv_deplibs_check_method+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else $as_nop
7087 lt_cv_file_magic_cmd='$MAGIC_CMD'
7088 lt_cv_file_magic_test_file=
7089 lt_cv_deplibs_check_method='unknown'
7090 # Need to set the preceding variable on all platforms that support
7091 # interlibrary dependencies.
7092 # 'none' -- dependencies not supported.
7093 # 'unknown' -- same as none, but documents that we really don't know.
7094 # 'pass_all' -- all dependencies passed with no checks.
7095 # 'test_compile' -- check by making test program.
7096 # 'file_magic [[regex]]' -- check by looking for files in library path
7097 # that responds to the $file_magic_cmd with a given extended regex.
7098 # If you have 'file' or equivalent on your system and you're not sure
7099 # whether 'pass_all' will *always* work, you probably want this one.
7100
7101 case $host_os in
7102 aix[4-9]*)
7103 lt_cv_deplibs_check_method=pass_all
7104 ;;
7105
7106 beos*)
7107 lt_cv_deplibs_check_method=pass_all
7108 ;;
7109
7110 bsdi[45]*)
7111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7112 lt_cv_file_magic_cmd='/usr/bin/file -L'
7113 lt_cv_file_magic_test_file=/shlib/libc.so
7114 ;;
7115
7116 cygwin*)
7117 # func_win32_libid is a shell function defined in ltmain.sh
7118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7119 lt_cv_file_magic_cmd='func_win32_libid'
7120 ;;
7121
7122 mingw* | pw32*)
7123 # Base MSYS/MinGW do not provide the 'file' command needed by
7124 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7125 # unless we find 'file', for example because we are cross-compiling.
7126 if ( file / ) >/dev/null 2>&1; then
7127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7128 lt_cv_file_magic_cmd='func_win32_libid'
7129 else
7130 # Keep this pattern in sync with the one in func_win32_libid.
7131 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7132 lt_cv_file_magic_cmd='$OBJDUMP -f'
7133 fi
7134 ;;
7135
7136 cegcc*)
7137 # use the weaker test based on 'objdump'. See mingw*.
7138 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7139 lt_cv_file_magic_cmd='$OBJDUMP -f'
7140 ;;
7141
7142 darwin* | rhapsody*)
7143 lt_cv_deplibs_check_method=pass_all
7144 ;;
7145
7146 freebsd* | dragonfly*)
7147 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7148 case $host_cpu in
7149 i*86 )
7150 # Not sure whether the presence of OpenBSD here was a mistake.
7151 # Let's accept both of them until this is cleared up.
7152 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7153 lt_cv_file_magic_cmd=/usr/bin/file
7154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7155 ;;
7156 esac
7157 else
7158 lt_cv_deplibs_check_method=pass_all
7159 fi
7160 ;;
7161
7162 haiku*)
7163 lt_cv_deplibs_check_method=pass_all
7164 ;;
7165
7166 hpux10.20* | hpux11*)
7167 lt_cv_file_magic_cmd=/usr/bin/file
7168 case $host_cpu in
7169 ia64*)
7170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7172 ;;
7173 hppa*64*)
7174 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]'
7175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7176 ;;
7177 *)
7178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7179 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7180 ;;
7181 esac
7182 ;;
7183
7184 interix[3-9]*)
7185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7187 ;;
7188
7189 irix5* | irix6* | nonstopux*)
7190 case $LD in
7191 *-32|*"-32 ") libmagic=32-bit;;
7192 *-n32|*"-n32 ") libmagic=N32;;
7193 *-64|*"-64 ") libmagic=64-bit;;
7194 *) libmagic=never-match;;
7195 esac
7196 lt_cv_deplibs_check_method=pass_all
7197 ;;
7198
7199 # This must be glibc/ELF.
7200 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7201 lt_cv_deplibs_check_method=pass_all
7202 ;;
7203
7204 netbsd* | netbsdelf*-gnu)
7205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7207 else
7208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7209 fi
7210 ;;
7211
7212 newos6*)
7213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7214 lt_cv_file_magic_cmd=/usr/bin/file
7215 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7216 ;;
7217
7218 *nto* | *qnx*)
7219 lt_cv_deplibs_check_method=pass_all
7220 ;;
7221
7222 openbsd* | bitrig*)
7223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7225 else
7226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7227 fi
7228 ;;
7229
7230 osf3* | osf4* | osf5*)
7231 lt_cv_deplibs_check_method=pass_all
7232 ;;
7233
7234 rdos*)
7235 lt_cv_deplibs_check_method=pass_all
7236 ;;
7237
7238 solaris*)
7239 lt_cv_deplibs_check_method=pass_all
7240 ;;
7241
7242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7243 lt_cv_deplibs_check_method=pass_all
7244 ;;
7245
7246 sysv4 | sysv4.3*)
7247 case $host_vendor in
7248 motorola)
7249 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]'
7250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7251 ;;
7252 ncr)
7253 lt_cv_deplibs_check_method=pass_all
7254 ;;
7255 sequent)
7256 lt_cv_file_magic_cmd='/bin/file'
7257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7258 ;;
7259 sni)
7260 lt_cv_file_magic_cmd='/bin/file'
7261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7262 lt_cv_file_magic_test_file=/lib/libc.so
7263 ;;
7264 siemens)
7265 lt_cv_deplibs_check_method=pass_all
7266 ;;
7267 pc)
7268 lt_cv_deplibs_check_method=pass_all
7269 ;;
7270 esac
7271 ;;
7272
7273 tpf*)
7274 lt_cv_deplibs_check_method=pass_all
7275 ;;
7276 os2*)
7277 lt_cv_deplibs_check_method=pass_all
7278 ;;
7279 esac
7280
7281 fi
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7283 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7284
7285 file_magic_glob=
7286 want_nocaseglob=no
7287 if test "$build" = "$host"; then
7288 case $host_os in
7289 mingw* | pw32*)
7290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7291 want_nocaseglob=yes
7292 else
7293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7294 fi
7295 ;;
7296 esac
7297 fi
7298
7299 file_magic_cmd=$lt_cv_file_magic_cmd
7300 deplibs_check_method=$lt_cv_deplibs_check_method
7301 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 printf %s "checking for $ac_word... " >&6; }
7329 if test ${ac_cv_prog_DLLTOOL+y}
7330 then :
7331 printf %s "(cached) " >&6
7332 else $as_nop
7333 if test -n "$DLLTOOL"; then
7334 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 case $as_dir in #(((
7341 '') as_dir=./ ;;
7342 */) ;;
7343 *) as_dir=$as_dir/ ;;
7344 esac
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 DLLTOOL=$ac_cv_prog_DLLTOOL
7358 if test -n "$DLLTOOL"; then
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7360 printf "%s\n" "$DLLTOOL" >&6; }
7361 else
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 printf "%s\n" "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_DLLTOOL"; then
7369 ac_ct_DLLTOOL=$DLLTOOL
7370 # Extract the first word of "dlltool", so it can be a program name with args.
7371 set dummy dlltool; ac_word=$2
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 printf %s "checking for $ac_word... " >&6; }
7374 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7375 then :
7376 printf %s "(cached) " >&6
7377 else $as_nop
7378 if test -n "$ac_ct_DLLTOOL"; then
7379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 case $as_dir in #(((
7386 '') as_dir=./ ;;
7387 */) ;;
7388 *) as_dir=$as_dir/ ;;
7389 esac
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7403 if test -n "$ac_ct_DLLTOOL"; then
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7405 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7406 else
7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 printf "%s\n" "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_DLLTOOL" = x; then
7412 DLLTOOL="false"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 DLLTOOL=$ac_ct_DLLTOOL
7421 fi
7422 else
7423 DLLTOOL="$ac_cv_prog_DLLTOOL"
7424 fi
7425
7426 test -z "$DLLTOOL" && DLLTOOL=dlltool
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7438 printf %s "checking how to associate runtime and link libraries... " >&6; }
7439 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else $as_nop
7443 lt_cv_sharedlib_from_linklib_cmd='unknown'
7444
7445 case $host_os in
7446 cygwin* | mingw* | pw32* | cegcc*)
7447 # two different shell functions defined in ltmain.sh;
7448 # decide which one to use based on capabilities of $DLLTOOL
7449 case `$DLLTOOL --help 2>&1` in
7450 *--identify-strict*)
7451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7452 ;;
7453 *)
7454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7455 ;;
7456 esac
7457 ;;
7458 *)
7459 # fallback: assume linklib IS sharedlib
7460 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7461 ;;
7462 esac
7463
7464 fi
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7466 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7467 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7468 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7469
7470
7471
7472
7473
7474
7475
7476
7477 if test -n "$ac_tool_prefix"; then
7478 for ac_prog in ar
7479 do
7480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 printf %s "checking for $ac_word... " >&6; }
7484 if test ${ac_cv_prog_AR+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else $as_nop
7488 if test -n "$AR"; then
7489 ac_cv_prog_AR="$AR" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 case $as_dir in #(((
7496 '') as_dir=./ ;;
7497 */) ;;
7498 *) as_dir=$as_dir/ ;;
7499 esac
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 AR=$ac_cv_prog_AR
7513 if test -n "$AR"; then
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7515 printf "%s\n" "$AR" >&6; }
7516 else
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 printf "%s\n" "no" >&6; }
7519 fi
7520
7521
7522 test -n "$AR" && break
7523 done
7524 fi
7525 if test -z "$AR"; then
7526 ac_ct_AR=$AR
7527 for ac_prog in ar
7528 do
7529 # Extract the first word of "$ac_prog", so it can be a program name with args.
7530 set dummy $ac_prog; ac_word=$2
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 printf %s "checking for $ac_word... " >&6; }
7533 if test ${ac_cv_prog_ac_ct_AR+y}
7534 then :
7535 printf %s "(cached) " >&6
7536 else $as_nop
7537 if test -n "$ac_ct_AR"; then
7538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 case $as_dir in #(((
7545 '') as_dir=./ ;;
7546 */) ;;
7547 *) as_dir=$as_dir/ ;;
7548 esac
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_ac_ct_AR="$ac_prog"
7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7562 if test -n "$ac_ct_AR"; then
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7564 printf "%s\n" "$ac_ct_AR" >&6; }
7565 else
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 printf "%s\n" "no" >&6; }
7568 fi
7569
7570
7571 test -n "$ac_ct_AR" && break
7572 done
7573
7574 if test "x$ac_ct_AR" = x; then
7575 AR="false"
7576 else
7577 case $cross_compiling:$ac_tool_warned in
7578 yes:)
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7582 esac
7583 AR=$ac_ct_AR
7584 fi
7585 fi
7586
7587 : ${AR=ar}
7588 : ${AR_FLAGS=cr}
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7601 printf %s "checking for archiver @FILE support... " >&6; }
7602 if test ${lt_cv_ar_at_file+y}
7603 then :
7604 printf %s "(cached) " >&6
7605 else $as_nop
7606 lt_cv_ar_at_file=no
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609
7610 int
7611 main (void)
7612 {
7613
7614 ;
7615 return 0;
7616 }
7617 _ACEOF
7618 if ac_fn_cxx_try_compile "$LINENO"
7619 then :
7620 echo conftest.$ac_objext > conftest.lst
7621 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7623 (eval $lt_ar_try) 2>&5
7624 ac_status=$?
7625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; }
7627 if test 0 -eq "$ac_status"; then
7628 # Ensure the archiver fails upon bogus file names.
7629 rm -f conftest.$ac_objext libconftest.a
7630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7631 (eval $lt_ar_try) 2>&5
7632 ac_status=$?
7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }
7635 if test 0 -ne "$ac_status"; then
7636 lt_cv_ar_at_file=@
7637 fi
7638 fi
7639 rm -f conftest.* libconftest.a
7640
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7643
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7646 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7647
7648 if test no = "$lt_cv_ar_at_file"; then
7649 archiver_list_spec=
7650 else
7651 archiver_list_spec=$lt_cv_ar_at_file
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660 if test -n "$ac_tool_prefix"; then
7661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7662 set dummy ${ac_tool_prefix}strip; ac_word=$2
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 printf %s "checking for $ac_word... " >&6; }
7665 if test ${ac_cv_prog_STRIP+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else $as_nop
7669 if test -n "$STRIP"; then
7670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 case $as_dir in #(((
7677 '') as_dir=./ ;;
7678 */) ;;
7679 *) as_dir=$as_dir/ ;;
7680 esac
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 STRIP=$ac_cv_prog_STRIP
7694 if test -n "$STRIP"; then
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7696 printf "%s\n" "$STRIP" >&6; }
7697 else
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 printf "%s\n" "no" >&6; }
7700 fi
7701
7702
7703 fi
7704 if test -z "$ac_cv_prog_STRIP"; then
7705 ac_ct_STRIP=$STRIP
7706 # Extract the first word of "strip", so it can be a program name with args.
7707 set dummy strip; ac_word=$2
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 printf %s "checking for $ac_word... " >&6; }
7710 if test ${ac_cv_prog_ac_ct_STRIP+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else $as_nop
7714 if test -n "$ac_ct_STRIP"; then
7715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 case $as_dir in #(((
7722 '') as_dir=./ ;;
7723 */) ;;
7724 *) as_dir=$as_dir/ ;;
7725 esac
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_ac_ct_STRIP="strip"
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7739 if test -n "$ac_ct_STRIP"; then
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7741 printf "%s\n" "$ac_ct_STRIP" >&6; }
7742 else
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746
7747 if test "x$ac_ct_STRIP" = x; then
7748 STRIP=":"
7749 else
7750 case $cross_compiling:$ac_tool_warned in
7751 yes:)
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754 ac_tool_warned=yes ;;
7755 esac
7756 STRIP=$ac_ct_STRIP
7757 fi
7758 else
7759 STRIP="$ac_cv_prog_STRIP"
7760 fi
7761
7762 test -z "$STRIP" && STRIP=:
7763
7764
7765
7766
7767
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 printf %s "checking for $ac_word... " >&6; }
7774 if test ${ac_cv_prog_RANLIB+y}
7775 then :
7776 printf %s "(cached) " >&6
7777 else $as_nop
7778 if test -n "$RANLIB"; then
7779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 case $as_dir in #(((
7786 '') as_dir=./ ;;
7787 */) ;;
7788 *) as_dir=$as_dir/ ;;
7789 esac
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796 done
7797 done
7798 IFS=$as_save_IFS
7799
7800 fi
7801 fi
7802 RANLIB=$ac_cv_prog_RANLIB
7803 if test -n "$RANLIB"; then
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7805 printf "%s\n" "$RANLIB" >&6; }
7806 else
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 printf "%s\n" "no" >&6; }
7809 fi
7810
7811
7812 fi
7813 if test -z "$ac_cv_prog_RANLIB"; then
7814 ac_ct_RANLIB=$RANLIB
7815 # Extract the first word of "ranlib", so it can be a program name with args.
7816 set dummy ranlib; ac_word=$2
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 printf %s "checking for $ac_word... " >&6; }
7819 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else $as_nop
7823 if test -n "$ac_ct_RANLIB"; then
7824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 case $as_dir in #(((
7831 '') as_dir=./ ;;
7832 */) ;;
7833 *) as_dir=$as_dir/ ;;
7834 esac
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_RANLIB="ranlib"
7838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7848 if test -n "$ac_ct_RANLIB"; then
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7850 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7851 else
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 printf "%s\n" "no" >&6; }
7854 fi
7855
7856 if test "x$ac_ct_RANLIB" = x; then
7857 RANLIB=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 RANLIB=$ac_ct_RANLIB
7866 fi
7867 else
7868 RANLIB="$ac_cv_prog_RANLIB"
7869 fi
7870
7871 test -z "$RANLIB" && RANLIB=:
7872
7873
7874
7875
7876
7877
7878 # Determine commands to create old-style static archives.
7879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7880 old_postinstall_cmds='chmod 644 $oldlib'
7881 old_postuninstall_cmds=
7882
7883 if test -n "$RANLIB"; then
7884 case $host_os in
7885 bitrig* | openbsd*)
7886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7887 ;;
7888 *)
7889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7890 ;;
7891 esac
7892 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7893 fi
7894
7895 case $host_os in
7896 darwin*)
7897 lock_old_archive_extraction=yes ;;
7898 *)
7899 lock_old_archive_extraction=no ;;
7900 esac
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 # If no C compiler was specified, use CC.
7941 LTCC=${LTCC-"$CC"}
7942
7943 # If no C compiler flags were specified, use CFLAGS.
7944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7945
7946 # Allow CC to be a program name with arguments.
7947 compiler=$CC
7948
7949
7950 # Check for command to grab the raw symbol name followed by C symbol from nm.
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7952 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7953 if test ${lt_cv_sys_global_symbol_pipe+y}
7954 then :
7955 printf %s "(cached) " >&6
7956 else $as_nop
7957
7958 # These are sane defaults that work on at least a few old systems.
7959 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7960
7961 # Character class describing NM global symbol codes.
7962 symcode='[BCDEGRST]'
7963
7964 # Regexp to match symbols that can be accessed directly from C.
7965 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7966
7967 # Define system-specific variables.
7968 case $host_os in
7969 aix*)
7970 symcode='[BCDT]'
7971 ;;
7972 cygwin* | mingw* | pw32* | cegcc*)
7973 symcode='[ABCDGISTW]'
7974 ;;
7975 hpux*)
7976 if test ia64 = "$host_cpu"; then
7977 symcode='[ABCDEGRST]'
7978 fi
7979 ;;
7980 irix* | nonstopux*)
7981 symcode='[BCDEGRST]'
7982 ;;
7983 osf*)
7984 symcode='[BCDEGQRST]'
7985 ;;
7986 solaris*)
7987 symcode='[BDRT]'
7988 ;;
7989 sco3.2v5*)
7990 symcode='[DT]'
7991 ;;
7992 sysv4.2uw2*)
7993 symcode='[DT]'
7994 ;;
7995 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7996 symcode='[ABDT]'
7997 ;;
7998 sysv4)
7999 symcode='[DFNSTU]'
8000 ;;
8001 esac
8002
8003 # If we're using GNU nm, then use its standard symbol codes.
8004 case `$NM -V 2>&1` in
8005 *GNU* | *'with BFD'*)
8006 symcode='[ABCDGIRSTW]' ;;
8007 esac
8008
8009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8010 # Gets list of data symbols to import.
8011 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8012 # Adjust the below global symbol transforms to fixup imported variables.
8013 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8014 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8015 lt_c_name_lib_hook="\
8016 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8017 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8018 else
8019 # Disable hooks by default.
8020 lt_cv_sys_global_symbol_to_import=
8021 lt_cdecl_hook=
8022 lt_c_name_hook=
8023 lt_c_name_lib_hook=
8024 fi
8025
8026 # Transform an extracted symbol line into a proper C declaration.
8027 # Some systems (esp. on ia64) link data and code symbols differently,
8028 # so use this general approach.
8029 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8030 $lt_cdecl_hook\
8031 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8032 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8033
8034 # Transform an extracted symbol line into symbol name and symbol address
8035 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8036 $lt_c_name_hook\
8037 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8038 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8039
8040 # Transform an extracted symbol line into symbol name with lib prefix and
8041 # symbol address.
8042 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8043 $lt_c_name_lib_hook\
8044 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8045 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8046 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8047
8048 # Handle CRLF in mingw tool chain
8049 opt_cr=
8050 case $build_os in
8051 mingw*)
8052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8053 ;;
8054 esac
8055
8056 # Try without a prefix underscore, then with it.
8057 for ac_symprfx in "" "_"; do
8058
8059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8060 symxfrm="\\1 $ac_symprfx\\2 \\2"
8061
8062 # Write the raw and C identifiers.
8063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8064 # Fake it for dumpbin and say T for any non-static function,
8065 # D for any global variable and I for any imported variable.
8066 # Also find C++ and __fastcall symbols from MSVC++,
8067 # which start with @ or ?.
8068 lt_cv_sys_global_symbol_pipe="$AWK '"\
8069 " {last_section=section; section=\$ 3};"\
8070 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8071 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8072 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8073 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8074 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8075 " \$ 0!~/External *\|/{next};"\
8076 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8077 " {if(hide[section]) next};"\
8078 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8079 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8080 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8081 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8082 " ' prfx=^$ac_symprfx"
8083 else
8084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8085 fi
8086 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8087
8088 # Check to see that the pipe works correctly.
8089 pipe_works=no
8090
8091 rm -f conftest*
8092 cat > conftest.$ac_ext <<_LT_EOF
8093 #ifdef __cplusplus
8094 extern "C" {
8095 #endif
8096 char nm_test_var;
8097 void nm_test_func(void);
8098 void nm_test_func(void){}
8099 #ifdef __cplusplus
8100 }
8101 #endif
8102 int main(){nm_test_var='a';nm_test_func();return(0);}
8103 _LT_EOF
8104
8105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8106 (eval $ac_compile) 2>&5
8107 ac_status=$?
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109 test $ac_status = 0; }; then
8110 # Now try to grab the symbols.
8111 nlist=conftest.nm
8112 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8113 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8114 # Try sorting and uniquifying the output.
8115 if sort "$nlist" | uniq > "$nlist"T; then
8116 mv -f "$nlist"T "$nlist"
8117 else
8118 rm -f "$nlist"T
8119 fi
8120
8121 # Make sure that we snagged all the symbols we need.
8122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8124 cat <<_LT_EOF > conftest.$ac_ext
8125 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8126 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8127 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8128 relocations are performed -- see ld's documentation on pseudo-relocs. */
8129 # define LT_DLSYM_CONST
8130 #elif defined __osf__
8131 /* This system does not cope well with relocations in const data. */
8132 # define LT_DLSYM_CONST
8133 #else
8134 # define LT_DLSYM_CONST const
8135 #endif
8136
8137 #ifdef __cplusplus
8138 extern "C" {
8139 #endif
8140
8141 _LT_EOF
8142 # Now generate the symbol file.
8143 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8144
8145 cat <<_LT_EOF >> conftest.$ac_ext
8146
8147 /* The mapping between symbol names and symbols. */
8148 LT_DLSYM_CONST struct {
8149 const char *name;
8150 void *address;
8151 }
8152 lt__PROGRAM__LTX_preloaded_symbols[] =
8153 {
8154 { "@PROGRAM@", (void *) 0 },
8155 _LT_EOF
8156 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8157 cat <<\_LT_EOF >> conftest.$ac_ext
8158 {0, (void *) 0}
8159 };
8160
8161 /* This works around a problem in FreeBSD linker */
8162 #ifdef FREEBSD_WORKAROUND
8163 static const void *lt_preloaded_setup() {
8164 return lt__PROGRAM__LTX_preloaded_symbols;
8165 }
8166 #endif
8167
8168 #ifdef __cplusplus
8169 }
8170 #endif
8171 _LT_EOF
8172 # Now try linking the two files.
8173 mv conftest.$ac_objext conftstm.$ac_objext
8174 lt_globsym_save_LIBS=$LIBS
8175 lt_globsym_save_CFLAGS=$CFLAGS
8176 LIBS=conftstm.$ac_objext
8177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8179 (eval $ac_link) 2>&5
8180 ac_status=$?
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8183 pipe_works=yes
8184 fi
8185 LIBS=$lt_globsym_save_LIBS
8186 CFLAGS=$lt_globsym_save_CFLAGS
8187 else
8188 echo "cannot find nm_test_func in $nlist" >&5
8189 fi
8190 else
8191 echo "cannot find nm_test_var in $nlist" >&5
8192 fi
8193 else
8194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8195 fi
8196 else
8197 echo "$progname: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8199 fi
8200 rm -rf conftest* conftst*
8201
8202 # Do not use the global_symbol_pipe unless it works.
8203 if test yes = "$pipe_works"; then
8204 break
8205 else
8206 lt_cv_sys_global_symbol_pipe=
8207 fi
8208 done
8209
8210 fi
8211
8212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8213 lt_cv_sys_global_symbol_to_cdecl=
8214 fi
8215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8217 printf "%s\n" "failed" >&6; }
8218 else
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8220 printf "%s\n" "ok" >&6; }
8221 fi
8222
8223 # Response file support.
8224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8225 nm_file_list_spec='@'
8226 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8227 nm_file_list_spec='@'
8228 fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8267 printf %s "checking for sysroot... " >&6; }
8268
8269 # Check whether --with-sysroot was given.
8270 if test ${with_sysroot+y}
8271 then :
8272 withval=$with_sysroot;
8273 else $as_nop
8274 with_sysroot=no
8275 fi
8276
8277
8278 lt_sysroot=
8279 case $with_sysroot in #(
8280 yes)
8281 if test yes = "$GCC"; then
8282 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8283 fi
8284 ;; #(
8285 /*)
8286 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8287 ;; #(
8288 no|'')
8289 ;; #(
8290 *)
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8292 printf "%s\n" "$with_sysroot" >&6; }
8293 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8294 ;;
8295 esac
8296
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8298 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8299
8300
8301
8302
8303
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8305 printf %s "checking for a working dd... " >&6; }
8306 if test ${ac_cv_path_lt_DD+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else $as_nop
8310 printf 0123456789abcdef0123456789abcdef >conftest.i
8311 cat conftest.i conftest.i >conftest2.i
8312 : ${lt_DD:=$DD}
8313 if test -z "$lt_DD"; then
8314 ac_path_lt_DD_found=false
8315 # Loop through the user's path and test for each of PROGNAME-LIST
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319 IFS=$as_save_IFS
8320 case $as_dir in #(((
8321 '') as_dir=./ ;;
8322 */) ;;
8323 *) as_dir=$as_dir/ ;;
8324 esac
8325 for ac_prog in dd
8326 do
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8329 as_fn_executable_p "$ac_path_lt_DD" || continue
8330 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8331 cmp -s conftest.i conftest.out \
8332 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8333 fi
8334 $ac_path_lt_DD_found && break 3
8335 done
8336 done
8337 done
8338 IFS=$as_save_IFS
8339 if test -z "$ac_cv_path_lt_DD"; then
8340 :
8341 fi
8342 else
8343 ac_cv_path_lt_DD=$lt_DD
8344 fi
8345
8346 rm -f conftest.i conftest2.i conftest.out
8347 fi
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8349 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8350
8351
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8353 printf %s "checking how to truncate binary pipes... " >&6; }
8354 if test ${lt_cv_truncate_bin+y}
8355 then :
8356 printf %s "(cached) " >&6
8357 else $as_nop
8358 printf 0123456789abcdef0123456789abcdef >conftest.i
8359 cat conftest.i conftest.i >conftest2.i
8360 lt_cv_truncate_bin=
8361 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8362 cmp -s conftest.i conftest.out \
8363 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8364 fi
8365 rm -f conftest.i conftest2.i conftest.out
8366 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8367 fi
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8369 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8370
8371
8372
8373
8374
8375
8376
8377 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8378 func_cc_basename ()
8379 {
8380 for cc_temp in $*""; do
8381 case $cc_temp in
8382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8384 \-*) ;;
8385 *) break;;
8386 esac
8387 done
8388 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8389 }
8390
8391 # Check whether --enable-libtool-lock was given.
8392 if test ${enable_libtool_lock+y}
8393 then :
8394 enableval=$enable_libtool_lock;
8395 fi
8396
8397 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8398
8399 # Some flags need to be propagated to the compiler or linker for good
8400 # libtool support.
8401 case $host in
8402 ia64-*-hpux*)
8403 # Find out what ABI is being produced by ac_compile, and set mode
8404 # options accordingly.
8405 echo 'int i;' > conftest.$ac_ext
8406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8407 (eval $ac_compile) 2>&5
8408 ac_status=$?
8409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8410 test $ac_status = 0; }; then
8411 case `/usr/bin/file conftest.$ac_objext` in
8412 *ELF-32*)
8413 HPUX_IA64_MODE=32
8414 ;;
8415 *ELF-64*)
8416 HPUX_IA64_MODE=64
8417 ;;
8418 esac
8419 fi
8420 rm -rf conftest*
8421 ;;
8422 *-*-irix6*)
8423 # Find out what ABI is being produced by ac_compile, and set linker
8424 # options accordingly.
8425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8427 (eval $ac_compile) 2>&5
8428 ac_status=$?
8429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8430 test $ac_status = 0; }; then
8431 if test yes = "$lt_cv_prog_gnu_ld"; then
8432 case `/usr/bin/file conftest.$ac_objext` in
8433 *32-bit*)
8434 LD="${LD-ld} -melf32bsmip"
8435 ;;
8436 *N32*)
8437 LD="${LD-ld} -melf32bmipn32"
8438 ;;
8439 *64-bit*)
8440 LD="${LD-ld} -melf64bmip"
8441 ;;
8442 esac
8443 else
8444 case `/usr/bin/file conftest.$ac_objext` in
8445 *32-bit*)
8446 LD="${LD-ld} -32"
8447 ;;
8448 *N32*)
8449 LD="${LD-ld} -n32"
8450 ;;
8451 *64-bit*)
8452 LD="${LD-ld} -64"
8453 ;;
8454 esac
8455 fi
8456 fi
8457 rm -rf conftest*
8458 ;;
8459
8460 mips64*-*linux*)
8461 # Find out what ABI is being produced by ac_compile, and set linker
8462 # options accordingly.
8463 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465 (eval $ac_compile) 2>&5
8466 ac_status=$?
8467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468 test $ac_status = 0; }; then
8469 emul=elf
8470 case `/usr/bin/file conftest.$ac_objext` in
8471 *32-bit*)
8472 emul="${emul}32"
8473 ;;
8474 *64-bit*)
8475 emul="${emul}64"
8476 ;;
8477 esac
8478 case `/usr/bin/file conftest.$ac_objext` in
8479 *MSB*)
8480 emul="${emul}btsmip"
8481 ;;
8482 *LSB*)
8483 emul="${emul}ltsmip"
8484 ;;
8485 esac
8486 case `/usr/bin/file conftest.$ac_objext` in
8487 *N32*)
8488 emul="${emul}n32"
8489 ;;
8490 esac
8491 LD="${LD-ld} -m $emul"
8492 fi
8493 rm -rf conftest*
8494 ;;
8495
8496 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8497 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8498 # Find out what ABI is being produced by ac_compile, and set linker
8499 # options accordingly. Note that the listed cases only cover the
8500 # situations where additional linker options are needed (such as when
8501 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8502 # vice versa); the common cases where no linker options are needed do
8503 # not appear in the list.
8504 echo 'int i;' > conftest.$ac_ext
8505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8506 (eval $ac_compile) 2>&5
8507 ac_status=$?
8508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509 test $ac_status = 0; }; then
8510 case `/usr/bin/file conftest.o` in
8511 *32-bit*)
8512 case $host in
8513 x86_64-*kfreebsd*-gnu)
8514 LD="${LD-ld} -m elf_i386_fbsd"
8515 ;;
8516 x86_64-*linux*)
8517 case `/usr/bin/file conftest.o` in
8518 *x86-64*)
8519 LD="${LD-ld} -m elf32_x86_64"
8520 ;;
8521 *)
8522 LD="${LD-ld} -m elf_i386"
8523 ;;
8524 esac
8525 ;;
8526 powerpc64le-*linux*)
8527 LD="${LD-ld} -m elf32lppclinux"
8528 ;;
8529 powerpc64-*linux*)
8530 LD="${LD-ld} -m elf32ppclinux"
8531 ;;
8532 s390x-*linux*)
8533 LD="${LD-ld} -m elf_s390"
8534 ;;
8535 sparc64-*linux*)
8536 LD="${LD-ld} -m elf32_sparc"
8537 ;;
8538 esac
8539 ;;
8540 *64-bit*)
8541 case $host in
8542 x86_64-*kfreebsd*-gnu)
8543 LD="${LD-ld} -m elf_x86_64_fbsd"
8544 ;;
8545 x86_64-*linux*)
8546 LD="${LD-ld} -m elf_x86_64"
8547 ;;
8548 powerpcle-*linux*)
8549 LD="${LD-ld} -m elf64lppc"
8550 ;;
8551 powerpc-*linux*)
8552 LD="${LD-ld} -m elf64ppc"
8553 ;;
8554 s390*-*linux*|s390*-*tpf*)
8555 LD="${LD-ld} -m elf64_s390"
8556 ;;
8557 sparc*-*linux*)
8558 LD="${LD-ld} -m elf64_sparc"
8559 ;;
8560 esac
8561 ;;
8562 esac
8563 fi
8564 rm -rf conftest*
8565 ;;
8566
8567 *-*-sco3.2v5*)
8568 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8569 SAVE_CFLAGS=$CFLAGS
8570 CFLAGS="$CFLAGS -belf"
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8572 printf %s "checking whether the C compiler needs -belf... " >&6; }
8573 if test ${lt_cv_cc_needs_belf+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else $as_nop
8577 ac_ext=c
8578 ac_cpp='$CPP $CPPFLAGS'
8579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585
8586 int
8587 main (void)
8588 {
8589
8590 ;
8591 return 0;
8592 }
8593 _ACEOF
8594 if ac_fn_c_try_link "$LINENO"
8595 then :
8596 lt_cv_cc_needs_belf=yes
8597 else $as_nop
8598 lt_cv_cc_needs_belf=no
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8601 conftest$ac_exeext conftest.$ac_ext
8602 ac_ext=c
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608 fi
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8610 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8611 if test yes != "$lt_cv_cc_needs_belf"; then
8612 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8613 CFLAGS=$SAVE_CFLAGS
8614 fi
8615 ;;
8616 *-*solaris*)
8617 # Find out what ABI is being produced by ac_compile, and set linker
8618 # options accordingly.
8619 echo 'int i;' > conftest.$ac_ext
8620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8621 (eval $ac_compile) 2>&5
8622 ac_status=$?
8623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
8625 case `/usr/bin/file conftest.o` in
8626 *64-bit*)
8627 case $lt_cv_prog_gnu_ld in
8628 yes*)
8629 case $host in
8630 i?86-*-solaris*|x86_64-*-solaris*)
8631 LD="${LD-ld} -m elf_x86_64"
8632 ;;
8633 sparc*-*-solaris*)
8634 LD="${LD-ld} -m elf64_sparc"
8635 ;;
8636 esac
8637 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8638 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8639 LD=${LD-ld}_sol2
8640 fi
8641 ;;
8642 *)
8643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8644 LD="${LD-ld} -64"
8645 fi
8646 ;;
8647 esac
8648 ;;
8649 esac
8650 fi
8651 rm -rf conftest*
8652 ;;
8653 esac
8654
8655 need_locks=$enable_libtool_lock
8656
8657 if test -n "$ac_tool_prefix"; then
8658 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8659 set dummy ${ac_tool_prefix}mt; ac_word=$2
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 printf %s "checking for $ac_word... " >&6; }
8662 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8663 then :
8664 printf %s "(cached) " >&6
8665 else $as_nop
8666 if test -n "$MANIFEST_TOOL"; then
8667 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8668 else
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670 for as_dir in $PATH
8671 do
8672 IFS=$as_save_IFS
8673 case $as_dir in #(((
8674 '') as_dir=./ ;;
8675 */) ;;
8676 *) as_dir=$as_dir/ ;;
8677 esac
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8680 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684 done
8685 done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8691 if test -n "$MANIFEST_TOOL"; then
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8693 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8694 else
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 printf "%s\n" "no" >&6; }
8697 fi
8698
8699
8700 fi
8701 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8702 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8703 # Extract the first word of "mt", so it can be a program name with args.
8704 set dummy mt; ac_word=$2
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 printf %s "checking for $ac_word... " >&6; }
8707 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else $as_nop
8711 if test -n "$ac_ct_MANIFEST_TOOL"; then
8712 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717 IFS=$as_save_IFS
8718 case $as_dir in #(((
8719 '') as_dir=./ ;;
8720 */) ;;
8721 *) as_dir=$as_dir/ ;;
8722 esac
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8725 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8727 break 2
8728 fi
8729 done
8730 done
8731 IFS=$as_save_IFS
8732
8733 fi
8734 fi
8735 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8736 if test -n "$ac_ct_MANIFEST_TOOL"; then
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8738 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8739 else
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 printf "%s\n" "no" >&6; }
8742 fi
8743
8744 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8745 MANIFEST_TOOL=":"
8746 else
8747 case $cross_compiling:$ac_tool_warned in
8748 yes:)
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8751 ac_tool_warned=yes ;;
8752 esac
8753 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8754 fi
8755 else
8756 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8757 fi
8758
8759 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8761 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8762 if test ${lt_cv_path_mainfest_tool+y}
8763 then :
8764 printf %s "(cached) " >&6
8765 else $as_nop
8766 lt_cv_path_mainfest_tool=no
8767 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8768 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8769 cat conftest.err >&5
8770 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8771 lt_cv_path_mainfest_tool=yes
8772 fi
8773 rm -f conftest*
8774 fi
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8776 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8777 if test yes != "$lt_cv_path_mainfest_tool"; then
8778 MANIFEST_TOOL=:
8779 fi
8780
8781
8782
8783
8784
8785
8786 case $host_os in
8787 rhapsody* | darwin*)
8788 if test -n "$ac_tool_prefix"; then
8789 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 printf %s "checking for $ac_word... " >&6; }
8793 if test ${ac_cv_prog_DSYMUTIL+y}
8794 then :
8795 printf %s "(cached) " >&6
8796 else $as_nop
8797 if test -n "$DSYMUTIL"; then
8798 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803 IFS=$as_save_IFS
8804 case $as_dir in #(((
8805 '') as_dir=./ ;;
8806 */) ;;
8807 *) as_dir=$as_dir/ ;;
8808 esac
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8822 if test -n "$DSYMUTIL"; then
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8824 printf "%s\n" "$DSYMUTIL" >&6; }
8825 else
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 printf "%s\n" "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 if test -z "$ac_cv_prog_DSYMUTIL"; then
8833 ac_ct_DSYMUTIL=$DSYMUTIL
8834 # Extract the first word of "dsymutil", so it can be a program name with args.
8835 set dummy dsymutil; ac_word=$2
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 printf %s "checking for $ac_word... " >&6; }
8838 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8839 then :
8840 printf %s "(cached) " >&6
8841 else $as_nop
8842 if test -n "$ac_ct_DSYMUTIL"; then
8843 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848 IFS=$as_save_IFS
8849 case $as_dir in #(((
8850 '') as_dir=./ ;;
8851 */) ;;
8852 *) as_dir=$as_dir/ ;;
8853 esac
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi
8865 fi
8866 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8867 if test -n "$ac_ct_DSYMUTIL"; then
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8869 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8870 else
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 printf "%s\n" "no" >&6; }
8873 fi
8874
8875 if test "x$ac_ct_DSYMUTIL" = x; then
8876 DSYMUTIL=":"
8877 else
8878 case $cross_compiling:$ac_tool_warned in
8879 yes:)
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8882 ac_tool_warned=yes ;;
8883 esac
8884 DSYMUTIL=$ac_ct_DSYMUTIL
8885 fi
8886 else
8887 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8888 fi
8889
8890 if test -n "$ac_tool_prefix"; then
8891 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8892 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894 printf %s "checking for $ac_word... " >&6; }
8895 if test ${ac_cv_prog_NMEDIT+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else $as_nop
8899 if test -n "$NMEDIT"; then
8900 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905 IFS=$as_save_IFS
8906 case $as_dir in #(((
8907 '') as_dir=./ ;;
8908 */) ;;
8909 *) as_dir=$as_dir/ ;;
8910 esac
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917 done
8918 done
8919 IFS=$as_save_IFS
8920
8921 fi
8922 fi
8923 NMEDIT=$ac_cv_prog_NMEDIT
8924 if test -n "$NMEDIT"; then
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8926 printf "%s\n" "$NMEDIT" >&6; }
8927 else
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 printf "%s\n" "no" >&6; }
8930 fi
8931
8932
8933 fi
8934 if test -z "$ac_cv_prog_NMEDIT"; then
8935 ac_ct_NMEDIT=$NMEDIT
8936 # Extract the first word of "nmedit", so it can be a program name with args.
8937 set dummy nmedit; ac_word=$2
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 printf %s "checking for $ac_word... " >&6; }
8940 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8941 then :
8942 printf %s "(cached) " >&6
8943 else $as_nop
8944 if test -n "$ac_ct_NMEDIT"; then
8945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950 IFS=$as_save_IFS
8951 case $as_dir in #(((
8952 '') as_dir=./ ;;
8953 */) ;;
8954 *) as_dir=$as_dir/ ;;
8955 esac
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
8962 done
8963 done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8969 if test -n "$ac_ct_NMEDIT"; then
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8971 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8972 else
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 printf "%s\n" "no" >&6; }
8975 fi
8976
8977 if test "x$ac_ct_NMEDIT" = x; then
8978 NMEDIT=":"
8979 else
8980 case $cross_compiling:$ac_tool_warned in
8981 yes:)
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8984 ac_tool_warned=yes ;;
8985 esac
8986 NMEDIT=$ac_ct_NMEDIT
8987 fi
8988 else
8989 NMEDIT="$ac_cv_prog_NMEDIT"
8990 fi
8991
8992 if test -n "$ac_tool_prefix"; then
8993 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8994 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 printf %s "checking for $ac_word... " >&6; }
8997 if test ${ac_cv_prog_LIPO+y}
8998 then :
8999 printf %s "(cached) " >&6
9000 else $as_nop
9001 if test -n "$LIPO"; then
9002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007 IFS=$as_save_IFS
9008 case $as_dir in #(((
9009 '') as_dir=./ ;;
9010 */) ;;
9011 *) as_dir=$as_dir/ ;;
9012 esac
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019 done
9020 done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 LIPO=$ac_cv_prog_LIPO
9026 if test -n "$LIPO"; then
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9028 printf "%s\n" "$LIPO" >&6; }
9029 else
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 printf "%s\n" "no" >&6; }
9032 fi
9033
9034
9035 fi
9036 if test -z "$ac_cv_prog_LIPO"; then
9037 ac_ct_LIPO=$LIPO
9038 # Extract the first word of "lipo", so it can be a program name with args.
9039 set dummy lipo; ac_word=$2
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 printf %s "checking for $ac_word... " >&6; }
9042 if test ${ac_cv_prog_ac_ct_LIPO+y}
9043 then :
9044 printf %s "(cached) " >&6
9045 else $as_nop
9046 if test -n "$ac_ct_LIPO"; then
9047 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052 IFS=$as_save_IFS
9053 case $as_dir in #(((
9054 '') as_dir=./ ;;
9055 */) ;;
9056 *) as_dir=$as_dir/ ;;
9057 esac
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_LIPO="lipo"
9061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064 done
9065 done
9066 IFS=$as_save_IFS
9067
9068 fi
9069 fi
9070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9071 if test -n "$ac_ct_LIPO"; then
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9073 printf "%s\n" "$ac_ct_LIPO" >&6; }
9074 else
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 printf "%s\n" "no" >&6; }
9077 fi
9078
9079 if test "x$ac_ct_LIPO" = x; then
9080 LIPO=":"
9081 else
9082 case $cross_compiling:$ac_tool_warned in
9083 yes:)
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086 ac_tool_warned=yes ;;
9087 esac
9088 LIPO=$ac_ct_LIPO
9089 fi
9090 else
9091 LIPO="$ac_cv_prog_LIPO"
9092 fi
9093
9094 if test -n "$ac_tool_prefix"; then
9095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9096 set dummy ${ac_tool_prefix}otool; ac_word=$2
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 printf %s "checking for $ac_word... " >&6; }
9099 if test ${ac_cv_prog_OTOOL+y}
9100 then :
9101 printf %s "(cached) " >&6
9102 else $as_nop
9103 if test -n "$OTOOL"; then
9104 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109 IFS=$as_save_IFS
9110 case $as_dir in #(((
9111 '') as_dir=./ ;;
9112 */) ;;
9113 *) as_dir=$as_dir/ ;;
9114 esac
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121 done
9122 done
9123 IFS=$as_save_IFS
9124
9125 fi
9126 fi
9127 OTOOL=$ac_cv_prog_OTOOL
9128 if test -n "$OTOOL"; then
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9130 printf "%s\n" "$OTOOL" >&6; }
9131 else
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 printf "%s\n" "no" >&6; }
9134 fi
9135
9136
9137 fi
9138 if test -z "$ac_cv_prog_OTOOL"; then
9139 ac_ct_OTOOL=$OTOOL
9140 # Extract the first word of "otool", so it can be a program name with args.
9141 set dummy otool; ac_word=$2
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 printf %s "checking for $ac_word... " >&6; }
9144 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9145 then :
9146 printf %s "(cached) " >&6
9147 else $as_nop
9148 if test -n "$ac_ct_OTOOL"; then
9149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 case $as_dir in #(((
9156 '') as_dir=./ ;;
9157 */) ;;
9158 *) as_dir=$as_dir/ ;;
9159 esac
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_ac_ct_OTOOL="otool"
9163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166 done
9167 done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9173 if test -n "$ac_ct_OTOOL"; then
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9175 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9176 else
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 printf "%s\n" "no" >&6; }
9179 fi
9180
9181 if test "x$ac_ct_OTOOL" = x; then
9182 OTOOL=":"
9183 else
9184 case $cross_compiling:$ac_tool_warned in
9185 yes:)
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9188 ac_tool_warned=yes ;;
9189 esac
9190 OTOOL=$ac_ct_OTOOL
9191 fi
9192 else
9193 OTOOL="$ac_cv_prog_OTOOL"
9194 fi
9195
9196 if test -n "$ac_tool_prefix"; then
9197 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9198 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 printf %s "checking for $ac_word... " >&6; }
9201 if test ${ac_cv_prog_OTOOL64+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else $as_nop
9205 if test -n "$OTOOL64"; then
9206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9210 do
9211 IFS=$as_save_IFS
9212 case $as_dir in #(((
9213 '') as_dir=./ ;;
9214 */) ;;
9215 *) as_dir=$as_dir/ ;;
9216 esac
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9219 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9221 break 2
9222 fi
9223 done
9224 done
9225 IFS=$as_save_IFS
9226
9227 fi
9228 fi
9229 OTOOL64=$ac_cv_prog_OTOOL64
9230 if test -n "$OTOOL64"; then
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9232 printf "%s\n" "$OTOOL64" >&6; }
9233 else
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 printf "%s\n" "no" >&6; }
9236 fi
9237
9238
9239 fi
9240 if test -z "$ac_cv_prog_OTOOL64"; then
9241 ac_ct_OTOOL64=$OTOOL64
9242 # Extract the first word of "otool64", so it can be a program name with args.
9243 set dummy otool64; ac_word=$2
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 printf %s "checking for $ac_word... " >&6; }
9246 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9247 then :
9248 printf %s "(cached) " >&6
9249 else $as_nop
9250 if test -n "$ac_ct_OTOOL64"; then
9251 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9255 do
9256 IFS=$as_save_IFS
9257 case $as_dir in #(((
9258 '') as_dir=./ ;;
9259 */) ;;
9260 *) as_dir=$as_dir/ ;;
9261 esac
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9264 ac_cv_prog_ac_ct_OTOOL64="otool64"
9265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9266 break 2
9267 fi
9268 done
9269 done
9270 IFS=$as_save_IFS
9271
9272 fi
9273 fi
9274 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9275 if test -n "$ac_ct_OTOOL64"; then
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9277 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9278 else
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 printf "%s\n" "no" >&6; }
9281 fi
9282
9283 if test "x$ac_ct_OTOOL64" = x; then
9284 OTOOL64=":"
9285 else
9286 case $cross_compiling:$ac_tool_warned in
9287 yes:)
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9290 ac_tool_warned=yes ;;
9291 esac
9292 OTOOL64=$ac_ct_OTOOL64
9293 fi
9294 else
9295 OTOOL64="$ac_cv_prog_OTOOL64"
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9325 printf %s "checking for -single_module linker flag... " >&6; }
9326 if test ${lt_cv_apple_cc_single_mod+y}
9327 then :
9328 printf %s "(cached) " >&6
9329 else $as_nop
9330 lt_cv_apple_cc_single_mod=no
9331 if test -z "$LT_MULTI_MODULE"; then
9332 # By default we will add the -single_module flag. You can override
9333 # by either setting the environment variable LT_MULTI_MODULE
9334 # non-empty at configure time, or by adding -multi_module to the
9335 # link flags.
9336 rm -rf libconftest.dylib*
9337 echo "int foo(void){return 1;}" > conftest.c
9338 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9339 -dynamiclib -Wl,-single_module conftest.c" >&5
9340 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9341 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9342 _lt_result=$?
9343 # If there is a non-empty error log, and "single_module"
9344 # appears in it, assume the flag caused a linker warning
9345 if test -s conftest.err && $GREP single_module conftest.err; then
9346 cat conftest.err >&5
9347 # Otherwise, if the output was created with a 0 exit code from
9348 # the compiler, it worked.
9349 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9350 lt_cv_apple_cc_single_mod=yes
9351 else
9352 cat conftest.err >&5
9353 fi
9354 rm -rf libconftest.dylib*
9355 rm -f conftest.*
9356 fi
9357 fi
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9359 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9360
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9362 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9363 if test ${lt_cv_ld_exported_symbols_list+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else $as_nop
9367 lt_cv_ld_exported_symbols_list=no
9368 save_LDFLAGS=$LDFLAGS
9369 echo "_main" > conftest.sym
9370 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373
9374 int
9375 main (void)
9376 {
9377
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"
9383 then :
9384 lt_cv_ld_exported_symbols_list=yes
9385 else $as_nop
9386 lt_cv_ld_exported_symbols_list=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9389 conftest$ac_exeext conftest.$ac_ext
9390 LDFLAGS=$save_LDFLAGS
9391
9392 fi
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9394 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9395
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9397 printf %s "checking for -force_load linker flag... " >&6; }
9398 if test ${lt_cv_ld_force_load+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 lt_cv_ld_force_load=no
9403 cat > conftest.c << _LT_EOF
9404 int forced_loaded() { return 2;}
9405 _LT_EOF
9406 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9407 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9408 echo "$AR cr libconftest.a conftest.o" >&5
9409 $AR cr libconftest.a conftest.o 2>&5
9410 echo "$RANLIB libconftest.a" >&5
9411 $RANLIB libconftest.a 2>&5
9412 cat > conftest.c << _LT_EOF
9413 int main() { return 0;}
9414 _LT_EOF
9415 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9416 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9417 _lt_result=$?
9418 if test -s conftest.err && $GREP force_load conftest.err; then
9419 cat conftest.err >&5
9420 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9421 lt_cv_ld_force_load=yes
9422 else
9423 cat conftest.err >&5
9424 fi
9425 rm -f conftest.err libconftest.a conftest conftest.c
9426 rm -rf conftest.dSYM
9427
9428 fi
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9430 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9431 case $host_os in
9432 rhapsody* | darwin1.[012])
9433 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9434 darwin1.*)
9435 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9436 darwin*) # darwin 5.x on
9437 # if running on 10.5 or later, the deployment target defaults
9438 # to the OS version, if on x86, and 10.4, the deployment
9439 # target defaults to 10.4. Don't you love it?
9440 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9441 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9442 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9443 10.[012][,.]*)
9444 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9445 10.*|11.*)
9446 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9447 esac
9448 ;;
9449 esac
9450 if test yes = "$lt_cv_apple_cc_single_mod"; then
9451 _lt_dar_single_mod='$single_module'
9452 fi
9453 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9454 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9455 else
9456 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9457 fi
9458 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9459 _lt_dsymutil='~$DSYMUTIL $lib || :'
9460 else
9461 _lt_dsymutil=
9462 fi
9463 ;;
9464 esac
9465
9466 # func_munge_path_list VARIABLE PATH
9467 # -----------------------------------
9468 # VARIABLE is name of variable containing _space_ separated list of
9469 # directories to be munged by the contents of PATH, which is string
9470 # having a format:
9471 # "DIR[:DIR]:"
9472 # string "DIR[ DIR]" will be prepended to VARIABLE
9473 # ":DIR[:DIR]"
9474 # string "DIR[ DIR]" will be appended to VARIABLE
9475 # "DIRP[:DIRP]::[DIRA:]DIRA"
9476 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9477 # "DIRA[ DIRA]" will be appended to VARIABLE
9478 # "DIR[:DIR]"
9479 # VARIABLE will be replaced by "DIR[ DIR]"
9480 func_munge_path_list ()
9481 {
9482 case x$2 in
9483 x)
9484 ;;
9485 *:)
9486 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9487 ;;
9488 x:*)
9489 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9490 ;;
9491 *::*)
9492 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9493 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9494 ;;
9495 *)
9496 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9497 ;;
9498 esac
9499 }
9500
9501 ac_header= ac_cache=
9502 for ac_item in $ac_header_c_list
9503 do
9504 if test $ac_cache; then
9505 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9506 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9507 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9508 fi
9509 ac_header= ac_cache=
9510 elif test $ac_header; then
9511 ac_cache=$ac_item
9512 else
9513 ac_header=$ac_item
9514 fi
9515 done
9516
9517
9518
9519
9520
9521
9522
9523
9524 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9525 then :
9526
9527 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9528
9529 fi
9530 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9531 "
9532 if test "x$ac_cv_header_dlfcn_h" = xyes
9533 then :
9534 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9535
9536 fi
9537
9538
9539
9540 func_stripname_cnf ()
9541 {
9542 case $2 in
9543 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9544 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9545 esac
9546 } # func_stripname_cnf
9547
9548
9549
9550
9551
9552 # Set options
9553 enable_dlopen=yes
9554 # Check whether --enable-static was given.
9555 if test ${enable_static+y}
9556 then :
9557 enableval=$enable_static; p=${PACKAGE-default}
9558 case $enableval in
9559 yes) enable_static=yes ;;
9560 no) enable_static=no ;;
9561 *)
9562 enable_static=no
9563 # Look at the argument we got. We use all the common list separators.
9564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9565 for pkg in $enableval; do
9566 IFS=$lt_save_ifs
9567 if test "X$pkg" = "X$p"; then
9568 enable_static=yes
9569 fi
9570 done
9571 IFS=$lt_save_ifs
9572 ;;
9573 esac
9574 else $as_nop
9575 enable_static=no
9576 fi
9577
9578
9579
9580
9581
9582
9583
9584 # Check whether --enable-shared was given.
9585 if test ${enable_shared+y}
9586 then :
9587 enableval=$enable_shared; p=${PACKAGE-default}
9588 case $enableval in
9589 yes) enable_shared=yes ;;
9590 no) enable_shared=no ;;
9591 *)
9592 enable_shared=no
9593 # Look at the argument we got. We use all the common list separators.
9594 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9595 for pkg in $enableval; do
9596 IFS=$lt_save_ifs
9597 if test "X$pkg" = "X$p"; then
9598 enable_shared=yes
9599 fi
9600 done
9601 IFS=$lt_save_ifs
9602 ;;
9603 esac
9604 else $as_nop
9605 enable_shared=yes
9606 fi
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618 enable_win32_dll=no
9619
9620
9621
9622
9623
9624 # Check whether --with-pic was given.
9625 if test ${with_pic+y}
9626 then :
9627 withval=$with_pic; lt_p=${PACKAGE-default}
9628 case $withval in
9629 yes|no) pic_mode=$withval ;;
9630 *)
9631 pic_mode=default
9632 # Look at the argument we got. We use all the common list separators.
9633 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9634 for lt_pkg in $withval; do
9635 IFS=$lt_save_ifs
9636 if test "X$lt_pkg" = "X$lt_p"; then
9637 pic_mode=yes
9638 fi
9639 done
9640 IFS=$lt_save_ifs
9641 ;;
9642 esac
9643 else $as_nop
9644 pic_mode=default
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654 # Check whether --enable-fast-install was given.
9655 if test ${enable_fast_install+y}
9656 then :
9657 enableval=$enable_fast_install; p=${PACKAGE-default}
9658 case $enableval in
9659 yes) enable_fast_install=yes ;;
9660 no) enable_fast_install=no ;;
9661 *)
9662 enable_fast_install=no
9663 # Look at the argument we got. We use all the common list separators.
9664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9665 for pkg in $enableval; do
9666 IFS=$lt_save_ifs
9667 if test "X$pkg" = "X$p"; then
9668 enable_fast_install=yes
9669 fi
9670 done
9671 IFS=$lt_save_ifs
9672 ;;
9673 esac
9674 else $as_nop
9675 enable_fast_install=yes
9676 fi
9677
9678
9679
9680
9681
9682
9683
9684
9685 shared_archive_member_spec=
9686 case $host,$enable_shared in
9687 power*-*-aix[5-9]*,yes)
9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9689 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9690
9691 # Check whether --with-aix-soname was given.
9692 if test ${with_aix_soname+y}
9693 then :
9694 withval=$with_aix_soname; case $withval in
9695 aix|svr4|both)
9696 ;;
9697 *)
9698 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9699 ;;
9700 esac
9701 lt_cv_with_aix_soname=$with_aix_soname
9702 else $as_nop
9703 if test ${lt_cv_with_aix_soname+y}
9704 then :
9705 printf %s "(cached) " >&6
9706 else $as_nop
9707 lt_cv_with_aix_soname=aix
9708 fi
9709
9710 with_aix_soname=$lt_cv_with_aix_soname
9711 fi
9712
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9714 printf "%s\n" "$with_aix_soname" >&6; }
9715 if test aix != "$with_aix_soname"; then
9716 # For the AIX way of multilib, we name the shared archive member
9717 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9718 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9719 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9720 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9721 if test 64 = "${OBJECT_MODE-32}"; then
9722 shared_archive_member_spec=shr_64
9723 else
9724 shared_archive_member_spec=shr
9725 fi
9726 fi
9727 ;;
9728 *)
9729 with_aix_soname=aix
9730 ;;
9731 esac
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 # This can be used to rebuild libtool when needed
9743 LIBTOOL_DEPS=$ltmain
9744
9745 # Always use our own libtool.
9746 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777 test -z "$LN_S" && LN_S="ln -s"
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792 if test -n "${ZSH_VERSION+set}"; then
9793 setopt NO_GLOB_SUBST
9794 fi
9795
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9797 printf %s "checking for objdir... " >&6; }
9798 if test ${lt_cv_objdir+y}
9799 then :
9800 printf %s "(cached) " >&6
9801 else $as_nop
9802 rm -f .libs 2>/dev/null
9803 mkdir .libs 2>/dev/null
9804 if test -d .libs; then
9805 lt_cv_objdir=.libs
9806 else
9807 # MS-DOS does not allow filenames that begin with a dot.
9808 lt_cv_objdir=_libs
9809 fi
9810 rmdir .libs 2>/dev/null
9811 fi
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9813 printf "%s\n" "$lt_cv_objdir" >&6; }
9814 objdir=$lt_cv_objdir
9815
9816
9817
9818
9819
9820 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9821
9822
9823
9824
9825 case $host_os in
9826 aix3*)
9827 # AIX sometimes has problems with the GCC collect2 program. For some
9828 # reason, if we set the COLLECT_NAMES environment variable, the problems
9829 # vanish in a puff of smoke.
9830 if test set != "${COLLECT_NAMES+set}"; then
9831 COLLECT_NAMES=
9832 export COLLECT_NAMES
9833 fi
9834 ;;
9835 esac
9836
9837 # Global variables:
9838 ofile=libtool
9839 can_build_shared=yes
9840
9841 # All known linkers require a '.a' archive for static linking (except MSVC,
9842 # which needs '.lib').
9843 libext=a
9844
9845 with_gnu_ld=$lt_cv_prog_gnu_ld
9846
9847 old_CC=$CC
9848 old_CFLAGS=$CFLAGS
9849
9850 # Set sane defaults for various variables
9851 test -z "$CC" && CC=cc
9852 test -z "$LTCC" && LTCC=$CC
9853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9854 test -z "$LD" && LD=ld
9855 test -z "$ac_objext" && ac_objext=o
9856
9857 func_cc_basename $compiler
9858 cc_basename=$func_cc_basename_result
9859
9860
9861 # Only perform the check for file, if the check method requires it
9862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9863 case $deplibs_check_method in
9864 file_magic*)
9865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9867 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9868 if test ${lt_cv_path_MAGIC_CMD+y}
9869 then :
9870 printf %s "(cached) " >&6
9871 else $as_nop
9872 case $MAGIC_CMD in
9873 [\\/*] | ?:[\\/]*)
9874 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9875 ;;
9876 *)
9877 lt_save_MAGIC_CMD=$MAGIC_CMD
9878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9880 for ac_dir in $ac_dummy; do
9881 IFS=$lt_save_ifs
9882 test -z "$ac_dir" && ac_dir=.
9883 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9884 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9885 if test -n "$file_magic_test_file"; then
9886 case $deplibs_check_method in
9887 "file_magic "*)
9888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9889 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9891 $EGREP "$file_magic_regex" > /dev/null; then
9892 :
9893 else
9894 cat <<_LT_EOF 1>&2
9895
9896 *** Warning: the command libtool uses to detect shared libraries,
9897 *** $file_magic_cmd, produces output that libtool cannot recognize.
9898 *** The result is that libtool may fail to recognize shared libraries
9899 *** as such. This will affect the creation of libtool libraries that
9900 *** depend on shared libraries, but programs linked with such libtool
9901 *** libraries will work regardless of this problem. Nevertheless, you
9902 *** may want to report the problem to your system manager and/or to
9903 *** bug-libtool@gnu.org
9904
9905 _LT_EOF
9906 fi ;;
9907 esac
9908 fi
9909 break
9910 fi
9911 done
9912 IFS=$lt_save_ifs
9913 MAGIC_CMD=$lt_save_MAGIC_CMD
9914 ;;
9915 esac
9916 fi
9917
9918 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9919 if test -n "$MAGIC_CMD"; then
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9921 printf "%s\n" "$MAGIC_CMD" >&6; }
9922 else
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 printf "%s\n" "no" >&6; }
9925 fi
9926
9927
9928
9929
9930
9931 if test -z "$lt_cv_path_MAGIC_CMD"; then
9932 if test -n "$ac_tool_prefix"; then
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9934 printf %s "checking for file... " >&6; }
9935 if test ${lt_cv_path_MAGIC_CMD+y}
9936 then :
9937 printf %s "(cached) " >&6
9938 else $as_nop
9939 case $MAGIC_CMD in
9940 [\\/*] | ?:[\\/]*)
9941 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9942 ;;
9943 *)
9944 lt_save_MAGIC_CMD=$MAGIC_CMD
9945 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9947 for ac_dir in $ac_dummy; do
9948 IFS=$lt_save_ifs
9949 test -z "$ac_dir" && ac_dir=.
9950 if test -f "$ac_dir/file"; then
9951 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9952 if test -n "$file_magic_test_file"; then
9953 case $deplibs_check_method in
9954 "file_magic "*)
9955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9956 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9958 $EGREP "$file_magic_regex" > /dev/null; then
9959 :
9960 else
9961 cat <<_LT_EOF 1>&2
9962
9963 *** Warning: the command libtool uses to detect shared libraries,
9964 *** $file_magic_cmd, produces output that libtool cannot recognize.
9965 *** The result is that libtool may fail to recognize shared libraries
9966 *** as such. This will affect the creation of libtool libraries that
9967 *** depend on shared libraries, but programs linked with such libtool
9968 *** libraries will work regardless of this problem. Nevertheless, you
9969 *** may want to report the problem to your system manager and/or to
9970 *** bug-libtool@gnu.org
9971
9972 _LT_EOF
9973 fi ;;
9974 esac
9975 fi
9976 break
9977 fi
9978 done
9979 IFS=$lt_save_ifs
9980 MAGIC_CMD=$lt_save_MAGIC_CMD
9981 ;;
9982 esac
9983 fi
9984
9985 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9986 if test -n "$MAGIC_CMD"; then
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9988 printf "%s\n" "$MAGIC_CMD" >&6; }
9989 else
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 printf "%s\n" "no" >&6; }
9992 fi
9993
9994
9995 else
9996 MAGIC_CMD=:
9997 fi
9998 fi
9999
10000 fi
10001 ;;
10002 esac
10003
10004 # Use C for the default configuration in the libtool script
10005
10006 lt_save_CC=$CC
10007 ac_ext=c
10008 ac_cpp='$CPP $CPPFLAGS'
10009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10012
10013
10014 # Source file extension for C test sources.
10015 ac_ext=c
10016
10017 # Object file extension for compiled C test sources.
10018 objext=o
10019 objext=$objext
10020
10021 # Code to be used in simple compile tests
10022 lt_simple_compile_test_code="int some_variable = 0;"
10023
10024 # Code to be used in simple link tests
10025 lt_simple_link_test_code='int main(){return(0);}'
10026
10027
10028
10029
10030
10031
10032
10033 # If no C compiler was specified, use CC.
10034 LTCC=${LTCC-"$CC"}
10035
10036 # If no C compiler flags were specified, use CFLAGS.
10037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10038
10039 # Allow CC to be a program name with arguments.
10040 compiler=$CC
10041
10042 # Save the default compiler, since it gets overwritten when the other
10043 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10044 compiler_DEFAULT=$CC
10045
10046 # save warnings/boilerplate of simple test code
10047 ac_outfile=conftest.$ac_objext
10048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10050 _lt_compiler_boilerplate=`cat conftest.err`
10051 $RM conftest*
10052
10053 ac_outfile=conftest.$ac_objext
10054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10056 _lt_linker_boilerplate=`cat conftest.err`
10057 $RM -r conftest*
10058
10059
10060 ## CAVEAT EMPTOR:
10061 ## There is no encapsulation within the following macros, do not change
10062 ## the running order or otherwise move them around unless you know exactly
10063 ## what you are doing...
10064 if test -n "$compiler"; then
10065
10066 lt_prog_compiler_no_builtin_flag=
10067
10068 if test yes = "$GCC"; then
10069 case $cc_basename in
10070 nvcc*)
10071 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10072 *)
10073 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10074 esac
10075
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10077 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10078 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10079 then :
10080 printf %s "(cached) " >&6
10081 else $as_nop
10082 lt_cv_prog_compiler_rtti_exceptions=no
10083 ac_outfile=conftest.$ac_objext
10084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10085 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10086 # Insert the option either (1) after the last *FLAGS variable, or
10087 # (2) before a word containing "conftest.", or (3) at the end.
10088 # Note that $ac_compile itself does not contain backslashes and begins
10089 # with a dollar sign (not a hyphen), so the echo should work correctly.
10090 # The option is referenced via a variable to avoid confusing sed.
10091 lt_compile=`echo "$ac_compile" | $SED \
10092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10094 -e 's:$: $lt_compiler_flag:'`
10095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10096 (eval "$lt_compile" 2>conftest.err)
10097 ac_status=$?
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 if (exit $ac_status) && test -s "$ac_outfile"; then
10101 # The compiler can only warn and ignore the option if not recognized
10102 # So say no if there are warnings other than the usual output.
10103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10106 lt_cv_prog_compiler_rtti_exceptions=yes
10107 fi
10108 fi
10109 $RM conftest*
10110
10111 fi
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10113 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10114
10115 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10117 else
10118 :
10119 fi
10120
10121 fi
10122
10123
10124
10125
10126
10127
10128 lt_prog_compiler_wl=
10129 lt_prog_compiler_pic=
10130 lt_prog_compiler_static=
10131
10132
10133 if test yes = "$GCC"; then
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_static='-static'
10136
10137 case $host_os in
10138 aix*)
10139 # All AIX code is PIC.
10140 if test ia64 = "$host_cpu"; then
10141 # AIX 5 now supports IA64 processor
10142 lt_prog_compiler_static='-Bstatic'
10143 fi
10144 lt_prog_compiler_pic='-fPIC'
10145 ;;
10146
10147 amigaos*)
10148 case $host_cpu in
10149 powerpc)
10150 # see comment about AmigaOS4 .so support
10151 lt_prog_compiler_pic='-fPIC'
10152 ;;
10153 m68k)
10154 # FIXME: we need at least 68020 code to build shared libraries, but
10155 # adding the '-m68020' flag to GCC prevents building anything better,
10156 # like '-m68040'.
10157 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10158 ;;
10159 esac
10160 ;;
10161
10162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10163 # PIC is the default for these OSes.
10164 ;;
10165
10166 mingw* | cygwin* | pw32* | os2* | cegcc*)
10167 # This hack is so that the source file can tell whether it is being
10168 # built for inclusion in a dll (and should export symbols for example).
10169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10170 # (--disable-auto-import) libraries
10171 lt_prog_compiler_pic='-DDLL_EXPORT'
10172 case $host_os in
10173 os2*)
10174 lt_prog_compiler_static='$wl-static'
10175 ;;
10176 esac
10177 ;;
10178
10179 darwin* | rhapsody*)
10180 # PIC is the default on this platform
10181 # Common symbols not allowed in MH_DYLIB files
10182 lt_prog_compiler_pic='-fno-common'
10183 ;;
10184
10185 haiku*)
10186 # PIC is the default for Haiku.
10187 # The "-static" flag exists, but is broken.
10188 lt_prog_compiler_static=
10189 ;;
10190
10191 hpux*)
10192 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10193 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10194 # sets the default TLS model and affects inlining.
10195 case $host_cpu in
10196 hppa*64*)
10197 # +Z the default
10198 ;;
10199 *)
10200 lt_prog_compiler_pic='-fPIC'
10201 ;;
10202 esac
10203 ;;
10204
10205 interix[3-9]*)
10206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10207 # Instead, we relocate shared libraries at runtime.
10208 ;;
10209
10210 msdosdjgpp*)
10211 # Just because we use GCC doesn't mean we suddenly get shared libraries
10212 # on systems that don't support them.
10213 lt_prog_compiler_can_build_shared=no
10214 enable_shared=no
10215 ;;
10216
10217 *nto* | *qnx*)
10218 # QNX uses GNU C++, but need to define -shared option too, otherwise
10219 # it will coredump.
10220 lt_prog_compiler_pic='-fPIC -shared'
10221 ;;
10222
10223 sysv4*MP*)
10224 if test -d /usr/nec; then
10225 lt_prog_compiler_pic=-Kconform_pic
10226 fi
10227 ;;
10228
10229 *)
10230 lt_prog_compiler_pic='-fPIC'
10231 ;;
10232 esac
10233
10234 case $cc_basename in
10235 nvcc*) # Cuda Compiler Driver 2.2
10236 lt_prog_compiler_wl='-Xlinker '
10237 if test -n "$lt_prog_compiler_pic"; then
10238 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10239 fi
10240 ;;
10241 esac
10242 else
10243 # PORTME Check for flag to pass linker flags through the system compiler.
10244 case $host_os in
10245 aix*)
10246 lt_prog_compiler_wl='-Wl,'
10247 if test ia64 = "$host_cpu"; then
10248 # AIX 5 now supports IA64 processor
10249 lt_prog_compiler_static='-Bstatic'
10250 else
10251 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10252 fi
10253 ;;
10254
10255 darwin* | rhapsody*)
10256 # PIC is the default on this platform
10257 # Common symbols not allowed in MH_DYLIB files
10258 lt_prog_compiler_pic='-fno-common'
10259 case $cc_basename in
10260 nagfor*)
10261 # NAG Fortran compiler
10262 lt_prog_compiler_wl='-Wl,-Wl,,'
10263 lt_prog_compiler_pic='-PIC'
10264 lt_prog_compiler_static='-Bstatic'
10265 ;;
10266 esac
10267 ;;
10268
10269 mingw* | cygwin* | pw32* | os2* | cegcc*)
10270 # This hack is so that the source file can tell whether it is being
10271 # built for inclusion in a dll (and should export symbols for example).
10272 lt_prog_compiler_pic='-DDLL_EXPORT'
10273 case $host_os in
10274 os2*)
10275 lt_prog_compiler_static='$wl-static'
10276 ;;
10277 esac
10278 ;;
10279
10280 hpux9* | hpux10* | hpux11*)
10281 lt_prog_compiler_wl='-Wl,'
10282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10283 # not for PA HP-UX.
10284 case $host_cpu in
10285 hppa*64*|ia64*)
10286 # +Z the default
10287 ;;
10288 *)
10289 lt_prog_compiler_pic='+Z'
10290 ;;
10291 esac
10292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10293 lt_prog_compiler_static='$wl-a ${wl}archive'
10294 ;;
10295
10296 irix5* | irix6* | nonstopux*)
10297 lt_prog_compiler_wl='-Wl,'
10298 # PIC (with -KPIC) is the default.
10299 lt_prog_compiler_static='-non_shared'
10300 ;;
10301
10302 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10303 case $cc_basename in
10304 # old Intel for x86_64, which still supported -KPIC.
10305 ecc*)
10306 lt_prog_compiler_wl='-Wl,'
10307 lt_prog_compiler_pic='-KPIC'
10308 lt_prog_compiler_static='-static'
10309 ;;
10310 # flang / f18. f95 an alias for gfortran or flang on Debian
10311 flang* | f18* | f95*)
10312 lt_prog_compiler_wl='-Wl,'
10313 lt_prog_compiler_pic='-fPIC'
10314 lt_prog_compiler_static='-static'
10315 ;;
10316 # icc used to be incompatible with GCC.
10317 # ICC 10 doesn't accept -KPIC any more.
10318 icc* | ifort*)
10319 lt_prog_compiler_wl='-Wl,'
10320 lt_prog_compiler_pic='-fPIC'
10321 lt_prog_compiler_static='-static'
10322 ;;
10323 # Lahey Fortran 8.1.
10324 lf95*)
10325 lt_prog_compiler_wl='-Wl,'
10326 lt_prog_compiler_pic='--shared'
10327 lt_prog_compiler_static='--static'
10328 ;;
10329 nagfor*)
10330 # NAG Fortran compiler
10331 lt_prog_compiler_wl='-Wl,-Wl,,'
10332 lt_prog_compiler_pic='-PIC'
10333 lt_prog_compiler_static='-Bstatic'
10334 ;;
10335 tcc*)
10336 # Fabrice Bellard et al's Tiny C Compiler
10337 lt_prog_compiler_wl='-Wl,'
10338 lt_prog_compiler_pic='-fPIC'
10339 lt_prog_compiler_static='-static'
10340 ;;
10341 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10342 # Portland Group compilers (*not* the Pentium gcc compiler,
10343 # which looks to be a dead project)
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-fpic'
10346 lt_prog_compiler_static='-Bstatic'
10347 ;;
10348 ccc*)
10349 lt_prog_compiler_wl='-Wl,'
10350 # All Alpha code is PIC.
10351 lt_prog_compiler_static='-non_shared'
10352 ;;
10353 xl* | bgxl* | bgf* | mpixl*)
10354 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10355 lt_prog_compiler_wl='-Wl,'
10356 lt_prog_compiler_pic='-qpic'
10357 lt_prog_compiler_static='-qstaticlink'
10358 ;;
10359 *)
10360 case `$CC -V 2>&1 | sed 5q` in
10361 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10362 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10363 lt_prog_compiler_pic='-KPIC'
10364 lt_prog_compiler_static='-Bstatic'
10365 lt_prog_compiler_wl=''
10366 ;;
10367 *Sun\ F* | *Sun*Fortran*)
10368 lt_prog_compiler_pic='-KPIC'
10369 lt_prog_compiler_static='-Bstatic'
10370 lt_prog_compiler_wl='-Qoption ld '
10371 ;;
10372 *Sun\ C*)
10373 # Sun C 5.9
10374 lt_prog_compiler_pic='-KPIC'
10375 lt_prog_compiler_static='-Bstatic'
10376 lt_prog_compiler_wl='-Wl,'
10377 ;;
10378 *Intel*\ [CF]*Compiler*)
10379 lt_prog_compiler_wl='-Wl,'
10380 lt_prog_compiler_pic='-fPIC'
10381 lt_prog_compiler_static='-static'
10382 ;;
10383 *Portland\ Group*)
10384 lt_prog_compiler_wl='-Wl,'
10385 lt_prog_compiler_pic='-fpic'
10386 lt_prog_compiler_static='-Bstatic'
10387 ;;
10388 esac
10389 ;;
10390 esac
10391 ;;
10392
10393 newsos6)
10394 lt_prog_compiler_pic='-KPIC'
10395 lt_prog_compiler_static='-Bstatic'
10396 ;;
10397
10398 *nto* | *qnx*)
10399 # QNX uses GNU C++, but need to define -shared option too, otherwise
10400 # it will coredump.
10401 lt_prog_compiler_pic='-fPIC -shared'
10402 ;;
10403
10404 osf3* | osf4* | osf5*)
10405 lt_prog_compiler_wl='-Wl,'
10406 # All OSF/1 code is PIC.
10407 lt_prog_compiler_static='-non_shared'
10408 ;;
10409
10410 rdos*)
10411 lt_prog_compiler_static='-non_shared'
10412 ;;
10413
10414 solaris*)
10415 lt_prog_compiler_pic='-KPIC'
10416 lt_prog_compiler_static='-Bstatic'
10417 case $cc_basename in
10418 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10419 lt_prog_compiler_wl='-Qoption ld ';;
10420 *)
10421 lt_prog_compiler_wl='-Wl,';;
10422 esac
10423 ;;
10424
10425 sunos4*)
10426 lt_prog_compiler_wl='-Qoption ld '
10427 lt_prog_compiler_pic='-PIC'
10428 lt_prog_compiler_static='-Bstatic'
10429 ;;
10430
10431 sysv4 | sysv4.2uw2* | sysv4.3*)
10432 lt_prog_compiler_wl='-Wl,'
10433 lt_prog_compiler_pic='-KPIC'
10434 lt_prog_compiler_static='-Bstatic'
10435 ;;
10436
10437 sysv4*MP*)
10438 if test -d /usr/nec; then
10439 lt_prog_compiler_pic='-Kconform_pic'
10440 lt_prog_compiler_static='-Bstatic'
10441 fi
10442 ;;
10443
10444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10445 lt_prog_compiler_wl='-Wl,'
10446 lt_prog_compiler_pic='-KPIC'
10447 lt_prog_compiler_static='-Bstatic'
10448 ;;
10449
10450 unicos*)
10451 lt_prog_compiler_wl='-Wl,'
10452 lt_prog_compiler_can_build_shared=no
10453 ;;
10454
10455 uts4*)
10456 lt_prog_compiler_pic='-pic'
10457 lt_prog_compiler_static='-Bstatic'
10458 ;;
10459
10460 *)
10461 lt_prog_compiler_can_build_shared=no
10462 ;;
10463 esac
10464 fi
10465
10466 case $host_os in
10467 # For platforms that do not support PIC, -DPIC is meaningless:
10468 *djgpp*)
10469 lt_prog_compiler_pic=
10470 ;;
10471 *)
10472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10473 ;;
10474 esac
10475
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10477 printf %s "checking for $compiler option to produce PIC... " >&6; }
10478 if test ${lt_cv_prog_compiler_pic+y}
10479 then :
10480 printf %s "(cached) " >&6
10481 else $as_nop
10482 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10483 fi
10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10485 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10486 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10487
10488 #
10489 # Check to make sure the PIC flag actually works.
10490 #
10491 if test -n "$lt_prog_compiler_pic"; then
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10493 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10494 if test ${lt_cv_prog_compiler_pic_works+y}
10495 then :
10496 printf %s "(cached) " >&6
10497 else $as_nop
10498 lt_cv_prog_compiler_pic_works=no
10499 ac_outfile=conftest.$ac_objext
10500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10501 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10502 # Insert the option either (1) after the last *FLAGS variable, or
10503 # (2) before a word containing "conftest.", or (3) at the end.
10504 # Note that $ac_compile itself does not contain backslashes and begins
10505 # with a dollar sign (not a hyphen), so the echo should work correctly.
10506 # The option is referenced via a variable to avoid confusing sed.
10507 lt_compile=`echo "$ac_compile" | $SED \
10508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10510 -e 's:$: $lt_compiler_flag:'`
10511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10512 (eval "$lt_compile" 2>conftest.err)
10513 ac_status=$?
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 if (exit $ac_status) && test -s "$ac_outfile"; then
10517 # The compiler can only warn and ignore the option if not recognized
10518 # So say no if there are warnings other than the usual output.
10519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10522 lt_cv_prog_compiler_pic_works=yes
10523 fi
10524 fi
10525 $RM conftest*
10526
10527 fi
10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10529 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10530
10531 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10532 case $lt_prog_compiler_pic in
10533 "" | " "*) ;;
10534 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10535 esac
10536 else
10537 lt_prog_compiler_pic=
10538 lt_prog_compiler_can_build_shared=no
10539 fi
10540
10541 fi
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 #
10554 # Check to make sure the static flag actually works.
10555 #
10556 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10558 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10559 if test ${lt_cv_prog_compiler_static_works+y}
10560 then :
10561 printf %s "(cached) " >&6
10562 else $as_nop
10563 lt_cv_prog_compiler_static_works=no
10564 save_LDFLAGS=$LDFLAGS
10565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10568 # The linker can only warn and ignore the option if not recognized
10569 # So say no if there are warnings
10570 if test -s conftest.err; then
10571 # Append any errors to the config.log.
10572 cat conftest.err 1>&5
10573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10575 if diff conftest.exp conftest.er2 >/dev/null; then
10576 lt_cv_prog_compiler_static_works=yes
10577 fi
10578 else
10579 lt_cv_prog_compiler_static_works=yes
10580 fi
10581 fi
10582 $RM -r conftest*
10583 LDFLAGS=$save_LDFLAGS
10584
10585 fi
10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10587 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10588
10589 if test yes = "$lt_cv_prog_compiler_static_works"; then
10590 :
10591 else
10592 lt_prog_compiler_static=
10593 fi
10594
10595
10596
10597
10598
10599
10600
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10602 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10603 if test ${lt_cv_prog_compiler_c_o+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else $as_nop
10607 lt_cv_prog_compiler_c_o=no
10608 $RM -r conftest 2>/dev/null
10609 mkdir conftest
10610 cd conftest
10611 mkdir out
10612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10613
10614 lt_compiler_flag="-o out/conftest2.$ac_objext"
10615 # Insert the option either (1) after the last *FLAGS variable, or
10616 # (2) before a word containing "conftest.", or (3) at the end.
10617 # Note that $ac_compile itself does not contain backslashes and begins
10618 # with a dollar sign (not a hyphen), so the echo should work correctly.
10619 lt_compile=`echo "$ac_compile" | $SED \
10620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10622 -e 's:$: $lt_compiler_flag:'`
10623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10624 (eval "$lt_compile" 2>out/conftest.err)
10625 ac_status=$?
10626 cat out/conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10629 then
10630 # The compiler can only warn and ignore the option if not recognized
10631 # So say no if there are warnings
10632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10635 lt_cv_prog_compiler_c_o=yes
10636 fi
10637 fi
10638 chmod u+w . 2>&5
10639 $RM conftest*
10640 # SGI C++ compiler will create directory out/ii_files/ for
10641 # template instantiation
10642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10643 $RM out/* && rmdir out
10644 cd ..
10645 $RM -r conftest
10646 $RM conftest*
10647
10648 fi
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10650 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10651
10652
10653
10654
10655
10656
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10658 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10659 if test ${lt_cv_prog_compiler_c_o+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else $as_nop
10663 lt_cv_prog_compiler_c_o=no
10664 $RM -r conftest 2>/dev/null
10665 mkdir conftest
10666 cd conftest
10667 mkdir out
10668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10669
10670 lt_compiler_flag="-o out/conftest2.$ac_objext"
10671 # Insert the option either (1) after the last *FLAGS variable, or
10672 # (2) before a word containing "conftest.", or (3) at the end.
10673 # Note that $ac_compile itself does not contain backslashes and begins
10674 # with a dollar sign (not a hyphen), so the echo should work correctly.
10675 lt_compile=`echo "$ac_compile" | $SED \
10676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10678 -e 's:$: $lt_compiler_flag:'`
10679 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10680 (eval "$lt_compile" 2>out/conftest.err)
10681 ac_status=$?
10682 cat out/conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10685 then
10686 # The compiler can only warn and ignore the option if not recognized
10687 # So say no if there are warnings
10688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10689 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10690 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10691 lt_cv_prog_compiler_c_o=yes
10692 fi
10693 fi
10694 chmod u+w . 2>&5
10695 $RM conftest*
10696 # SGI C++ compiler will create directory out/ii_files/ for
10697 # template instantiation
10698 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10699 $RM out/* && rmdir out
10700 cd ..
10701 $RM -r conftest
10702 $RM conftest*
10703
10704 fi
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10706 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10707
10708
10709
10710
10711 hard_links=nottested
10712 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10713 # do not overwrite the value of need_locks provided by the user
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10715 printf %s "checking if we can lock with hard links... " >&6; }
10716 hard_links=yes
10717 $RM conftest*
10718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10719 touch conftest.a
10720 ln conftest.a conftest.b 2>&5 || hard_links=no
10721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10723 printf "%s\n" "$hard_links" >&6; }
10724 if test no = "$hard_links"; then
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10726 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10727 need_locks=warn
10728 fi
10729 else
10730 need_locks=no
10731 fi
10732
10733
10734
10735
10736
10737
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10739 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10740
10741 runpath_var=
10742 allow_undefined_flag=
10743 always_export_symbols=no
10744 archive_cmds=
10745 archive_expsym_cmds=
10746 compiler_needs_object=no
10747 enable_shared_with_static_runtimes=no
10748 export_dynamic_flag_spec=
10749 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10750 hardcode_automatic=no
10751 hardcode_direct=no
10752 hardcode_direct_absolute=no
10753 hardcode_libdir_flag_spec=
10754 hardcode_libdir_separator=
10755 hardcode_minus_L=no
10756 hardcode_shlibpath_var=unsupported
10757 inherit_rpath=no
10758 link_all_deplibs=unknown
10759 module_cmds=
10760 module_expsym_cmds=
10761 old_archive_from_new_cmds=
10762 old_archive_from_expsyms_cmds=
10763 thread_safe_flag_spec=
10764 whole_archive_flag_spec=
10765 # include_expsyms should be a list of space-separated symbols to be *always*
10766 # included in the symbol list
10767 include_expsyms=
10768 # exclude_expsyms can be an extended regexp of symbols to exclude
10769 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10770 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10771 # as well as any symbol that contains 'd'.
10772 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10774 # platforms (ab)use it in PIC code, but their linkers get confused if
10775 # the symbol is explicitly referenced. Since portable code cannot
10776 # rely on this symbol name, it's probably fine to never include it in
10777 # preloaded symbol tables.
10778 # Exclude shared library initialization/finalization symbols.
10779 extract_expsyms_cmds=
10780
10781 case $host_os in
10782 cygwin* | mingw* | pw32* | cegcc*)
10783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10784 # When not using gcc, we currently assume that we are using
10785 # Microsoft Visual C++.
10786 if test yes != "$GCC"; then
10787 with_gnu_ld=no
10788 fi
10789 ;;
10790 interix*)
10791 # we just hope/assume this is gcc and not c89 (= MSVC++)
10792 with_gnu_ld=yes
10793 ;;
10794 openbsd* | bitrig*)
10795 with_gnu_ld=no
10796 ;;
10797 linux* | k*bsd*-gnu | gnu*)
10798 link_all_deplibs=no
10799 ;;
10800 esac
10801
10802 ld_shlibs=yes
10803
10804 # On some targets, GNU ld is compatible enough with the native linker
10805 # that we're better off using the native interface for both.
10806 lt_use_gnu_ld_interface=no
10807 if test yes = "$with_gnu_ld"; then
10808 case $host_os in
10809 aix*)
10810 # The AIX port of GNU ld has always aspired to compatibility
10811 # with the native linker. However, as the warning in the GNU ld
10812 # block says, versions before 2.19.5* couldn't really create working
10813 # shared libraries, regardless of the interface used.
10814 case `$LD -v 2>&1` in
10815 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10816 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10817 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10818 *)
10819 lt_use_gnu_ld_interface=yes
10820 ;;
10821 esac
10822 ;;
10823 *)
10824 lt_use_gnu_ld_interface=yes
10825 ;;
10826 esac
10827 fi
10828
10829 if test yes = "$lt_use_gnu_ld_interface"; then
10830 # If archive_cmds runs LD, not CC, wlarc should be empty
10831 wlarc='$wl'
10832
10833 # Set some defaults for GNU ld with shared library support. These
10834 # are reset later if shared libraries are not supported. Putting them
10835 # here allows them to be overridden if necessary.
10836 runpath_var=LD_RUN_PATH
10837 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10838 export_dynamic_flag_spec='$wl--export-dynamic'
10839 # ancient GNU ld didn't support --whole-archive et. al.
10840 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10841 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10842 else
10843 whole_archive_flag_spec=
10844 fi
10845 supports_anon_versioning=no
10846 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10847 *GNU\ gold*) supports_anon_versioning=yes ;;
10848 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10849 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10850 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10851 *\ 2.11.*) ;; # other 2.11 versions
10852 *) supports_anon_versioning=yes ;;
10853 esac
10854
10855 # See if GNU ld supports shared libraries.
10856 case $host_os in
10857 aix[3-9]*)
10858 # On AIX/PPC, the GNU linker is very broken
10859 if test ia64 != "$host_cpu"; then
10860 ld_shlibs=no
10861 cat <<_LT_EOF 1>&2
10862
10863 *** Warning: the GNU linker, at least up to release 2.19, is reported
10864 *** to be unable to reliably create shared libraries on AIX.
10865 *** Therefore, libtool is disabling shared libraries support. If you
10866 *** really care for shared libraries, you may want to install binutils
10867 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10868 *** You will then need to restart the configuration process.
10869
10870 _LT_EOF
10871 fi
10872 ;;
10873
10874 amigaos*)
10875 case $host_cpu in
10876 powerpc)
10877 # see comment about AmigaOS4 .so support
10878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10879 archive_expsym_cmds=''
10880 ;;
10881 m68k)
10882 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)'
10883 hardcode_libdir_flag_spec='-L$libdir'
10884 hardcode_minus_L=yes
10885 ;;
10886 esac
10887 ;;
10888
10889 beos*)
10890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10891 allow_undefined_flag=unsupported
10892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10893 # support --undefined. This deserves some investigation. FIXME
10894 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10895 else
10896 ld_shlibs=no
10897 fi
10898 ;;
10899
10900 cygwin* | mingw* | pw32* | cegcc*)
10901 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10902 # as there is no search path for DLLs.
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 export_dynamic_flag_spec='$wl--export-all-symbols'
10905 allow_undefined_flag=unsupported
10906 always_export_symbols=no
10907 enable_shared_with_static_runtimes=yes
10908 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'
10909 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10910
10911 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10913 # If the export-symbols file already is a .def file, use it as
10914 # is; otherwise, prepend EXPORTS...
10915 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10916 cp $export_symbols $output_objdir/$soname.def;
10917 else
10918 echo EXPORTS > $output_objdir/$soname.def;
10919 cat $export_symbols >> $output_objdir/$soname.def;
10920 fi~
10921 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10922 else
10923 ld_shlibs=no
10924 fi
10925 ;;
10926
10927 haiku*)
10928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10929 link_all_deplibs=yes
10930 ;;
10931
10932 os2*)
10933 hardcode_libdir_flag_spec='-L$libdir'
10934 hardcode_minus_L=yes
10935 allow_undefined_flag=unsupported
10936 shrext_cmds=.dll
10937 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10938 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10939 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10940 $ECHO EXPORTS >> $output_objdir/$libname.def~
10941 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10942 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10943 emximp -o $lib $output_objdir/$libname.def'
10944 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10945 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10946 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10947 $ECHO EXPORTS >> $output_objdir/$libname.def~
10948 prefix_cmds="$SED"~
10949 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10950 prefix_cmds="$prefix_cmds -e 1d";
10951 fi~
10952 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10953 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10954 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10955 emximp -o $lib $output_objdir/$libname.def'
10956 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10957 enable_shared_with_static_runtimes=yes
10958 ;;
10959
10960 interix[3-9]*)
10961 hardcode_direct=no
10962 hardcode_shlibpath_var=no
10963 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10964 export_dynamic_flag_spec='$wl-E'
10965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10966 # Instead, shared libraries are loaded at an image base (0x10000000 by
10967 # default) and relocated if they conflict, which is a slow very memory
10968 # consuming and fragmenting process. To avoid this, we pick a random,
10969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10972 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'
10973 ;;
10974
10975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10976 tmp_diet=no
10977 if test linux-dietlibc = "$host_os"; then
10978 case $cc_basename in
10979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10980 esac
10981 fi
10982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10983 && test no = "$tmp_diet"
10984 then
10985 tmp_addflag=' $pic_flag'
10986 tmp_sharedflag='-shared'
10987 case $cc_basename,$host_cpu in
10988 pgcc*) # Portland Group C compiler
10989 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'
10990 tmp_addflag=' $pic_flag'
10991 ;;
10992 pgf77* | pgf90* | pgf95* | pgfortran*)
10993 # Portland Group f77 and f90 compilers
10994 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'
10995 tmp_addflag=' $pic_flag -Mnomain' ;;
10996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10997 tmp_addflag=' -i_dynamic' ;;
10998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10999 tmp_addflag=' -i_dynamic -nofor_main' ;;
11000 ifc* | ifort*) # Intel Fortran compiler
11001 tmp_addflag=' -nofor_main' ;;
11002 lf95*) # Lahey Fortran 8.1
11003 whole_archive_flag_spec=
11004 tmp_sharedflag='--shared' ;;
11005 nagfor*) # NAGFOR 5.3
11006 tmp_sharedflag='-Wl,-shared' ;;
11007 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11008 tmp_sharedflag='-qmkshrobj'
11009 tmp_addflag= ;;
11010 nvcc*) # Cuda Compiler Driver 2.2
11011 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'
11012 compiler_needs_object=yes
11013 ;;
11014 esac
11015 case `$CC -V 2>&1 | sed 5q` in
11016 *Sun\ C*) # Sun C 5.9
11017 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'
11018 compiler_needs_object=yes
11019 tmp_sharedflag='-G' ;;
11020 *Sun\ F*) # Sun Fortran 8.3
11021 tmp_sharedflag='-G' ;;
11022 esac
11023 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11024
11025 if test yes = "$supports_anon_versioning"; then
11026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11028 echo "local: *; };" >> $output_objdir/$libname.ver~
11029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11030 fi
11031
11032 case $cc_basename in
11033 tcc*)
11034 export_dynamic_flag_spec='-rdynamic'
11035 ;;
11036 xlf* | bgf* | bgxlf* | mpixlf*)
11037 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11038 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11039 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11040 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11041 if test yes = "$supports_anon_versioning"; then
11042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11044 echo "local: *; };" >> $output_objdir/$libname.ver~
11045 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11046 fi
11047 ;;
11048 esac
11049 else
11050 ld_shlibs=no
11051 fi
11052 ;;
11053
11054 netbsd* | netbsdelf*-gnu)
11055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11056 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11057 wlarc=
11058 else
11059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11060 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11061 fi
11062 ;;
11063
11064 solaris*)
11065 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11066 ld_shlibs=no
11067 cat <<_LT_EOF 1>&2
11068
11069 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11070 *** create shared libraries on Solaris systems. Therefore, libtool
11071 *** is disabling shared libraries support. We urge you to upgrade GNU
11072 *** binutils to release 2.9.1 or newer. Another option is to modify
11073 *** your PATH or compiler configuration so that the native linker is
11074 *** used, and then restart.
11075
11076 _LT_EOF
11077 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11078 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11079 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11080 else
11081 ld_shlibs=no
11082 fi
11083 ;;
11084
11085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11086 case `$LD -v 2>&1` in
11087 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11088 ld_shlibs=no
11089 cat <<_LT_EOF 1>&2
11090
11091 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11092 *** reliably create shared libraries on SCO systems. Therefore, libtool
11093 *** is disabling shared libraries support. We urge you to upgrade GNU
11094 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11095 *** your PATH or compiler configuration so that the native linker is
11096 *** used, and then restart.
11097
11098 _LT_EOF
11099 ;;
11100 *)
11101 # For security reasons, it is highly recommended that you always
11102 # use absolute paths for naming shared libraries, and exclude the
11103 # DT_RUNPATH tag from executables and libraries. But doing so
11104 # requires that you compile everything twice, which is a pain.
11105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11109 else
11110 ld_shlibs=no
11111 fi
11112 ;;
11113 esac
11114 ;;
11115
11116 sunos4*)
11117 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11118 wlarc=
11119 hardcode_direct=yes
11120 hardcode_shlibpath_var=no
11121 ;;
11122
11123 *)
11124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11125 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11127 else
11128 ld_shlibs=no
11129 fi
11130 ;;
11131 esac
11132
11133 if test no = "$ld_shlibs"; then
11134 runpath_var=
11135 hardcode_libdir_flag_spec=
11136 export_dynamic_flag_spec=
11137 whole_archive_flag_spec=
11138 fi
11139 else
11140 # PORTME fill in a description of your system's linker (not GNU ld)
11141 case $host_os in
11142 aix3*)
11143 allow_undefined_flag=unsupported
11144 always_export_symbols=yes
11145 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'
11146 # Note: this linker hardcodes the directories in LIBPATH if there
11147 # are no directories specified by -L.
11148 hardcode_minus_L=yes
11149 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11150 # Neither direct hardcoding nor static linking is supported with a
11151 # broken collect2.
11152 hardcode_direct=unsupported
11153 fi
11154 ;;
11155
11156 aix[4-9]*)
11157 if test ia64 = "$host_cpu"; then
11158 # On IA64, the linker does run time linking by default, so we don't
11159 # have to do anything special.
11160 aix_use_runtimelinking=no
11161 exp_sym_flag='-Bexport'
11162 no_entry_flag=
11163 else
11164 # If we're using GNU nm, then we don't want the "-C" option.
11165 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11166 # Without the "-l" option, or with the "-B" option, AIX nm treats
11167 # weak defined symbols like other global defined symbols, whereas
11168 # GNU nm marks them as "W".
11169 # While the 'weak' keyword is ignored in the Export File, we need
11170 # it in the Import File for the 'aix-soname' feature, so we have
11171 # to replace the "-B" option with "-P" for AIX nm.
11172 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11173 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'
11174 else
11175 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'
11176 fi
11177 aix_use_runtimelinking=no
11178
11179 # Test if we are trying to use run time linking or normal
11180 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11181 # have runtime linking enabled, and use it for executables.
11182 # For shared libraries, we enable/disable runtime linking
11183 # depending on the kind of the shared library created -
11184 # when "with_aix_soname,aix_use_runtimelinking" is:
11185 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11186 # "aix,yes" lib.so shared, rtl:yes, for executables
11187 # lib.a static archive
11188 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11189 # lib.a(lib.so.V) shared, rtl:no, for executables
11190 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11191 # lib.a(lib.so.V) shared, rtl:no
11192 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11193 # lib.a static archive
11194 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11195 for ld_flag in $LDFLAGS; do
11196 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11197 aix_use_runtimelinking=yes
11198 break
11199 fi
11200 done
11201 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11202 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11203 # so we don't have lib.a shared libs to link our executables.
11204 # We have to force runtime linking in this case.
11205 aix_use_runtimelinking=yes
11206 LDFLAGS="$LDFLAGS -Wl,-brtl"
11207 fi
11208 ;;
11209 esac
11210
11211 exp_sym_flag='-bexport'
11212 no_entry_flag='-bnoentry'
11213 fi
11214
11215 # When large executables or shared objects are built, AIX ld can
11216 # have problems creating the table of contents. If linking a library
11217 # or program results in "error TOC overflow" add -mminimal-toc to
11218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11220
11221 archive_cmds=''
11222 hardcode_direct=yes
11223 hardcode_direct_absolute=yes
11224 hardcode_libdir_separator=':'
11225 link_all_deplibs=yes
11226 file_list_spec='$wl-f,'
11227 case $with_aix_soname,$aix_use_runtimelinking in
11228 aix,*) ;; # traditional, no import file
11229 svr4,* | *,yes) # use import file
11230 # The Import File defines what to hardcode.
11231 hardcode_direct=no
11232 hardcode_direct_absolute=no
11233 ;;
11234 esac
11235
11236 if test yes = "$GCC"; then
11237 case $host_os in aix4.[012]|aix4.[012].*)
11238 # We only want to do this on AIX 4.2 and lower, the check
11239 # below for broken collect2 doesn't work under 4.3+
11240 collect2name=`$CC -print-prog-name=collect2`
11241 if test -f "$collect2name" &&
11242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11243 then
11244 # We have reworked collect2
11245 :
11246 else
11247 # We have old collect2
11248 hardcode_direct=unsupported
11249 # It fails to find uninstalled libraries when the uninstalled
11250 # path is not listed in the libpath. Setting hardcode_minus_L
11251 # to unsupported forces relinking
11252 hardcode_minus_L=yes
11253 hardcode_libdir_flag_spec='-L$libdir'
11254 hardcode_libdir_separator=
11255 fi
11256 ;;
11257 esac
11258 shared_flag='-shared'
11259 if test yes = "$aix_use_runtimelinking"; then
11260 shared_flag="$shared_flag "'$wl-G'
11261 fi
11262 # Need to ensure runtime linking is disabled for the traditional
11263 # shared library, or the linker may eventually find shared libraries
11264 # /with/ Import File - we do not want to mix them.
11265 shared_flag_aix='-shared'
11266 shared_flag_svr4='-shared $wl-G'
11267 else
11268 # not using gcc
11269 if test ia64 = "$host_cpu"; then
11270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11271 # chokes on -Wl,-G. The following line is correct:
11272 shared_flag='-G'
11273 else
11274 if test yes = "$aix_use_runtimelinking"; then
11275 shared_flag='$wl-G'
11276 else
11277 shared_flag='$wl-bM:SRE'
11278 fi
11279 shared_flag_aix='$wl-bM:SRE'
11280 shared_flag_svr4='$wl-G'
11281 fi
11282 fi
11283
11284 export_dynamic_flag_spec='$wl-bexpall'
11285 # It seems that -bexpall does not export symbols beginning with
11286 # underscore (_), so it is better to generate a list of symbols to export.
11287 always_export_symbols=yes
11288 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11289 # Warning - without using the other runtime loading flags (-brtl),
11290 # -berok will link without error, but may produce a broken library.
11291 allow_undefined_flag='-berok'
11292 # Determine the default libpath from the value encoded in an
11293 # empty executable.
11294 if test set = "${lt_cv_aix_libpath+set}"; then
11295 aix_libpath=$lt_cv_aix_libpath
11296 else
11297 if test ${lt_cv_aix_libpath_+y}
11298 then :
11299 printf %s "(cached) " >&6
11300 else $as_nop
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303
11304 int
11305 main (void)
11306 {
11307
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"
11313 then :
11314
11315 lt_aix_libpath_sed='
11316 /Import File Strings/,/^$/ {
11317 /^0/ {
11318 s/^0 *\([^ ]*\) *$/\1/
11319 p
11320 }
11321 }'
11322 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11323 # Check for a 64-bit object if we didn't find anything.
11324 if test -z "$lt_cv_aix_libpath_"; then
11325 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11326 fi
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11329 conftest$ac_exeext conftest.$ac_ext
11330 if test -z "$lt_cv_aix_libpath_"; then
11331 lt_cv_aix_libpath_=/usr/lib:/lib
11332 fi
11333
11334 fi
11335
11336 aix_libpath=$lt_cv_aix_libpath_
11337 fi
11338
11339 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11340 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
11341 else
11342 if test ia64 = "$host_cpu"; then
11343 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11344 allow_undefined_flag="-z nodefs"
11345 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"
11346 else
11347 # Determine the default libpath from the value encoded in an
11348 # empty executable.
11349 if test set = "${lt_cv_aix_libpath+set}"; then
11350 aix_libpath=$lt_cv_aix_libpath
11351 else
11352 if test ${lt_cv_aix_libpath_+y}
11353 then :
11354 printf %s "(cached) " >&6
11355 else $as_nop
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358
11359 int
11360 main (void)
11361 {
11362
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"
11368 then :
11369
11370 lt_aix_libpath_sed='
11371 /Import File Strings/,/^$/ {
11372 /^0/ {
11373 s/^0 *\([^ ]*\) *$/\1/
11374 p
11375 }
11376 }'
11377 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11378 # Check for a 64-bit object if we didn't find anything.
11379 if test -z "$lt_cv_aix_libpath_"; then
11380 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11381 fi
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11384 conftest$ac_exeext conftest.$ac_ext
11385 if test -z "$lt_cv_aix_libpath_"; then
11386 lt_cv_aix_libpath_=/usr/lib:/lib
11387 fi
11388
11389 fi
11390
11391 aix_libpath=$lt_cv_aix_libpath_
11392 fi
11393
11394 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11395 # Warning - without using the other run time loading flags,
11396 # -berok will link without error, but may produce a broken library.
11397 no_undefined_flag=' $wl-bernotok'
11398 allow_undefined_flag=' $wl-berok'
11399 if test yes = "$with_gnu_ld"; then
11400 # We only use this code for GNU lds that support --whole-archive.
11401 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11402 else
11403 # Exported symbols can be pulled into shared objects from archives
11404 whole_archive_flag_spec='$convenience'
11405 fi
11406 archive_cmds_need_lc=yes
11407 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11408 # -brtl affects multiple linker settings, -berok does not and is overridden later
11409 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11410 if test svr4 != "$with_aix_soname"; then
11411 # This is similar to how AIX traditionally builds its shared libraries.
11412 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'
11413 fi
11414 if test aix != "$with_aix_soname"; then
11415 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'
11416 else
11417 # used by -dlpreopen to get the symbols
11418 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11419 fi
11420 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11421 fi
11422 fi
11423 ;;
11424
11425 amigaos*)
11426 case $host_cpu in
11427 powerpc)
11428 # see comment about AmigaOS4 .so support
11429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11430 archive_expsym_cmds=''
11431 ;;
11432 m68k)
11433 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)'
11434 hardcode_libdir_flag_spec='-L$libdir'
11435 hardcode_minus_L=yes
11436 ;;
11437 esac
11438 ;;
11439
11440 bsdi[45]*)
11441 export_dynamic_flag_spec=-rdynamic
11442 ;;
11443
11444 cygwin* | mingw* | pw32* | cegcc*)
11445 # When not using gcc, we currently assume that we are using
11446 # Microsoft Visual C++.
11447 # hardcode_libdir_flag_spec is actually meaningless, as there is
11448 # no search path for DLLs.
11449 case $cc_basename in
11450 cl*)
11451 # Native MSVC
11452 hardcode_libdir_flag_spec=' '
11453 allow_undefined_flag=unsupported
11454 always_export_symbols=yes
11455 file_list_spec='@'
11456 # Tell ltmain to make .lib files, not .a files.
11457 libext=lib
11458 # Tell ltmain to make .dll files, not .so files.
11459 shrext_cmds=.dll
11460 # FIXME: Setting linknames here is a bad hack.
11461 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11462 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11463 cp "$export_symbols" "$output_objdir/$soname.def";
11464 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11465 else
11466 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11467 fi~
11468 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11469 linknames='
11470 # The linker will not automatically build a static lib if we build a DLL.
11471 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11472 enable_shared_with_static_runtimes=yes
11473 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11475 # Don't use ranlib
11476 old_postinstall_cmds='chmod 644 $oldlib'
11477 postlink_cmds='lt_outputfile="@OUTPUT@"~
11478 lt_tool_outputfile="@TOOL_OUTPUT@"~
11479 case $lt_outputfile in
11480 *.exe|*.EXE) ;;
11481 *)
11482 lt_outputfile=$lt_outputfile.exe
11483 lt_tool_outputfile=$lt_tool_outputfile.exe
11484 ;;
11485 esac~
11486 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11487 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11488 $RM "$lt_outputfile.manifest";
11489 fi'
11490 ;;
11491 *)
11492 # Assume MSVC wrapper
11493 hardcode_libdir_flag_spec=' '
11494 allow_undefined_flag=unsupported
11495 # Tell ltmain to make .lib files, not .a files.
11496 libext=lib
11497 # Tell ltmain to make .dll files, not .so files.
11498 shrext_cmds=.dll
11499 # FIXME: Setting linknames here is a bad hack.
11500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11501 # The linker will automatically build a .lib file if we build a DLL.
11502 old_archive_from_new_cmds='true'
11503 # FIXME: Should let the user specify the lib program.
11504 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11505 enable_shared_with_static_runtimes=yes
11506 ;;
11507 esac
11508 ;;
11509
11510 darwin* | rhapsody*)
11511
11512
11513 archive_cmds_need_lc=no
11514 hardcode_direct=no
11515 hardcode_automatic=yes
11516 hardcode_shlibpath_var=unsupported
11517 if test yes = "$lt_cv_ld_force_load"; then
11518 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\"`'
11519
11520 else
11521 whole_archive_flag_spec=''
11522 fi
11523 link_all_deplibs=yes
11524 allow_undefined_flag=$_lt_dar_allow_undefined
11525 case $cc_basename in
11526 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11527 *) _lt_dar_can_shared=$GCC ;;
11528 esac
11529 if test yes = "$_lt_dar_can_shared"; then
11530 output_verbose_link_cmd=func_echo_all
11531 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11532 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11533 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"
11534 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"
11535
11536 else
11537 ld_shlibs=no
11538 fi
11539
11540 ;;
11541
11542 dgux*)
11543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11544 hardcode_libdir_flag_spec='-L$libdir'
11545 hardcode_shlibpath_var=no
11546 ;;
11547
11548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11549 # support. Future versions do this automatically, but an explicit c++rt0.o
11550 # does not break anything, and helps significantly (at the cost of a little
11551 # extra space).
11552 freebsd2.2*)
11553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11554 hardcode_libdir_flag_spec='-R$libdir'
11555 hardcode_direct=yes
11556 hardcode_shlibpath_var=no
11557 ;;
11558
11559 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11560 freebsd2.*)
11561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11562 hardcode_direct=yes
11563 hardcode_minus_L=yes
11564 hardcode_shlibpath_var=no
11565 ;;
11566
11567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11568 freebsd* | dragonfly*)
11569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11570 hardcode_libdir_flag_spec='-R$libdir'
11571 hardcode_direct=yes
11572 hardcode_shlibpath_var=no
11573 ;;
11574
11575 hpux9*)
11576 if test yes = "$GCC"; then
11577 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'
11578 else
11579 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'
11580 fi
11581 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11582 hardcode_libdir_separator=:
11583 hardcode_direct=yes
11584
11585 # hardcode_minus_L: Not really in the search PATH,
11586 # but as the default location of the library.
11587 hardcode_minus_L=yes
11588 export_dynamic_flag_spec='$wl-E'
11589 ;;
11590
11591 hpux10*)
11592 if test yes,no = "$GCC,$with_gnu_ld"; then
11593 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11594 else
11595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11596 fi
11597 if test no = "$with_gnu_ld"; then
11598 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11599 hardcode_libdir_separator=:
11600 hardcode_direct=yes
11601 hardcode_direct_absolute=yes
11602 export_dynamic_flag_spec='$wl-E'
11603 # hardcode_minus_L: Not really in the search PATH,
11604 # but as the default location of the library.
11605 hardcode_minus_L=yes
11606 fi
11607 ;;
11608
11609 hpux11*)
11610 if test yes,no = "$GCC,$with_gnu_ld"; then
11611 case $host_cpu in
11612 hppa*64*)
11613 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11614 ;;
11615 ia64*)
11616 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11617 ;;
11618 *)
11619 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11620 ;;
11621 esac
11622 else
11623 case $host_cpu in
11624 hppa*64*)
11625 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11626 ;;
11627 ia64*)
11628 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11629 ;;
11630 *)
11631
11632 # Older versions of the 11.00 compiler do not understand -b yet
11633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11635 printf %s "checking if $CC understands -b... " >&6; }
11636 if test ${lt_cv_prog_compiler__b+y}
11637 then :
11638 printf %s "(cached) " >&6
11639 else $as_nop
11640 lt_cv_prog_compiler__b=no
11641 save_LDFLAGS=$LDFLAGS
11642 LDFLAGS="$LDFLAGS -b"
11643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11645 # The linker can only warn and ignore the option if not recognized
11646 # So say no if there are warnings
11647 if test -s conftest.err; then
11648 # Append any errors to the config.log.
11649 cat conftest.err 1>&5
11650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11652 if diff conftest.exp conftest.er2 >/dev/null; then
11653 lt_cv_prog_compiler__b=yes
11654 fi
11655 else
11656 lt_cv_prog_compiler__b=yes
11657 fi
11658 fi
11659 $RM -r conftest*
11660 LDFLAGS=$save_LDFLAGS
11661
11662 fi
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11664 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11665
11666 if test yes = "$lt_cv_prog_compiler__b"; then
11667 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11668 else
11669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11670 fi
11671
11672 ;;
11673 esac
11674 fi
11675 if test no = "$with_gnu_ld"; then
11676 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11677 hardcode_libdir_separator=:
11678
11679 case $host_cpu in
11680 hppa*64*|ia64*)
11681 hardcode_direct=no
11682 hardcode_shlibpath_var=no
11683 ;;
11684 *)
11685 hardcode_direct=yes
11686 hardcode_direct_absolute=yes
11687 export_dynamic_flag_spec='$wl-E'
11688
11689 # hardcode_minus_L: Not really in the search PATH,
11690 # but as the default location of the library.
11691 hardcode_minus_L=yes
11692 ;;
11693 esac
11694 fi
11695 ;;
11696
11697 irix5* | irix6* | nonstopux*)
11698 if test yes = "$GCC"; then
11699 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'
11700 # Try to use the -exported_symbol ld option, if it does not
11701 # work, assume that -exports_file does not work either and
11702 # implicitly export all symbols.
11703 # This should be the same for all languages, so no per-tag cache variable.
11704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11705 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11706 if test ${lt_cv_irix_exported_symbol+y}
11707 then :
11708 printf %s "(cached) " >&6
11709 else $as_nop
11710 save_LDFLAGS=$LDFLAGS
11711 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 int foo (void) { return 0; }
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"
11717 then :
11718 lt_cv_irix_exported_symbol=yes
11719 else $as_nop
11720 lt_cv_irix_exported_symbol=no
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11723 conftest$ac_exeext conftest.$ac_ext
11724 LDFLAGS=$save_LDFLAGS
11725 fi
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11727 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11728 if test yes = "$lt_cv_irix_exported_symbol"; then
11729 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'
11730 fi
11731 link_all_deplibs=no
11732 else
11733 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'
11734 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'
11735 fi
11736 archive_cmds_need_lc='no'
11737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11738 hardcode_libdir_separator=:
11739 inherit_rpath=yes
11740 link_all_deplibs=yes
11741 ;;
11742
11743 linux*)
11744 case $cc_basename in
11745 tcc*)
11746 # Fabrice Bellard et al's Tiny C Compiler
11747 ld_shlibs=yes
11748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11749 ;;
11750 esac
11751 ;;
11752
11753 netbsd* | netbsdelf*-gnu)
11754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11756 else
11757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11758 fi
11759 hardcode_libdir_flag_spec='-R$libdir'
11760 hardcode_direct=yes
11761 hardcode_shlibpath_var=no
11762 ;;
11763
11764 newsos6)
11765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766 hardcode_direct=yes
11767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11768 hardcode_libdir_separator=:
11769 hardcode_shlibpath_var=no
11770 ;;
11771
11772 *nto* | *qnx*)
11773 ;;
11774
11775 openbsd* | bitrig*)
11776 if test -f /usr/libexec/ld.so; then
11777 hardcode_direct=yes
11778 hardcode_shlibpath_var=no
11779 hardcode_direct_absolute=yes
11780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11783 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11784 export_dynamic_flag_spec='$wl-E'
11785 else
11786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11787 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11788 fi
11789 else
11790 ld_shlibs=no
11791 fi
11792 ;;
11793
11794 os2*)
11795 hardcode_libdir_flag_spec='-L$libdir'
11796 hardcode_minus_L=yes
11797 allow_undefined_flag=unsupported
11798 shrext_cmds=.dll
11799 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11802 $ECHO EXPORTS >> $output_objdir/$libname.def~
11803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11805 emximp -o $lib $output_objdir/$libname.def'
11806 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11809 $ECHO EXPORTS >> $output_objdir/$libname.def~
11810 prefix_cmds="$SED"~
11811 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11812 prefix_cmds="$prefix_cmds -e 1d";
11813 fi~
11814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11817 emximp -o $lib $output_objdir/$libname.def'
11818 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11819 enable_shared_with_static_runtimes=yes
11820 ;;
11821
11822 osf3*)
11823 if test yes = "$GCC"; then
11824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11825 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'
11826 else
11827 allow_undefined_flag=' -expect_unresolved \*'
11828 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'
11829 fi
11830 archive_cmds_need_lc='no'
11831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11832 hardcode_libdir_separator=:
11833 ;;
11834
11835 osf4* | osf5*) # as osf3* with the addition of -msym flag
11836 if test yes = "$GCC"; then
11837 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11838 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'
11839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11840 else
11841 allow_undefined_flag=' -expect_unresolved \*'
11842 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'
11843 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~
11844 $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'
11845
11846 # Both c and cxx compiler support -rpath directly
11847 hardcode_libdir_flag_spec='-rpath $libdir'
11848 fi
11849 archive_cmds_need_lc='no'
11850 hardcode_libdir_separator=:
11851 ;;
11852
11853 solaris*)
11854 no_undefined_flag=' -z defs'
11855 if test yes = "$GCC"; then
11856 wlarc='$wl'
11857 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11859 $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'
11860 else
11861 case `$CC -V 2>&1` in
11862 *"Compilers 5.0"*)
11863 wlarc=''
11864 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11866 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11867 ;;
11868 *)
11869 wlarc='$wl'
11870 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11872 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11873 ;;
11874 esac
11875 fi
11876 hardcode_libdir_flag_spec='-R$libdir'
11877 hardcode_shlibpath_var=no
11878 case $host_os in
11879 solaris2.[0-5] | solaris2.[0-5].*) ;;
11880 *)
11881 # The compiler driver will combine and reorder linker options,
11882 # but understands '-z linker_flag'. GCC discards it without '$wl',
11883 # but is careful enough not to reorder.
11884 # Supported since Solaris 2.6 (maybe 2.5.1?)
11885 if test yes = "$GCC"; then
11886 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11887 else
11888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11889 fi
11890 ;;
11891 esac
11892 link_all_deplibs=yes
11893 ;;
11894
11895 sunos4*)
11896 if test sequent = "$host_vendor"; then
11897 # Use $CC to link under sequent, because it throws in some extra .o
11898 # files that make .init and .fini sections work.
11899 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11900 else
11901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11902 fi
11903 hardcode_libdir_flag_spec='-L$libdir'
11904 hardcode_direct=yes
11905 hardcode_minus_L=yes
11906 hardcode_shlibpath_var=no
11907 ;;
11908
11909 sysv4)
11910 case $host_vendor in
11911 sni)
11912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_direct=yes # is this really true???
11914 ;;
11915 siemens)
11916 ## LD is ld it makes a PLAMLIB
11917 ## CC just makes a GrossModule.
11918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11919 reload_cmds='$CC -r -o $output$reload_objs'
11920 hardcode_direct=no
11921 ;;
11922 motorola)
11923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11925 ;;
11926 esac
11927 runpath_var='LD_RUN_PATH'
11928 hardcode_shlibpath_var=no
11929 ;;
11930
11931 sysv4.3*)
11932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11933 hardcode_shlibpath_var=no
11934 export_dynamic_flag_spec='-Bexport'
11935 ;;
11936
11937 sysv4*MP*)
11938 if test -d /usr/nec; then
11939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11940 hardcode_shlibpath_var=no
11941 runpath_var=LD_RUN_PATH
11942 hardcode_runpath_var=yes
11943 ld_shlibs=yes
11944 fi
11945 ;;
11946
11947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11948 no_undefined_flag='$wl-z,text'
11949 archive_cmds_need_lc=no
11950 hardcode_shlibpath_var=no
11951 runpath_var='LD_RUN_PATH'
11952
11953 if test yes = "$GCC"; then
11954 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 else
11957 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959 fi
11960 ;;
11961
11962 sysv5* | sco3.2v5* | sco5v6*)
11963 # Note: We CANNOT use -z defs as we might desire, because we do not
11964 # link with -lc, and that would cause any symbols used from libc to
11965 # always be unresolved, which means just about no library would
11966 # ever link correctly. If we're not using GNU ld we use -z text
11967 # though, which does catch some bad symbols but isn't as heavy-handed
11968 # as -z defs.
11969 no_undefined_flag='$wl-z,text'
11970 allow_undefined_flag='$wl-z,nodefs'
11971 archive_cmds_need_lc=no
11972 hardcode_shlibpath_var=no
11973 hardcode_libdir_flag_spec='$wl-R,$libdir'
11974 hardcode_libdir_separator=':'
11975 link_all_deplibs=yes
11976 export_dynamic_flag_spec='$wl-Bexport'
11977 runpath_var='LD_RUN_PATH'
11978
11979 if test yes = "$GCC"; then
11980 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11982 else
11983 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 fi
11986 ;;
11987
11988 uts4*)
11989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11990 hardcode_libdir_flag_spec='-L$libdir'
11991 hardcode_shlibpath_var=no
11992 ;;
11993
11994 *)
11995 ld_shlibs=no
11996 ;;
11997 esac
11998
11999 if test sni = "$host_vendor"; then
12000 case $host in
12001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12002 export_dynamic_flag_spec='$wl-Blargedynsym'
12003 ;;
12004 esac
12005 fi
12006 fi
12007
12008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12009 printf "%s\n" "$ld_shlibs" >&6; }
12010 test no = "$ld_shlibs" && can_build_shared=no
12011
12012 with_gnu_ld=$with_gnu_ld
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 #
12029 # Do we need to explicitly link libc?
12030 #
12031 case "x$archive_cmds_need_lc" in
12032 x|xyes)
12033 # Assume -lc should be added
12034 archive_cmds_need_lc=yes
12035
12036 if test yes,yes = "$GCC,$enable_shared"; then
12037 case $archive_cmds in
12038 *'~'*)
12039 # FIXME: we may have to deal with multi-command sequences.
12040 ;;
12041 '$CC '*)
12042 # Test whether the compiler implicitly links with -lc since on some
12043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12044 # to ld, don't add -lc before -lgcc.
12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12046 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12047 if test ${lt_cv_archive_cmds_need_lc+y}
12048 then :
12049 printf %s "(cached) " >&6
12050 else $as_nop
12051 $RM conftest*
12052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12053
12054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12055 (eval $ac_compile) 2>&5
12056 ac_status=$?
12057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058 test $ac_status = 0; } 2>conftest.err; then
12059 soname=conftest
12060 lib=conftest
12061 libobjs=conftest.$ac_objext
12062 deplibs=
12063 wl=$lt_prog_compiler_wl
12064 pic_flag=$lt_prog_compiler_pic
12065 compiler_flags=-v
12066 linker_flags=-v
12067 verstring=
12068 output_objdir=.
12069 libname=conftest
12070 lt_save_allow_undefined_flag=$allow_undefined_flag
12071 allow_undefined_flag=
12072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12073 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12074 ac_status=$?
12075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12076 test $ac_status = 0; }
12077 then
12078 lt_cv_archive_cmds_need_lc=no
12079 else
12080 lt_cv_archive_cmds_need_lc=yes
12081 fi
12082 allow_undefined_flag=$lt_save_allow_undefined_flag
12083 else
12084 cat conftest.err 1>&5
12085 fi
12086 $RM conftest*
12087
12088 fi
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12090 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12091 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12092 ;;
12093 esac
12094 fi
12095 ;;
12096 esac
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12250 printf %s "checking dynamic linker characteristics... " >&6; }
12251
12252 if test yes = "$GCC"; then
12253 case $host_os in
12254 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12255 *) lt_awk_arg='/^libraries:/' ;;
12256 esac
12257 case $host_os in
12258 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12259 *) lt_sed_strip_eq='s|=/|/|g' ;;
12260 esac
12261 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12262 case $lt_search_path_spec in
12263 *\;*)
12264 # if the path contains ";" then we assume it to be the separator
12265 # otherwise default to the standard path separator (i.e. ":") - it is
12266 # assumed that no part of a normal pathname contains ";" but that should
12267 # okay in the real world where ";" in dirpaths is itself problematic.
12268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12269 ;;
12270 *)
12271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12272 ;;
12273 esac
12274 # Ok, now we have the path, separated by spaces, we can step through it
12275 # and add multilib dir if necessary...
12276 lt_tmp_lt_search_path_spec=
12277 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12278 # ...but if some path component already ends with the multilib dir we assume
12279 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12280 case "$lt_multi_os_dir; $lt_search_path_spec " in
12281 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12282 lt_multi_os_dir=
12283 ;;
12284 esac
12285 for lt_sys_path in $lt_search_path_spec; do
12286 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12287 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12288 elif test -n "$lt_multi_os_dir"; then
12289 test -d "$lt_sys_path" && \
12290 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12291 fi
12292 done
12293 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12294 BEGIN {RS = " "; FS = "/|\n";} {
12295 lt_foo = "";
12296 lt_count = 0;
12297 for (lt_i = NF; lt_i > 0; lt_i--) {
12298 if ($lt_i != "" && $lt_i != ".") {
12299 if ($lt_i == "..") {
12300 lt_count++;
12301 } else {
12302 if (lt_count == 0) {
12303 lt_foo = "/" $lt_i lt_foo;
12304 } else {
12305 lt_count--;
12306 }
12307 }
12308 }
12309 }
12310 if (lt_foo != "") { lt_freq[lt_foo]++; }
12311 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12312 }'`
12313 # AWK program above erroneously prepends '/' to C:/dos/paths
12314 # for these hosts.
12315 case $host_os in
12316 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12317 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12318 esac
12319 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12320 else
12321 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12322 fi
12323 library_names_spec=
12324 libname_spec='lib$name'
12325 soname_spec=
12326 shrext_cmds=.so
12327 postinstall_cmds=
12328 postuninstall_cmds=
12329 finish_cmds=
12330 finish_eval=
12331 shlibpath_var=
12332 shlibpath_overrides_runpath=unknown
12333 version_type=none
12334 dynamic_linker="$host_os ld.so"
12335 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12336 need_lib_prefix=unknown
12337 hardcode_into_libs=no
12338
12339 # when you set need_version to no, make sure it does not cause -set_version
12340 # flags to be left without arguments
12341 need_version=unknown
12342
12343
12344
12345 case $host_os in
12346 aix3*)
12347 version_type=linux # correct to gnu/linux during the next big refactor
12348 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12349 shlibpath_var=LIBPATH
12350
12351 # AIX 3 has no versioning support, so we append a major version to the name.
12352 soname_spec='$libname$release$shared_ext$major'
12353 ;;
12354
12355 aix[4-9]*)
12356 version_type=linux # correct to gnu/linux during the next big refactor
12357 need_lib_prefix=no
12358 need_version=no
12359 hardcode_into_libs=yes
12360 if test ia64 = "$host_cpu"; then
12361 # AIX 5 supports IA64
12362 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 else
12365 # With GCC up to 2.95.x, collect2 would create an import file
12366 # for dependence libraries. The import file would start with
12367 # the line '#! .'. This would cause the generated library to
12368 # depend on '.', always an invalid library. This was fixed in
12369 # development snapshots of GCC prior to 3.0.
12370 case $host_os in
12371 aix4 | aix4.[01] | aix4.[01].*)
12372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12373 echo ' yes '
12374 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12375 :
12376 else
12377 can_build_shared=no
12378 fi
12379 ;;
12380 esac
12381 # Using Import Files as archive members, it is possible to support
12382 # filename-based versioning of shared library archives on AIX. While
12383 # this would work for both with and without runtime linking, it will
12384 # prevent static linking of such archives. So we do filename-based
12385 # shared library versioning with .so extension only, which is used
12386 # when both runtime linking and shared linking is enabled.
12387 # Unfortunately, runtime linking may impact performance, so we do
12388 # not want this to be the default eventually. Also, we use the
12389 # versioned .so libs for executables only if there is the -brtl
12390 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12391 # To allow for filename-based versioning support, we need to create
12392 # libNAME.so.V as an archive file, containing:
12393 # *) an Import File, referring to the versioned filename of the
12394 # archive as well as the shared archive member, telling the
12395 # bitwidth (32 or 64) of that shared object, and providing the
12396 # list of exported symbols of that shared object, eventually
12397 # decorated with the 'weak' keyword
12398 # *) the shared object with the F_LOADONLY flag set, to really avoid
12399 # it being seen by the linker.
12400 # At run time we better use the real file rather than another symlink,
12401 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12402
12403 case $with_aix_soname,$aix_use_runtimelinking in
12404 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12405 # soname into executable. Probably we can add versioning support to
12406 # collect2, so additional links can be useful in future.
12407 aix,yes) # traditional libtool
12408 dynamic_linker='AIX unversionable lib.so'
12409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12410 # instead of lib<name>.a to let people know that these are not
12411 # typical AIX shared libraries.
12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12413 ;;
12414 aix,no) # traditional AIX only
12415 dynamic_linker='AIX lib.a(lib.so.V)'
12416 # We preserve .a as extension for shared libraries through AIX4.2
12417 # and later when we are not doing run time linking.
12418 library_names_spec='$libname$release.a $libname.a'
12419 soname_spec='$libname$release$shared_ext$major'
12420 ;;
12421 svr4,*) # full svr4 only
12422 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12423 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12424 # We do not specify a path in Import Files, so LIBPATH fires.
12425 shlibpath_overrides_runpath=yes
12426 ;;
12427 *,yes) # both, prefer svr4
12428 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12429 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12430 # unpreferred sharedlib libNAME.a needs extra handling
12431 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"'
12432 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"'
12433 # We do not specify a path in Import Files, so LIBPATH fires.
12434 shlibpath_overrides_runpath=yes
12435 ;;
12436 *,no) # both, prefer aix
12437 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12438 library_names_spec='$libname$release.a $libname.a'
12439 soname_spec='$libname$release$shared_ext$major'
12440 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12441 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)'
12442 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"'
12443 ;;
12444 esac
12445 shlibpath_var=LIBPATH
12446 fi
12447 ;;
12448
12449 amigaos*)
12450 case $host_cpu in
12451 powerpc)
12452 # Since July 2007 AmigaOS4 officially supports .so libraries.
12453 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12455 ;;
12456 m68k)
12457 library_names_spec='$libname.ixlibrary $libname.a'
12458 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12459 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'
12460 ;;
12461 esac
12462 ;;
12463
12464 beos*)
12465 library_names_spec='$libname$shared_ext'
12466 dynamic_linker="$host_os ld.so"
12467 shlibpath_var=LIBRARY_PATH
12468 ;;
12469
12470 bsdi[45]*)
12471 version_type=linux # correct to gnu/linux during the next big refactor
12472 need_version=no
12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474 soname_spec='$libname$release$shared_ext$major'
12475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12476 shlibpath_var=LD_LIBRARY_PATH
12477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12479 # the default ld.so.conf also contains /usr/contrib/lib and
12480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12481 # libtool to hard-code these into programs
12482 ;;
12483
12484 cygwin* | mingw* | pw32* | cegcc*)
12485 version_type=windows
12486 shrext_cmds=.dll
12487 need_version=no
12488 need_lib_prefix=no
12489
12490 case $GCC,$cc_basename in
12491 yes,*)
12492 # gcc
12493 library_names_spec='$libname.dll.a'
12494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12495 postinstall_cmds='base_file=`basename \$file`~
12496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12497 dldir=$destdir/`dirname \$dlpath`~
12498 test -d \$dldir || mkdir -p \$dldir~
12499 $install_prog $dir/$dlname \$dldir/$dlname~
12500 chmod a+x \$dldir/$dlname~
12501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12503 fi'
12504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12505 dlpath=$dir/\$dldll~
12506 $RM \$dlpath'
12507 shlibpath_overrides_runpath=yes
12508
12509 case $host_os in
12510 cygwin*)
12511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12512 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12513
12514 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12515 ;;
12516 mingw* | cegcc*)
12517 # MinGW DLLs use traditional 'lib' prefix
12518 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12519 ;;
12520 pw32*)
12521 # pw32 DLLs use 'pw' prefix rather than 'lib'
12522 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12523 ;;
12524 esac
12525 dynamic_linker='Win32 ld.exe'
12526 ;;
12527
12528 *,cl*)
12529 # Native MSVC
12530 libname_spec='$name'
12531 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12532 library_names_spec='$libname.dll.lib'
12533
12534 case $build_os in
12535 mingw*)
12536 sys_lib_search_path_spec=
12537 lt_save_ifs=$IFS
12538 IFS=';'
12539 for lt_path in $LIB
12540 do
12541 IFS=$lt_save_ifs
12542 # Let DOS variable expansion print the short 8.3 style file name.
12543 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12544 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12545 done
12546 IFS=$lt_save_ifs
12547 # Convert to MSYS style.
12548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12549 ;;
12550 cygwin*)
12551 # Convert to unix form, then to dos form, then back to unix form
12552 # but this time dos style (no spaces!) so that the unix form looks
12553 # like /cygdrive/c/PROGRA~1:/cygdr...
12554 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12555 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12556 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12557 ;;
12558 *)
12559 sys_lib_search_path_spec=$LIB
12560 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12561 # It is most probably a Windows format PATH.
12562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12563 else
12564 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12565 fi
12566 # FIXME: find the short name or the path components, as spaces are
12567 # common. (e.g. "Program Files" -> "PROGRA~1")
12568 ;;
12569 esac
12570
12571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12572 postinstall_cmds='base_file=`basename \$file`~
12573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12574 dldir=$destdir/`dirname \$dlpath`~
12575 test -d \$dldir || mkdir -p \$dldir~
12576 $install_prog $dir/$dlname \$dldir/$dlname'
12577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12578 dlpath=$dir/\$dldll~
12579 $RM \$dlpath'
12580 shlibpath_overrides_runpath=yes
12581 dynamic_linker='Win32 link.exe'
12582 ;;
12583
12584 *)
12585 # Assume MSVC wrapper
12586 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12587 dynamic_linker='Win32 ld.exe'
12588 ;;
12589 esac
12590 # FIXME: first we should search . and the directory the executable is in
12591 shlibpath_var=PATH
12592 ;;
12593
12594 darwin* | rhapsody*)
12595 dynamic_linker="$host_os dyld"
12596 version_type=darwin
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12600 soname_spec='$libname$release$major$shared_ext'
12601 shlibpath_overrides_runpath=yes
12602 shlibpath_var=DYLD_LIBRARY_PATH
12603 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12604
12605 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12607 ;;
12608
12609 dgux*)
12610 version_type=linux # correct to gnu/linux during the next big refactor
12611 need_lib_prefix=no
12612 need_version=no
12613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12614 soname_spec='$libname$release$shared_ext$major'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 ;;
12617
12618 freebsd* | dragonfly*)
12619 # DragonFly does not have aout. When/if they implement a new
12620 # versioning mechanism, adjust this.
12621 if test -x /usr/bin/objformat; then
12622 objformat=`/usr/bin/objformat`
12623 else
12624 case $host_os in
12625 freebsd[23].*) objformat=aout ;;
12626 *) objformat=elf ;;
12627 esac
12628 fi
12629 version_type=freebsd-$objformat
12630 case $version_type in
12631 freebsd-elf*)
12632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12633 soname_spec='$libname$release$shared_ext$major'
12634 need_version=no
12635 need_lib_prefix=no
12636 ;;
12637 freebsd-*)
12638 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12639 need_version=yes
12640 ;;
12641 esac
12642 shlibpath_var=LD_LIBRARY_PATH
12643 case $host_os in
12644 freebsd2.*)
12645 shlibpath_overrides_runpath=yes
12646 ;;
12647 freebsd3.[01]* | freebsdelf3.[01]*)
12648 shlibpath_overrides_runpath=yes
12649 hardcode_into_libs=yes
12650 ;;
12651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12653 shlibpath_overrides_runpath=no
12654 hardcode_into_libs=yes
12655 ;;
12656 *) # from 4.6 on, and DragonFly
12657 shlibpath_overrides_runpath=yes
12658 hardcode_into_libs=yes
12659 ;;
12660 esac
12661 ;;
12662
12663 haiku*)
12664 version_type=linux # correct to gnu/linux during the next big refactor
12665 need_lib_prefix=no
12666 need_version=no
12667 dynamic_linker="$host_os runtime_loader"
12668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669 soname_spec='$libname$release$shared_ext$major'
12670 shlibpath_var=LIBRARY_PATH
12671 shlibpath_overrides_runpath=no
12672 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12673 hardcode_into_libs=yes
12674 ;;
12675
12676 hpux9* | hpux10* | hpux11*)
12677 # Give a soname corresponding to the major version so that dld.sl refuses to
12678 # link against other versions.
12679 version_type=sunos
12680 need_lib_prefix=no
12681 need_version=no
12682 case $host_cpu in
12683 ia64*)
12684 shrext_cmds='.so'
12685 hardcode_into_libs=yes
12686 dynamic_linker="$host_os dld.so"
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12690 soname_spec='$libname$release$shared_ext$major'
12691 if test 32 = "$HPUX_IA64_MODE"; then
12692 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12693 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12694 else
12695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12696 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12697 fi
12698 ;;
12699 hppa*64*)
12700 shrext_cmds='.sl'
12701 hardcode_into_libs=yes
12702 dynamic_linker="$host_os dld.sl"
12703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12706 soname_spec='$libname$release$shared_ext$major'
12707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12709 ;;
12710 *)
12711 shrext_cmds='.sl'
12712 dynamic_linker="$host_os dld.sl"
12713 shlibpath_var=SHLIB_PATH
12714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12716 soname_spec='$libname$release$shared_ext$major'
12717 ;;
12718 esac
12719 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12720 postinstall_cmds='chmod 555 $lib'
12721 # or fails outright, so override atomically:
12722 install_override_mode=555
12723 ;;
12724
12725 interix[3-9]*)
12726 version_type=linux # correct to gnu/linux during the next big refactor
12727 need_lib_prefix=no
12728 need_version=no
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12730 soname_spec='$libname$release$shared_ext$major'
12731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=no
12734 hardcode_into_libs=yes
12735 ;;
12736
12737 irix5* | irix6* | nonstopux*)
12738 case $host_os in
12739 nonstopux*) version_type=nonstopux ;;
12740 *)
12741 if test yes = "$lt_cv_prog_gnu_ld"; then
12742 version_type=linux # correct to gnu/linux during the next big refactor
12743 else
12744 version_type=irix
12745 fi ;;
12746 esac
12747 need_lib_prefix=no
12748 need_version=no
12749 soname_spec='$libname$release$shared_ext$major'
12750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12751 case $host_os in
12752 irix5* | nonstopux*)
12753 libsuff= shlibsuff=
12754 ;;
12755 *)
12756 case $LD in # libtool.m4 will add one of these switches to LD
12757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12758 libsuff= shlibsuff= libmagic=32-bit;;
12759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12760 libsuff=32 shlibsuff=N32 libmagic=N32;;
12761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12763 *) libsuff= shlibsuff= libmagic=never-match;;
12764 esac
12765 ;;
12766 esac
12767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12768 shlibpath_overrides_runpath=no
12769 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12770 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12771 hardcode_into_libs=yes
12772 ;;
12773
12774 # No shared lib support for Linux oldld, aout, or coff.
12775 linux*oldld* | linux*aout* | linux*coff*)
12776 dynamic_linker=no
12777 ;;
12778
12779 linux*android*)
12780 version_type=none # Android doesn't support versioned libraries.
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='$libname$release$shared_ext'
12784 soname_spec='$libname$release$shared_ext'
12785 finish_cmds=
12786 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=yes
12788
12789 # This implies no fast_install, which is unacceptable.
12790 # Some rework will be needed to allow for fast_install
12791 # before this can be enabled.
12792 hardcode_into_libs=yes
12793
12794 dynamic_linker='Android linker'
12795 # Don't embed -rpath directories since the linker doesn't support them.
12796 hardcode_libdir_flag_spec='-L$libdir'
12797 ;;
12798
12799 # This must be glibc/ELF.
12800 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12801 version_type=linux # correct to gnu/linux during the next big refactor
12802 need_lib_prefix=no
12803 need_version=no
12804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12805 soname_spec='$libname$release$shared_ext$major'
12806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12807 shlibpath_var=LD_LIBRARY_PATH
12808 shlibpath_overrides_runpath=no
12809
12810 # Some binutils ld are patched to set DT_RUNPATH
12811 if test ${lt_cv_shlibpath_overrides_runpath+y}
12812 then :
12813 printf %s "(cached) " >&6
12814 else $as_nop
12815 lt_cv_shlibpath_overrides_runpath=no
12816 save_LDFLAGS=$LDFLAGS
12817 save_libdir=$libdir
12818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822
12823 int
12824 main (void)
12825 {
12826
12827 ;
12828 return 0;
12829 }
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"
12832 then :
12833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12834 then :
12835 lt_cv_shlibpath_overrides_runpath=yes
12836 fi
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LDFLAGS=$save_LDFLAGS
12841 libdir=$save_libdir
12842
12843 fi
12844
12845 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12846
12847 # This implies no fast_install, which is unacceptable.
12848 # Some rework will be needed to allow for fast_install
12849 # before this can be enabled.
12850 hardcode_into_libs=yes
12851
12852 # Ideally, we could use ldconfig to report *all* directores which are
12853 # searched for libraries, however this is still not possible. Aside from not
12854 # being certain /sbin/ldconfig is available, command
12855 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12856 # even though it is searched at run-time. Try to do the best guess by
12857 # appending ld.so.conf contents (and includes) to the search path.
12858 if test -f /etc/ld.so.conf; then
12859 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' ' '`
12860 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12861 fi
12862
12863 # We used to test for /lib/ld.so.1 and disable shared libraries on
12864 # powerpc, because MkLinux only supported shared libraries with the
12865 # GNU dynamic linker. Since this was broken with cross compilers,
12866 # most powerpc-linux boxes support dynamic linking these days and
12867 # people can always --disable-shared, the test was removed, and we
12868 # assume the GNU/Linux dynamic linker is in use.
12869 dynamic_linker='GNU/Linux ld.so'
12870 ;;
12871
12872 netbsdelf*-gnu)
12873 version_type=linux
12874 need_lib_prefix=no
12875 need_version=no
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 shlibpath_overrides_runpath=no
12880 hardcode_into_libs=yes
12881 dynamic_linker='NetBSD ld.elf_so'
12882 ;;
12883
12884 netbsd*)
12885 version_type=sunos
12886 need_lib_prefix=no
12887 need_version=no
12888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12889 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12891 dynamic_linker='NetBSD (a.out) ld.so'
12892 else
12893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12894 soname_spec='$libname$release$shared_ext$major'
12895 dynamic_linker='NetBSD ld.elf_so'
12896 fi
12897 shlibpath_var=LD_LIBRARY_PATH
12898 shlibpath_overrides_runpath=yes
12899 hardcode_into_libs=yes
12900 ;;
12901
12902 newsos6)
12903 version_type=linux # correct to gnu/linux during the next big refactor
12904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 shlibpath_overrides_runpath=yes
12907 ;;
12908
12909 *nto* | *qnx*)
12910 version_type=qnx
12911 need_lib_prefix=no
12912 need_version=no
12913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914 soname_spec='$libname$release$shared_ext$major'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 dynamic_linker='ldqnx.so'
12919 ;;
12920
12921 openbsd* | bitrig*)
12922 version_type=sunos
12923 sys_lib_dlsearch_path_spec=/usr/lib
12924 need_lib_prefix=no
12925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12926 need_version=no
12927 else
12928 need_version=yes
12929 fi
12930 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 ;;
12935
12936 os2*)
12937 libname_spec='$name'
12938 version_type=windows
12939 shrext_cmds=.dll
12940 need_version=no
12941 need_lib_prefix=no
12942 # OS/2 can only load a DLL with a base name of 8 characters or less.
12943 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12944 v=$($ECHO $release$versuffix | tr -d .-);
12945 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12946 $ECHO $n$v`$shared_ext'
12947 library_names_spec='${libname}_dll.$libext'
12948 dynamic_linker='OS/2 ld.exe'
12949 shlibpath_var=BEGINLIBPATH
12950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12952 postinstall_cmds='base_file=`basename \$file`~
12953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12954 dldir=$destdir/`dirname \$dlpath`~
12955 test -d \$dldir || mkdir -p \$dldir~
12956 $install_prog $dir/$dlname \$dldir/$dlname~
12957 chmod a+x \$dldir/$dlname~
12958 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12959 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12960 fi'
12961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12962 dlpath=$dir/\$dldll~
12963 $RM \$dlpath'
12964 ;;
12965
12966 osf3* | osf4* | osf5*)
12967 version_type=osf
12968 need_lib_prefix=no
12969 need_version=no
12970 soname_spec='$libname$release$shared_ext$major'
12971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12972 shlibpath_var=LD_LIBRARY_PATH
12973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12975 ;;
12976
12977 rdos*)
12978 dynamic_linker=no
12979 ;;
12980
12981 solaris*)
12982 version_type=linux # correct to gnu/linux during the next big refactor
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12986 soname_spec='$libname$release$shared_ext$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=yes
12989 hardcode_into_libs=yes
12990 # ldd complains unless libraries are executable
12991 postinstall_cmds='chmod +x $lib'
12992 ;;
12993
12994 sunos4*)
12995 version_type=sunos
12996 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 shlibpath_overrides_runpath=yes
13000 if test yes = "$with_gnu_ld"; then
13001 need_lib_prefix=no
13002 fi
13003 need_version=yes
13004 ;;
13005
13006 sysv4 | sysv4.3*)
13007 version_type=linux # correct to gnu/linux during the next big refactor
13008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13009 soname_spec='$libname$release$shared_ext$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 case $host_vendor in
13012 sni)
13013 shlibpath_overrides_runpath=no
13014 need_lib_prefix=no
13015 runpath_var=LD_RUN_PATH
13016 ;;
13017 siemens)
13018 need_lib_prefix=no
13019 ;;
13020 motorola)
13021 need_lib_prefix=no
13022 need_version=no
13023 shlibpath_overrides_runpath=no
13024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13025 ;;
13026 esac
13027 ;;
13028
13029 sysv4*MP*)
13030 if test -d /usr/nec; then
13031 version_type=linux # correct to gnu/linux during the next big refactor
13032 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13033 soname_spec='$libname$shared_ext.$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 fi
13036 ;;
13037
13038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13039 version_type=sco
13040 need_lib_prefix=no
13041 need_version=no
13042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13043 soname_spec='$libname$release$shared_ext$major'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13047 if test yes = "$with_gnu_ld"; then
13048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13049 else
13050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13051 case $host_os in
13052 sco3.2v5*)
13053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13054 ;;
13055 esac
13056 fi
13057 sys_lib_dlsearch_path_spec='/usr/lib'
13058 ;;
13059
13060 tpf*)
13061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13062 version_type=linux # correct to gnu/linux during the next big refactor
13063 need_lib_prefix=no
13064 need_version=no
13065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=no
13068 hardcode_into_libs=yes
13069 ;;
13070
13071 uts4*)
13072 version_type=linux # correct to gnu/linux during the next big refactor
13073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13074 soname_spec='$libname$release$shared_ext$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 ;;
13077
13078 *)
13079 dynamic_linker=no
13080 ;;
13081 esac
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13083 printf "%s\n" "$dynamic_linker" >&6; }
13084 test no = "$dynamic_linker" && can_build_shared=no
13085
13086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13087 if test yes = "$GCC"; then
13088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13089 fi
13090
13091 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13092 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13093 fi
13094
13095 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13096 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13097 fi
13098
13099 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13100 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13101
13102 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13103 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13104
13105 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13106 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13205 printf %s "checking how to hardcode library paths into programs... " >&6; }
13206 hardcode_action=
13207 if test -n "$hardcode_libdir_flag_spec" ||
13208 test -n "$runpath_var" ||
13209 test yes = "$hardcode_automatic"; then
13210
13211 # We can hardcode non-existent directories.
13212 if test no != "$hardcode_direct" &&
13213 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13214 # have to relink, otherwise we might link with an installed library
13215 # when we should be linking with a yet-to-be-installed one
13216 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13217 test no != "$hardcode_minus_L"; then
13218 # Linking always hardcodes the temporary library directory.
13219 hardcode_action=relink
13220 else
13221 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13222 hardcode_action=immediate
13223 fi
13224 else
13225 # We cannot hardcode anything, or else we can only hardcode existing
13226 # directories.
13227 hardcode_action=unsupported
13228 fi
13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13230 printf "%s\n" "$hardcode_action" >&6; }
13231
13232 if test relink = "$hardcode_action" ||
13233 test yes = "$inherit_rpath"; then
13234 # Fast installation is not supported
13235 enable_fast_install=no
13236 elif test yes = "$shlibpath_overrides_runpath" ||
13237 test no = "$enable_shared"; then
13238 # Fast installation is not necessary
13239 enable_fast_install=needless
13240 fi
13241
13242
13243
13244
13245
13246
13247 if test yes != "$enable_dlopen"; then
13248 enable_dlopen=unknown
13249 enable_dlopen_self=unknown
13250 enable_dlopen_self_static=unknown
13251 else
13252 lt_cv_dlopen=no
13253 lt_cv_dlopen_libs=
13254
13255 case $host_os in
13256 beos*)
13257 lt_cv_dlopen=load_add_on
13258 lt_cv_dlopen_libs=
13259 lt_cv_dlopen_self=yes
13260 ;;
13261
13262 mingw* | pw32* | cegcc*)
13263 lt_cv_dlopen=LoadLibrary
13264 lt_cv_dlopen_libs=
13265 ;;
13266
13267 cygwin*)
13268 lt_cv_dlopen=dlopen
13269 lt_cv_dlopen_libs=
13270 ;;
13271
13272 darwin*)
13273 # if libdl is installed we need to link against it
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13275 printf %s "checking for dlopen in -ldl... " >&6; }
13276 if test ${ac_cv_lib_dl_dlopen+y}
13277 then :
13278 printf %s "(cached) " >&6
13279 else $as_nop
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-ldl $LIBS"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13288 char dlopen ();
13289 int
13290 main (void)
13291 {
13292 return dlopen ();
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"
13298 then :
13299 ac_cv_lib_dl_dlopen=yes
13300 else $as_nop
13301 ac_cv_lib_dl_dlopen=no
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13304 conftest$ac_exeext conftest.$ac_ext
13305 LIBS=$ac_check_lib_save_LIBS
13306 fi
13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13308 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13309 if test "x$ac_cv_lib_dl_dlopen" = xyes
13310 then :
13311 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13312 else $as_nop
13313
13314 lt_cv_dlopen=dyld
13315 lt_cv_dlopen_libs=
13316 lt_cv_dlopen_self=yes
13317
13318 fi
13319
13320 ;;
13321
13322 tpf*)
13323 # Don't try to run any link tests for TPF. We know it's impossible
13324 # because TPF is a cross-compiler, and we know how we open DSOs.
13325 lt_cv_dlopen=dlopen
13326 lt_cv_dlopen_libs=
13327 lt_cv_dlopen_self=no
13328 ;;
13329
13330 *)
13331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13332 if test "x$ac_cv_func_shl_load" = xyes
13333 then :
13334 lt_cv_dlopen=shl_load
13335 else $as_nop
13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13337 printf %s "checking for shl_load in -ldld... " >&6; }
13338 if test ${ac_cv_lib_dld_shl_load+y}
13339 then :
13340 printf %s "(cached) " >&6
13341 else $as_nop
13342 ac_check_lib_save_LIBS=$LIBS
13343 LIBS="-ldld $LIBS"
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346
13347 /* Override any GCC internal prototype to avoid an error.
13348 Use char because int might match the return type of a GCC
13349 builtin and then its argument prototype would still apply. */
13350 char shl_load ();
13351 int
13352 main (void)
13353 {
13354 return shl_load ();
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"
13360 then :
13361 ac_cv_lib_dld_shl_load=yes
13362 else $as_nop
13363 ac_cv_lib_dld_shl_load=no
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13368 fi
13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13370 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13371 if test "x$ac_cv_lib_dld_shl_load" = xyes
13372 then :
13373 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13374 else $as_nop
13375 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13376 if test "x$ac_cv_func_dlopen" = xyes
13377 then :
13378 lt_cv_dlopen=dlopen
13379 else $as_nop
13380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13381 printf %s "checking for dlopen in -ldl... " >&6; }
13382 if test ${ac_cv_lib_dl_dlopen+y}
13383 then :
13384 printf %s "(cached) " >&6
13385 else $as_nop
13386 ac_check_lib_save_LIBS=$LIBS
13387 LIBS="-ldl $LIBS"
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13394 char dlopen ();
13395 int
13396 main (void)
13397 {
13398 return dlopen ();
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_link "$LINENO"
13404 then :
13405 ac_cv_lib_dl_dlopen=yes
13406 else $as_nop
13407 ac_cv_lib_dl_dlopen=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13412 fi
13413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13414 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13415 if test "x$ac_cv_lib_dl_dlopen" = xyes
13416 then :
13417 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13418 else $as_nop
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13420 printf %s "checking for dlopen in -lsvld... " >&6; }
13421 if test ${ac_cv_lib_svld_dlopen+y}
13422 then :
13423 printf %s "(cached) " >&6
13424 else $as_nop
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lsvld $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 char dlopen ();
13434 int
13435 main (void)
13436 {
13437 return dlopen ();
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"
13443 then :
13444 ac_cv_lib_svld_dlopen=yes
13445 else $as_nop
13446 ac_cv_lib_svld_dlopen=no
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13449 conftest$ac_exeext conftest.$ac_ext
13450 LIBS=$ac_check_lib_save_LIBS
13451 fi
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13453 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13454 if test "x$ac_cv_lib_svld_dlopen" = xyes
13455 then :
13456 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13457 else $as_nop
13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13459 printf %s "checking for dld_link in -ldld... " >&6; }
13460 if test ${ac_cv_lib_dld_dld_link+y}
13461 then :
13462 printf %s "(cached) " >&6
13463 else $as_nop
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-ldld $LIBS"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13472 char dld_link ();
13473 int
13474 main (void)
13475 {
13476 return dld_link ();
13477 ;
13478 return 0;
13479 }
13480 _ACEOF
13481 if ac_fn_c_try_link "$LINENO"
13482 then :
13483 ac_cv_lib_dld_dld_link=yes
13484 else $as_nop
13485 ac_cv_lib_dld_dld_link=no
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13490 fi
13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13492 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13493 if test "x$ac_cv_lib_dld_dld_link" = xyes
13494 then :
13495 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13496 fi
13497
13498
13499 fi
13500
13501
13502 fi
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513 ;;
13514 esac
13515
13516 if test no = "$lt_cv_dlopen"; then
13517 enable_dlopen=no
13518 else
13519 enable_dlopen=yes
13520 fi
13521
13522 case $lt_cv_dlopen in
13523 dlopen)
13524 save_CPPFLAGS=$CPPFLAGS
13525 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13526
13527 save_LDFLAGS=$LDFLAGS
13528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13529
13530 save_LIBS=$LIBS
13531 LIBS="$lt_cv_dlopen_libs $LIBS"
13532
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13534 printf %s "checking whether a program can dlopen itself... " >&6; }
13535 if test ${lt_cv_dlopen_self+y}
13536 then :
13537 printf %s "(cached) " >&6
13538 else $as_nop
13539 if test yes = "$cross_compiling"; then :
13540 lt_cv_dlopen_self=cross
13541 else
13542 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13543 lt_status=$lt_dlunknown
13544 cat > conftest.$ac_ext <<_LT_EOF
13545 #line $LINENO "configure"
13546 #include "confdefs.h"
13547
13548 #if HAVE_DLFCN_H
13549 #include <dlfcn.h>
13550 #endif
13551
13552 #include <stdio.h>
13553
13554 #ifdef RTLD_GLOBAL
13555 # define LT_DLGLOBAL RTLD_GLOBAL
13556 #else
13557 # ifdef DL_GLOBAL
13558 # define LT_DLGLOBAL DL_GLOBAL
13559 # else
13560 # define LT_DLGLOBAL 0
13561 # endif
13562 #endif
13563
13564 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13565 find out it does not work in some platform. */
13566 #ifndef LT_DLLAZY_OR_NOW
13567 # ifdef RTLD_LAZY
13568 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13569 # else
13570 # ifdef DL_LAZY
13571 # define LT_DLLAZY_OR_NOW DL_LAZY
13572 # else
13573 # ifdef RTLD_NOW
13574 # define LT_DLLAZY_OR_NOW RTLD_NOW
13575 # else
13576 # ifdef DL_NOW
13577 # define LT_DLLAZY_OR_NOW DL_NOW
13578 # else
13579 # define LT_DLLAZY_OR_NOW 0
13580 # endif
13581 # endif
13582 # endif
13583 # endif
13584 #endif
13585
13586 /* When -fvisibility=hidden is used, assume the code has been annotated
13587 correspondingly for the symbols needed. */
13588 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13589 int fnord () __attribute__((visibility("default")));
13590 #endif
13591
13592 int fnord () { return 42; }
13593 int main ()
13594 {
13595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13596 int status = $lt_dlunknown;
13597
13598 if (self)
13599 {
13600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13601 else
13602 {
13603 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13604 else puts (dlerror ());
13605 }
13606 /* dlclose (self); */
13607 }
13608 else
13609 puts (dlerror ());
13610
13611 return status;
13612 }
13613 _LT_EOF
13614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13615 (eval $ac_link) 2>&5
13616 ac_status=$?
13617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13618 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13619 (./conftest; exit; ) >&5 2>/dev/null
13620 lt_status=$?
13621 case x$lt_status in
13622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13624 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13625 esac
13626 else :
13627 # compilation failed
13628 lt_cv_dlopen_self=no
13629 fi
13630 fi
13631 rm -fr conftest*
13632
13633
13634 fi
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13636 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13637
13638 if test yes = "$lt_cv_dlopen_self"; then
13639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13641 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13642 if test ${lt_cv_dlopen_self_static+y}
13643 then :
13644 printf %s "(cached) " >&6
13645 else $as_nop
13646 if test yes = "$cross_compiling"; then :
13647 lt_cv_dlopen_self_static=cross
13648 else
13649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13650 lt_status=$lt_dlunknown
13651 cat > conftest.$ac_ext <<_LT_EOF
13652 #line $LINENO "configure"
13653 #include "confdefs.h"
13654
13655 #if HAVE_DLFCN_H
13656 #include <dlfcn.h>
13657 #endif
13658
13659 #include <stdio.h>
13660
13661 #ifdef RTLD_GLOBAL
13662 # define LT_DLGLOBAL RTLD_GLOBAL
13663 #else
13664 # ifdef DL_GLOBAL
13665 # define LT_DLGLOBAL DL_GLOBAL
13666 # else
13667 # define LT_DLGLOBAL 0
13668 # endif
13669 #endif
13670
13671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13672 find out it does not work in some platform. */
13673 #ifndef LT_DLLAZY_OR_NOW
13674 # ifdef RTLD_LAZY
13675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13676 # else
13677 # ifdef DL_LAZY
13678 # define LT_DLLAZY_OR_NOW DL_LAZY
13679 # else
13680 # ifdef RTLD_NOW
13681 # define LT_DLLAZY_OR_NOW RTLD_NOW
13682 # else
13683 # ifdef DL_NOW
13684 # define LT_DLLAZY_OR_NOW DL_NOW
13685 # else
13686 # define LT_DLLAZY_OR_NOW 0
13687 # endif
13688 # endif
13689 # endif
13690 # endif
13691 #endif
13692
13693 /* When -fvisibility=hidden is used, assume the code has been annotated
13694 correspondingly for the symbols needed. */
13695 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13696 int fnord () __attribute__((visibility("default")));
13697 #endif
13698
13699 int fnord () { return 42; }
13700 int main ()
13701 {
13702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13703 int status = $lt_dlunknown;
13704
13705 if (self)
13706 {
13707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13708 else
13709 {
13710 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13711 else puts (dlerror ());
13712 }
13713 /* dlclose (self); */
13714 }
13715 else
13716 puts (dlerror ());
13717
13718 return status;
13719 }
13720 _LT_EOF
13721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13722 (eval $ac_link) 2>&5
13723 ac_status=$?
13724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13725 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13726 (./conftest; exit; ) >&5 2>/dev/null
13727 lt_status=$?
13728 case x$lt_status in
13729 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13730 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13731 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13732 esac
13733 else :
13734 # compilation failed
13735 lt_cv_dlopen_self_static=no
13736 fi
13737 fi
13738 rm -fr conftest*
13739
13740
13741 fi
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13743 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13744 fi
13745
13746 CPPFLAGS=$save_CPPFLAGS
13747 LDFLAGS=$save_LDFLAGS
13748 LIBS=$save_LIBS
13749 ;;
13750 esac
13751
13752 case $lt_cv_dlopen_self in
13753 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13754 *) enable_dlopen_self=unknown ;;
13755 esac
13756
13757 case $lt_cv_dlopen_self_static in
13758 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13759 *) enable_dlopen_self_static=unknown ;;
13760 esac
13761 fi
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779 striplib=
13780 old_striplib=
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13782 printf %s "checking whether stripping libraries is possible... " >&6; }
13783 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13784 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13785 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13787 printf "%s\n" "yes" >&6; }
13788 else
13789 # FIXME - insert some real tests, host_os isn't really good enough
13790 case $host_os in
13791 darwin*)
13792 if test -n "$STRIP"; then
13793 striplib="$STRIP -x"
13794 old_striplib="$STRIP -S"
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 printf "%s\n" "yes" >&6; }
13797 else
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 printf "%s\n" "no" >&6; }
13800 fi
13801 ;;
13802 *)
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 printf "%s\n" "no" >&6; }
13805 ;;
13806 esac
13807 fi
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820 # Report what library types will actually be built
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13822 printf %s "checking if libtool supports shared libraries... " >&6; }
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13824 printf "%s\n" "$can_build_shared" >&6; }
13825
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13827 printf %s "checking whether to build shared libraries... " >&6; }
13828 test no = "$can_build_shared" && enable_shared=no
13829
13830 # On AIX, shared libraries and static libraries use the same namespace, and
13831 # are all built from PIC.
13832 case $host_os in
13833 aix3*)
13834 test yes = "$enable_shared" && enable_static=no
13835 if test -n "$RANLIB"; then
13836 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13837 postinstall_cmds='$RANLIB $lib'
13838 fi
13839 ;;
13840
13841 aix[4-9]*)
13842 if test ia64 != "$host_cpu"; then
13843 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13844 yes,aix,yes) ;; # shared object as lib.so file only
13845 yes,svr4,*) ;; # shared object as lib.so archive member only
13846 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13847 esac
13848 fi
13849 ;;
13850 esac
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13852 printf "%s\n" "$enable_shared" >&6; }
13853
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13855 printf %s "checking whether to build static libraries... " >&6; }
13856 # Make sure either enable_shared or enable_static is yes.
13857 test yes = "$enable_shared" || enable_static=yes
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13859 printf "%s\n" "$enable_static" >&6; }
13860
13861
13862
13863
13864 fi
13865 ac_ext=cpp
13866 ac_cpp='$CXXCPP $CPPFLAGS'
13867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13870
13871 CC=$lt_save_CC
13872
13873 if test -n "$CXX" && ( test no != "$CXX" &&
13874 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13875 (test g++ != "$CXX"))); then
13876 ac_ext=cpp
13877 ac_cpp='$CXXCPP $CPPFLAGS'
13878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13882 printf %s "checking how to run the C++ preprocessor... " >&6; }
13883 if test -z "$CXXCPP"; then
13884 if test ${ac_cv_prog_CXXCPP+y}
13885 then :
13886 printf %s "(cached) " >&6
13887 else $as_nop
13888 # Double quotes because $CXX needs to be expanded
13889 for CXXCPP in "$CXX -E" cpp /lib/cpp
13890 do
13891 ac_preproc_ok=false
13892 for ac_cxx_preproc_warn_flag in '' yes
13893 do
13894 # Use a header file that comes with gcc, so configuring glibc
13895 # with a fresh cross-compiler works.
13896 # On the NeXT, cc -E runs the code through the compiler's parser,
13897 # not just through cpp. "Syntax error" is here to catch this case.
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include <limits.h>
13901 Syntax error
13902 _ACEOF
13903 if ac_fn_cxx_try_cpp "$LINENO"
13904 then :
13905
13906 else $as_nop
13907 # Broken: fails on valid input.
13908 continue
13909 fi
13910 rm -f conftest.err conftest.i conftest.$ac_ext
13911
13912 # OK, works on sane cases. Now check whether nonexistent headers
13913 # can be detected and how.
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 #include <ac_nonexistent.h>
13917 _ACEOF
13918 if ac_fn_cxx_try_cpp "$LINENO"
13919 then :
13920 # Broken: success on invalid input.
13921 continue
13922 else $as_nop
13923 # Passes both tests.
13924 ac_preproc_ok=:
13925 break
13926 fi
13927 rm -f conftest.err conftest.i conftest.$ac_ext
13928
13929 done
13930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13931 rm -f conftest.i conftest.err conftest.$ac_ext
13932 if $ac_preproc_ok
13933 then :
13934 break
13935 fi
13936
13937 done
13938 ac_cv_prog_CXXCPP=$CXXCPP
13939
13940 fi
13941 CXXCPP=$ac_cv_prog_CXXCPP
13942 else
13943 ac_cv_prog_CXXCPP=$CXXCPP
13944 fi
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13946 printf "%s\n" "$CXXCPP" >&6; }
13947 ac_preproc_ok=false
13948 for ac_cxx_preproc_warn_flag in '' yes
13949 do
13950 # Use a header file that comes with gcc, so configuring glibc
13951 # with a fresh cross-compiler works.
13952 # On the NeXT, cc -E runs the code through the compiler's parser,
13953 # not just through cpp. "Syntax error" is here to catch this case.
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 #include <limits.h>
13957 Syntax error
13958 _ACEOF
13959 if ac_fn_cxx_try_cpp "$LINENO"
13960 then :
13961
13962 else $as_nop
13963 # Broken: fails on valid input.
13964 continue
13965 fi
13966 rm -f conftest.err conftest.i conftest.$ac_ext
13967
13968 # OK, works on sane cases. Now check whether nonexistent headers
13969 # can be detected and how.
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 #include <ac_nonexistent.h>
13973 _ACEOF
13974 if ac_fn_cxx_try_cpp "$LINENO"
13975 then :
13976 # Broken: success on invalid input.
13977 continue
13978 else $as_nop
13979 # Passes both tests.
13980 ac_preproc_ok=:
13981 break
13982 fi
13983 rm -f conftest.err conftest.i conftest.$ac_ext
13984
13985 done
13986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13987 rm -f conftest.i conftest.err conftest.$ac_ext
13988 if $ac_preproc_ok
13989 then :
13990
13991 else $as_nop
13992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13994 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13995 See \`config.log' for more details" "$LINENO" 5; }
13996 fi
13997
13998 ac_ext=cpp
13999 ac_cpp='$CXXCPP $CPPFLAGS'
14000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14003
14004 else
14005 _lt_caught_CXX_error=yes
14006 fi
14007
14008 ac_ext=cpp
14009 ac_cpp='$CXXCPP $CPPFLAGS'
14010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14013
14014 archive_cmds_need_lc_CXX=no
14015 allow_undefined_flag_CXX=
14016 always_export_symbols_CXX=no
14017 archive_expsym_cmds_CXX=
14018 compiler_needs_object_CXX=no
14019 export_dynamic_flag_spec_CXX=
14020 hardcode_direct_CXX=no
14021 hardcode_direct_absolute_CXX=no
14022 hardcode_libdir_flag_spec_CXX=
14023 hardcode_libdir_separator_CXX=
14024 hardcode_minus_L_CXX=no
14025 hardcode_shlibpath_var_CXX=unsupported
14026 hardcode_automatic_CXX=no
14027 inherit_rpath_CXX=no
14028 module_cmds_CXX=
14029 module_expsym_cmds_CXX=
14030 link_all_deplibs_CXX=unknown
14031 old_archive_cmds_CXX=$old_archive_cmds
14032 reload_flag_CXX=$reload_flag
14033 reload_cmds_CXX=$reload_cmds
14034 no_undefined_flag_CXX=
14035 whole_archive_flag_spec_CXX=
14036 enable_shared_with_static_runtimes_CXX=no
14037
14038 # Source file extension for C++ test sources.
14039 ac_ext=cpp
14040
14041 # Object file extension for compiled C++ test sources.
14042 objext=o
14043 objext_CXX=$objext
14044
14045 # No sense in running all these tests if we already determined that
14046 # the CXX compiler isn't working. Some variables (like enable_shared)
14047 # are currently assumed to apply to all compilers on this platform,
14048 # and will be corrupted by setting them based on a non-working compiler.
14049 if test yes != "$_lt_caught_CXX_error"; then
14050 # Code to be used in simple compile tests
14051 lt_simple_compile_test_code="int some_variable = 0;"
14052
14053 # Code to be used in simple link tests
14054 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14055
14056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14057
14058
14059
14060
14061
14062
14063 # If no C compiler was specified, use CC.
14064 LTCC=${LTCC-"$CC"}
14065
14066 # If no C compiler flags were specified, use CFLAGS.
14067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14068
14069 # Allow CC to be a program name with arguments.
14070 compiler=$CC
14071
14072
14073 # save warnings/boilerplate of simple test code
14074 ac_outfile=conftest.$ac_objext
14075 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14077 _lt_compiler_boilerplate=`cat conftest.err`
14078 $RM conftest*
14079
14080 ac_outfile=conftest.$ac_objext
14081 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14083 _lt_linker_boilerplate=`cat conftest.err`
14084 $RM -r conftest*
14085
14086
14087 # Allow CC to be a program name with arguments.
14088 lt_save_CC=$CC
14089 lt_save_CFLAGS=$CFLAGS
14090 lt_save_LD=$LD
14091 lt_save_GCC=$GCC
14092 GCC=$GXX
14093 lt_save_with_gnu_ld=$with_gnu_ld
14094 lt_save_path_LD=$lt_cv_path_LD
14095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14097 else
14098 $as_unset lt_cv_prog_gnu_ld
14099 fi
14100 if test -n "${lt_cv_path_LDCXX+set}"; then
14101 lt_cv_path_LD=$lt_cv_path_LDCXX
14102 else
14103 $as_unset lt_cv_path_LD
14104 fi
14105 test -z "${LDCXX+set}" || LD=$LDCXX
14106 CC=${CXX-"c++"}
14107 CFLAGS=$CXXFLAGS
14108 compiler=$CC
14109 compiler_CXX=$CC
14110 func_cc_basename $compiler
14111 cc_basename=$func_cc_basename_result
14112
14113
14114 if test -n "$compiler"; then
14115 # We don't want -fno-exception when compiling C++ code, so set the
14116 # no_builtin_flag separately
14117 if test yes = "$GXX"; then
14118 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14119 else
14120 lt_prog_compiler_no_builtin_flag_CXX=
14121 fi
14122
14123 if test yes = "$GXX"; then
14124 # Set up default GNU C++ configuration
14125
14126
14127
14128 # Check whether --with-gnu-ld was given.
14129 if test ${with_gnu_ld+y}
14130 then :
14131 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14132 else $as_nop
14133 with_gnu_ld=no
14134 fi
14135
14136 ac_prog=ld
14137 if test yes = "$GCC"; then
14138 # Check if gcc -print-prog-name=ld gives a path.
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14140 printf %s "checking for ld used by $CC... " >&6; }
14141 case $host in
14142 *-*-mingw*)
14143 # gcc leaves a trailing carriage return, which upsets mingw
14144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14145 *)
14146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14147 esac
14148 case $ac_prog in
14149 # Accept absolute paths.
14150 [\\/]* | ?:[\\/]*)
14151 re_direlt='/[^/][^/]*/\.\./'
14152 # Canonicalize the pathname of ld
14153 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14155 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14156 done
14157 test -z "$LD" && LD=$ac_prog
14158 ;;
14159 "")
14160 # If it fails, then pretend we aren't using GCC.
14161 ac_prog=ld
14162 ;;
14163 *)
14164 # If it is relative, then search for the first ld in PATH.
14165 with_gnu_ld=unknown
14166 ;;
14167 esac
14168 elif test yes = "$with_gnu_ld"; then
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14170 printf %s "checking for GNU ld... " >&6; }
14171 else
14172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14173 printf %s "checking for non-GNU ld... " >&6; }
14174 fi
14175 if test ${lt_cv_path_LD+y}
14176 then :
14177 printf %s "(cached) " >&6
14178 else $as_nop
14179 if test -z "$LD"; then
14180 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14181 for ac_dir in $PATH; do
14182 IFS=$lt_save_ifs
14183 test -z "$ac_dir" && ac_dir=.
14184 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14185 lt_cv_path_LD=$ac_dir/$ac_prog
14186 # Check to see if the program is GNU ld. I'd rather use --version,
14187 # but apparently some variants of GNU ld only accept -v.
14188 # Break only if it was the GNU/non-GNU ld that we prefer.
14189 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14190 *GNU* | *'with BFD'*)
14191 test no != "$with_gnu_ld" && break
14192 ;;
14193 *)
14194 test yes != "$with_gnu_ld" && break
14195 ;;
14196 esac
14197 fi
14198 done
14199 IFS=$lt_save_ifs
14200 else
14201 lt_cv_path_LD=$LD # Let the user override the test with a path.
14202 fi
14203 fi
14204
14205 LD=$lt_cv_path_LD
14206 if test -n "$LD"; then
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14208 printf "%s\n" "$LD" >&6; }
14209 else
14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14211 printf "%s\n" "no" >&6; }
14212 fi
14213 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14215 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14216 if test ${lt_cv_prog_gnu_ld+y}
14217 then :
14218 printf %s "(cached) " >&6
14219 else $as_nop
14220 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14221 case `$LD -v 2>&1 </dev/null` in
14222 *GNU* | *'with BFD'*)
14223 lt_cv_prog_gnu_ld=yes
14224 ;;
14225 *)
14226 lt_cv_prog_gnu_ld=no
14227 ;;
14228 esac
14229 fi
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14231 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14232 with_gnu_ld=$lt_cv_prog_gnu_ld
14233
14234
14235
14236
14237
14238
14239
14240 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14241 # archiving commands below assume that GNU ld is being used.
14242 if test yes = "$with_gnu_ld"; then
14243 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14244 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'
14245
14246 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14247 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14248
14249 # If archive_cmds runs LD, not CC, wlarc should be empty
14250 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14251 # investigate it a little bit more. (MM)
14252 wlarc='$wl'
14253
14254 # ancient GNU ld didn't support --whole-archive et. al.
14255 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14256 $GREP 'no-whole-archive' > /dev/null; then
14257 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14258 else
14259 whole_archive_flag_spec_CXX=
14260 fi
14261 else
14262 with_gnu_ld=no
14263 wlarc=
14264
14265 # A generic and very simple default shared library creation
14266 # command for GNU C++ for the case where it uses the native
14267 # linker, instead of GNU ld. If possible, this setting should
14268 # overridden to take advantage of the native linker features on
14269 # the platform it is being used on.
14270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14271 fi
14272
14273 # Commands to make compiler produce verbose output that lists
14274 # what "hidden" libraries, object files and flags are used when
14275 # linking a shared library.
14276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14277
14278 else
14279 GXX=no
14280 with_gnu_ld=no
14281 wlarc=
14282 fi
14283
14284 # PORTME: fill in a description of your system's C++ link characteristics
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14286 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14287 ld_shlibs_CXX=yes
14288 case $host_os in
14289 aix3*)
14290 # FIXME: insert proper C++ library support
14291 ld_shlibs_CXX=no
14292 ;;
14293 aix[4-9]*)
14294 if test ia64 = "$host_cpu"; then
14295 # On IA64, the linker does run time linking by default, so we don't
14296 # have to do anything special.
14297 aix_use_runtimelinking=no
14298 exp_sym_flag='-Bexport'
14299 no_entry_flag=
14300 else
14301 aix_use_runtimelinking=no
14302
14303 # Test if we are trying to use run time linking or normal
14304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14305 # have runtime linking enabled, and use it for executables.
14306 # For shared libraries, we enable/disable runtime linking
14307 # depending on the kind of the shared library created -
14308 # when "with_aix_soname,aix_use_runtimelinking" is:
14309 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14310 # "aix,yes" lib.so shared, rtl:yes, for executables
14311 # lib.a static archive
14312 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14313 # lib.a(lib.so.V) shared, rtl:no, for executables
14314 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14315 # lib.a(lib.so.V) shared, rtl:no
14316 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14317 # lib.a static archive
14318 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14319 for ld_flag in $LDFLAGS; do
14320 case $ld_flag in
14321 *-brtl*)
14322 aix_use_runtimelinking=yes
14323 break
14324 ;;
14325 esac
14326 done
14327 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14328 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14329 # so we don't have lib.a shared libs to link our executables.
14330 # We have to force runtime linking in this case.
14331 aix_use_runtimelinking=yes
14332 LDFLAGS="$LDFLAGS -Wl,-brtl"
14333 fi
14334 ;;
14335 esac
14336
14337 exp_sym_flag='-bexport'
14338 no_entry_flag='-bnoentry'
14339 fi
14340
14341 # When large executables or shared objects are built, AIX ld can
14342 # have problems creating the table of contents. If linking a library
14343 # or program results in "error TOC overflow" add -mminimal-toc to
14344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14346
14347 archive_cmds_CXX=''
14348 hardcode_direct_CXX=yes
14349 hardcode_direct_absolute_CXX=yes
14350 hardcode_libdir_separator_CXX=':'
14351 link_all_deplibs_CXX=yes
14352 file_list_spec_CXX='$wl-f,'
14353 case $with_aix_soname,$aix_use_runtimelinking in
14354 aix,*) ;; # no import file
14355 svr4,* | *,yes) # use import file
14356 # The Import File defines what to hardcode.
14357 hardcode_direct_CXX=no
14358 hardcode_direct_absolute_CXX=no
14359 ;;
14360 esac
14361
14362 if test yes = "$GXX"; then
14363 case $host_os in aix4.[012]|aix4.[012].*)
14364 # We only want to do this on AIX 4.2 and lower, the check
14365 # below for broken collect2 doesn't work under 4.3+
14366 collect2name=`$CC -print-prog-name=collect2`
14367 if test -f "$collect2name" &&
14368 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14369 then
14370 # We have reworked collect2
14371 :
14372 else
14373 # We have old collect2
14374 hardcode_direct_CXX=unsupported
14375 # It fails to find uninstalled libraries when the uninstalled
14376 # path is not listed in the libpath. Setting hardcode_minus_L
14377 # to unsupported forces relinking
14378 hardcode_minus_L_CXX=yes
14379 hardcode_libdir_flag_spec_CXX='-L$libdir'
14380 hardcode_libdir_separator_CXX=
14381 fi
14382 esac
14383 shared_flag='-shared'
14384 if test yes = "$aix_use_runtimelinking"; then
14385 shared_flag=$shared_flag' $wl-G'
14386 fi
14387 # Need to ensure runtime linking is disabled for the traditional
14388 # shared library, or the linker may eventually find shared libraries
14389 # /with/ Import File - we do not want to mix them.
14390 shared_flag_aix='-shared'
14391 shared_flag_svr4='-shared $wl-G'
14392 else
14393 # not using gcc
14394 if test ia64 = "$host_cpu"; then
14395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14396 # chokes on -Wl,-G. The following line is correct:
14397 shared_flag='-G'
14398 else
14399 if test yes = "$aix_use_runtimelinking"; then
14400 shared_flag='$wl-G'
14401 else
14402 shared_flag='$wl-bM:SRE'
14403 fi
14404 shared_flag_aix='$wl-bM:SRE'
14405 shared_flag_svr4='$wl-G'
14406 fi
14407 fi
14408
14409 export_dynamic_flag_spec_CXX='$wl-bexpall'
14410 # It seems that -bexpall does not export symbols beginning with
14411 # underscore (_), so it is better to generate a list of symbols to
14412 # export.
14413 always_export_symbols_CXX=yes
14414 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14415 # Warning - without using the other runtime loading flags (-brtl),
14416 # -berok will link without error, but may produce a broken library.
14417 # The "-G" linker flag allows undefined symbols.
14418 no_undefined_flag_CXX='-bernotok'
14419 # Determine the default libpath from the value encoded in an empty
14420 # executable.
14421 if test set = "${lt_cv_aix_libpath+set}"; then
14422 aix_libpath=$lt_cv_aix_libpath
14423 else
14424 if test ${lt_cv_aix_libpath__CXX+y}
14425 then :
14426 printf %s "(cached) " >&6
14427 else $as_nop
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430
14431 int
14432 main (void)
14433 {
14434
14435 ;
14436 return 0;
14437 }
14438 _ACEOF
14439 if ac_fn_cxx_try_link "$LINENO"
14440 then :
14441
14442 lt_aix_libpath_sed='
14443 /Import File Strings/,/^$/ {
14444 /^0/ {
14445 s/^0 *\([^ ]*\) *$/\1/
14446 p
14447 }
14448 }'
14449 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14450 # Check for a 64-bit object if we didn't find anything.
14451 if test -z "$lt_cv_aix_libpath__CXX"; then
14452 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14453 fi
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14456 conftest$ac_exeext conftest.$ac_ext
14457 if test -z "$lt_cv_aix_libpath__CXX"; then
14458 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14459 fi
14460
14461 fi
14462
14463 aix_libpath=$lt_cv_aix_libpath__CXX
14464 fi
14465
14466 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14467
14468 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
14469 else
14470 if test ia64 = "$host_cpu"; then
14471 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14472 allow_undefined_flag_CXX="-z nodefs"
14473 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"
14474 else
14475 # Determine the default libpath from the value encoded in an
14476 # empty executable.
14477 if test set = "${lt_cv_aix_libpath+set}"; then
14478 aix_libpath=$lt_cv_aix_libpath
14479 else
14480 if test ${lt_cv_aix_libpath__CXX+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else $as_nop
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486
14487 int
14488 main (void)
14489 {
14490
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_cxx_try_link "$LINENO"
14496 then :
14497
14498 lt_aix_libpath_sed='
14499 /Import File Strings/,/^$/ {
14500 /^0/ {
14501 s/^0 *\([^ ]*\) *$/\1/
14502 p
14503 }
14504 }'
14505 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14506 # Check for a 64-bit object if we didn't find anything.
14507 if test -z "$lt_cv_aix_libpath__CXX"; then
14508 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14509 fi
14510 fi
14511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14512 conftest$ac_exeext conftest.$ac_ext
14513 if test -z "$lt_cv_aix_libpath__CXX"; then
14514 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14515 fi
14516
14517 fi
14518
14519 aix_libpath=$lt_cv_aix_libpath__CXX
14520 fi
14521
14522 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14523 # Warning - without using the other run time loading flags,
14524 # -berok will link without error, but may produce a broken library.
14525 no_undefined_flag_CXX=' $wl-bernotok'
14526 allow_undefined_flag_CXX=' $wl-berok'
14527 if test yes = "$with_gnu_ld"; then
14528 # We only use this code for GNU lds that support --whole-archive.
14529 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14530 else
14531 # Exported symbols can be pulled into shared objects from archives
14532 whole_archive_flag_spec_CXX='$convenience'
14533 fi
14534 archive_cmds_need_lc_CXX=yes
14535 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14536 # -brtl affects multiple linker settings, -berok does not and is overridden later
14537 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14538 if test svr4 != "$with_aix_soname"; then
14539 # This is similar to how AIX traditionally builds its shared
14540 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14541 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'
14542 fi
14543 if test aix != "$with_aix_soname"; then
14544 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'
14545 else
14546 # used by -dlpreopen to get the symbols
14547 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14548 fi
14549 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14550 fi
14551 fi
14552 ;;
14553
14554 beos*)
14555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14556 allow_undefined_flag_CXX=unsupported
14557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14558 # support --undefined. This deserves some investigation. FIXME
14559 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14560 else
14561 ld_shlibs_CXX=no
14562 fi
14563 ;;
14564
14565 chorus*)
14566 case $cc_basename in
14567 *)
14568 # FIXME: insert proper C++ library support
14569 ld_shlibs_CXX=no
14570 ;;
14571 esac
14572 ;;
14573
14574 cygwin* | mingw* | pw32* | cegcc*)
14575 case $GXX,$cc_basename in
14576 ,cl* | no,cl*)
14577 # Native MSVC
14578 # hardcode_libdir_flag_spec is actually meaningless, as there is
14579 # no search path for DLLs.
14580 hardcode_libdir_flag_spec_CXX=' '
14581 allow_undefined_flag_CXX=unsupported
14582 always_export_symbols_CXX=yes
14583 file_list_spec_CXX='@'
14584 # Tell ltmain to make .lib files, not .a files.
14585 libext=lib
14586 # Tell ltmain to make .dll files, not .so files.
14587 shrext_cmds=.dll
14588 # FIXME: Setting linknames here is a bad hack.
14589 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14590 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14591 cp "$export_symbols" "$output_objdir/$soname.def";
14592 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14593 else
14594 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14595 fi~
14596 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14597 linknames='
14598 # The linker will not automatically build a static lib if we build a DLL.
14599 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14600 enable_shared_with_static_runtimes_CXX=yes
14601 # Don't use ranlib
14602 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14603 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14604 lt_tool_outputfile="@TOOL_OUTPUT@"~
14605 case $lt_outputfile in
14606 *.exe|*.EXE) ;;
14607 *)
14608 lt_outputfile=$lt_outputfile.exe
14609 lt_tool_outputfile=$lt_tool_outputfile.exe
14610 ;;
14611 esac~
14612 func_to_tool_file "$lt_outputfile"~
14613 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14614 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14615 $RM "$lt_outputfile.manifest";
14616 fi'
14617 ;;
14618 *)
14619 # g++
14620 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14621 # as there is no search path for DLLs.
14622 hardcode_libdir_flag_spec_CXX='-L$libdir'
14623 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14624 allow_undefined_flag_CXX=unsupported
14625 always_export_symbols_CXX=no
14626 enable_shared_with_static_runtimes_CXX=yes
14627
14628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14629 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'
14630 # If the export-symbols file already is a .def file, use it as
14631 # is; otherwise, prepend EXPORTS...
14632 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14633 cp $export_symbols $output_objdir/$soname.def;
14634 else
14635 echo EXPORTS > $output_objdir/$soname.def;
14636 cat $export_symbols >> $output_objdir/$soname.def;
14637 fi~
14638 $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'
14639 else
14640 ld_shlibs_CXX=no
14641 fi
14642 ;;
14643 esac
14644 ;;
14645 darwin* | rhapsody*)
14646
14647
14648 archive_cmds_need_lc_CXX=no
14649 hardcode_direct_CXX=no
14650 hardcode_automatic_CXX=yes
14651 hardcode_shlibpath_var_CXX=unsupported
14652 if test yes = "$lt_cv_ld_force_load"; then
14653 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\"`'
14654
14655 else
14656 whole_archive_flag_spec_CXX=''
14657 fi
14658 link_all_deplibs_CXX=yes
14659 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14660 case $cc_basename in
14661 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14662 *) _lt_dar_can_shared=$GCC ;;
14663 esac
14664 if test yes = "$_lt_dar_can_shared"; then
14665 output_verbose_link_cmd=func_echo_all
14666 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"
14667 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14668 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"
14669 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"
14670 if test yes != "$lt_cv_apple_cc_single_mod"; then
14671 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"
14672 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"
14673 fi
14674
14675 else
14676 ld_shlibs_CXX=no
14677 fi
14678
14679 ;;
14680
14681 os2*)
14682 hardcode_libdir_flag_spec_CXX='-L$libdir'
14683 hardcode_minus_L_CXX=yes
14684 allow_undefined_flag_CXX=unsupported
14685 shrext_cmds=.dll
14686 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14687 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14688 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14689 $ECHO EXPORTS >> $output_objdir/$libname.def~
14690 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14692 emximp -o $lib $output_objdir/$libname.def'
14693 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14694 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14695 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14696 $ECHO EXPORTS >> $output_objdir/$libname.def~
14697 prefix_cmds="$SED"~
14698 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14699 prefix_cmds="$prefix_cmds -e 1d";
14700 fi~
14701 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14702 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14703 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14704 emximp -o $lib $output_objdir/$libname.def'
14705 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14706 enable_shared_with_static_runtimes_CXX=yes
14707 ;;
14708
14709 dgux*)
14710 case $cc_basename in
14711 ec++*)
14712 # FIXME: insert proper C++ library support
14713 ld_shlibs_CXX=no
14714 ;;
14715 ghcx*)
14716 # Green Hills C++ Compiler
14717 # FIXME: insert proper C++ library support
14718 ld_shlibs_CXX=no
14719 ;;
14720 *)
14721 # FIXME: insert proper C++ library support
14722 ld_shlibs_CXX=no
14723 ;;
14724 esac
14725 ;;
14726
14727 freebsd2.*)
14728 # C++ shared libraries reported to be fairly broken before
14729 # switch to ELF
14730 ld_shlibs_CXX=no
14731 ;;
14732
14733 freebsd-elf*)
14734 archive_cmds_need_lc_CXX=no
14735 ;;
14736
14737 freebsd* | dragonfly*)
14738 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14739 # conventions
14740 ld_shlibs_CXX=yes
14741 ;;
14742
14743 haiku*)
14744 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14745 link_all_deplibs_CXX=yes
14746 ;;
14747
14748 hpux9*)
14749 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14750 hardcode_libdir_separator_CXX=:
14751 export_dynamic_flag_spec_CXX='$wl-E'
14752 hardcode_direct_CXX=yes
14753 hardcode_minus_L_CXX=yes # Not in the search PATH,
14754 # but as the default
14755 # location of the library.
14756
14757 case $cc_basename in
14758 CC*)
14759 # FIXME: insert proper C++ library support
14760 ld_shlibs_CXX=no
14761 ;;
14762 aCC*)
14763 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'
14764 # Commands to make compiler produce verbose output that lists
14765 # what "hidden" libraries, object files and flags are used when
14766 # linking a shared library.
14767 #
14768 # There doesn't appear to be a way to prevent this compiler from
14769 # explicitly linking system object files so we need to strip them
14770 # from the output so that they don't get included in the library
14771 # dependencies.
14772 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"'
14773 ;;
14774 *)
14775 if test yes = "$GXX"; then
14776 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'
14777 else
14778 # FIXME: insert proper C++ library support
14779 ld_shlibs_CXX=no
14780 fi
14781 ;;
14782 esac
14783 ;;
14784
14785 hpux10*|hpux11*)
14786 if test no = "$with_gnu_ld"; then
14787 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14788 hardcode_libdir_separator_CXX=:
14789
14790 case $host_cpu in
14791 hppa*64*|ia64*)
14792 ;;
14793 *)
14794 export_dynamic_flag_spec_CXX='$wl-E'
14795 ;;
14796 esac
14797 fi
14798 case $host_cpu in
14799 hppa*64*|ia64*)
14800 hardcode_direct_CXX=no
14801 hardcode_shlibpath_var_CXX=no
14802 ;;
14803 *)
14804 hardcode_direct_CXX=yes
14805 hardcode_direct_absolute_CXX=yes
14806 hardcode_minus_L_CXX=yes # Not in the search PATH,
14807 # but as the default
14808 # location of the library.
14809 ;;
14810 esac
14811
14812 case $cc_basename in
14813 CC*)
14814 # FIXME: insert proper C++ library support
14815 ld_shlibs_CXX=no
14816 ;;
14817 aCC*)
14818 case $host_cpu in
14819 hppa*64*)
14820 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14821 ;;
14822 ia64*)
14823 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14824 ;;
14825 *)
14826 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14827 ;;
14828 esac
14829 # Commands to make compiler produce verbose output that lists
14830 # what "hidden" libraries, object files and flags are used when
14831 # linking a shared library.
14832 #
14833 # There doesn't appear to be a way to prevent this compiler from
14834 # explicitly linking system object files so we need to strip them
14835 # from the output so that they don't get included in the library
14836 # dependencies.
14837 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"'
14838 ;;
14839 *)
14840 if test yes = "$GXX"; then
14841 if test no = "$with_gnu_ld"; then
14842 case $host_cpu in
14843 hppa*64*)
14844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14845 ;;
14846 ia64*)
14847 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848 ;;
14849 *)
14850 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'
14851 ;;
14852 esac
14853 fi
14854 else
14855 # FIXME: insert proper C++ library support
14856 ld_shlibs_CXX=no
14857 fi
14858 ;;
14859 esac
14860 ;;
14861
14862 interix[3-9]*)
14863 hardcode_direct_CXX=no
14864 hardcode_shlibpath_var_CXX=no
14865 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14866 export_dynamic_flag_spec_CXX='$wl-E'
14867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14868 # Instead, shared libraries are loaded at an image base (0x10000000 by
14869 # default) and relocated if they conflict, which is a slow very memory
14870 # consuming and fragmenting process. To avoid this, we pick a random,
14871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14873 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'
14874 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'
14875 ;;
14876 irix5* | irix6*)
14877 case $cc_basename in
14878 CC*)
14879 # SGI C++
14880 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'
14881
14882 # Archives containing C++ object files must be created using
14883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14884 # necessary to make sure instantiated templates are included
14885 # in the archive.
14886 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14887 ;;
14888 *)
14889 if test yes = "$GXX"; then
14890 if test no = "$with_gnu_ld"; then
14891 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'
14892 else
14893 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'
14894 fi
14895 fi
14896 link_all_deplibs_CXX=yes
14897 ;;
14898 esac
14899 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14900 hardcode_libdir_separator_CXX=:
14901 inherit_rpath_CXX=yes
14902 ;;
14903
14904 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14905 case $cc_basename in
14906 KCC*)
14907 # Kuck and Associates, Inc. (KAI) C++ Compiler
14908
14909 # KCC will only create a shared library if the output file
14910 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14911 # to its proper name (with version) after linking.
14912 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'
14913 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'
14914 # Commands to make compiler produce verbose output that lists
14915 # what "hidden" libraries, object files and flags are used when
14916 # linking a shared library.
14917 #
14918 # There doesn't appear to be a way to prevent this compiler from
14919 # explicitly linking system object files so we need to strip them
14920 # from the output so that they don't get included in the library
14921 # dependencies.
14922 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"'
14923
14924 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14925 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14926
14927 # Archives containing C++ object files must be created using
14928 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14929 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14930 ;;
14931 icpc* | ecpc* )
14932 # Intel C++
14933 with_gnu_ld=yes
14934 # version 8.0 and above of icpc choke on multiply defined symbols
14935 # if we add $predep_objects and $postdep_objects, however 7.1 and
14936 # earlier do not add the objects themselves.
14937 case `$CC -V 2>&1` in
14938 *"Version 7."*)
14939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14940 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'
14941 ;;
14942 *) # Version 8.0 or newer
14943 tmp_idyn=
14944 case $host_cpu in
14945 ia64*) tmp_idyn=' -i_dynamic';;
14946 esac
14947 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14948 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'
14949 ;;
14950 esac
14951 archive_cmds_need_lc_CXX=no
14952 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14953 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14954 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14955 ;;
14956 pgCC* | pgcpp*)
14957 # Portland Group C++ compiler
14958 case `$CC -V` in
14959 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14960 prelink_cmds_CXX='tpldir=Template.dir~
14961 rm -rf $tpldir~
14962 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14963 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14964 old_archive_cmds_CXX='tpldir=Template.dir~
14965 rm -rf $tpldir~
14966 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14967 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14968 $RANLIB $oldlib'
14969 archive_cmds_CXX='tpldir=Template.dir~
14970 rm -rf $tpldir~
14971 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14972 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14973 archive_expsym_cmds_CXX='tpldir=Template.dir~
14974 rm -rf $tpldir~
14975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14976 $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'
14977 ;;
14978 *) # Version 6 and above use weak symbols
14979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14980 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'
14981 ;;
14982 esac
14983
14984 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14985 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14986 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'
14987 ;;
14988 cxx*)
14989 # Compaq C++
14990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14991 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'
14992
14993 runpath_var=LD_RUN_PATH
14994 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14995 hardcode_libdir_separator_CXX=:
14996
14997 # Commands to make compiler produce verbose output that lists
14998 # what "hidden" libraries, object files and flags are used when
14999 # linking a shared library.
15000 #
15001 # There doesn't appear to be a way to prevent this compiler from
15002 # explicitly linking system object files so we need to strip them
15003 # from the output so that they don't get included in the library
15004 # dependencies.
15005 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'
15006 ;;
15007 xl* | mpixl* | bgxl*)
15008 # IBM XL 8.0 on PPC, with GNU ld
15009 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15010 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15011 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15012 if test yes = "$supports_anon_versioning"; then
15013 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15015 echo "local: *; };" >> $output_objdir/$libname.ver~
15016 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15017 fi
15018 ;;
15019 *)
15020 case `$CC -V 2>&1 | sed 5q` in
15021 *Sun\ C*)
15022 # Sun C++ 5.9
15023 no_undefined_flag_CXX=' -zdefs'
15024 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15025 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'
15026 hardcode_libdir_flag_spec_CXX='-R$libdir'
15027 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'
15028 compiler_needs_object_CXX=yes
15029
15030 # Not sure whether something based on
15031 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15032 # would be better.
15033 output_verbose_link_cmd='func_echo_all'
15034
15035 # Archives containing C++ object files must be created using
15036 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15037 # necessary to make sure instantiated templates are included
15038 # in the archive.
15039 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15040 ;;
15041 esac
15042 ;;
15043 esac
15044 ;;
15045
15046 lynxos*)
15047 # FIXME: insert proper C++ library support
15048 ld_shlibs_CXX=no
15049 ;;
15050
15051 m88k*)
15052 # FIXME: insert proper C++ library support
15053 ld_shlibs_CXX=no
15054 ;;
15055
15056 mvs*)
15057 case $cc_basename in
15058 cxx*)
15059 # FIXME: insert proper C++ library support
15060 ld_shlibs_CXX=no
15061 ;;
15062 *)
15063 # FIXME: insert proper C++ library support
15064 ld_shlibs_CXX=no
15065 ;;
15066 esac
15067 ;;
15068
15069 netbsd*)
15070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15072 wlarc=
15073 hardcode_libdir_flag_spec_CXX='-R$libdir'
15074 hardcode_direct_CXX=yes
15075 hardcode_shlibpath_var_CXX=no
15076 fi
15077 # Workaround some broken pre-1.5 toolchains
15078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15079 ;;
15080
15081 *nto* | *qnx*)
15082 ld_shlibs_CXX=yes
15083 ;;
15084
15085 openbsd* | bitrig*)
15086 if test -f /usr/libexec/ld.so; then
15087 hardcode_direct_CXX=yes
15088 hardcode_shlibpath_var_CXX=no
15089 hardcode_direct_absolute_CXX=yes
15090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15091 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15093 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15094 export_dynamic_flag_spec_CXX='$wl-E'
15095 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15096 fi
15097 output_verbose_link_cmd=func_echo_all
15098 else
15099 ld_shlibs_CXX=no
15100 fi
15101 ;;
15102
15103 osf3* | osf4* | osf5*)
15104 case $cc_basename in
15105 KCC*)
15106 # Kuck and Associates, Inc. (KAI) C++ Compiler
15107
15108 # KCC will only create a shared library if the output file
15109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15110 # to its proper name (with version) after linking.
15111 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'
15112
15113 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15114 hardcode_libdir_separator_CXX=:
15115
15116 # Archives containing C++ object files must be created using
15117 # the KAI C++ compiler.
15118 case $host in
15119 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15120 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15121 esac
15122 ;;
15123 RCC*)
15124 # Rational C++ 2.4.1
15125 # FIXME: insert proper C++ library support
15126 ld_shlibs_CXX=no
15127 ;;
15128 cxx*)
15129 case $host in
15130 osf3*)
15131 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15132 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'
15133 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15134 ;;
15135 *)
15136 allow_undefined_flag_CXX=' -expect_unresolved \*'
15137 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'
15138 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15139 echo "-hidden">> $lib.exp~
15140 $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~
15141 $RM $lib.exp'
15142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15143 ;;
15144 esac
15145
15146 hardcode_libdir_separator_CXX=:
15147
15148 # Commands to make compiler produce verbose output that lists
15149 # what "hidden" libraries, object files and flags are used when
15150 # linking a shared library.
15151 #
15152 # There doesn't appear to be a way to prevent this compiler from
15153 # explicitly linking system object files so we need to strip them
15154 # from the output so that they don't get included in the library
15155 # dependencies.
15156 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"'
15157 ;;
15158 *)
15159 if test yes,no = "$GXX,$with_gnu_ld"; then
15160 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15161 case $host in
15162 osf3*)
15163 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'
15164 ;;
15165 *)
15166 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'
15167 ;;
15168 esac
15169
15170 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15171 hardcode_libdir_separator_CXX=:
15172
15173 # Commands to make compiler produce verbose output that lists
15174 # what "hidden" libraries, object files and flags are used when
15175 # linking a shared library.
15176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15177
15178 else
15179 # FIXME: insert proper C++ library support
15180 ld_shlibs_CXX=no
15181 fi
15182 ;;
15183 esac
15184 ;;
15185
15186 psos*)
15187 # FIXME: insert proper C++ library support
15188 ld_shlibs_CXX=no
15189 ;;
15190
15191 sunos4*)
15192 case $cc_basename in
15193 CC*)
15194 # Sun C++ 4.x
15195 # FIXME: insert proper C++ library support
15196 ld_shlibs_CXX=no
15197 ;;
15198 lcc*)
15199 # Lucid
15200 # FIXME: insert proper C++ library support
15201 ld_shlibs_CXX=no
15202 ;;
15203 *)
15204 # FIXME: insert proper C++ library support
15205 ld_shlibs_CXX=no
15206 ;;
15207 esac
15208 ;;
15209
15210 solaris*)
15211 case $cc_basename in
15212 CC* | sunCC*)
15213 # Sun C++ 4.2, 5.x and Centerline C++
15214 archive_cmds_need_lc_CXX=yes
15215 no_undefined_flag_CXX=' -zdefs'
15216 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15218 $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'
15219
15220 hardcode_libdir_flag_spec_CXX='-R$libdir'
15221 hardcode_shlibpath_var_CXX=no
15222 case $host_os in
15223 solaris2.[0-5] | solaris2.[0-5].*) ;;
15224 *)
15225 # The compiler driver will combine and reorder linker options,
15226 # but understands '-z linker_flag'.
15227 # Supported since Solaris 2.6 (maybe 2.5.1?)
15228 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15229 ;;
15230 esac
15231 link_all_deplibs_CXX=yes
15232
15233 output_verbose_link_cmd='func_echo_all'
15234
15235 # Archives containing C++ object files must be created using
15236 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15237 # necessary to make sure instantiated templates are included
15238 # in the archive.
15239 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15240 ;;
15241 gcx*)
15242 # Green Hills C++ Compiler
15243 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15244
15245 # The C++ compiler must be used to create the archive.
15246 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15247 ;;
15248 *)
15249 # GNU C++ compiler with Solaris linker
15250 if test yes,no = "$GXX,$with_gnu_ld"; then
15251 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15252 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15253 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15254 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15255 $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'
15256
15257 # Commands to make compiler produce verbose output that lists
15258 # what "hidden" libraries, object files and flags are used when
15259 # linking a shared library.
15260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15261 else
15262 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15263 # platform.
15264 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15265 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15266 $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'
15267
15268 # Commands to make compiler produce verbose output that lists
15269 # what "hidden" libraries, object files and flags are used when
15270 # linking a shared library.
15271 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15272 fi
15273
15274 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15275 case $host_os in
15276 solaris2.[0-5] | solaris2.[0-5].*) ;;
15277 *)
15278 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15279 ;;
15280 esac
15281 fi
15282 ;;
15283 esac
15284 ;;
15285
15286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15287 no_undefined_flag_CXX='$wl-z,text'
15288 archive_cmds_need_lc_CXX=no
15289 hardcode_shlibpath_var_CXX=no
15290 runpath_var='LD_RUN_PATH'
15291
15292 case $cc_basename in
15293 CC*)
15294 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15295 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15296 ;;
15297 *)
15298 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15300 ;;
15301 esac
15302 ;;
15303
15304 sysv5* | sco3.2v5* | sco5v6*)
15305 # Note: We CANNOT use -z defs as we might desire, because we do not
15306 # link with -lc, and that would cause any symbols used from libc to
15307 # always be unresolved, which means just about no library would
15308 # ever link correctly. If we're not using GNU ld we use -z text
15309 # though, which does catch some bad symbols but isn't as heavy-handed
15310 # as -z defs.
15311 no_undefined_flag_CXX='$wl-z,text'
15312 allow_undefined_flag_CXX='$wl-z,nodefs'
15313 archive_cmds_need_lc_CXX=no
15314 hardcode_shlibpath_var_CXX=no
15315 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15316 hardcode_libdir_separator_CXX=':'
15317 link_all_deplibs_CXX=yes
15318 export_dynamic_flag_spec_CXX='$wl-Bexport'
15319 runpath_var='LD_RUN_PATH'
15320
15321 case $cc_basename in
15322 CC*)
15323 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15325 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15326 '"$old_archive_cmds_CXX"
15327 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15328 '"$reload_cmds_CXX"
15329 ;;
15330 *)
15331 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15332 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 ;;
15334 esac
15335 ;;
15336
15337 tandem*)
15338 case $cc_basename in
15339 NCC*)
15340 # NonStop-UX NCC 3.20
15341 # FIXME: insert proper C++ library support
15342 ld_shlibs_CXX=no
15343 ;;
15344 *)
15345 # FIXME: insert proper C++ library support
15346 ld_shlibs_CXX=no
15347 ;;
15348 esac
15349 ;;
15350
15351 vxworks*)
15352 # FIXME: insert proper C++ library support
15353 ld_shlibs_CXX=no
15354 ;;
15355
15356 *)
15357 # FIXME: insert proper C++ library support
15358 ld_shlibs_CXX=no
15359 ;;
15360 esac
15361
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15363 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15364 test no = "$ld_shlibs_CXX" && can_build_shared=no
15365
15366 GCC_CXX=$GXX
15367 LD_CXX=$LD
15368
15369 ## CAVEAT EMPTOR:
15370 ## There is no encapsulation within the following macros, do not change
15371 ## the running order or otherwise move them around unless you know exactly
15372 ## what you are doing...
15373 # Dependencies to place before and after the object being linked:
15374 predep_objects_CXX=
15375 postdep_objects_CXX=
15376 predeps_CXX=
15377 postdeps_CXX=
15378 compiler_lib_search_path_CXX=
15379
15380 cat > conftest.$ac_ext <<_LT_EOF
15381 class Foo
15382 {
15383 public:
15384 Foo (void) { a = 0; }
15385 private:
15386 int a;
15387 };
15388 _LT_EOF
15389
15390
15391 _lt_libdeps_save_CFLAGS=$CFLAGS
15392 case "$CC $CFLAGS " in #(
15393 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15394 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15395 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15396 esac
15397
15398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15399 (eval $ac_compile) 2>&5
15400 ac_status=$?
15401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }; then
15403 # Parse the compiler output and extract the necessary
15404 # objects, libraries and library flags.
15405
15406 # Sentinel used to keep track of whether or not we are before
15407 # the conftest object file.
15408 pre_test_object_deps_done=no
15409
15410 for p in `eval "$output_verbose_link_cmd"`; do
15411 case $prev$p in
15412
15413 -L* | -R* | -l*)
15414 # Some compilers place space between "-{L,R}" and the path.
15415 # Remove the space.
15416 if test x-L = "$p" ||
15417 test x-R = "$p"; then
15418 prev=$p
15419 continue
15420 fi
15421
15422 # Expand the sysroot to ease extracting the directories later.
15423 if test -z "$prev"; then
15424 case $p in
15425 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15426 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15427 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15428 esac
15429 fi
15430 case $p in
15431 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15432 esac
15433 if test no = "$pre_test_object_deps_done"; then
15434 case $prev in
15435 -L | -R)
15436 # Internal compiler library paths should come after those
15437 # provided the user. The postdeps already come after the
15438 # user supplied libs so there is no need to process them.
15439 if test -z "$compiler_lib_search_path_CXX"; then
15440 compiler_lib_search_path_CXX=$prev$p
15441 else
15442 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15443 fi
15444 ;;
15445 # The "-l" case would never come before the object being
15446 # linked, so don't bother handling this case.
15447 esac
15448 else
15449 if test -z "$postdeps_CXX"; then
15450 postdeps_CXX=$prev$p
15451 else
15452 postdeps_CXX="${postdeps_CXX} $prev$p"
15453 fi
15454 fi
15455 prev=
15456 ;;
15457
15458 *.lto.$objext) ;; # Ignore GCC LTO objects
15459 *.$objext)
15460 # This assumes that the test object file only shows up
15461 # once in the compiler output.
15462 if test "$p" = "conftest.$objext"; then
15463 pre_test_object_deps_done=yes
15464 continue
15465 fi
15466
15467 if test no = "$pre_test_object_deps_done"; then
15468 if test -z "$predep_objects_CXX"; then
15469 predep_objects_CXX=$p
15470 else
15471 predep_objects_CXX="$predep_objects_CXX $p"
15472 fi
15473 else
15474 if test -z "$postdep_objects_CXX"; then
15475 postdep_objects_CXX=$p
15476 else
15477 postdep_objects_CXX="$postdep_objects_CXX $p"
15478 fi
15479 fi
15480 ;;
15481
15482 *) ;; # Ignore the rest.
15483
15484 esac
15485 done
15486
15487 # Clean up.
15488 rm -f a.out a.exe
15489 else
15490 echo "libtool.m4: error: problem compiling CXX test program"
15491 fi
15492
15493 $RM -f confest.$objext
15494 CFLAGS=$_lt_libdeps_save_CFLAGS
15495
15496 # PORTME: override above test on systems where it is broken
15497 case $host_os in
15498 interix[3-9]*)
15499 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15500 # hack all around it, let's just trust "g++" to DTRT.
15501 predep_objects_CXX=
15502 postdep_objects_CXX=
15503 postdeps_CXX=
15504 ;;
15505 esac
15506
15507
15508 case " $postdeps_CXX " in
15509 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15510 esac
15511 compiler_lib_search_dirs_CXX=
15512 if test -n "${compiler_lib_search_path_CXX}"; then
15513 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15514 fi
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546 lt_prog_compiler_wl_CXX=
15547 lt_prog_compiler_pic_CXX=
15548 lt_prog_compiler_static_CXX=
15549
15550
15551 # C++ specific cases for pic, static, wl, etc.
15552 if test yes = "$GXX"; then
15553 lt_prog_compiler_wl_CXX='-Wl,'
15554 lt_prog_compiler_static_CXX='-static'
15555
15556 case $host_os in
15557 aix*)
15558 # All AIX code is PIC.
15559 if test ia64 = "$host_cpu"; then
15560 # AIX 5 now supports IA64 processor
15561 lt_prog_compiler_static_CXX='-Bstatic'
15562 fi
15563 lt_prog_compiler_pic_CXX='-fPIC'
15564 ;;
15565
15566 amigaos*)
15567 case $host_cpu in
15568 powerpc)
15569 # see comment about AmigaOS4 .so support
15570 lt_prog_compiler_pic_CXX='-fPIC'
15571 ;;
15572 m68k)
15573 # FIXME: we need at least 68020 code to build shared libraries, but
15574 # adding the '-m68020' flag to GCC prevents building anything better,
15575 # like '-m68040'.
15576 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15577 ;;
15578 esac
15579 ;;
15580
15581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15582 # PIC is the default for these OSes.
15583 ;;
15584 mingw* | cygwin* | os2* | pw32* | cegcc*)
15585 # This hack is so that the source file can tell whether it is being
15586 # built for inclusion in a dll (and should export symbols for example).
15587 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15588 # (--disable-auto-import) libraries
15589 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15590 case $host_os in
15591 os2*)
15592 lt_prog_compiler_static_CXX='$wl-static'
15593 ;;
15594 esac
15595 ;;
15596 darwin* | rhapsody*)
15597 # PIC is the default on this platform
15598 # Common symbols not allowed in MH_DYLIB files
15599 lt_prog_compiler_pic_CXX='-fno-common'
15600 ;;
15601 *djgpp*)
15602 # DJGPP does not support shared libraries at all
15603 lt_prog_compiler_pic_CXX=
15604 ;;
15605 haiku*)
15606 # PIC is the default for Haiku.
15607 # The "-static" flag exists, but is broken.
15608 lt_prog_compiler_static_CXX=
15609 ;;
15610 interix[3-9]*)
15611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15612 # Instead, we relocate shared libraries at runtime.
15613 ;;
15614 sysv4*MP*)
15615 if test -d /usr/nec; then
15616 lt_prog_compiler_pic_CXX=-Kconform_pic
15617 fi
15618 ;;
15619 hpux*)
15620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15622 # sets the default TLS model and affects inlining.
15623 case $host_cpu in
15624 hppa*64*)
15625 ;;
15626 *)
15627 lt_prog_compiler_pic_CXX='-fPIC'
15628 ;;
15629 esac
15630 ;;
15631 *qnx* | *nto*)
15632 # QNX uses GNU C++, but need to define -shared option too, otherwise
15633 # it will coredump.
15634 lt_prog_compiler_pic_CXX='-fPIC -shared'
15635 ;;
15636 *)
15637 lt_prog_compiler_pic_CXX='-fPIC'
15638 ;;
15639 esac
15640 else
15641 case $host_os in
15642 aix[4-9]*)
15643 # All AIX code is PIC.
15644 if test ia64 = "$host_cpu"; then
15645 # AIX 5 now supports IA64 processor
15646 lt_prog_compiler_static_CXX='-Bstatic'
15647 else
15648 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15649 fi
15650 ;;
15651 chorus*)
15652 case $cc_basename in
15653 cxch68*)
15654 # Green Hills C++ Compiler
15655 # _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"
15656 ;;
15657 esac
15658 ;;
15659 mingw* | cygwin* | os2* | pw32* | cegcc*)
15660 # This hack is so that the source file can tell whether it is being
15661 # built for inclusion in a dll (and should export symbols for example).
15662 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15663 ;;
15664 dgux*)
15665 case $cc_basename in
15666 ec++*)
15667 lt_prog_compiler_pic_CXX='-KPIC'
15668 ;;
15669 ghcx*)
15670 # Green Hills C++ Compiler
15671 lt_prog_compiler_pic_CXX='-pic'
15672 ;;
15673 *)
15674 ;;
15675 esac
15676 ;;
15677 freebsd* | dragonfly*)
15678 # FreeBSD uses GNU C++
15679 ;;
15680 hpux9* | hpux10* | hpux11*)
15681 case $cc_basename in
15682 CC*)
15683 lt_prog_compiler_wl_CXX='-Wl,'
15684 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15685 if test ia64 != "$host_cpu"; then
15686 lt_prog_compiler_pic_CXX='+Z'
15687 fi
15688 ;;
15689 aCC*)
15690 lt_prog_compiler_wl_CXX='-Wl,'
15691 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15692 case $host_cpu in
15693 hppa*64*|ia64*)
15694 # +Z the default
15695 ;;
15696 *)
15697 lt_prog_compiler_pic_CXX='+Z'
15698 ;;
15699 esac
15700 ;;
15701 *)
15702 ;;
15703 esac
15704 ;;
15705 interix*)
15706 # This is c89, which is MS Visual C++ (no shared libs)
15707 # Anyone wants to do a port?
15708 ;;
15709 irix5* | irix6* | nonstopux*)
15710 case $cc_basename in
15711 CC*)
15712 lt_prog_compiler_wl_CXX='-Wl,'
15713 lt_prog_compiler_static_CXX='-non_shared'
15714 # CC pic flag -KPIC is the default.
15715 ;;
15716 *)
15717 ;;
15718 esac
15719 ;;
15720 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15721 case $cc_basename in
15722 KCC*)
15723 # KAI C++ Compiler
15724 lt_prog_compiler_wl_CXX='--backend -Wl,'
15725 lt_prog_compiler_pic_CXX='-fPIC'
15726 ;;
15727 ecpc* )
15728 # old Intel C++ for x86_64, which still supported -KPIC.
15729 lt_prog_compiler_wl_CXX='-Wl,'
15730 lt_prog_compiler_pic_CXX='-KPIC'
15731 lt_prog_compiler_static_CXX='-static'
15732 ;;
15733 icpc* )
15734 # Intel C++, used to be incompatible with GCC.
15735 # ICC 10 doesn't accept -KPIC any more.
15736 lt_prog_compiler_wl_CXX='-Wl,'
15737 lt_prog_compiler_pic_CXX='-fPIC'
15738 lt_prog_compiler_static_CXX='-static'
15739 ;;
15740 pgCC* | pgcpp*)
15741 # Portland Group C++ compiler
15742 lt_prog_compiler_wl_CXX='-Wl,'
15743 lt_prog_compiler_pic_CXX='-fpic'
15744 lt_prog_compiler_static_CXX='-Bstatic'
15745 ;;
15746 cxx*)
15747 # Compaq C++
15748 # Make sure the PIC flag is empty. It appears that all Alpha
15749 # Linux and Compaq Tru64 Unix objects are PIC.
15750 lt_prog_compiler_pic_CXX=
15751 lt_prog_compiler_static_CXX='-non_shared'
15752 ;;
15753 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15754 # IBM XL 8.0, 9.0 on PPC and BlueGene
15755 lt_prog_compiler_wl_CXX='-Wl,'
15756 lt_prog_compiler_pic_CXX='-qpic'
15757 lt_prog_compiler_static_CXX='-qstaticlink'
15758 ;;
15759 *)
15760 case `$CC -V 2>&1 | sed 5q` in
15761 *Sun\ C*)
15762 # Sun C++ 5.9
15763 lt_prog_compiler_pic_CXX='-KPIC'
15764 lt_prog_compiler_static_CXX='-Bstatic'
15765 lt_prog_compiler_wl_CXX='-Qoption ld '
15766 ;;
15767 esac
15768 ;;
15769 esac
15770 ;;
15771 lynxos*)
15772 ;;
15773 m88k*)
15774 ;;
15775 mvs*)
15776 case $cc_basename in
15777 cxx*)
15778 lt_prog_compiler_pic_CXX='-W c,exportall'
15779 ;;
15780 *)
15781 ;;
15782 esac
15783 ;;
15784 netbsd* | netbsdelf*-gnu)
15785 ;;
15786 *qnx* | *nto*)
15787 # QNX uses GNU C++, but need to define -shared option too, otherwise
15788 # it will coredump.
15789 lt_prog_compiler_pic_CXX='-fPIC -shared'
15790 ;;
15791 osf3* | osf4* | osf5*)
15792 case $cc_basename in
15793 KCC*)
15794 lt_prog_compiler_wl_CXX='--backend -Wl,'
15795 ;;
15796 RCC*)
15797 # Rational C++ 2.4.1
15798 lt_prog_compiler_pic_CXX='-pic'
15799 ;;
15800 cxx*)
15801 # Digital/Compaq C++
15802 lt_prog_compiler_wl_CXX='-Wl,'
15803 # Make sure the PIC flag is empty. It appears that all Alpha
15804 # Linux and Compaq Tru64 Unix objects are PIC.
15805 lt_prog_compiler_pic_CXX=
15806 lt_prog_compiler_static_CXX='-non_shared'
15807 ;;
15808 *)
15809 ;;
15810 esac
15811 ;;
15812 psos*)
15813 ;;
15814 solaris*)
15815 case $cc_basename in
15816 CC* | sunCC*)
15817 # Sun C++ 4.2, 5.x and Centerline C++
15818 lt_prog_compiler_pic_CXX='-KPIC'
15819 lt_prog_compiler_static_CXX='-Bstatic'
15820 lt_prog_compiler_wl_CXX='-Qoption ld '
15821 ;;
15822 gcx*)
15823 # Green Hills C++ Compiler
15824 lt_prog_compiler_pic_CXX='-PIC'
15825 ;;
15826 *)
15827 ;;
15828 esac
15829 ;;
15830 sunos4*)
15831 case $cc_basename in
15832 CC*)
15833 # Sun C++ 4.x
15834 lt_prog_compiler_pic_CXX='-pic'
15835 lt_prog_compiler_static_CXX='-Bstatic'
15836 ;;
15837 lcc*)
15838 # Lucid
15839 lt_prog_compiler_pic_CXX='-pic'
15840 ;;
15841 *)
15842 ;;
15843 esac
15844 ;;
15845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15846 case $cc_basename in
15847 CC*)
15848 lt_prog_compiler_wl_CXX='-Wl,'
15849 lt_prog_compiler_pic_CXX='-KPIC'
15850 lt_prog_compiler_static_CXX='-Bstatic'
15851 ;;
15852 esac
15853 ;;
15854 tandem*)
15855 case $cc_basename in
15856 NCC*)
15857 # NonStop-UX NCC 3.20
15858 lt_prog_compiler_pic_CXX='-KPIC'
15859 ;;
15860 *)
15861 ;;
15862 esac
15863 ;;
15864 vxworks*)
15865 ;;
15866 *)
15867 lt_prog_compiler_can_build_shared_CXX=no
15868 ;;
15869 esac
15870 fi
15871
15872 case $host_os in
15873 # For platforms that do not support PIC, -DPIC is meaningless:
15874 *djgpp*)
15875 lt_prog_compiler_pic_CXX=
15876 ;;
15877 *)
15878 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15879 ;;
15880 esac
15881
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15883 printf %s "checking for $compiler option to produce PIC... " >&6; }
15884 if test ${lt_cv_prog_compiler_pic_CXX+y}
15885 then :
15886 printf %s "(cached) " >&6
15887 else $as_nop
15888 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15889 fi
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15891 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15892 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15893
15894 #
15895 # Check to make sure the PIC flag actually works.
15896 #
15897 if test -n "$lt_prog_compiler_pic_CXX"; then
15898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15899 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15900 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15901 then :
15902 printf %s "(cached) " >&6
15903 else $as_nop
15904 lt_cv_prog_compiler_pic_works_CXX=no
15905 ac_outfile=conftest.$ac_objext
15906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15908 # Insert the option either (1) after the last *FLAGS variable, or
15909 # (2) before a word containing "conftest.", or (3) at the end.
15910 # Note that $ac_compile itself does not contain backslashes and begins
15911 # with a dollar sign (not a hyphen), so the echo should work correctly.
15912 # The option is referenced via a variable to avoid confusing sed.
15913 lt_compile=`echo "$ac_compile" | $SED \
15914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15916 -e 's:$: $lt_compiler_flag:'`
15917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15918 (eval "$lt_compile" 2>conftest.err)
15919 ac_status=$?
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 if (exit $ac_status) && test -s "$ac_outfile"; then
15923 # The compiler can only warn and ignore the option if not recognized
15924 # So say no if there are warnings other than the usual output.
15925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15928 lt_cv_prog_compiler_pic_works_CXX=yes
15929 fi
15930 fi
15931 $RM conftest*
15932
15933 fi
15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15935 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15936
15937 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15938 case $lt_prog_compiler_pic_CXX in
15939 "" | " "*) ;;
15940 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15941 esac
15942 else
15943 lt_prog_compiler_pic_CXX=
15944 lt_prog_compiler_can_build_shared_CXX=no
15945 fi
15946
15947 fi
15948
15949
15950
15951
15952
15953 #
15954 # Check to make sure the static flag actually works.
15955 #
15956 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15958 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15959 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15960 then :
15961 printf %s "(cached) " >&6
15962 else $as_nop
15963 lt_cv_prog_compiler_static_works_CXX=no
15964 save_LDFLAGS=$LDFLAGS
15965 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15968 # The linker can only warn and ignore the option if not recognized
15969 # So say no if there are warnings
15970 if test -s conftest.err; then
15971 # Append any errors to the config.log.
15972 cat conftest.err 1>&5
15973 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15975 if diff conftest.exp conftest.er2 >/dev/null; then
15976 lt_cv_prog_compiler_static_works_CXX=yes
15977 fi
15978 else
15979 lt_cv_prog_compiler_static_works_CXX=yes
15980 fi
15981 fi
15982 $RM -r conftest*
15983 LDFLAGS=$save_LDFLAGS
15984
15985 fi
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15987 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15988
15989 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15990 :
15991 else
15992 lt_prog_compiler_static_CXX=
15993 fi
15994
15995
15996
15997
15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15999 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16000 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16001 then :
16002 printf %s "(cached) " >&6
16003 else $as_nop
16004 lt_cv_prog_compiler_c_o_CXX=no
16005 $RM -r conftest 2>/dev/null
16006 mkdir conftest
16007 cd conftest
16008 mkdir out
16009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16010
16011 lt_compiler_flag="-o out/conftest2.$ac_objext"
16012 # Insert the option either (1) after the last *FLAGS variable, or
16013 # (2) before a word containing "conftest.", or (3) at the end.
16014 # Note that $ac_compile itself does not contain backslashes and begins
16015 # with a dollar sign (not a hyphen), so the echo should work correctly.
16016 lt_compile=`echo "$ac_compile" | $SED \
16017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16019 -e 's:$: $lt_compiler_flag:'`
16020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16021 (eval "$lt_compile" 2>out/conftest.err)
16022 ac_status=$?
16023 cat out/conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16026 then
16027 # The compiler can only warn and ignore the option if not recognized
16028 # So say no if there are warnings
16029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16032 lt_cv_prog_compiler_c_o_CXX=yes
16033 fi
16034 fi
16035 chmod u+w . 2>&5
16036 $RM conftest*
16037 # SGI C++ compiler will create directory out/ii_files/ for
16038 # template instantiation
16039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16040 $RM out/* && rmdir out
16041 cd ..
16042 $RM -r conftest
16043 $RM conftest*
16044
16045 fi
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16047 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16048
16049
16050
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16052 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16053 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16054 then :
16055 printf %s "(cached) " >&6
16056 else $as_nop
16057 lt_cv_prog_compiler_c_o_CXX=no
16058 $RM -r conftest 2>/dev/null
16059 mkdir conftest
16060 cd conftest
16061 mkdir out
16062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16063
16064 lt_compiler_flag="-o out/conftest2.$ac_objext"
16065 # Insert the option either (1) after the last *FLAGS variable, or
16066 # (2) before a word containing "conftest.", or (3) at the end.
16067 # Note that $ac_compile itself does not contain backslashes and begins
16068 # with a dollar sign (not a hyphen), so the echo should work correctly.
16069 lt_compile=`echo "$ac_compile" | $SED \
16070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16072 -e 's:$: $lt_compiler_flag:'`
16073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16074 (eval "$lt_compile" 2>out/conftest.err)
16075 ac_status=$?
16076 cat out/conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16079 then
16080 # The compiler can only warn and ignore the option if not recognized
16081 # So say no if there are warnings
16082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16085 lt_cv_prog_compiler_c_o_CXX=yes
16086 fi
16087 fi
16088 chmod u+w . 2>&5
16089 $RM conftest*
16090 # SGI C++ compiler will create directory out/ii_files/ for
16091 # template instantiation
16092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16093 $RM out/* && rmdir out
16094 cd ..
16095 $RM -r conftest
16096 $RM conftest*
16097
16098 fi
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16100 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16101
16102
16103
16104
16105 hard_links=nottested
16106 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16107 # do not overwrite the value of need_locks provided by the user
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16109 printf %s "checking if we can lock with hard links... " >&6; }
16110 hard_links=yes
16111 $RM conftest*
16112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16113 touch conftest.a
16114 ln conftest.a conftest.b 2>&5 || hard_links=no
16115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16117 printf "%s\n" "$hard_links" >&6; }
16118 if test no = "$hard_links"; then
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16120 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16121 need_locks=warn
16122 fi
16123 else
16124 need_locks=no
16125 fi
16126
16127
16128
16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16130 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16131
16132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16133 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16134 case $host_os in
16135 aix[4-9]*)
16136 # If we're using GNU nm, then we don't want the "-C" option.
16137 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16138 # Without the "-l" option, or with the "-B" option, AIX nm treats
16139 # weak defined symbols like other global defined symbols, whereas
16140 # GNU nm marks them as "W".
16141 # While the 'weak' keyword is ignored in the Export File, we need
16142 # it in the Import File for the 'aix-soname' feature, so we have
16143 # to replace the "-B" option with "-P" for AIX nm.
16144 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16145 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'
16146 else
16147 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'
16148 fi
16149 ;;
16150 pw32*)
16151 export_symbols_cmds_CXX=$ltdll_cmds
16152 ;;
16153 cygwin* | mingw* | cegcc*)
16154 case $cc_basename in
16155 cl*)
16156 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16157 ;;
16158 *)
16159 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'
16160 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16161 ;;
16162 esac
16163 ;;
16164 linux* | k*bsd*-gnu | gnu*)
16165 link_all_deplibs_CXX=no
16166 ;;
16167 *)
16168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16169 ;;
16170 esac
16171
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16173 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16174 test no = "$ld_shlibs_CXX" && can_build_shared=no
16175
16176 with_gnu_ld_CXX=$with_gnu_ld
16177
16178
16179
16180
16181
16182
16183 #
16184 # Do we need to explicitly link libc?
16185 #
16186 case "x$archive_cmds_need_lc_CXX" in
16187 x|xyes)
16188 # Assume -lc should be added
16189 archive_cmds_need_lc_CXX=yes
16190
16191 if test yes,yes = "$GCC,$enable_shared"; then
16192 case $archive_cmds_CXX in
16193 *'~'*)
16194 # FIXME: we may have to deal with multi-command sequences.
16195 ;;
16196 '$CC '*)
16197 # Test whether the compiler implicitly links with -lc since on some
16198 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16199 # to ld, don't add -lc before -lgcc.
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16201 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16202 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16203 then :
16204 printf %s "(cached) " >&6
16205 else $as_nop
16206 $RM conftest*
16207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16213 test $ac_status = 0; } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl_CXX
16219 pic_flag=$lt_prog_compiler_pic_CXX
16220 compiler_flags=-v
16221 linker_flags=-v
16222 verstring=
16223 output_objdir=.
16224 libname=conftest
16225 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16226 allow_undefined_flag_CXX=
16227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16228 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16229 ac_status=$?
16230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }
16232 then
16233 lt_cv_archive_cmds_need_lc_CXX=no
16234 else
16235 lt_cv_archive_cmds_need_lc_CXX=yes
16236 fi
16237 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16238 else
16239 cat conftest.err 1>&5
16240 fi
16241 $RM conftest*
16242
16243 fi
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16245 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16246 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16247 ;;
16248 esac
16249 fi
16250 ;;
16251 esac
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16315 printf %s "checking dynamic linker characteristics... " >&6; }
16316
16317 library_names_spec=
16318 libname_spec='lib$name'
16319 soname_spec=
16320 shrext_cmds=.so
16321 postinstall_cmds=
16322 postuninstall_cmds=
16323 finish_cmds=
16324 finish_eval=
16325 shlibpath_var=
16326 shlibpath_overrides_runpath=unknown
16327 version_type=none
16328 dynamic_linker="$host_os ld.so"
16329 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16330 need_lib_prefix=unknown
16331 hardcode_into_libs=no
16332
16333 # when you set need_version to no, make sure it does not cause -set_version
16334 # flags to be left without arguments
16335 need_version=unknown
16336
16337
16338
16339 case $host_os in
16340 aix3*)
16341 version_type=linux # correct to gnu/linux during the next big refactor
16342 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16343 shlibpath_var=LIBPATH
16344
16345 # AIX 3 has no versioning support, so we append a major version to the name.
16346 soname_spec='$libname$release$shared_ext$major'
16347 ;;
16348
16349 aix[4-9]*)
16350 version_type=linux # correct to gnu/linux during the next big refactor
16351 need_lib_prefix=no
16352 need_version=no
16353 hardcode_into_libs=yes
16354 if test ia64 = "$host_cpu"; then
16355 # AIX 5 supports IA64
16356 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 else
16359 # With GCC up to 2.95.x, collect2 would create an import file
16360 # for dependence libraries. The import file would start with
16361 # the line '#! .'. This would cause the generated library to
16362 # depend on '.', always an invalid library. This was fixed in
16363 # development snapshots of GCC prior to 3.0.
16364 case $host_os in
16365 aix4 | aix4.[01] | aix4.[01].*)
16366 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16367 echo ' yes '
16368 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16369 :
16370 else
16371 can_build_shared=no
16372 fi
16373 ;;
16374 esac
16375 # Using Import Files as archive members, it is possible to support
16376 # filename-based versioning of shared library archives on AIX. While
16377 # this would work for both with and without runtime linking, it will
16378 # prevent static linking of such archives. So we do filename-based
16379 # shared library versioning with .so extension only, which is used
16380 # when both runtime linking and shared linking is enabled.
16381 # Unfortunately, runtime linking may impact performance, so we do
16382 # not want this to be the default eventually. Also, we use the
16383 # versioned .so libs for executables only if there is the -brtl
16384 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16385 # To allow for filename-based versioning support, we need to create
16386 # libNAME.so.V as an archive file, containing:
16387 # *) an Import File, referring to the versioned filename of the
16388 # archive as well as the shared archive member, telling the
16389 # bitwidth (32 or 64) of that shared object, and providing the
16390 # list of exported symbols of that shared object, eventually
16391 # decorated with the 'weak' keyword
16392 # *) the shared object with the F_LOADONLY flag set, to really avoid
16393 # it being seen by the linker.
16394 # At run time we better use the real file rather than another symlink,
16395 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16396
16397 case $with_aix_soname,$aix_use_runtimelinking in
16398 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16399 # soname into executable. Probably we can add versioning support to
16400 # collect2, so additional links can be useful in future.
16401 aix,yes) # traditional libtool
16402 dynamic_linker='AIX unversionable lib.so'
16403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16404 # instead of lib<name>.a to let people know that these are not
16405 # typical AIX shared libraries.
16406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16407 ;;
16408 aix,no) # traditional AIX only
16409 dynamic_linker='AIX lib.a(lib.so.V)'
16410 # We preserve .a as extension for shared libraries through AIX4.2
16411 # and later when we are not doing run time linking.
16412 library_names_spec='$libname$release.a $libname.a'
16413 soname_spec='$libname$release$shared_ext$major'
16414 ;;
16415 svr4,*) # full svr4 only
16416 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16417 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16418 # We do not specify a path in Import Files, so LIBPATH fires.
16419 shlibpath_overrides_runpath=yes
16420 ;;
16421 *,yes) # both, prefer svr4
16422 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16423 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16424 # unpreferred sharedlib libNAME.a needs extra handling
16425 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"'
16426 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"'
16427 # We do not specify a path in Import Files, so LIBPATH fires.
16428 shlibpath_overrides_runpath=yes
16429 ;;
16430 *,no) # both, prefer aix
16431 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16432 library_names_spec='$libname$release.a $libname.a'
16433 soname_spec='$libname$release$shared_ext$major'
16434 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16435 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)'
16436 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"'
16437 ;;
16438 esac
16439 shlibpath_var=LIBPATH
16440 fi
16441 ;;
16442
16443 amigaos*)
16444 case $host_cpu in
16445 powerpc)
16446 # Since July 2007 AmigaOS4 officially supports .so libraries.
16447 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16449 ;;
16450 m68k)
16451 library_names_spec='$libname.ixlibrary $libname.a'
16452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16453 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'
16454 ;;
16455 esac
16456 ;;
16457
16458 beos*)
16459 library_names_spec='$libname$shared_ext'
16460 dynamic_linker="$host_os ld.so"
16461 shlibpath_var=LIBRARY_PATH
16462 ;;
16463
16464 bsdi[45]*)
16465 version_type=linux # correct to gnu/linux during the next big refactor
16466 need_version=no
16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16468 soname_spec='$libname$release$shared_ext$major'
16469 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16470 shlibpath_var=LD_LIBRARY_PATH
16471 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16472 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16473 # the default ld.so.conf also contains /usr/contrib/lib and
16474 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16475 # libtool to hard-code these into programs
16476 ;;
16477
16478 cygwin* | mingw* | pw32* | cegcc*)
16479 version_type=windows
16480 shrext_cmds=.dll
16481 need_version=no
16482 need_lib_prefix=no
16483
16484 case $GCC,$cc_basename in
16485 yes,*)
16486 # gcc
16487 library_names_spec='$libname.dll.a'
16488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16489 postinstall_cmds='base_file=`basename \$file`~
16490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16491 dldir=$destdir/`dirname \$dlpath`~
16492 test -d \$dldir || mkdir -p \$dldir~
16493 $install_prog $dir/$dlname \$dldir/$dlname~
16494 chmod a+x \$dldir/$dlname~
16495 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16496 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16497 fi'
16498 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16499 dlpath=$dir/\$dldll~
16500 $RM \$dlpath'
16501 shlibpath_overrides_runpath=yes
16502
16503 case $host_os in
16504 cygwin*)
16505 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16506 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16507
16508 ;;
16509 mingw* | cegcc*)
16510 # MinGW DLLs use traditional 'lib' prefix
16511 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16512 ;;
16513 pw32*)
16514 # pw32 DLLs use 'pw' prefix rather than 'lib'
16515 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16516 ;;
16517 esac
16518 dynamic_linker='Win32 ld.exe'
16519 ;;
16520
16521 *,cl*)
16522 # Native MSVC
16523 libname_spec='$name'
16524 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16525 library_names_spec='$libname.dll.lib'
16526
16527 case $build_os in
16528 mingw*)
16529 sys_lib_search_path_spec=
16530 lt_save_ifs=$IFS
16531 IFS=';'
16532 for lt_path in $LIB
16533 do
16534 IFS=$lt_save_ifs
16535 # Let DOS variable expansion print the short 8.3 style file name.
16536 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16537 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16538 done
16539 IFS=$lt_save_ifs
16540 # Convert to MSYS style.
16541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16542 ;;
16543 cygwin*)
16544 # Convert to unix form, then to dos form, then back to unix form
16545 # but this time dos style (no spaces!) so that the unix form looks
16546 # like /cygdrive/c/PROGRA~1:/cygdr...
16547 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16548 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16549 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16550 ;;
16551 *)
16552 sys_lib_search_path_spec=$LIB
16553 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16554 # It is most probably a Windows format PATH.
16555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16556 else
16557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16558 fi
16559 # FIXME: find the short name or the path components, as spaces are
16560 # common. (e.g. "Program Files" -> "PROGRA~1")
16561 ;;
16562 esac
16563
16564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16565 postinstall_cmds='base_file=`basename \$file`~
16566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16567 dldir=$destdir/`dirname \$dlpath`~
16568 test -d \$dldir || mkdir -p \$dldir~
16569 $install_prog $dir/$dlname \$dldir/$dlname'
16570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16571 dlpath=$dir/\$dldll~
16572 $RM \$dlpath'
16573 shlibpath_overrides_runpath=yes
16574 dynamic_linker='Win32 link.exe'
16575 ;;
16576
16577 *)
16578 # Assume MSVC wrapper
16579 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16580 dynamic_linker='Win32 ld.exe'
16581 ;;
16582 esac
16583 # FIXME: first we should search . and the directory the executable is in
16584 shlibpath_var=PATH
16585 ;;
16586
16587 darwin* | rhapsody*)
16588 dynamic_linker="$host_os dyld"
16589 version_type=darwin
16590 need_lib_prefix=no
16591 need_version=no
16592 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16593 soname_spec='$libname$release$major$shared_ext'
16594 shlibpath_overrides_runpath=yes
16595 shlibpath_var=DYLD_LIBRARY_PATH
16596 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16597
16598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16599 ;;
16600
16601 dgux*)
16602 version_type=linux # correct to gnu/linux during the next big refactor
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16606 soname_spec='$libname$release$shared_ext$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 ;;
16609
16610 freebsd* | dragonfly*)
16611 # DragonFly does not have aout. When/if they implement a new
16612 # versioning mechanism, adjust this.
16613 if test -x /usr/bin/objformat; then
16614 objformat=`/usr/bin/objformat`
16615 else
16616 case $host_os in
16617 freebsd[23].*) objformat=aout ;;
16618 *) objformat=elf ;;
16619 esac
16620 fi
16621 version_type=freebsd-$objformat
16622 case $version_type in
16623 freebsd-elf*)
16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16625 soname_spec='$libname$release$shared_ext$major'
16626 need_version=no
16627 need_lib_prefix=no
16628 ;;
16629 freebsd-*)
16630 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16631 need_version=yes
16632 ;;
16633 esac
16634 shlibpath_var=LD_LIBRARY_PATH
16635 case $host_os in
16636 freebsd2.*)
16637 shlibpath_overrides_runpath=yes
16638 ;;
16639 freebsd3.[01]* | freebsdelf3.[01]*)
16640 shlibpath_overrides_runpath=yes
16641 hardcode_into_libs=yes
16642 ;;
16643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16647 ;;
16648 *) # from 4.6 on, and DragonFly
16649 shlibpath_overrides_runpath=yes
16650 hardcode_into_libs=yes
16651 ;;
16652 esac
16653 ;;
16654
16655 haiku*)
16656 version_type=linux # correct to gnu/linux during the next big refactor
16657 need_lib_prefix=no
16658 need_version=no
16659 dynamic_linker="$host_os runtime_loader"
16660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16661 soname_spec='$libname$release$shared_ext$major'
16662 shlibpath_var=LIBRARY_PATH
16663 shlibpath_overrides_runpath=no
16664 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16665 hardcode_into_libs=yes
16666 ;;
16667
16668 hpux9* | hpux10* | hpux11*)
16669 # Give a soname corresponding to the major version so that dld.sl refuses to
16670 # link against other versions.
16671 version_type=sunos
16672 need_lib_prefix=no
16673 need_version=no
16674 case $host_cpu in
16675 ia64*)
16676 shrext_cmds='.so'
16677 hardcode_into_libs=yes
16678 dynamic_linker="$host_os dld.so"
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16682 soname_spec='$libname$release$shared_ext$major'
16683 if test 32 = "$HPUX_IA64_MODE"; then
16684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16685 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16686 else
16687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16688 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16689 fi
16690 ;;
16691 hppa*64*)
16692 shrext_cmds='.sl'
16693 hardcode_into_libs=yes
16694 dynamic_linker="$host_os dld.sl"
16695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16698 soname_spec='$libname$release$shared_ext$major'
16699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16701 ;;
16702 *)
16703 shrext_cmds='.sl'
16704 dynamic_linker="$host_os dld.sl"
16705 shlibpath_var=SHLIB_PATH
16706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16708 soname_spec='$libname$release$shared_ext$major'
16709 ;;
16710 esac
16711 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16712 postinstall_cmds='chmod 555 $lib'
16713 # or fails outright, so override atomically:
16714 install_override_mode=555
16715 ;;
16716
16717 interix[3-9]*)
16718 version_type=linux # correct to gnu/linux during the next big refactor
16719 need_lib_prefix=no
16720 need_version=no
16721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16722 soname_spec='$libname$release$shared_ext$major'
16723 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=no
16726 hardcode_into_libs=yes
16727 ;;
16728
16729 irix5* | irix6* | nonstopux*)
16730 case $host_os in
16731 nonstopux*) version_type=nonstopux ;;
16732 *)
16733 if test yes = "$lt_cv_prog_gnu_ld"; then
16734 version_type=linux # correct to gnu/linux during the next big refactor
16735 else
16736 version_type=irix
16737 fi ;;
16738 esac
16739 need_lib_prefix=no
16740 need_version=no
16741 soname_spec='$libname$release$shared_ext$major'
16742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16743 case $host_os in
16744 irix5* | nonstopux*)
16745 libsuff= shlibsuff=
16746 ;;
16747 *)
16748 case $LD in # libtool.m4 will add one of these switches to LD
16749 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16750 libsuff= shlibsuff= libmagic=32-bit;;
16751 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16752 libsuff=32 shlibsuff=N32 libmagic=N32;;
16753 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16754 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16755 *) libsuff= shlibsuff= libmagic=never-match;;
16756 esac
16757 ;;
16758 esac
16759 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16760 shlibpath_overrides_runpath=no
16761 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16762 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16763 hardcode_into_libs=yes
16764 ;;
16765
16766 # No shared lib support for Linux oldld, aout, or coff.
16767 linux*oldld* | linux*aout* | linux*coff*)
16768 dynamic_linker=no
16769 ;;
16770
16771 linux*android*)
16772 version_type=none # Android doesn't support versioned libraries.
16773 need_lib_prefix=no
16774 need_version=no
16775 library_names_spec='$libname$release$shared_ext'
16776 soname_spec='$libname$release$shared_ext'
16777 finish_cmds=
16778 shlibpath_var=LD_LIBRARY_PATH
16779 shlibpath_overrides_runpath=yes
16780
16781 # This implies no fast_install, which is unacceptable.
16782 # Some rework will be needed to allow for fast_install
16783 # before this can be enabled.
16784 hardcode_into_libs=yes
16785
16786 dynamic_linker='Android linker'
16787 # Don't embed -rpath directories since the linker doesn't support them.
16788 hardcode_libdir_flag_spec_CXX='-L$libdir'
16789 ;;
16790
16791 # This must be glibc/ELF.
16792 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16793 version_type=linux # correct to gnu/linux during the next big refactor
16794 need_lib_prefix=no
16795 need_version=no
16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16797 soname_spec='$libname$release$shared_ext$major'
16798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 shlibpath_overrides_runpath=no
16801
16802 # Some binutils ld are patched to set DT_RUNPATH
16803 if test ${lt_cv_shlibpath_overrides_runpath+y}
16804 then :
16805 printf %s "(cached) " >&6
16806 else $as_nop
16807 lt_cv_shlibpath_overrides_runpath=no
16808 save_LDFLAGS=$LDFLAGS
16809 save_libdir=$libdir
16810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16814
16815 int
16816 main (void)
16817 {
16818
16819 ;
16820 return 0;
16821 }
16822 _ACEOF
16823 if ac_fn_cxx_try_link "$LINENO"
16824 then :
16825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16826 then :
16827 lt_cv_shlibpath_overrides_runpath=yes
16828 fi
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16831 conftest$ac_exeext conftest.$ac_ext
16832 LDFLAGS=$save_LDFLAGS
16833 libdir=$save_libdir
16834
16835 fi
16836
16837 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16838
16839 # This implies no fast_install, which is unacceptable.
16840 # Some rework will be needed to allow for fast_install
16841 # before this can be enabled.
16842 hardcode_into_libs=yes
16843
16844 # Ideally, we could use ldconfig to report *all* directores which are
16845 # searched for libraries, however this is still not possible. Aside from not
16846 # being certain /sbin/ldconfig is available, command
16847 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16848 # even though it is searched at run-time. Try to do the best guess by
16849 # appending ld.so.conf contents (and includes) to the search path.
16850 if test -f /etc/ld.so.conf; then
16851 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' ' '`
16852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16853 fi
16854
16855 # We used to test for /lib/ld.so.1 and disable shared libraries on
16856 # powerpc, because MkLinux only supported shared libraries with the
16857 # GNU dynamic linker. Since this was broken with cross compilers,
16858 # most powerpc-linux boxes support dynamic linking these days and
16859 # people can always --disable-shared, the test was removed, and we
16860 # assume the GNU/Linux dynamic linker is in use.
16861 dynamic_linker='GNU/Linux ld.so'
16862 ;;
16863
16864 netbsdelf*-gnu)
16865 version_type=linux
16866 need_lib_prefix=no
16867 need_version=no
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=no
16872 hardcode_into_libs=yes
16873 dynamic_linker='NetBSD ld.elf_so'
16874 ;;
16875
16876 netbsd*)
16877 version_type=sunos
16878 need_lib_prefix=no
16879 need_version=no
16880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16883 dynamic_linker='NetBSD (a.out) ld.so'
16884 else
16885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16886 soname_spec='$libname$release$shared_ext$major'
16887 dynamic_linker='NetBSD ld.elf_so'
16888 fi
16889 shlibpath_var=LD_LIBRARY_PATH
16890 shlibpath_overrides_runpath=yes
16891 hardcode_into_libs=yes
16892 ;;
16893
16894 newsos6)
16895 version_type=linux # correct to gnu/linux during the next big refactor
16896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16897 shlibpath_var=LD_LIBRARY_PATH
16898 shlibpath_overrides_runpath=yes
16899 ;;
16900
16901 *nto* | *qnx*)
16902 version_type=qnx
16903 need_lib_prefix=no
16904 need_version=no
16905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16906 soname_spec='$libname$release$shared_ext$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 shlibpath_overrides_runpath=no
16909 hardcode_into_libs=yes
16910 dynamic_linker='ldqnx.so'
16911 ;;
16912
16913 openbsd* | bitrig*)
16914 version_type=sunos
16915 sys_lib_dlsearch_path_spec=/usr/lib
16916 need_lib_prefix=no
16917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16918 need_version=no
16919 else
16920 need_version=yes
16921 fi
16922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=yes
16926 ;;
16927
16928 os2*)
16929 libname_spec='$name'
16930 version_type=windows
16931 shrext_cmds=.dll
16932 need_version=no
16933 need_lib_prefix=no
16934 # OS/2 can only load a DLL with a base name of 8 characters or less.
16935 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16936 v=$($ECHO $release$versuffix | tr -d .-);
16937 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16938 $ECHO $n$v`$shared_ext'
16939 library_names_spec='${libname}_dll.$libext'
16940 dynamic_linker='OS/2 ld.exe'
16941 shlibpath_var=BEGINLIBPATH
16942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16944 postinstall_cmds='base_file=`basename \$file`~
16945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16946 dldir=$destdir/`dirname \$dlpath`~
16947 test -d \$dldir || mkdir -p \$dldir~
16948 $install_prog $dir/$dlname \$dldir/$dlname~
16949 chmod a+x \$dldir/$dlname~
16950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16952 fi'
16953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16954 dlpath=$dir/\$dldll~
16955 $RM \$dlpath'
16956 ;;
16957
16958 osf3* | osf4* | osf5*)
16959 version_type=osf
16960 need_lib_prefix=no
16961 need_version=no
16962 soname_spec='$libname$release$shared_ext$major'
16963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16964 shlibpath_var=LD_LIBRARY_PATH
16965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16967 ;;
16968
16969 rdos*)
16970 dynamic_linker=no
16971 ;;
16972
16973 solaris*)
16974 version_type=linux # correct to gnu/linux during the next big refactor
16975 need_lib_prefix=no
16976 need_version=no
16977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16978 soname_spec='$libname$release$shared_ext$major'
16979 shlibpath_var=LD_LIBRARY_PATH
16980 shlibpath_overrides_runpath=yes
16981 hardcode_into_libs=yes
16982 # ldd complains unless libraries are executable
16983 postinstall_cmds='chmod +x $lib'
16984 ;;
16985
16986 sunos4*)
16987 version_type=sunos
16988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 if test yes = "$with_gnu_ld"; then
16993 need_lib_prefix=no
16994 fi
16995 need_version=yes
16996 ;;
16997
16998 sysv4 | sysv4.3*)
16999 version_type=linux # correct to gnu/linux during the next big refactor
17000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17001 soname_spec='$libname$release$shared_ext$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 case $host_vendor in
17004 sni)
17005 shlibpath_overrides_runpath=no
17006 need_lib_prefix=no
17007 runpath_var=LD_RUN_PATH
17008 ;;
17009 siemens)
17010 need_lib_prefix=no
17011 ;;
17012 motorola)
17013 need_lib_prefix=no
17014 need_version=no
17015 shlibpath_overrides_runpath=no
17016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17017 ;;
17018 esac
17019 ;;
17020
17021 sysv4*MP*)
17022 if test -d /usr/nec; then
17023 version_type=linux # correct to gnu/linux during the next big refactor
17024 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17025 soname_spec='$libname$shared_ext.$major'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 fi
17028 ;;
17029
17030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17031 version_type=sco
17032 need_lib_prefix=no
17033 need_version=no
17034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17035 soname_spec='$libname$release$shared_ext$major'
17036 shlibpath_var=LD_LIBRARY_PATH
17037 shlibpath_overrides_runpath=yes
17038 hardcode_into_libs=yes
17039 if test yes = "$with_gnu_ld"; then
17040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17041 else
17042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17043 case $host_os in
17044 sco3.2v5*)
17045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17046 ;;
17047 esac
17048 fi
17049 sys_lib_dlsearch_path_spec='/usr/lib'
17050 ;;
17051
17052 tpf*)
17053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17054 version_type=linux # correct to gnu/linux during the next big refactor
17055 need_lib_prefix=no
17056 need_version=no
17057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 shlibpath_overrides_runpath=no
17060 hardcode_into_libs=yes
17061 ;;
17062
17063 uts4*)
17064 version_type=linux # correct to gnu/linux during the next big refactor
17065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17066 soname_spec='$libname$release$shared_ext$major'
17067 shlibpath_var=LD_LIBRARY_PATH
17068 ;;
17069
17070 *)
17071 dynamic_linker=no
17072 ;;
17073 esac
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17075 printf "%s\n" "$dynamic_linker" >&6; }
17076 test no = "$dynamic_linker" && can_build_shared=no
17077
17078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17079 if test yes = "$GCC"; then
17080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17081 fi
17082
17083 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17084 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17085 fi
17086
17087 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17088 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17089 fi
17090
17091 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17092 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17093
17094 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17095 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17096
17097 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17098 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17140 printf %s "checking how to hardcode library paths into programs... " >&6; }
17141 hardcode_action_CXX=
17142 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17143 test -n "$runpath_var_CXX" ||
17144 test yes = "$hardcode_automatic_CXX"; then
17145
17146 # We can hardcode non-existent directories.
17147 if test no != "$hardcode_direct_CXX" &&
17148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17149 # have to relink, otherwise we might link with an installed library
17150 # when we should be linking with a yet-to-be-installed one
17151 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17152 test no != "$hardcode_minus_L_CXX"; then
17153 # Linking always hardcodes the temporary library directory.
17154 hardcode_action_CXX=relink
17155 else
17156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17157 hardcode_action_CXX=immediate
17158 fi
17159 else
17160 # We cannot hardcode anything, or else we can only hardcode existing
17161 # directories.
17162 hardcode_action_CXX=unsupported
17163 fi
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17165 printf "%s\n" "$hardcode_action_CXX" >&6; }
17166
17167 if test relink = "$hardcode_action_CXX" ||
17168 test yes = "$inherit_rpath_CXX"; then
17169 # Fast installation is not supported
17170 enable_fast_install=no
17171 elif test yes = "$shlibpath_overrides_runpath" ||
17172 test no = "$enable_shared"; then
17173 # Fast installation is not necessary
17174 enable_fast_install=needless
17175 fi
17176
17177
17178
17179
17180
17181
17182
17183 fi # test -n "$compiler"
17184
17185 CC=$lt_save_CC
17186 CFLAGS=$lt_save_CFLAGS
17187 LDCXX=$LD
17188 LD=$lt_save_LD
17189 GCC=$lt_save_GCC
17190 with_gnu_ld=$lt_save_with_gnu_ld
17191 lt_cv_path_LDCXX=$lt_cv_path_LD
17192 lt_cv_path_LD=$lt_save_path_LD
17193 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17194 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17195 fi # test yes != "$_lt_caught_CXX_error"
17196
17197 ac_ext=cpp
17198 ac_cpp='$CXXCPP $CPPFLAGS'
17199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217 ac_config_commands="$ac_config_commands libtool"
17218
17219
17220
17221
17222 # Only expand once:
17223
17224
17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
17226 printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
17227 if test ${ac_cv_cxx_undeclared_builtin_options+y}
17228 then :
17229 printf %s "(cached) " >&6
17230 else $as_nop
17231 ac_save_CFLAGS=$CFLAGS
17232 ac_cv_cxx_undeclared_builtin_options='cannot detect'
17233 for ac_arg in '' -fno-builtin; do
17234 CFLAGS="$ac_save_CFLAGS $ac_arg"
17235 # This test program should *not* compile successfully.
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17238
17239 int
17240 main (void)
17241 {
17242 (void) strchr;
17243 ;
17244 return 0;
17245 }
17246 _ACEOF
17247 if ac_fn_cxx_try_compile "$LINENO"
17248 then :
17249
17250 else $as_nop
17251 # This test program should compile successfully.
17252 # No library function is consistently available on
17253 # freestanding implementations, so test against a dummy
17254 # declaration. Include always-available headers on the
17255 # off chance that they somehow elicit warnings.
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258 #include <float.h>
17259 #include <limits.h>
17260 #include <stdarg.h>
17261 #include <stddef.h>
17262 extern void ac_decl (int, char *);
17263
17264 int
17265 main (void)
17266 {
17267 (void) ac_decl (0, (char *) 0);
17268 (void) ac_decl;
17269
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_cxx_try_compile "$LINENO"
17275 then :
17276 if test x"$ac_arg" = x
17277 then :
17278 ac_cv_cxx_undeclared_builtin_options='none needed'
17279 else $as_nop
17280 ac_cv_cxx_undeclared_builtin_options=$ac_arg
17281 fi
17282 break
17283 fi
17284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17285 fi
17286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17287 done
17288 CFLAGS=$ac_save_CFLAGS
17289
17290 fi
17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
17292 printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
17293 case $ac_cv_cxx_undeclared_builtin_options in #(
17294 'cannot detect') :
17295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17297 as_fn_error $? "cannot make $CXX report undeclared builtins
17298 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17299 'none needed') :
17300 ac_cxx_undeclared_builtin_options='' ;; #(
17301 *) :
17302 ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
17303 esac
17304
17305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
17306 printf %s "checking what extension is used for runtime loadable modules... " >&6; }
17307 if test ${libltdl_cv_shlibext+y}
17308 then :
17309 printf %s "(cached) " >&6
17310 else $as_nop
17311
17312 module=yes
17313 eval libltdl_cv_shlibext=$shrext_cmds
17314 module=no
17315 eval libltdl_cv_shrext=$shrext_cmds
17316
17317 fi
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
17319 printf "%s\n" "$libltdl_cv_shlibext" >&6; }
17320 if test -n "$libltdl_cv_shlibext"; then
17321
17322 printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
17323
17324 fi
17325 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
17326
17327 printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
17328
17329 fi
17330 if test -n "$shared_archive_member_spec"; then
17331
17332 printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
17333
17334 fi
17335
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
17337 printf %s "checking what variable specifies run-time module search path... " >&6; }
17338 if test ${lt_cv_module_path_var+y}
17339 then :
17340 printf %s "(cached) " >&6
17341 else $as_nop
17342 lt_cv_module_path_var=$shlibpath_var
17343 fi
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
17345 printf "%s\n" "$lt_cv_module_path_var" >&6; }
17346 if test -n "$lt_cv_module_path_var"; then
17347
17348 printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
17349
17350 fi
17351
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
17353 printf %s "checking for the default library search path... " >&6; }
17354 if test ${lt_cv_sys_dlsearch_path+y}
17355 then :
17356 printf %s "(cached) " >&6
17357 else $as_nop
17358 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
17359 fi
17360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
17361 printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
17362 if test -n "$lt_cv_sys_dlsearch_path"; then
17363 sys_dlsearch_path=
17364 for dir in $lt_cv_sys_dlsearch_path; do
17365 if test -z "$sys_dlsearch_path"; then
17366 sys_dlsearch_path=$dir
17367 else
17368 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
17369 fi
17370 done
17371
17372 printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
17373
17374 fi
17375
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
17377 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
17378 if test ${ac_cv_c_undeclared_builtin_options+y}
17379 then :
17380 printf %s "(cached) " >&6
17381 else $as_nop
17382 ac_save_CFLAGS=$CFLAGS
17383 ac_cv_c_undeclared_builtin_options='cannot detect'
17384 for ac_arg in '' -fno-builtin; do
17385 CFLAGS="$ac_save_CFLAGS $ac_arg"
17386 # This test program should *not* compile successfully.
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389
17390 int
17391 main (void)
17392 {
17393 (void) strchr;
17394 ;
17395 return 0;
17396 }
17397 _ACEOF
17398 if ac_fn_c_try_compile "$LINENO"
17399 then :
17400
17401 else $as_nop
17402 # This test program should compile successfully.
17403 # No library function is consistently available on
17404 # freestanding implementations, so test against a dummy
17405 # declaration. Include always-available headers on the
17406 # off chance that they somehow elicit warnings.
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 #include <float.h>
17410 #include <limits.h>
17411 #include <stdarg.h>
17412 #include <stddef.h>
17413 extern void ac_decl (int, char *);
17414
17415 int
17416 main (void)
17417 {
17418 (void) ac_decl (0, (char *) 0);
17419 (void) ac_decl;
17420
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_c_try_compile "$LINENO"
17426 then :
17427 if test x"$ac_arg" = x
17428 then :
17429 ac_cv_c_undeclared_builtin_options='none needed'
17430 else $as_nop
17431 ac_cv_c_undeclared_builtin_options=$ac_arg
17432 fi
17433 break
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17436 fi
17437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17438 done
17439 CFLAGS=$ac_save_CFLAGS
17440
17441 fi
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
17443 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
17444 case $ac_cv_c_undeclared_builtin_options in #(
17445 'cannot detect') :
17446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17448 as_fn_error $? "cannot make $CC report undeclared builtins
17449 See \`config.log' for more details" "$LINENO" 5; } ;; #(
17450 'none needed') :
17451 ac_c_undeclared_builtin_options='' ;; #(
17452 *) :
17453 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
17454 esac
17455
17456
17457 LT_DLLOADERS=
17458
17459
17460 ac_ext=c
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17465
17466 lt_dlload_save_LIBS=$LIBS
17467
17468 LIBADD_DLOPEN=
17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17470 printf %s "checking for library containing dlopen... " >&6; }
17471 if test ${ac_cv_search_dlopen+y}
17472 then :
17473 printf %s "(cached) " >&6
17474 else $as_nop
17475 ac_func_search_save_LIBS=$LIBS
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478
17479 /* Override any GCC internal prototype to avoid an error.
17480 Use char because int might match the return type of a GCC
17481 builtin and then its argument prototype would still apply. */
17482 char dlopen ();
17483 int
17484 main (void)
17485 {
17486 return dlopen ();
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 for ac_lib in '' dl
17492 do
17493 if test -z "$ac_lib"; then
17494 ac_res="none required"
17495 else
17496 ac_res=-l$ac_lib
17497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17498 fi
17499 if ac_fn_c_try_link "$LINENO"
17500 then :
17501 ac_cv_search_dlopen=$ac_res
17502 fi
17503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17504 conftest$ac_exeext
17505 if test ${ac_cv_search_dlopen+y}
17506 then :
17507 break
17508 fi
17509 done
17510 if test ${ac_cv_search_dlopen+y}
17511 then :
17512
17513 else $as_nop
17514 ac_cv_search_dlopen=no
17515 fi
17516 rm conftest.$ac_ext
17517 LIBS=$ac_func_search_save_LIBS
17518 fi
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17520 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
17521 ac_res=$ac_cv_search_dlopen
17522 if test "$ac_res" != no
17523 then :
17524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17525
17526 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
17527
17528 if test "$ac_cv_search_dlopen" != "none required"; then
17529 LIBADD_DLOPEN=-ldl
17530 fi
17531 libltdl_cv_lib_dl_dlopen=yes
17532 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17533 else $as_nop
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536 #if HAVE_DLFCN_H
17537 # include <dlfcn.h>
17538 #endif
17539
17540 int
17541 main (void)
17542 {
17543 dlopen(0, 0);
17544 ;
17545 return 0;
17546 }
17547 _ACEOF
17548 if ac_fn_c_try_link "$LINENO"
17549 then :
17550
17551 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
17552
17553 libltdl_cv_func_dlopen=yes
17554 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17555 else $as_nop
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17557 printf %s "checking for dlopen in -lsvld... " >&6; }
17558 if test ${ac_cv_lib_svld_dlopen+y}
17559 then :
17560 printf %s "(cached) " >&6
17561 else $as_nop
17562 ac_check_lib_save_LIBS=$LIBS
17563 LIBS="-lsvld $LIBS"
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17566
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17570 char dlopen ();
17571 int
17572 main (void)
17573 {
17574 return dlopen ();
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_c_try_link "$LINENO"
17580 then :
17581 ac_cv_lib_svld_dlopen=yes
17582 else $as_nop
17583 ac_cv_lib_svld_dlopen=no
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17586 conftest$ac_exeext conftest.$ac_ext
17587 LIBS=$ac_check_lib_save_LIBS
17588 fi
17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17590 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
17591 if test "x$ac_cv_lib_svld_dlopen" = xyes
17592 then :
17593
17594 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
17595
17596 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
17597 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17598 fi
17599
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17602 conftest$ac_exeext conftest.$ac_ext
17603 fi
17604
17605 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
17606 then
17607 lt_save_LIBS=$LIBS
17608 LIBS="$LIBS $LIBADD_DLOPEN"
17609 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17610 if test "x$ac_cv_func_dlerror" = xyes
17611 then :
17612 printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
17613
17614 fi
17615
17616 LIBS=$lt_save_LIBS
17617 fi
17618
17619
17620 LIBADD_SHL_LOAD=
17621 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17622 if test "x$ac_cv_func_shl_load" = xyes
17623 then :
17624
17625 printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
17626
17627 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17628 else $as_nop
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17630 printf %s "checking for shl_load in -ldld... " >&6; }
17631 if test ${ac_cv_lib_dld_shl_load+y}
17632 then :
17633 printf %s "(cached) " >&6
17634 else $as_nop
17635 ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-ldld $LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17643 char shl_load ();
17644 int
17645 main (void)
17646 {
17647 return shl_load ();
17648 ;
17649 return 0;
17650 }
17651 _ACEOF
17652 if ac_fn_c_try_link "$LINENO"
17653 then :
17654 ac_cv_lib_dld_shl_load=yes
17655 else $as_nop
17656 ac_cv_lib_dld_shl_load=no
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17659 conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17661 fi
17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17663 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
17664 if test "x$ac_cv_lib_dld_shl_load" = xyes
17665 then :
17666
17667 printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
17668
17669 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17670 LIBADD_SHL_LOAD=-ldld
17671 fi
17672
17673 fi
17674
17675
17676
17677 case $host_os in
17678 darwin[1567].*)
17679 # We only want this for pre-Mac OS X 10.4.
17680 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17681 if test "x$ac_cv_func__dyld_func_lookup" = xyes
17682 then :
17683
17684 printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
17685
17686 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17687 fi
17688
17689 ;;
17690 beos*)
17691 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17692 ;;
17693 cygwin* | mingw* | pw32*)
17694 ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17695 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17696 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
17697 then :
17698 ac_have_decl=1
17699 else $as_nop
17700 ac_have_decl=0
17701 fi
17702 printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
17703
17704 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17705 ;;
17706 esac
17707
17708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17709 printf %s "checking for dld_link in -ldld... " >&6; }
17710 if test ${ac_cv_lib_dld_dld_link+y}
17711 then :
17712 printf %s "(cached) " >&6
17713 else $as_nop
17714 ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-ldld $LIBS"
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17718
17719 /* Override any GCC internal prototype to avoid an error.
17720 Use char because int might match the return type of a GCC
17721 builtin and then its argument prototype would still apply. */
17722 char dld_link ();
17723 int
17724 main (void)
17725 {
17726 return dld_link ();
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_link "$LINENO"
17732 then :
17733 ac_cv_lib_dld_dld_link=yes
17734 else $as_nop
17735 ac_cv_lib_dld_dld_link=no
17736 fi
17737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17738 conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17740 fi
17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17742 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
17743 if test "x$ac_cv_lib_dld_dld_link" = xyes
17744 then :
17745
17746 printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
17747
17748 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17749 fi
17750
17751
17752
17753
17754 LT_DLPREOPEN=
17755 if test -n "$LT_DLLOADERS"
17756 then
17757 for lt_loader in $LT_DLLOADERS; do
17758 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17759 done
17760
17761 printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
17762
17763 fi
17764
17765
17766 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17767
17768
17769 LIBS=$lt_dlload_save_LIBS
17770 ac_ext=cpp
17771 ac_cpp='$CXXCPP $CPPFLAGS'
17772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17775
17776
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
17778 printf %s "checking for _ prefix in compiled symbols... " >&6; }
17779 if test ${lt_cv_sys_symbol_underscore+y}
17780 then :
17781 printf %s "(cached) " >&6
17782 else $as_nop
17783 lt_cv_sys_symbol_underscore=no
17784 cat > conftest.$ac_ext <<_LT_EOF
17785 void nm_test_func(){}
17786 int main(){nm_test_func;return 0;}
17787 _LT_EOF
17788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17789 (eval $ac_compile) 2>&5
17790 ac_status=$?
17791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17792 test $ac_status = 0; }; then
17793 # Now try to grab the symbols.
17794 ac_nlist=conftest.nm
17795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
17796 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17797 ac_status=$?
17798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799 test $ac_status = 0; } && test -s "$ac_nlist"; then
17800 # See whether the symbols have a leading underscore.
17801 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17802 lt_cv_sys_symbol_underscore=yes
17803 else
17804 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17805 :
17806 else
17807 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17808 fi
17809 fi
17810 else
17811 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17812 fi
17813 else
17814 echo "configure: failed program was:" >&5
17815 cat conftest.c >&5
17816 fi
17817 rm -rf conftest*
17818
17819 fi
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
17821 printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
17822 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17823
17824
17825 if test yes = "$lt_cv_sys_symbol_underscore"; then
17826 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
17828 printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
17829 if test ${libltdl_cv_need_uscore+y}
17830 then :
17831 printf %s "(cached) " >&6
17832 else $as_nop
17833 libltdl_cv_need_uscore=unknown
17834 dlsym_uscore_save_LIBS=$LIBS
17835 LIBS="$LIBS $LIBADD_DLOPEN"
17836 libname=conftmod # stay within 8.3 filename limits!
17837 cat >$libname.$ac_ext <<_LT_EOF
17838 #line $LINENO "configure"
17839 #include "confdefs.h"
17840 /* When -fvisibility=hidden is used, assume the code has been annotated
17841 correspondingly for the symbols needed. */
17842 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17843 int fnord () __attribute__((visibility("default")));
17844 #endif
17845 int fnord () { return 42; }
17846 _LT_EOF
17847
17848 # ltfn_module_cmds module_cmds
17849 # Execute tilde-delimited MODULE_CMDS with environment primed for
17850 # $module_cmds or $archive_cmds type content.
17851 ltfn_module_cmds ()
17852 {( # subshell avoids polluting parent global environment
17853 module_cmds_save_ifs=$IFS; IFS='~'
17854 for cmd in $1; do
17855 IFS=$module_cmds_save_ifs
17856 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
17857 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
17858 major=; versuffix=; verstring=; deplibs=
17859 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
17860 eval $cmd
17861 done
17862 IFS=$module_cmds_save_ifs
17863 )}
17864
17865 # Compile a loadable module using libtool macro expansion results.
17866 $CC $pic_flag -c $libname.$ac_ext
17867 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
17868
17869 # Try to fetch fnord with dlsym().
17870 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
17871 cat >conftest.$ac_ext <<_LT_EOF
17872 #line $LINENO "configure"
17873 #include "confdefs.h"
17874 #if HAVE_DLFCN_H
17875 #include <dlfcn.h>
17876 #endif
17877 #include <stdio.h>
17878 #ifndef RTLD_GLOBAL
17879 # ifdef DL_GLOBAL
17880 # define RTLD_GLOBAL DL_GLOBAL
17881 # else
17882 # define RTLD_GLOBAL 0
17883 # endif
17884 #endif
17885 #ifndef RTLD_NOW
17886 # ifdef DL_NOW
17887 # define RTLD_NOW DL_NOW
17888 # else
17889 # define RTLD_NOW 0
17890 # endif
17891 #endif
17892 int main () {
17893 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
17894 int status = $libltdl_dlunknown;
17895 if (handle) {
17896 if (dlsym (handle, "fnord"))
17897 status = $libltdl_dlnouscore;
17898 else {
17899 if (dlsym (handle, "_fnord"))
17900 status = $libltdl_dluscore;
17901 else
17902 puts (dlerror ());
17903 }
17904 dlclose (handle);
17905 } else
17906 puts (dlerror ());
17907 return status;
17908 }
17909 _LT_EOF
17910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17911 (eval $ac_link) 2>&5
17912 ac_status=$?
17913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17914 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17915 (./conftest; exit; ) >&5 2>/dev/null
17916 libltdl_status=$?
17917 case x$libltdl_status in
17918 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
17919 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
17920 x*) libltdl_cv_need_uscore=unknown ;;
17921 esac
17922 fi
17923 rm -rf conftest* $libname*
17924 LIBS=$dlsym_uscore_save_LIBS
17925
17926 fi
17927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
17928 printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
17929 fi
17930 fi
17931
17932 if test yes = "$libltdl_cv_need_uscore"; then
17933
17934 printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
17935
17936 fi
17937
17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
17939 printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
17940 if test ${lt_cv_sys_dlopen_deplibs+y}
17941 then :
17942 printf %s "(cached) " >&6
17943 else $as_nop
17944 # PORTME does your system automatically load deplibs for dlopen?
17945 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
17946 # For now, we just catch OSes we know something about -- in the
17947 # future, we'll try test this programmatically.
17948 lt_cv_sys_dlopen_deplibs=unknown
17949 case $host_os in
17950 aix3*|aix4.1.*|aix4.2.*)
17951 # Unknown whether this is true for these versions of AIX, but
17952 # we want this 'case' here to explicitly catch those versions.
17953 lt_cv_sys_dlopen_deplibs=unknown
17954 ;;
17955 aix[4-9]*)
17956 lt_cv_sys_dlopen_deplibs=yes
17957 ;;
17958 amigaos*)
17959 case $host_cpu in
17960 powerpc)
17961 lt_cv_sys_dlopen_deplibs=no
17962 ;;
17963 esac
17964 ;;
17965 bitrig*)
17966 lt_cv_sys_dlopen_deplibs=yes
17967 ;;
17968 darwin*)
17969 # Assuming the user has installed a libdl from somewhere, this is true
17970 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
17971 lt_cv_sys_dlopen_deplibs=yes
17972 ;;
17973 freebsd* | dragonfly*)
17974 lt_cv_sys_dlopen_deplibs=yes
17975 ;;
17976 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
17977 # GNU and its variants, using gnu ld.so (Glibc)
17978 lt_cv_sys_dlopen_deplibs=yes
17979 ;;
17980 hpux10*|hpux11*)
17981 lt_cv_sys_dlopen_deplibs=yes
17982 ;;
17983 interix*)
17984 lt_cv_sys_dlopen_deplibs=yes
17985 ;;
17986 irix[12345]*|irix6.[01]*)
17987 # Catch all versions of IRIX before 6.2, and indicate that we don't
17988 # know how it worked for any of those versions.
17989 lt_cv_sys_dlopen_deplibs=unknown
17990 ;;
17991 irix*)
17992 # The case above catches anything before 6.2, and it's known that
17993 # at 6.2 and later dlopen does load deplibs.
17994 lt_cv_sys_dlopen_deplibs=yes
17995 ;;
17996 netbsd* | netbsdelf*-gnu)
17997 lt_cv_sys_dlopen_deplibs=yes
17998 ;;
17999 openbsd*)
18000 lt_cv_sys_dlopen_deplibs=yes
18001 ;;
18002 osf[1234]*)
18003 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18004 # it did *not* use an RPATH in a shared library to find objects the
18005 # library depends on, so we explicitly say 'no'.
18006 lt_cv_sys_dlopen_deplibs=no
18007 ;;
18008 osf5.0|osf5.0a|osf5.1)
18009 # dlopen *does* load deplibs and with the right loader patch applied
18010 # it even uses RPATH in a shared library to search for shared objects
18011 # that the library depends on, but there's no easy way to know if that
18012 # patch is installed. Since this is the case, all we can really
18013 # say is unknown -- it depends on the patch being installed. If
18014 # it is, this changes to 'yes'. Without it, it would be 'no'.
18015 lt_cv_sys_dlopen_deplibs=unknown
18016 ;;
18017 osf*)
18018 # the two cases above should catch all versions of osf <= 5.1. Read
18019 # the comments above for what we know about them.
18020 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18021 # is used to find them so we can finally say 'yes'.
18022 lt_cv_sys_dlopen_deplibs=yes
18023 ;;
18024 qnx*)
18025 lt_cv_sys_dlopen_deplibs=yes
18026 ;;
18027 solaris*)
18028 lt_cv_sys_dlopen_deplibs=yes
18029 ;;
18030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18031 libltdl_cv_sys_dlopen_deplibs=yes
18032 ;;
18033 esac
18034
18035 fi
18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
18037 printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
18038 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
18039
18040 printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
18041
18042 fi
18043
18044
18045 ac_fn_cxx_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18046 "
18047 if test "x$ac_cv_header_argz_h" = xyes
18048 then :
18049 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
18050
18051 fi
18052
18053
18054 ac_fn_cxx_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
18055 # include <argz.h>
18056 #endif
18057 "
18058 if test "x$ac_cv_type_error_t" = xyes
18059 then :
18060
18061 printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
18062
18063
18064 else $as_nop
18065
18066 printf "%s\n" "#define error_t int" >>confdefs.h
18067
18068
18069 printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
18070
18071 fi
18072
18073
18074 LT_ARGZ_H=
18075
18076 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
18077 do :
18078 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
18079 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
18080 if eval test \"x\$"$as_ac_var"\" = x"yes"
18081 then :
18082 cat >>confdefs.h <<_ACEOF
18083 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 else $as_nop
18087 LT_ARGZ_H=lt__argz.h;
18088
18089 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
18090
18091 fi
18092
18093 done
18094
18095 if test -z "$LT_ARGZ_H"
18096 then :
18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
18098 printf %s "checking if argz actually works... " >&6; }
18099 if test ${lt_cv_sys_argz_works+y}
18100 then :
18101 printf %s "(cached) " >&6
18102 else $as_nop
18103 case $host_os in #(
18104 *cygwin*)
18105 lt_cv_sys_argz_works=no
18106 if test no != "$cross_compiling"; then
18107 lt_cv_sys_argz_works="guessing no"
18108 else
18109 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18110 save_IFS=$IFS
18111 IFS=-.
18112 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18113 IFS=$save_IFS
18114 lt_os_major=${2-0}
18115 lt_os_minor=${3-0}
18116 lt_os_micro=${4-0}
18117 if test 1 -lt "$lt_os_major" \
18118 || { test 1 -eq "$lt_os_major" \
18119 && { test 5 -lt "$lt_os_minor" \
18120 || { test 5 -eq "$lt_os_minor" \
18121 && test 24 -lt "$lt_os_micro"; }; }; }; then
18122 lt_cv_sys_argz_works=yes
18123 fi
18124 fi
18125 ;; #(
18126 *) lt_cv_sys_argz_works=yes ;;
18127 esac
18128 fi
18129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
18130 printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
18131 if test yes = "$lt_cv_sys_argz_works"
18132 then :
18133
18134 printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
18135
18136 else $as_nop
18137 LT_ARGZ_H=lt__argz.h
18138
18139
18140 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
18141
18142 fi
18143 fi
18144
18145
18146
18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
18148 printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
18149 if test ${libltdl_cv_preloaded_symbols+y}
18150 then :
18151 printf %s "(cached) " >&6
18152 else $as_nop
18153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18154 libltdl_cv_preloaded_symbols=yes
18155 else
18156 libltdl_cv_preloaded_symbols=no
18157 fi
18158
18159 fi
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
18161 printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
18162 if test yes = "$libltdl_cv_preloaded_symbols"; then
18163
18164 printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
18165
18166 fi
18167
18168
18169
18170 # Set options
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183 # Check whether --with-included_ltdl was given.
18184 if test ${with_included_ltdl+y}
18185 then :
18186 withval=$with_included_ltdl;
18187 fi
18188
18189
18190 if test yes != "$with_included_ltdl"; then
18191 # We are not being forced to use the included libltdl sources, so
18192 # decide whether there is a useful installed version we can use.
18193 ac_fn_cxx_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
18194
18195 "
18196 if test "x$ac_cv_header_ltdl_h" = xyes
18197 then :
18198 ac_fn_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
18199 #include <ltdl.h>
18200 " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
18201 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
18202 then :
18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
18204 printf %s "checking for lt_dladvise_preload in -lltdl... " >&6; }
18205 if test ${ac_cv_lib_ltdl_lt_dladvise_preload+y}
18206 then :
18207 printf %s "(cached) " >&6
18208 else $as_nop
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lltdl $LIBS"
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18213
18214 namespace conftest {
18215 extern "C" int lt_dladvise_preload ();
18216 }
18217 int
18218 main (void)
18219 {
18220 return conftest::lt_dladvise_preload ();
18221 ;
18222 return 0;
18223 }
18224 _ACEOF
18225 if ac_fn_cxx_try_link "$LINENO"
18226 then :
18227 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18228 else $as_nop
18229 ac_cv_lib_ltdl_lt_dladvise_preload=no
18230 fi
18231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18232 conftest$ac_exeext conftest.$ac_ext
18233 LIBS=$ac_check_lib_save_LIBS
18234 fi
18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
18236 printf "%s\n" "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
18237 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
18238 then :
18239 with_included_ltdl=no
18240 else $as_nop
18241 with_included_ltdl=yes
18242 fi
18243
18244 else $as_nop
18245 with_included_ltdl=yes
18246 fi
18247 else $as_nop
18248 with_included_ltdl=yes
18249 fi
18250
18251 fi
18252
18253
18254
18255
18256 # Check whether --with-ltdl_include was given.
18257 if test ${with_ltdl_include+y}
18258 then :
18259 withval=$with_ltdl_include;
18260 fi
18261
18262
18263 if test -n "$with_ltdl_include"; then
18264 if test -f "$with_ltdl_include/ltdl.h"; then :
18265 else
18266 as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
18267 fi
18268 else
18269 with_ltdl_include=no
18270 fi
18271
18272
18273 # Check whether --with-ltdl_lib was given.
18274 if test ${with_ltdl_lib+y}
18275 then :
18276 withval=$with_ltdl_lib;
18277 fi
18278
18279
18280 if test -n "$with_ltdl_lib"; then
18281 if test -f "$with_ltdl_lib/libltdl.la"; then :
18282 else
18283 as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
18284 fi
18285 else
18286 with_ltdl_lib=no
18287 fi
18288
18289 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18290 ,yes,no,no,)
18291 case $enable_ltdl_convenience in
18292 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
18293 "") enable_ltdl_convenience=yes
18294 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18295 esac
18296 LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18297 LTDLDEPS=$LIBLTDL
18298 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18299
18300
18301
18302
18303
18304 # For backwards non-gettext consistent compatibility...
18305 INCLTDL=$LTDLINCL
18306
18307
18308 ;;
18309 ,no,no,no,)
18310 # If the included ltdl is not to be used, then use the
18311 # preinstalled libltdl we found.
18312
18313 printf "%s\n" "#define HAVE_LTDL 1" >>confdefs.h
18314
18315 LIBLTDL=-lltdl
18316 LTDLDEPS=
18317 LTDLINCL=
18318 ;;
18319 ,no*,no,*)
18320 as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
18321 ;;
18322 *) with_included_ltdl=no
18323 LIBLTDL="-L$with_ltdl_lib -lltdl"
18324 LTDLDEPS=
18325 LTDLINCL=-I$with_ltdl_include
18326 ;;
18327 esac
18328 INCLTDL=$LTDLINCL
18329
18330 # Report our decision...
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
18332 printf %s "checking where to find libltdl headers... " >&6; }
18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
18334 printf "%s\n" "$LTDLINCL" >&6; }
18335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
18336 printf %s "checking where to find libltdl library... " >&6; }
18337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
18338 printf "%s\n" "$LIBLTDL" >&6; }
18339
18340
18341
18342 # Check whether --enable-ltdl-install was given.
18343 if test ${enable_ltdl_install+y}
18344 then :
18345 enableval=$enable_ltdl_install;
18346 fi
18347
18348
18349 case ,$enable_ltdl_install,$enable_ltdl_convenience in
18350 *yes*) ;;
18351 *) enable_ltdl_convenience=yes ;;
18352 esac
18353
18354 if test no != "${enable_ltdl_install-no}"; then
18355 INSTALL_LTDL_TRUE=
18356 INSTALL_LTDL_FALSE='#'
18357 else
18358 INSTALL_LTDL_TRUE='#'
18359 INSTALL_LTDL_FALSE=
18360 fi
18361
18362 if test no != "${enable_ltdl_convenience-no}"; then
18363 CONVENIENCE_LTDL_TRUE=
18364 CONVENIENCE_LTDL_FALSE='#'
18365 else
18366 CONVENIENCE_LTDL_TRUE='#'
18367 CONVENIENCE_LTDL_FALSE=
18368 fi
18369
18370
18371
18372 subdirs="$subdirs libltdl"
18373
18374
18375
18376
18377 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18378 # the user used. This is so that ltdl.h can pick up the parent projects
18379 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
18380 # definitions required by ltdl.c.
18381 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18382
18383
18384
18385 ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
18386 "
18387 if test "x$ac_cv_header_unistd_h" = xyes
18388 then :
18389 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18390
18391 fi
18392 ac_fn_cxx_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
18393 "
18394 if test "x$ac_cv_header_dl_h" = xyes
18395 then :
18396 printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
18397
18398 fi
18399 ac_fn_cxx_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
18400 "
18401 if test "x$ac_cv_header_sys_dl_h" = xyes
18402 then :
18403 printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
18404
18405 fi
18406 ac_fn_cxx_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
18407 "
18408 if test "x$ac_cv_header_dld_h" = xyes
18409 then :
18410 printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
18411
18412 fi
18413 ac_fn_cxx_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
18414 "
18415 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
18416 then :
18417 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
18418
18419 fi
18420 ac_fn_cxx_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
18421 "
18422 if test "x$ac_cv_header_dirent_h" = xyes
18423 then :
18424 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
18425
18426 fi
18427
18428
18429
18430 for ac_func in closedir opendir readdir
18431 do :
18432 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
18433 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
18434 if eval test \"x\$"$as_ac_var"\" = x"yes"
18435 then :
18436 cat >>confdefs.h <<_ACEOF
18437 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
18438 _ACEOF
18439
18440 else $as_nop
18441
18442
18443 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18444
18445 fi
18446
18447 done
18448
18449 for ac_func in strlcat strlcpy
18450 do :
18451 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
18452 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
18453 if eval test \"x\$"$as_ac_var"\" = x"yes"
18454 then :
18455 cat >>confdefs.h <<_ACEOF
18456 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 else $as_nop
18460
18461
18462 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18463
18464 fi
18465
18466 done
18467
18468
18469 printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
18470
18471
18472 name=
18473 eval "lt_libprefix=\"$libname_spec\""
18474
18475 printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
18476
18477
18478 name=ltdl
18479 eval "LTDLOPEN=\"$libname_spec\""
18480
18481
18482
18483
18484
18485
18486
18487
18488 # Only expand once:
18489
18490
18491
18492
18493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18494 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18495 # Check whether --enable-maintainer-mode was given.
18496 if test ${enable_maintainer_mode+y}
18497 then :
18498 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18499 else $as_nop
18500 USE_MAINTAINER_MODE=no
18501 fi
18502
18503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18504 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
18505 if test $USE_MAINTAINER_MODE = yes; then
18506 MAINTAINER_MODE_TRUE=
18507 MAINTAINER_MODE_FALSE='#'
18508 else
18509 MAINTAINER_MODE_TRUE='#'
18510 MAINTAINER_MODE_FALSE=
18511 fi
18512
18513 MAINT=$MAINTAINER_MODE_TRUE
18514
18515
18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
18517 printf %s "checking for library containing strerror... " >&6; }
18518 if test ${ac_cv_search_strerror+y}
18519 then :
18520 printf %s "(cached) " >&6
18521 else $as_nop
18522 ac_func_search_save_LIBS=$LIBS
18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525
18526 namespace conftest {
18527 extern "C" int strerror ();
18528 }
18529 int
18530 main (void)
18531 {
18532 return conftest::strerror ();
18533 ;
18534 return 0;
18535 }
18536 _ACEOF
18537 for ac_lib in '' cposix
18538 do
18539 if test -z "$ac_lib"; then
18540 ac_res="none required"
18541 else
18542 ac_res=-l$ac_lib
18543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18544 fi
18545 if ac_fn_cxx_try_link "$LINENO"
18546 then :
18547 ac_cv_search_strerror=$ac_res
18548 fi
18549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18550 conftest$ac_exeext
18551 if test ${ac_cv_search_strerror+y}
18552 then :
18553 break
18554 fi
18555 done
18556 if test ${ac_cv_search_strerror+y}
18557 then :
18558
18559 else $as_nop
18560 ac_cv_search_strerror=no
18561 fi
18562 rm conftest.$ac_ext
18563 LIBS=$ac_func_search_save_LIBS
18564 fi
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
18566 printf "%s\n" "$ac_cv_search_strerror" >&6; }
18567 ac_res=$ac_cv_search_strerror
18568 if test "$ac_res" != no
18569 then :
18570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18571
18572 fi
18573
18574
18575 CXXFLAGS="-W -Wall -pipe -I\$(top_srcdir)/libltdl"
18576 CXXFLAGS="$CXXFLAGS -I\$(top_srcdir)/db"
18577 CFLAGS="$CFLAGS"
18578
18579
18580
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to detect pthread libraries" >&5
18582 printf %s "checking whether to detect pthread libraries... " >&6; }
18583
18584 # Check whether --enable-threads was given.
18585 if test ${enable_threads+y}
18586 then :
18587 enableval=$enable_threads; check_threadLib=$enable_threads
18588 else $as_nop
18589 check_threadLib=yes
18590 fi
18591
18592
18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $check_threadLib" >&5
18594 printf "%s\n" "$check_threadLib" >&6; }
18595
18596 gcc_support_pthread=no
18597 if test "$check_threadLib" = yes; then
18598
18599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc accepts the -pthread option" >&5
18600 printf %s "checking whether gcc accepts the -pthread option... " >&6; }
18601 pthreadtest=`$CXX -pthread 2>&1 | grep -c unrecognized`
18602
18603 if test "x$pthreadtest" = "x0" ; then
18604 gcc_support_pthread=yes
18605
18606 threadLib=-pthread
18607 else
18608 gcc_support_pthread=no
18609 fi
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_support_pthread" >&5
18611 printf "%s\n" "$gcc_support_pthread" >&6; }
18612 fi
18613
18614 if test x"$gcc_support_pthread" = xno ; then
18615 pthread_found=no
18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
18617 printf %s "checking for pthread_create in -lpthread... " >&6; }
18618 if test ${ac_cv_lib_pthread_pthread_create+y}
18619 then :
18620 printf %s "(cached) " >&6
18621 else $as_nop
18622 ac_check_lib_save_LIBS=$LIBS
18623 LIBS="-lpthread $LIBS"
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18626
18627 namespace conftest {
18628 extern "C" int pthread_create ();
18629 }
18630 int
18631 main (void)
18632 {
18633 return conftest::pthread_create ();
18634 ;
18635 return 0;
18636 }
18637 _ACEOF
18638 if ac_fn_cxx_try_link "$LINENO"
18639 then :
18640 ac_cv_lib_pthread_pthread_create=yes
18641 else $as_nop
18642 ac_cv_lib_pthread_pthread_create=no
18643 fi
18644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18645 conftest$ac_exeext conftest.$ac_ext
18646 LIBS=$ac_check_lib_save_LIBS
18647 fi
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
18649 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
18650 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
18651 then :
18652 pthread_found=yes
18653 fi
18654
18655 if test x"$pthread_found" = xyes ; then
18656
18657 threadLib=-lpthread
18658 else
18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
18660 printf %s "checking for pthread_create in -lc_r... " >&6; }
18661 if test ${ac_cv_lib_c_r_pthread_create+y}
18662 then :
18663 printf %s "(cached) " >&6
18664 else $as_nop
18665 ac_check_lib_save_LIBS=$LIBS
18666 LIBS="-lc_r $LIBS"
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669
18670 namespace conftest {
18671 extern "C" int pthread_create ();
18672 }
18673 int
18674 main (void)
18675 {
18676 return conftest::pthread_create ();
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_cxx_try_link "$LINENO"
18682 then :
18683 ac_cv_lib_c_r_pthread_create=yes
18684 else $as_nop
18685 ac_cv_lib_c_r_pthread_create=no
18686 fi
18687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18690 fi
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
18692 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
18693 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
18694 then :
18695 threadLib=-lc_r
18696 fi
18697
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgcc_r" >&5
18699 printf %s "checking for main in -lgcc_r... " >&6; }
18700 if test ${ac_cv_lib_gcc_r_main+y}
18701 then :
18702 printf %s "(cached) " >&6
18703 else $as_nop
18704 ac_check_lib_save_LIBS=$LIBS
18705 LIBS="-lgcc_r $LIBS"
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708
18709 namespace conftest {
18710 extern "C" int main ();
18711 }
18712 int
18713 main (void)
18714 {
18715 return conftest::main ();
18716 ;
18717 return 0;
18718 }
18719 _ACEOF
18720 if ac_fn_cxx_try_link "$LINENO"
18721 then :
18722 ac_cv_lib_gcc_r_main=yes
18723 else $as_nop
18724 ac_cv_lib_gcc_r_main=no
18725 fi
18726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18727 conftest$ac_exeext conftest.$ac_ext
18728 LIBS=$ac_check_lib_save_LIBS
18729 fi
18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_r_main" >&5
18731 printf "%s\n" "$ac_cv_lib_gcc_r_main" >&6; }
18732 if test "x$ac_cv_lib_gcc_r_main" = xyes
18733 then :
18734 threadLib=-gcc_r
18735 fi
18736
18737 fi
18738 fi
18739
18740
18741
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
18743 printf %s "checking for socket in -lsocket... " >&6; }
18744 if test ${ac_cv_lib_socket_socket+y}
18745 then :
18746 printf %s "(cached) " >&6
18747 else $as_nop
18748 ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lsocket $LIBS"
18750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18752
18753 namespace conftest {
18754 extern "C" int socket ();
18755 }
18756 int
18757 main (void)
18758 {
18759 return conftest::socket ();
18760 ;
18761 return 0;
18762 }
18763 _ACEOF
18764 if ac_fn_cxx_try_link "$LINENO"
18765 then :
18766 ac_cv_lib_socket_socket=yes
18767 else $as_nop
18768 ac_cv_lib_socket_socket=no
18769 fi
18770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18771 conftest$ac_exeext conftest.$ac_ext
18772 LIBS=$ac_check_lib_save_LIBS
18773 fi
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
18775 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
18776 if test "x$ac_cv_lib_socket_socket" = xyes
18777 then :
18778 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
18779
18780 LIBS="-lsocket $LIBS"
18781
18782 fi
18783
18784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18785 printf %s "checking for gethostbyname in -lnsl... " >&6; }
18786 if test ${ac_cv_lib_nsl_gethostbyname+y}
18787 then :
18788 printf %s "(cached) " >&6
18789 else $as_nop
18790 ac_check_lib_save_LIBS=$LIBS
18791 LIBS="-lnsl $LIBS"
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18794
18795 namespace conftest {
18796 extern "C" int gethostbyname ();
18797 }
18798 int
18799 main (void)
18800 {
18801 return conftest::gethostbyname ();
18802 ;
18803 return 0;
18804 }
18805 _ACEOF
18806 if ac_fn_cxx_try_link "$LINENO"
18807 then :
18808 ac_cv_lib_nsl_gethostbyname=yes
18809 else $as_nop
18810 ac_cv_lib_nsl_gethostbyname=no
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18813 conftest$ac_exeext conftest.$ac_ext
18814 LIBS=$ac_check_lib_save_LIBS
18815 fi
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18817 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
18818 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
18819 then :
18820 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
18821
18822 LIBS="-lnsl $LIBS"
18823
18824 fi
18825
18826
18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
18828 printf %s "checking for pcre_compile in -lpcre... " >&6; }
18829 if test ${ac_cv_lib_pcre_pcre_compile+y}
18830 then :
18831 printf %s "(cached) " >&6
18832 else $as_nop
18833 ac_check_lib_save_LIBS=$LIBS
18834 LIBS="-lpcre $LIBS"
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18837
18838 namespace conftest {
18839 extern "C" int pcre_compile ();
18840 }
18841 int
18842 main (void)
18843 {
18844 return conftest::pcre_compile ();
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_cxx_try_link "$LINENO"
18850 then :
18851 ac_cv_lib_pcre_pcre_compile=yes
18852 else $as_nop
18853 ac_cv_lib_pcre_pcre_compile=no
18854 fi
18855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
18860 printf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; }
18861 if test "x$ac_cv_lib_pcre_pcre_compile" = xyes
18862 then :
18863 if /bin/true; then
18864 COND_PCRE_TRUE=
18865 COND_PCRE_FALSE='#'
18866 else
18867 COND_PCRE_TRUE='#'
18868 COND_PCRE_FALSE=
18869 fi
18870
18871 else $as_nop
18872 if /bin/false; then
18873 COND_PCRE_TRUE=
18874 COND_PCRE_FALSE='#'
18875 else
18876 COND_PCRE_TRUE='#'
18877 COND_PCRE_FALSE=
18878 fi
18879
18880 fi
18881
18882
18883
18884 ac_fn_cxx_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
18885 if test "x$ac_cv_header_sys_file_h" = xyes
18886 then :
18887 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
18888
18889 fi
18890 ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18891 if test "x$ac_cv_header_unistd_h" = xyes
18892 then :
18893 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18894
18895 fi
18896 ac_fn_cxx_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
18897 if test "x$ac_cv_header_sys_stat_h" = xyes
18898 then :
18899 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
18900
18901 fi
18902 ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
18903 if test "x$ac_cv_header_sys_ioctl_h" = xyes
18904 then :
18905 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
18906
18907 fi
18908 ac_fn_cxx_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
18909 if test "x$ac_cv_header_sys_resource_h" = xyes
18910 then :
18911 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
18912
18913 fi
18914
18915 ac_fn_cxx_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18916 if test "x$ac_cv_header_sys_time_h" = xyes
18917 then :
18918 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18919
18920 fi
18921 ac_fn_cxx_check_header_compile "$LINENO" "asm/ioctls.h" "ac_cv_header_asm_ioctls_h" "$ac_includes_default"
18922 if test "x$ac_cv_header_asm_ioctls_h" = xyes
18923 then :
18924 printf "%s\n" "#define HAVE_ASM_IOCTLS_H 1" >>confdefs.h
18925
18926 fi
18927 ac_fn_cxx_check_header_compile "$LINENO" "xti_inet.h" "ac_cv_header_xti_inet_h" "$ac_includes_default"
18928 if test "x$ac_cv_header_xti_inet_h" = xyes
18929 then :
18930 printf "%s\n" "#define HAVE_XTI_INET_H 1" >>confdefs.h
18931
18932 fi
18933 ac_fn_cxx_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
18934 if test "x$ac_cv_header_sys_filio_h" = xyes
18935 then :
18936 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
18937
18938 fi
18939 ac_fn_cxx_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18940 if test "x$ac_cv_header_getopt_h" = xyes
18941 then :
18942 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
18943
18944 fi
18945
18946 ac_fn_cxx_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18947 if test "x$ac_cv_header_sys_types_h" = xyes
18948 then :
18949 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
18950
18951 fi
18952 ac_fn_cxx_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18953 if test "x$ac_cv_header_sys_socket_h" = xyes
18954 then :
18955 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
18956
18957 fi
18958 ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18959 if test "x$ac_cv_header_netinet_in_h" = xyes
18960 then :
18961 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
18962
18963 fi
18964 ac_fn_cxx_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
18965 if test "x$ac_cv_header_sys_un_h" = xyes
18966 then :
18967 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
18968
18969 fi
18970 ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18971 if test "x$ac_cv_header_pthread_h" = xyes
18972 then :
18973 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
18974
18975 fi
18976
18977
18978 # Autoupdate added the next two lines to ensure that your configure
18979 # script's behavior did not change. They are probably safe to remove.
18980
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
18982 printf %s "checking for egrep... " >&6; }
18983 if test ${ac_cv_path_EGREP+y}
18984 then :
18985 printf %s "(cached) " >&6
18986 else $as_nop
18987 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18988 then ac_cv_path_EGREP="$GREP -E"
18989 else
18990 if test -z "$EGREP"; then
18991 ac_path_EGREP_found=false
18992 # Loop through the user's path and test for each of PROGNAME-LIST
18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18995 do
18996 IFS=$as_save_IFS
18997 case $as_dir in #(((
18998 '') as_dir=./ ;;
18999 */) ;;
19000 *) as_dir=$as_dir/ ;;
19001 esac
19002 for ac_prog in egrep
19003 do
19004 for ac_exec_ext in '' $ac_executable_extensions; do
19005 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
19006 as_fn_executable_p "$ac_path_EGREP" || continue
19007 # Check for GNU ac_path_EGREP and select it if it is found.
19008 # Check for GNU $ac_path_EGREP
19009 case `"$ac_path_EGREP" --version 2>&1` in
19010 *GNU*)
19011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19012 *)
19013 ac_count=0
19014 printf %s 0123456789 >"conftest.in"
19015 while :
19016 do
19017 cat "conftest.in" "conftest.in" >"conftest.tmp"
19018 mv "conftest.tmp" "conftest.in"
19019 cp "conftest.in" "conftest.nl"
19020 printf "%s\n" 'EGREP' >> "conftest.nl"
19021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19023 as_fn_arith $ac_count + 1 && ac_count=$as_val
19024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19025 # Best one so far, save it but keep looking for a better one
19026 ac_cv_path_EGREP="$ac_path_EGREP"
19027 ac_path_EGREP_max=$ac_count
19028 fi
19029 # 10*(2^10) chars as input seems more than enough
19030 test $ac_count -gt 10 && break
19031 done
19032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19033 esac
19034
19035 $ac_path_EGREP_found && break 3
19036 done
19037 done
19038 done
19039 IFS=$as_save_IFS
19040 if test -z "$ac_cv_path_EGREP"; then
19041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19042 fi
19043 else
19044 ac_cv_path_EGREP=$EGREP
19045 fi
19046
19047 fi
19048 fi
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19050 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
19051 EGREP="$ac_cv_path_EGREP"
19052
19053
19054
19055 ac_header= ac_cache=
19056 for ac_item in $ac_header_cxx_list
19057 do
19058 if test $ac_cache; then
19059 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
19060 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
19061 printf "%s\n" "#define $ac_item 1" >> confdefs.h
19062 fi
19063 ac_header= ac_cache=
19064 elif test $ac_header; then
19065 ac_cache=$ac_item
19066 else
19067 ac_header=$ac_item
19068 fi
19069 done
19070
19071 # Obsolete code to be removed.
19072 if test $ac_cv_header_sys_time_h = yes; then
19073
19074 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19075
19076 fi
19077 # End of obsolete code.
19078
19079 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19080 if test "x$ac_cv_type_mode_t" = xyes
19081 then :
19082
19083 else $as_nop
19084
19085 printf "%s\n" "#define mode_t int" >>confdefs.h
19086
19087 fi
19088
19089
19090 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
19091 "
19092 if test "x$ac_cv_type_pid_t" = xyes
19093 then :
19094
19095 else $as_nop
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098
19099 #if defined _WIN64 && !defined __CYGWIN__
19100 LLP64
19101 #endif
19102
19103 int
19104 main (void)
19105 {
19106
19107 ;
19108 return 0;
19109 }
19110
19111 _ACEOF
19112 if ac_fn_cxx_try_compile "$LINENO"
19113 then :
19114 ac_pid_type='int'
19115 else $as_nop
19116 ac_pid_type='__int64'
19117 fi
19118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19119
19120 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
19121
19122
19123 fi
19124
19125
19126 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19127 if test "x$ac_cv_type_size_t" = xyes
19128 then :
19129
19130 else $as_nop
19131
19132 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
19133
19134 fi
19135
19136
19137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19138 printf %s "checking for uid_t in sys/types.h... " >&6; }
19139 if test ${ac_cv_type_uid_t+y}
19140 then :
19141 printf %s "(cached) " >&6
19142 else $as_nop
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19145 #include <sys/types.h>
19146
19147 _ACEOF
19148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19149 $EGREP "uid_t" >/dev/null 2>&1
19150 then :
19151 ac_cv_type_uid_t=yes
19152 else $as_nop
19153 ac_cv_type_uid_t=no
19154 fi
19155 rm -rf conftest*
19156
19157 fi
19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19159 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
19160 if test $ac_cv_type_uid_t = no; then
19161
19162 printf "%s\n" "#define uid_t int" >>confdefs.h
19163
19164
19165 printf "%s\n" "#define gid_t int" >>confdefs.h
19166
19167 fi
19168
19169
19170 found_socklen_t=no
19171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19173 #include <sys/socket.h>
19174
19175 _ACEOF
19176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19177 $EGREP "socklen_t" >/dev/null 2>&1
19178 then :
19179 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
19180 found_socklen_t=yes
19181 fi
19182 rm -rf conftest*
19183
19184
19185 if test $found_socklen_t = yes; then
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h. */
19188 #include <bits/socket.h>
19189
19190 _ACEOF
19191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19192 $EGREP "socklen_t" >/dev/null 2>&1
19193 then :
19194
19195 printf "%s\n" "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
19196
19197 fi
19198 rm -rf conftest*
19199
19200 fi
19201
19202 if test $found_socklen_t = yes; then
19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
19204 printf %s "checking for socklen_t... " >&6; }
19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19206 printf "%s\n" "yes" >&6; }
19207 else
19208 ac_fn_cxx_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
19209 if test "x$ac_cv_type_socklen_t" = xyes
19210 then :
19211
19212 else $as_nop
19213
19214 printf "%s\n" "#define socklen_t int" >>confdefs.h
19215
19216 fi
19217
19218 fi
19219
19220
19221 # Check whether --with-debug was given.
19222 if test ${with_debug+y}
19223 then :
19224 withval=$with_debug; dummy=true
19225 else $as_nop
19226 CXXFLAGS="$CXXFLAGS -g"
19227
19228 fi
19229
19230
19231 build_testdir=false
19232
19233 # Check whether --with-test was given.
19234 if test ${with_test+y}
19235 then :
19236 withval=$with_test; build_testdir=true
19237
19238 fi
19239
19240 if test $build_testdir = true; then
19241 COND_TESTDIR_TRUE=
19242 COND_TESTDIR_FALSE='#'
19243 else
19244 COND_TESTDIR_TRUE='#'
19245 COND_TESTDIR_FALSE=
19246 fi
19247
19248
19249
19250 # Check whether --with-pedantic was given.
19251 if test ${with_pedantic+y}
19252 then :
19253 withval=$with_pedantic; CXXFLAGS="$CXXFLAGS -pedantic"
19254
19255 fi
19256
19257
19258
19259 # Check whether --with-optimization was given.
19260 if test ${with_optimization+y}
19261 then :
19262 withval=$with_optimization; CXXFLAGS="$CXXFLAGS -O2"
19263 else $as_nop
19264 CXXFLAGS="$CXXFLAGS -O0"
19265
19266 fi
19267
19268
19269
19270 # Check whether --with-prof was given.
19271 if test ${with_prof+y}
19272 then :
19273 withval=$with_prof; CXXFLAGS="$CXXFLAGS -pg"
19274
19275 fi
19276
19277
19278
19279
19280 # Check whether --with-pgconfig was given.
19281 if test ${with_pgconfig+y}
19282 then :
19283 withval=$with_pgconfig; pg_config_binary=$withval
19284 else $as_nop
19285 pg_config_binary=""
19286
19287 fi
19288
19289
19290
19291 if test "x$pg_config_binary" = "x"; then
19292 # Extract the first word of "pg_config", so it can be a program name with args.
19293 set dummy pg_config; ac_word=$2
19294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19295 printf %s "checking for $ac_word... " >&6; }
19296 if test ${ac_cv_path_pg_config_binary+y}
19297 then :
19298 printf %s "(cached) " >&6
19299 else $as_nop
19300 case $pg_config_binary in
19301 [\\/]* | ?:[\\/]*)
19302 ac_cv_path_pg_config_binary="$pg_config_binary" # Let the user override the test with a path.
19303 ;;
19304 *)
19305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19306 for as_dir in $PATH
19307 do
19308 IFS=$as_save_IFS
19309 case $as_dir in #(((
19310 '') as_dir=./ ;;
19311 */) ;;
19312 *) as_dir=$as_dir/ ;;
19313 esac
19314 for ac_exec_ext in '' $ac_executable_extensions; do
19315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19316 ac_cv_path_pg_config_binary="$as_dir$ac_word$ac_exec_ext"
19317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19318 break 2
19319 fi
19320 done
19321 done
19322 IFS=$as_save_IFS
19323
19324 ;;
19325 esac
19326 fi
19327 pg_config_binary=$ac_cv_path_pg_config_binary
19328 if test -n "$pg_config_binary"; then
19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pg_config_binary" >&5
19330 printf "%s\n" "$pg_config_binary" >&6; }
19331 else
19332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 printf "%s\n" "no" >&6; }
19334 fi
19335
19336
19337
19338 if test "x$pg_config_binary" = "x"; then
19339 as_fn_error $? "Could not find pg_config. Ensure that PostgreSQL is installed, or specify pg_config location using --with-pgconfig." "$LINENO" 5
19340 fi
19341 elif test -f $pg_config_binary; then
19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using pg_config: $pg_config_binary" >&5
19343 printf "%s\n" "Using pg_config: $pg_config_binary" >&6; }
19344 else
19345 as_fn_error $? "pg_config file $pg_config_binary does not exist" "$LINENO" 5
19346 fi
19347
19348 pgsql_includedir=$($pg_config_binary --includedir)
19349 pgsql_libdir=$($pg_config_binary --libdir)
19350
19351 CXXFLAGS="$CXXFLAGS -I$pgsql_includedir"
19352 CPPFLAGS="$CPPFLAGS -I$pgsql_includedir"
19353 LIBS="$LIBS -L$pgsql_libdir"
19354
19355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
19356 printf %s "checking for PQconnectdb in -lpq... " >&6; }
19357 if test ${ac_cv_lib_pq_PQconnectdb+y}
19358 then :
19359 printf %s "(cached) " >&6
19360 else $as_nop
19361 ac_check_lib_save_LIBS=$LIBS
19362 LIBS="-lpq $LIBS"
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19365
19366 namespace conftest {
19367 extern "C" int PQconnectdb ();
19368 }
19369 int
19370 main (void)
19371 {
19372 return conftest::PQconnectdb ();
19373 ;
19374 return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_cxx_try_link "$LINENO"
19378 then :
19379 ac_cv_lib_pq_PQconnectdb=yes
19380 else $as_nop
19381 ac_cv_lib_pq_PQconnectdb=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19384 conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19386 fi
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
19388 printf "%s\n" "$ac_cv_lib_pq_PQconnectdb" >&6; }
19389 if test "x$ac_cv_lib_pq_PQconnectdb" = xyes
19390 then :
19391 printf "%s\n" "#define HAVE_LIBPQ 1" >>confdefs.h
19392
19393 LIBS="-lpq $LIBS"
19394
19395 fi
19396
19397 ac_fn_cxx_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
19398 if test "x$ac_cv_header_libpq_fe_h" = xyes
19399 then :
19400
19401 fi
19402
19403
19404 printf "%s\n" "#define HAVE_PGSQL /**/" >>confdefs.h
19405
19406
19407
19408 # Check whether --with-log4cplus was given.
19409 if test ${with_log4cplus+y}
19410 then :
19411 withval=$with_log4cplus; check_log4cplus=$withval
19412
19413 fi
19414
19415
19416 LOG4CPLUS_LIB="${check_log4cplus}/lib"
19417
19418 # Check whether --with-log4cplus-lib was given.
19419 if test ${with_log4cplus_lib+y}
19420 then :
19421 withval=$with_log4cplus_lib; LOG4CPLUS_LIB=$withval
19422
19423 fi
19424
19425
19426 LOG4CPLUS_INCLUDE="${check_log4cplus}/include"
19427
19428 # Check whether --with-log4cplus-include was given.
19429 if test ${with_log4cplus_include+y}
19430 then :
19431 withval=$with_log4cplus_include; LOG4CPLUS_INCLUDE=$withval
19432
19433 fi
19434
19435
19436 if test "x$check_log4cplus" != "x" ; then
19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblog4cplus.so" >&5
19438 printf %s "checking for liblog4cplus.so... " >&6; }
19439 if ! test -f "$LOG4CPLUS_LIB/liblog4cplus.so" ; then
19440 as_fn_error $? "Unable to find liblog4cplus.so, please use the --with-log4cplus-lib argument to point to the right path" "$LINENO" 5
19441 fi
19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19443 printf "%s\n" "yes" >&6; }
19444
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log4cplus/logger.h" >&5
19446 printf %s "checking for log4cplus/logger.h... " >&6; }
19447 if ! test -f "$LOG4CPLUS_INCLUDE/log4cplus/logger.h" ; then
19448 as_fn_error $? "Unable to find log4cplus/logger.h, please use the --with-log4cplus-include argument to point to the right path" "$LINENO" 5
19449 fi
19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19451 printf "%s\n" "yes" >&6; }
19452
19453 printf "%s\n" "#define ENABLE_LOG4CPLUS /**/" >>confdefs.h
19454
19455 LDFLAGS="${LDFLAGS} -L${LOG4CPLUS_LIB} -llog4cplus"
19456 CXXFLAGS="${CXXFLAGS} -I${LOG4CPLUS_INCLUDE}"
19457 fi
19458
19459
19460 # Check whether --with-liboath was given.
19461 if test ${with_liboath+y}
19462 then :
19463 withval=$with_liboath; check_liboath=$withval
19464
19465 fi
19466
19467 if test "$check_liboath" == "yes" ; then
19468 check_liboath=/usr/local
19469 fi
19470 OATH_LIB="${check_liboath}/lib"
19471
19472 # Check whether --with-liboath-lib was given.
19473 if test ${with_liboath_lib+y}
19474 then :
19475 withval=$with_liboath_lib; OATH_LIB=$withval
19476
19477 fi
19478
19479
19480 OATH_INCLUDE="${check_liboath}/include"
19481
19482 # Check whether --with-liboath-include was given.
19483 if test ${with_liboath_include+y}
19484 then :
19485 withval=$with_liboath_include; OATH_INCLUDE=$withval
19486
19487 fi
19488
19489
19490 if test "x$check_liboath" != "x" ; then
19491 LDFLAGS="${LDFLAGS} -L${OATH_LIB}"
19492 CXXFLAGS="${CXXFLAGS} -I${OATH_INCLUDE} -L${OATH_LIB}"
19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for oath_totp_validate in -loath" >&5
19494 printf %s "checking for oath_totp_validate in -loath... " >&6; }
19495 if test ${ac_cv_lib_oath_oath_totp_validate+y}
19496 then :
19497 printf %s "(cached) " >&6
19498 else $as_nop
19499 ac_check_lib_save_LIBS=$LIBS
19500 LIBS="-loath $LIBS"
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19503
19504 namespace conftest {
19505 extern "C" int oath_totp_validate ();
19506 }
19507 int
19508 main (void)
19509 {
19510 return conftest::oath_totp_validate ();
19511 ;
19512 return 0;
19513 }
19514 _ACEOF
19515 if ac_fn_cxx_try_link "$LINENO"
19516 then :
19517 ac_cv_lib_oath_oath_totp_validate=yes
19518 else $as_nop
19519 ac_cv_lib_oath_oath_totp_validate=no
19520 fi
19521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19524 fi
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oath_oath_totp_validate" >&5
19526 printf "%s\n" "$ac_cv_lib_oath_oath_totp_validate" >&6; }
19527 if test "x$ac_cv_lib_oath_oath_totp_validate" = xyes
19528 then :
19529 printf "%s\n" "#define HAVE_LIBOATH 1" >>confdefs.h
19530
19531 LIBS="-loath $LIBS"
19532
19533 else $as_nop
19534 as_fn_error 1 "Unable to find liboath.so, please use the --with-liboath-lib argument to point to the right path" "$LINENO" 5
19535 fi
19536
19537 as_ac_File=`printf "%s\n" "ac_cv_file_"$OATH_INCLUDE/liboath/oath.h"" | $as_tr_sh`
19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$OATH_INCLUDE/liboath/oath.h\"" >&5
19539 printf %s "checking for \"$OATH_INCLUDE/liboath/oath.h\"... " >&6; }
19540 if eval test \${$as_ac_File+y}
19541 then :
19542 printf %s "(cached) " >&6
19543 else $as_nop
19544 test "$cross_compiling" = yes &&
19545 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19546 if test -r ""$OATH_INCLUDE/liboath/oath.h""; then
19547 eval "$as_ac_File=yes"
19548 else
19549 eval "$as_ac_File=no"
19550 fi
19551 fi
19552 eval ac_res=\$$as_ac_File
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19554 printf "%s\n" "$ac_res" >&6; }
19555 if eval test \"x\$"$as_ac_File"\" = x"yes"
19556 then :
19557
19558 else $as_nop
19559 as_fn_error 1 "Unable to find oath.h, please use the --with-liboath-include argument to point to the right path" "$LINENO" 5
19560 fi
19561
19562 fi
19563
19564
19565
19566 # Check whether --with-extra-includes was given.
19567 if test ${with_extra_includes+y}
19568 then :
19569 withval=$with_extra_includes; CXXFLAGS="$CXXFLAGS -I$withval"
19570
19571 fi
19572
19573
19574 # Check whether --with-extra-libraries was given.
19575 if test ${with_extra_libraries+y}
19576 then :
19577 withval=$with_extra_libraries; LDFLAGS="$LDFLAGS -L$withval"
19578
19579 fi
19580
19581
19582
19583
19584 # Check whether --with-boost was given.
19585 if test ${with_boost+y}
19586 then :
19587 withval=$with_boost;
19588 case $withval in #(
19589 no) :
19590 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
19591 yes) :
19592 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
19593 *) :
19594 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
19595 esac
19596
19597 else $as_nop
19598 want_boost="yes"
19599 fi
19600
19601
19602
19603
19604 # Check whether --with-boost-libdir was given.
19605 if test ${with_boost_libdir+y}
19606 then :
19607 withval=$with_boost_libdir;
19608 if test -d "$withval"
19609 then :
19610 _AX_BOOST_BASE_boost_lib_path="$withval"
19611 else $as_nop
19612 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
19613 fi
19614
19615 else $as_nop
19616 _AX_BOOST_BASE_boost_lib_path=""
19617 fi
19618
19619
19620 BOOST_LDFLAGS=""
19621 BOOST_CPPFLAGS=""
19622 if test "x$want_boost" = "xyes"
19623 then :
19624
19625
19626 if test "x" = "x"
19627 then :
19628 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
19629 else $as_nop
19630 _AX_BOOST_BASE_TONUMERICVERSION_req=""
19631 fi
19632 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
19633 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
19634 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
19635 then :
19636 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
19637 fi
19638 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
19639 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
19640 then :
19641 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
19642 fi
19643 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
19644 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
19645 then :
19646 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
19647 fi
19648 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
19649 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
19650
19651 succeeded=no
19652
19653
19654
19655 case ${host_cpu} in #(
19656 x86_64) :
19657 libsubdirs="lib64 libx32 lib lib64" ;; #(
19658 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
19659 libsubdirs="lib64 lib lib64" ;; #(
19660 *) :
19661 libsubdirs="lib"
19662 ;;
19663 esac
19664
19665 case ${host_cpu} in #(
19666 i?86) :
19667 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
19668 *) :
19669 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
19670 ;;
19671 esac
19672
19673 if test "x$_AX_BOOST_BASE_boost_path" != "x"
19674 then :
19675
19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
19677 printf %s "checking for boostlib >= ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
19678 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
19679 then :
19680
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19682 printf "%s\n" "yes" >&6; }
19683 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
19684 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
19686 printf %s "checking for boostlib >= ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
19687 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"
19688 then :
19689
19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19691 printf "%s\n" "yes" >&6; }
19692 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
19693 break;
19694
19695 else $as_nop
19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697 printf "%s\n" "no" >&6; }
19698 fi
19699 done
19700 else $as_nop
19701
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703 printf "%s\n" "no" >&6; }
19704 fi
19705
19706 else $as_nop
19707
19708 if test X"$cross_compiling" = Xyes; then
19709 search_libsubdirs=$multiarch_libsubdir
19710 else
19711 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
19712 fi
19713 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
19714 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
19715 for libsubdir in $search_libsubdirs ; do
19716 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19717 done
19718 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
19719 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
19720 break;
19721 fi
19722 done
19723
19724 fi
19725
19726 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
19727 then :
19728 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
19729 fi
19730
19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= ($WANT_BOOST_VERSION)" >&5
19732 printf %s "checking for boostlib >= ($WANT_BOOST_VERSION)... " >&6; }
19733 CPPFLAGS_SAVED="$CPPFLAGS"
19734 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19735 export CPPFLAGS
19736
19737 LDFLAGS_SAVED="$LDFLAGS"
19738 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19739 export LDFLAGS
19740
19741
19742 ac_ext=cpp
19743 ac_cpp='$CXXCPP $CPPFLAGS'
19744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747
19748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749 /* end confdefs.h. */
19750
19751 #include <boost/version.hpp>
19752
19753 int
19754 main (void)
19755 {
19756
19757 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
19758
19759 ;
19760 return 0;
19761 }
19762 _ACEOF
19763 if ac_fn_cxx_try_compile "$LINENO"
19764 then :
19765
19766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19767 printf "%s\n" "yes" >&6; }
19768 succeeded=yes
19769 found_system=yes
19770
19771 fi
19772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19773 ac_ext=cpp
19774 ac_cpp='$CXXCPP $CPPFLAGS'
19775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778
19779
19780
19781
19782 if test "x$succeeded" != "xyes" ; then
19783 CPPFLAGS="$CPPFLAGS_SAVED"
19784 LDFLAGS="$LDFLAGS_SAVED"
19785 BOOST_CPPFLAGS=
19786 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
19787 BOOST_LDFLAGS=
19788 fi
19789 _version=0
19790 if test -n "$_AX_BOOST_BASE_boost_path" ; then
19791 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
19792 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
19793 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19794 V_CHECK=`expr $_version_tmp \> $_version`
19795 if test "x$V_CHECK" = "x1" ; then
19796 _version=$_version_tmp
19797 fi
19798 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19799 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
19800 done
19801 if test -z "$BOOST_CPPFLAGS"; then
19802 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
19803 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
19804 fi
19805 fi
19806 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
19807 for libsubdir in $libsubdirs ; do
19808 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19809 done
19810 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
19811 fi
19812 fi
19813 else
19814 if test "x$cross_compiling" != "xyes" ; then
19815 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
19816 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
19817 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
19818 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19819 V_CHECK=`expr $_version_tmp \> $_version`
19820 if test "x$V_CHECK" = "x1" ; then
19821 _version=$_version_tmp
19822 best_path=$_AX_BOOST_BASE_boost_path
19823 fi
19824 done
19825 fi
19826 done
19827
19828 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19829 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
19830 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
19831 for libsubdir in $libsubdirs ; do
19832 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19833 done
19834 BOOST_LDFLAGS="-L$best_path/$libsubdir"
19835 fi
19836 fi
19837
19838 if test -n "$BOOST_ROOT" ; then
19839 for libsubdir in $libsubdirs ; do
19840 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19841 done
19842 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
19843 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
19844 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
19845 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
19846 V_CHECK=`expr $stage_version_shorten \>\= $_version`
19847 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
19848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
19849 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
19850 BOOST_CPPFLAGS="-I$BOOST_ROOT"
19851 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
19852 fi
19853 fi
19854 fi
19855 fi
19856
19857 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19858 export CPPFLAGS
19859 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19860 export LDFLAGS
19861
19862 ac_ext=cpp
19863 ac_cpp='$CXXCPP $CPPFLAGS'
19864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19867
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870
19871 #include <boost/version.hpp>
19872
19873 int
19874 main (void)
19875 {
19876
19877 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
19878
19879 ;
19880 return 0;
19881 }
19882 _ACEOF
19883 if ac_fn_cxx_try_compile "$LINENO"
19884 then :
19885
19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19887 printf "%s\n" "yes" >&6; }
19888 succeeded=yes
19889 found_system=yes
19890
19891 fi
19892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19893 ac_ext=cpp
19894 ac_cpp='$CXXCPP $CPPFLAGS'
19895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19898
19899 fi
19900
19901 if test "x$succeeded" != "xyes" ; then
19902 if test "x$_version" = "x0" ; then
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
19904 printf "%s\n" "$as_me: We could not detect the boost libraries (version or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
19905 else
19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
19907 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
19908 fi
19909 # execute ACTION-IF-NOT-FOUND (if present):
19910 :
19911 else
19912
19913 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
19914
19915 # execute ACTION-IF-FOUND (if present):
19916 :
19917 fi
19918
19919 CPPFLAGS="$CPPFLAGS_SAVED"
19920 LDFLAGS="$LDFLAGS_SAVED"
19921
19922
19923 fi
19924
19925
19926
19927
19928
19929 # Check whether --with-boost-thread was given.
19930 if test ${with_boost_thread+y}
19931 then :
19932 withval=$with_boost_thread;
19933 if test "$withval" = "yes"; then
19934 want_boost="yes"
19935 ax_boost_user_thread_lib=""
19936 else
19937 want_boost="yes"
19938 ax_boost_user_thread_lib="$withval"
19939 fi
19940
19941 else $as_nop
19942 want_boost="yes"
19943
19944 fi
19945
19946
19947 if test "x$want_boost" = "xyes"; then
19948
19949
19950 CPPFLAGS_SAVED="$CPPFLAGS"
19951 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19952 export CPPFLAGS
19953
19954 LDFLAGS_SAVED="$LDFLAGS"
19955 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19956 export LDFLAGS
19957
19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
19959 printf %s "checking whether the Boost::Thread library is available... " >&6; }
19960 if test ${ax_cv_boost_thread+y}
19961 then :
19962 printf %s "(cached) " >&6
19963 else $as_nop
19964 ac_ext=cpp
19965 ac_cpp='$CXXCPP $CPPFLAGS'
19966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19969
19970 CXXFLAGS_SAVE=$CXXFLAGS
19971
19972 if test "x$host_os" = "xsolaris" ; then
19973 CXXFLAGS="-pthreads $CXXFLAGS"
19974 elif test "x$host_os" = "xmingw32" ; then
19975 CXXFLAGS="-mthreads $CXXFLAGS"
19976 else
19977 CXXFLAGS="-pthread $CXXFLAGS"
19978 fi
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980 /* end confdefs.h. */
19981
19982 #include <boost/thread/thread.hpp>
19983 int
19984 main (void)
19985 {
19986 boost::thread_group thrds;
19987 return 0;
19988 ;
19989 return 0;
19990 }
19991 _ACEOF
19992 if ac_fn_cxx_try_compile "$LINENO"
19993 then :
19994 ax_cv_boost_thread=yes
19995 else $as_nop
19996 ax_cv_boost_thread=no
19997 fi
19998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19999 CXXFLAGS=$CXXFLAGS_SAVE
20000 ac_ext=cpp
20001 ac_cpp='$CXXCPP $CPPFLAGS'
20002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20005
20006
20007 fi
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
20009 printf "%s\n" "$ax_cv_boost_thread" >&6; }
20010 if test "x$ax_cv_boost_thread" = "xyes"; then
20011 if test "x$host_os" = "xsolaris" ; then
20012 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
20013 elif test "x$host_os" = "xmingw32" ; then
20014 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
20015 else
20016 BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
20017 fi
20018
20019
20020
20021
20022 printf "%s\n" "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
20023
20024 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20025
20026 LDFLAGS_SAVE=$LDFLAGS
20027 case "x$host_os" in
20028 *bsd* )
20029 LDFLAGS="-pthread $LDFLAGS"
20030 break;
20031 ;;
20032 esac
20033 if test "x$ax_boost_user_thread_lib" = "x"; then
20034 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
20035 ax_lib=${libextension}
20036 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20038 printf %s "checking for exit in -l$ax_lib... " >&6; }
20039 if eval test \${$as_ac_Lib+y}
20040 then :
20041 printf %s "(cached) " >&6
20042 else $as_nop
20043 ac_check_lib_save_LIBS=$LIBS
20044 LIBS="-l$ax_lib $LIBS"
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20047
20048 namespace conftest {
20049 extern "C" int exit ();
20050 }
20051 int
20052 main (void)
20053 {
20054 return conftest::exit ();
20055 ;
20056 return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_cxx_try_link "$LINENO"
20060 then :
20061 eval "$as_ac_Lib=yes"
20062 else $as_nop
20063 eval "$as_ac_Lib=no"
20064 fi
20065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 eval ac_res=\$$as_ac_Lib
20070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20071 printf "%s\n" "$ac_res" >&6; }
20072 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
20073 then :
20074 link_thread="yes"; break
20075 else $as_nop
20076 link_thread="no"
20077 fi
20078
20079 done
20080 if test "x$link_thread" != "xyes"; then
20081 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
20082 ax_lib=${libextension}
20083 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
20084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20085 printf %s "checking for exit in -l$ax_lib... " >&6; }
20086 if eval test \${$as_ac_Lib+y}
20087 then :
20088 printf %s "(cached) " >&6
20089 else $as_nop
20090 ac_check_lib_save_LIBS=$LIBS
20091 LIBS="-l$ax_lib $LIBS"
20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h. */
20094
20095 namespace conftest {
20096 extern "C" int exit ();
20097 }
20098 int
20099 main (void)
20100 {
20101 return conftest::exit ();
20102 ;
20103 return 0;
20104 }
20105 _ACEOF
20106 if ac_fn_cxx_try_link "$LINENO"
20107 then :
20108 eval "$as_ac_Lib=yes"
20109 else $as_nop
20110 eval "$as_ac_Lib=no"
20111 fi
20112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20113 conftest$ac_exeext conftest.$ac_ext
20114 LIBS=$ac_check_lib_save_LIBS
20115 fi
20116 eval ac_res=\$$as_ac_Lib
20117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20118 printf "%s\n" "$ac_res" >&6; }
20119 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
20120 then :
20121 link_thread="yes"; break
20122 else $as_nop
20123 link_thread="no"
20124 fi
20125
20126 done
20127 fi
20128
20129 else
20130 for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
20131 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20133 printf %s "checking for exit in -l$ax_lib... " >&6; }
20134 if eval test \${$as_ac_Lib+y}
20135 then :
20136 printf %s "(cached) " >&6
20137 else $as_nop
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-l$ax_lib $LIBS"
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h. */
20142
20143 namespace conftest {
20144 extern "C" int exit ();
20145 }
20146 int
20147 main (void)
20148 {
20149 return conftest::exit ();
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 if ac_fn_cxx_try_link "$LINENO"
20155 then :
20156 eval "$as_ac_Lib=yes"
20157 else $as_nop
20158 eval "$as_ac_Lib=no"
20159 fi
20160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20163 fi
20164 eval ac_res=\$$as_ac_Lib
20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20166 printf "%s\n" "$ac_res" >&6; }
20167 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
20168 then :
20169 link_thread="yes"; break
20170 else $as_nop
20171 link_thread="no"
20172 fi
20173
20174 done
20175
20176 fi
20177 if test "x$ax_lib" = "x"; then
20178 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20179 fi
20180 if test "x$link_thread" = "xno"; then
20181 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20182 else
20183 BOOST_THREAD_LIB="-l$ax_lib"
20184 case "x$host_os" in
20185 *bsd* )
20186 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
20187 break;
20188 ;;
20189 xsolaris )
20190 BOOST_THREAD_LIB="$BOOST_THREAD_LIB -lpthread"
20191 break;
20192 ;;
20193 xmingw32 )
20194 break;
20195 ;;
20196 * )
20197 BOOST_THREAD_LIB="$BOOST_THREAD_LIB -lpthread"
20198 break;
20199 ;;
20200 esac
20201
20202 fi
20203 fi
20204
20205 CPPFLAGS="$CPPFLAGS_SAVED"
20206 LDFLAGS="$LDFLAGS_SAVED"
20207 fi
20208
20209 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
20210 ac_ext=cpp
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20215 ac_success=no
20216
20217 if test x$ac_success = xno; then
20218 for alternative in ${ax_cxx_compile_alternatives}; do
20219 switch="-std=gnu++${alternative}"
20220 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20222 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20223 if eval test \${$cachevar+y}
20224 then :
20225 printf %s "(cached) " >&6
20226 else $as_nop
20227 ac_save_CXX="$CXX"
20228 CXX="$CXX $switch"
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20231
20232
20233 // If the compiler admits that it is not ready for C++11, why torture it?
20234 // Hopefully, this will speed up the test.
20235
20236 #ifndef __cplusplus
20237
20238 #error "This is not a C++ compiler"
20239
20240 #elif __cplusplus < 201103L
20241
20242 #error "This is not a C++11 compiler"
20243
20244 #else
20245
20246 namespace cxx11
20247 {
20248
20249 namespace test_static_assert
20250 {
20251
20252 template <typename T>
20253 struct check
20254 {
20255 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20256 };
20257
20258 }
20259
20260 namespace test_final_override
20261 {
20262
20263 struct Base
20264 {
20265 virtual void f() {}
20266 };
20267
20268 struct Derived : public Base
20269 {
20270 virtual void f() override {}
20271 };
20272
20273 }
20274
20275 namespace test_double_right_angle_brackets
20276 {
20277
20278 template < typename T >
20279 struct check {};
20280
20281 typedef check<void> single_type;
20282 typedef check<check<void>> double_type;
20283 typedef check<check<check<void>>> triple_type;
20284 typedef check<check<check<check<void>>>> quadruple_type;
20285
20286 }
20287
20288 namespace test_decltype
20289 {
20290
20291 int
20292 f()
20293 {
20294 int a = 1;
20295 decltype(a) b = 2;
20296 return a + b;
20297 }
20298
20299 }
20300
20301 namespace test_type_deduction
20302 {
20303
20304 template < typename T1, typename T2 >
20305 struct is_same
20306 {
20307 static const bool value = false;
20308 };
20309
20310 template < typename T >
20311 struct is_same<T, T>
20312 {
20313 static const bool value = true;
20314 };
20315
20316 template < typename T1, typename T2 >
20317 auto
20318 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20319 {
20320 return a1 + a2;
20321 }
20322
20323 int
20324 test(const int c, volatile int v)
20325 {
20326 static_assert(is_same<int, decltype(0)>::value == true, "");
20327 static_assert(is_same<int, decltype(c)>::value == false, "");
20328 static_assert(is_same<int, decltype(v)>::value == false, "");
20329 auto ac = c;
20330 auto av = v;
20331 auto sumi = ac + av + 'x';
20332 auto sumf = ac + av + 1.0;
20333 static_assert(is_same<int, decltype(ac)>::value == true, "");
20334 static_assert(is_same<int, decltype(av)>::value == true, "");
20335 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20336 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20337 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20338 return (sumf > 0.0) ? sumi : add(c, v);
20339 }
20340
20341 }
20342
20343 namespace test_noexcept
20344 {
20345
20346 int f() { return 0; }
20347 int g() noexcept { return 0; }
20348
20349 static_assert(noexcept(f()) == false, "");
20350 static_assert(noexcept(g()) == true, "");
20351
20352 }
20353
20354 namespace test_constexpr
20355 {
20356
20357 template < typename CharT >
20358 unsigned long constexpr
20359 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20360 {
20361 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20362 }
20363
20364 template < typename CharT >
20365 unsigned long constexpr
20366 strlen_c(const CharT *const s) noexcept
20367 {
20368 return strlen_c_r(s, 0UL);
20369 }
20370
20371 static_assert(strlen_c("") == 0UL, "");
20372 static_assert(strlen_c("1") == 1UL, "");
20373 static_assert(strlen_c("example") == 7UL, "");
20374 static_assert(strlen_c("another\0example") == 7UL, "");
20375
20376 }
20377
20378 namespace test_rvalue_references
20379 {
20380
20381 template < int N >
20382 struct answer
20383 {
20384 static constexpr int value = N;
20385 };
20386
20387 answer<1> f(int&) { return answer<1>(); }
20388 answer<2> f(const int&) { return answer<2>(); }
20389 answer<3> f(int&&) { return answer<3>(); }
20390
20391 void
20392 test()
20393 {
20394 int i = 0;
20395 const int c = 0;
20396 static_assert(decltype(f(i))::value == 1, "");
20397 static_assert(decltype(f(c))::value == 2, "");
20398 static_assert(decltype(f(0))::value == 3, "");
20399 }
20400
20401 }
20402
20403 namespace test_uniform_initialization
20404 {
20405
20406 struct test
20407 {
20408 static const int zero {};
20409 static const int one {1};
20410 };
20411
20412 static_assert(test::zero == 0, "");
20413 static_assert(test::one == 1, "");
20414
20415 }
20416
20417 namespace test_lambdas
20418 {
20419
20420 void
20421 test1()
20422 {
20423 auto lambda1 = [](){};
20424 auto lambda2 = lambda1;
20425 lambda1();
20426 lambda2();
20427 }
20428
20429 int
20430 test2()
20431 {
20432 auto a = [](int i, int j){ return i + j; }(1, 2);
20433 auto b = []() -> int { return '0'; }();
20434 auto c = [=](){ return a + b; }();
20435 auto d = [&](){ return c; }();
20436 auto e = [a, &b](int x) mutable {
20437 const auto identity = [](int y){ return y; };
20438 for (auto i = 0; i < a; ++i)
20439 a += b--;
20440 return x + identity(a + b);
20441 }(0);
20442 return a + b + c + d + e;
20443 }
20444
20445 int
20446 test3()
20447 {
20448 const auto nullary = [](){ return 0; };
20449 const auto unary = [](int x){ return x; };
20450 using nullary_t = decltype(nullary);
20451 using unary_t = decltype(unary);
20452 const auto higher1st = [](nullary_t f){ return f(); };
20453 const auto higher2nd = [unary](nullary_t f1){
20454 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20455 };
20456 return higher1st(nullary) + higher2nd(nullary)(unary);
20457 }
20458
20459 }
20460
20461 namespace test_variadic_templates
20462 {
20463
20464 template <int...>
20465 struct sum;
20466
20467 template <int N0, int... N1toN>
20468 struct sum<N0, N1toN...>
20469 {
20470 static constexpr auto value = N0 + sum<N1toN...>::value;
20471 };
20472
20473 template <>
20474 struct sum<>
20475 {
20476 static constexpr auto value = 0;
20477 };
20478
20479 static_assert(sum<>::value == 0, "");
20480 static_assert(sum<1>::value == 1, "");
20481 static_assert(sum<23>::value == 23, "");
20482 static_assert(sum<1, 2>::value == 3, "");
20483 static_assert(sum<5, 5, 11>::value == 21, "");
20484 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20485
20486 }
20487
20488 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20489 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20490 // because of this.
20491 namespace test_template_alias_sfinae
20492 {
20493
20494 struct foo {};
20495
20496 template<typename T>
20497 using member = typename T::member_type;
20498
20499 template<typename T>
20500 void func(...) {}
20501
20502 template<typename T>
20503 void func(member<T>*) {}
20504
20505 void test();
20506
20507 void test() { func<foo>(0); }
20508
20509 }
20510
20511 } // namespace cxx11
20512
20513 #endif // __cplusplus >= 201103L
20514
20515
20516
20517 _ACEOF
20518 if ac_fn_cxx_try_compile "$LINENO"
20519 then :
20520 eval $cachevar=yes
20521 else $as_nop
20522 eval $cachevar=no
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20525 CXX="$ac_save_CXX"
20526 fi
20527 eval ac_res=\$$cachevar
20528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20529 printf "%s\n" "$ac_res" >&6; }
20530 if eval test x\$$cachevar = xyes; then
20531 CXX="$CXX $switch"
20532 if test -n "$CXXCPP" ; then
20533 CXXCPP="$CXXCPP $switch"
20534 fi
20535 ac_success=yes
20536 break
20537 fi
20538 done
20539 fi
20540
20541 if test x$ac_success = xno; then
20542 for alternative in ${ax_cxx_compile_alternatives}; do
20543 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
20544 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
20545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20546 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20547 if eval test \${$cachevar+y}
20548 then :
20549 printf %s "(cached) " >&6
20550 else $as_nop
20551 ac_save_CXX="$CXX"
20552 CXX="$CXX $switch"
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20555
20556
20557 // If the compiler admits that it is not ready for C++11, why torture it?
20558 // Hopefully, this will speed up the test.
20559
20560 #ifndef __cplusplus
20561
20562 #error "This is not a C++ compiler"
20563
20564 #elif __cplusplus < 201103L
20565
20566 #error "This is not a C++11 compiler"
20567
20568 #else
20569
20570 namespace cxx11
20571 {
20572
20573 namespace test_static_assert
20574 {
20575
20576 template <typename T>
20577 struct check
20578 {
20579 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20580 };
20581
20582 }
20583
20584 namespace test_final_override
20585 {
20586
20587 struct Base
20588 {
20589 virtual void f() {}
20590 };
20591
20592 struct Derived : public Base
20593 {
20594 virtual void f() override {}
20595 };
20596
20597 }
20598
20599 namespace test_double_right_angle_brackets
20600 {
20601
20602 template < typename T >
20603 struct check {};
20604
20605 typedef check<void> single_type;
20606 typedef check<check<void>> double_type;
20607 typedef check<check<check<void>>> triple_type;
20608 typedef check<check<check<check<void>>>> quadruple_type;
20609
20610 }
20611
20612 namespace test_decltype
20613 {
20614
20615 int
20616 f()
20617 {
20618 int a = 1;
20619 decltype(a) b = 2;
20620 return a + b;
20621 }
20622
20623 }
20624
20625 namespace test_type_deduction
20626 {
20627
20628 template < typename T1, typename T2 >
20629 struct is_same
20630 {
20631 static const bool value = false;
20632 };
20633
20634 template < typename T >
20635 struct is_same<T, T>
20636 {
20637 static const bool value = true;
20638 };
20639
20640 template < typename T1, typename T2 >
20641 auto
20642 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20643 {
20644 return a1 + a2;
20645 }
20646
20647 int
20648 test(const int c, volatile int v)
20649 {
20650 static_assert(is_same<int, decltype(0)>::value == true, "");
20651 static_assert(is_same<int, decltype(c)>::value == false, "");
20652 static_assert(is_same<int, decltype(v)>::value == false, "");
20653 auto ac = c;
20654 auto av = v;
20655 auto sumi = ac + av + 'x';
20656 auto sumf = ac + av + 1.0;
20657 static_assert(is_same<int, decltype(ac)>::value == true, "");
20658 static_assert(is_same<int, decltype(av)>::value == true, "");
20659 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20660 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20661 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20662 return (sumf > 0.0) ? sumi : add(c, v);
20663 }
20664
20665 }
20666
20667 namespace test_noexcept
20668 {
20669
20670 int f() { return 0; }
20671 int g() noexcept { return 0; }
20672
20673 static_assert(noexcept(f()) == false, "");
20674 static_assert(noexcept(g()) == true, "");
20675
20676 }
20677
20678 namespace test_constexpr
20679 {
20680
20681 template < typename CharT >
20682 unsigned long constexpr
20683 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20684 {
20685 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20686 }
20687
20688 template < typename CharT >
20689 unsigned long constexpr
20690 strlen_c(const CharT *const s) noexcept
20691 {
20692 return strlen_c_r(s, 0UL);
20693 }
20694
20695 static_assert(strlen_c("") == 0UL, "");
20696 static_assert(strlen_c("1") == 1UL, "");
20697 static_assert(strlen_c("example") == 7UL, "");
20698 static_assert(strlen_c("another\0example") == 7UL, "");
20699
20700 }
20701
20702 namespace test_rvalue_references
20703 {
20704
20705 template < int N >
20706 struct answer
20707 {
20708 static constexpr int value = N;
20709 };
20710
20711 answer<1> f(int&) { return answer<1>(); }
20712 answer<2> f(const int&) { return answer<2>(); }
20713 answer<3> f(int&&) { return answer<3>(); }
20714
20715 void
20716 test()
20717 {
20718 int i = 0;
20719 const int c = 0;
20720 static_assert(decltype(f(i))::value == 1, "");
20721 static_assert(decltype(f(c))::value == 2, "");
20722 static_assert(decltype(f(0))::value == 3, "");
20723 }
20724
20725 }
20726
20727 namespace test_uniform_initialization
20728 {
20729
20730 struct test
20731 {
20732 static const int zero {};
20733 static const int one {1};
20734 };
20735
20736 static_assert(test::zero == 0, "");
20737 static_assert(test::one == 1, "");
20738
20739 }
20740
20741 namespace test_lambdas
20742 {
20743
20744 void
20745 test1()
20746 {
20747 auto lambda1 = [](){};
20748 auto lambda2 = lambda1;
20749 lambda1();
20750 lambda2();
20751 }
20752
20753 int
20754 test2()
20755 {
20756 auto a = [](int i, int j){ return i + j; }(1, 2);
20757 auto b = []() -> int { return '0'; }();
20758 auto c = [=](){ return a + b; }();
20759 auto d = [&](){ return c; }();
20760 auto e = [a, &b](int x) mutable {
20761 const auto identity = [](int y){ return y; };
20762 for (auto i = 0; i < a; ++i)
20763 a += b--;
20764 return x + identity(a + b);
20765 }(0);
20766 return a + b + c + d + e;
20767 }
20768
20769 int
20770 test3()
20771 {
20772 const auto nullary = [](){ return 0; };
20773 const auto unary = [](int x){ return x; };
20774 using nullary_t = decltype(nullary);
20775 using unary_t = decltype(unary);
20776 const auto higher1st = [](nullary_t f){ return f(); };
20777 const auto higher2nd = [unary](nullary_t f1){
20778 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20779 };
20780 return higher1st(nullary) + higher2nd(nullary)(unary);
20781 }
20782
20783 }
20784
20785 namespace test_variadic_templates
20786 {
20787
20788 template <int...>
20789 struct sum;
20790
20791 template <int N0, int... N1toN>
20792 struct sum<N0, N1toN...>
20793 {
20794 static constexpr auto value = N0 + sum<N1toN...>::value;
20795 };
20796
20797 template <>
20798 struct sum<>
20799 {
20800 static constexpr auto value = 0;
20801 };
20802
20803 static_assert(sum<>::value == 0, "");
20804 static_assert(sum<1>::value == 1, "");
20805 static_assert(sum<23>::value == 23, "");
20806 static_assert(sum<1, 2>::value == 3, "");
20807 static_assert(sum<5, 5, 11>::value == 21, "");
20808 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20809
20810 }
20811
20812 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20813 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20814 // because of this.
20815 namespace test_template_alias_sfinae
20816 {
20817
20818 struct foo {};
20819
20820 template<typename T>
20821 using member = typename T::member_type;
20822
20823 template<typename T>
20824 void func(...) {}
20825
20826 template<typename T>
20827 void func(member<T>*) {}
20828
20829 void test();
20830
20831 void test() { func<foo>(0); }
20832
20833 }
20834
20835 } // namespace cxx11
20836
20837 #endif // __cplusplus >= 201103L
20838
20839
20840
20841 _ACEOF
20842 if ac_fn_cxx_try_compile "$LINENO"
20843 then :
20844 eval $cachevar=yes
20845 else $as_nop
20846 eval $cachevar=no
20847 fi
20848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20849 CXX="$ac_save_CXX"
20850 fi
20851 eval ac_res=\$$cachevar
20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20853 printf "%s\n" "$ac_res" >&6; }
20854 if eval test x\$$cachevar = xyes; then
20855 CXX="$CXX $switch"
20856 if test -n "$CXXCPP" ; then
20857 CXXCPP="$CXXCPP $switch"
20858 fi
20859 ac_success=yes
20860 break
20861 fi
20862 done
20863 if test x$ac_success = xyes; then
20864 break
20865 fi
20866 done
20867 fi
20868 ac_ext=cpp
20869 ac_cpp='$CXXCPP $CPPFLAGS'
20870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20873
20874 if test x$ax_cxx_compile_cxx11_required = xtrue; then
20875 if test x$ac_success = xno; then
20876 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
20877 fi
20878 fi
20879 if test x$ac_success = xno; then
20880 HAVE_CXX11=0
20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
20882 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
20883 else
20884 HAVE_CXX11=1
20885
20886 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
20887
20888 fi
20889
20890
20891
20892 echo
20893 echo "Detecting modules..."
20894 echo
20895
20896 build_modccontrol=false
20897 build_modchanfix=false
20898 build_modclientExample=false
20899 build_modcloner=false
20900 build_modcservice=false
20901 build_moddronescan=false
20902 build_modgnutest=false
20903 build_modnickserv=false
20904 build_modopenchanfix=false
20905 build_modscanner=false
20906 build_modstats=false
20907 build_modsnoop=false
20908
20909 NEW_MODS=""
20910 MOD_DIRS=""
20911 searchForMods=yes
20912
20913 # Check whether --enable-modules was given.
20914 if test ${enable_modules+y}
20915 then :
20916 enableval=$enable_modules;
20917 if test $enableval = "yes" ; then
20918 searchForMods=yes
20919 elif test $enableval = "no" ; then
20920 searchForMods=no
20921 else
20922 tmp="mod.$enableval"
20923 tmp=`echo $tmp | sed 's/,/ mod./g'`
20924 MOD_DIRS="$MOD_DIRS $tmp"
20925 searchForMods=no
20926 fi
20927 else $as_nop
20928 searchForMods=yes
20929 fi
20930
20931 if test x$searchForMods = xyes ; then
20932 for dir in ${srcdir}/mod.* ; do
20933 if ! test -d $dir ; then
20934 continue
20935 fi
20936 MOD_DIRS="$MOD_DIRS `basename $dir`"
20937 done
20938 fi
20939
20940 for moduleName in $MOD_DIRS; do
20941 case "$moduleName" in
20942 mod.ccontrol) build_modccontrol=true;;
20943 mod.chanfix) build_modchanfix=true;;
20944 mod.clientExample) build_modclientExample=true;;
20945 mod.cloner) build_modcloner=true;;
20946 mod.cservice) build_modcservice=true;;
20947 mod.dronescan) build_moddronescan=true;;
20948 mod.gnutest) build_modgnutest=true;;
20949 mod.nickserv) build_modnickserv=true;;
20950 mod.openchanfix) build_modopenchanfix=true;;
20951 mod.scanner) build_modscanner=true;;
20952 mod.stats) build_modstats=true;;
20953 mod.snoop) build_modsnoop=true;;
20954 *) NEW_MODS="$NEW_MODS $moduleName";;
20955 esac
20956 done
20957
20958 if test $build_modccontrol = true; then
20959 COND_MODCCONTROL_TRUE=
20960 COND_MODCCONTROL_FALSE='#'
20961 else
20962 COND_MODCCONTROL_TRUE='#'
20963 COND_MODCCONTROL_FALSE=
20964 fi
20965
20966 if test $build_modchanfix = true; then
20967 COND_MODCHANFIX_TRUE=
20968 COND_MODCHANFIX_FALSE='#'
20969 else
20970 COND_MODCHANFIX_TRUE='#'
20971 COND_MODCHANFIX_FALSE=
20972 fi
20973
20974 if test $build_modclientExample = true; then
20975 COND_MODCLIENTEXAMPLE_TRUE=
20976 COND_MODCLIENTEXAMPLE_FALSE='#'
20977 else
20978 COND_MODCLIENTEXAMPLE_TRUE='#'
20979 COND_MODCLIENTEXAMPLE_FALSE=
20980 fi
20981
20982 if test $build_modcloner = true; then
20983 COND_MODCLONER_TRUE=
20984 COND_MODCLONER_FALSE='#'
20985 else
20986 COND_MODCLONER_TRUE='#'
20987 COND_MODCLONER_FALSE=
20988 fi
20989
20990 if test $build_modcservice = true; then
20991 COND_MODCSERVICE_TRUE=
20992 COND_MODCSERVICE_FALSE='#'
20993 else
20994 COND_MODCSERVICE_TRUE='#'
20995 COND_MODCSERVICE_FALSE=
20996 fi
20997
20998 if test $build_moddronescan = true; then
20999 COND_MODDRONESCAN_TRUE=
21000 COND_MODDRONESCAN_FALSE='#'
21001 else
21002 COND_MODDRONESCAN_TRUE='#'
21003 COND_MODDRONESCAN_FALSE=
21004 fi
21005
21006 if test $build_modgnutest = true; then
21007 COND_MODGNUTEST_TRUE=
21008 COND_MODGNUTEST_FALSE='#'
21009 else
21010 COND_MODGNUTEST_TRUE='#'
21011 COND_MODGNUTEST_FALSE=
21012 fi
21013
21014 if test $build_modnickserv = true; then
21015 COND_MODNICKSERV_TRUE=
21016 COND_MODNICKSERV_FALSE='#'
21017 else
21018 COND_MODNICKSERV_TRUE='#'
21019 COND_MODNICKSERV_FALSE=
21020 fi
21021
21022 if test $build_modopenchanfix = true; then
21023 COND_MODOPENCHANFIX_TRUE=
21024 COND_MODOPENCHANFIX_FALSE='#'
21025 else
21026 COND_MODOPENCHANFIX_TRUE='#'
21027 COND_MODOPENCHANFIX_FALSE=
21028 fi
21029
21030 if test $build_modscanner = true; then
21031 COND_MODSCANNER_TRUE=
21032 COND_MODSCANNER_FALSE='#'
21033 else
21034 COND_MODSCANNER_TRUE='#'
21035 COND_MODSCANNER_FALSE=
21036 fi
21037
21038 if test $build_modstats = true; then
21039 COND_MODSTATS_TRUE=
21040 COND_MODSTATS_FALSE='#'
21041 else
21042 COND_MODSTATS_TRUE='#'
21043 COND_MODSTATS_FALSE=
21044 fi
21045
21046 if test $build_modsnoop = true; then
21047 COND_MODSNOOP_TRUE=
21048 COND_MODSNOOP_FALSE='#'
21049 else
21050 COND_MODSNOOP_TRUE='#'
21051 COND_MODSNOOP_FALSE=
21052 fi
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063 ac_config_files="$ac_config_files Makefile tools/checkgnuworld.sh"
21064
21065
21066 cat >confcache <<\_ACEOF
21067 # This file is a shell script that caches the results of configure
21068 # tests run on this system so they can be shared between configure
21069 # scripts and configure runs, see configure's option --config-cache.
21070 # It is not useful on other systems. If it contains results you don't
21071 # want to keep, you may remove or edit it.
21072 #
21073 # config.status only pays attention to the cache file if you give it
21074 # the --recheck option to rerun configure.
21075 #
21076 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21078 # following values.
21079
21080 _ACEOF
21081
21082 # The following way of writing the cache mishandles newlines in values,
21083 # but we know of no workaround that is simple, portable, and efficient.
21084 # So, we kill variables containing newlines.
21085 # Ultrix sh set writes to stderr and can't be redirected directly,
21086 # and sets the high bit in the cache file unless we assign to the vars.
21087 (
21088 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21089 eval ac_val=\$$ac_var
21090 case $ac_val in #(
21091 *${as_nl}*)
21092 case $ac_var in #(
21093 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21094 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21095 esac
21096 case $ac_var in #(
21097 _ | IFS | as_nl) ;; #(
21098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21099 *) { eval $ac_var=; unset $ac_var;} ;;
21100 esac ;;
21101 esac
21102 done
21103
21104 (set) 2>&1 |
21105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21106 *${as_nl}ac_space=\ *)
21107 # `set' does not quote correctly, so add quotes: double-quote
21108 # substitution turns \\\\ into \\, and sed turns \\ into \.
21109 sed -n \
21110 "s/'/'\\\\''/g;
21111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21112 ;; #(
21113 *)
21114 # `set' quotes correctly as required by POSIX, so do not add quotes.
21115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21116 ;;
21117 esac |
21118 sort
21119 ) |
21120 sed '
21121 /^ac_cv_env_/b end
21122 t clear
21123 :clear
21124 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21125 t end
21126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21127 :end' >>confcache
21128 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21129 if test -w "$cache_file"; then
21130 if test "x$cache_file" != "x/dev/null"; then
21131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21132 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21133 if test ! -f "$cache_file" || test -h "$cache_file"; then
21134 cat confcache >"$cache_file"
21135 else
21136 case $cache_file in #(
21137 */* | ?:*)
21138 mv -f confcache "$cache_file"$$ &&
21139 mv -f "$cache_file"$$ "$cache_file" ;; #(
21140 *)
21141 mv -f confcache "$cache_file" ;;
21142 esac
21143 fi
21144 fi
21145 else
21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21147 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21148 fi
21149 fi
21150 rm -f confcache
21151
21152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21153 # Let make expand exec_prefix.
21154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21155
21156 DEFS=-DHAVE_CONFIG_H
21157
21158 ac_libobjs=
21159 ac_ltlibobjs=
21160 U=
21161 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21162 # 1. Remove the extension, and $U if already installed.
21163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21164 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21166 # will be set to the directory where LIBOBJS objects are built.
21167 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21168 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21169 done
21170 LIBOBJS=$ac_libobjs
21171
21172 LTLIBOBJS=$ac_ltlibobjs
21173
21174
21175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21176 printf %s "checking that generated files are newer than configure... " >&6; }
21177 if test -n "$am_sleep_pid"; then
21178 # Hide warnings about reused PIDs.
21179 wait $am_sleep_pid 2>/dev/null
21180 fi
21181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21182 printf "%s\n" "done" >&6; }
21183 if test -n "$EXEEXT"; then
21184 am__EXEEXT_TRUE=
21185 am__EXEEXT_FALSE='#'
21186 else
21187 am__EXEEXT_TRUE='#'
21188 am__EXEEXT_FALSE=
21189 fi
21190
21191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21192 as_fn_error $? "conditional \"AMDEP\" was never defined.
21193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21194 fi
21195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21198 fi
21199 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21200 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21202 fi
21203 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21204 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
21205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21206 fi
21207 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21208 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
21209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21210 fi
21211 LT_CONFIG_H=include/defs.h
21212
21213 _ltdl_libobjs=
21214 _ltdl_ltlibobjs=
21215 if test -n "$_LT_LIBOBJS"; then
21216 # Remove the extension.
21217 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
21218 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
21219 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
21220 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
21221 done
21222 fi
21223 ltdl_LIBOBJS=$_ltdl_libobjs
21224
21225 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
21226
21227
21228 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21229 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 fi
21232 if test -z "${COND_PCRE_TRUE}" && test -z "${COND_PCRE_FALSE}"; then
21233 as_fn_error $? "conditional \"COND_PCRE\" was never defined.
21234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 fi
21236 if test -z "${COND_PCRE_TRUE}" && test -z "${COND_PCRE_FALSE}"; then
21237 as_fn_error $? "conditional \"COND_PCRE\" was never defined.
21238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 fi
21240 if test -z "${COND_TESTDIR_TRUE}" && test -z "${COND_TESTDIR_FALSE}"; then
21241 as_fn_error $? "conditional \"COND_TESTDIR\" was never defined.
21242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 fi
21244 if test -z "${COND_MODCCONTROL_TRUE}" && test -z "${COND_MODCCONTROL_FALSE}"; then
21245 as_fn_error $? "conditional \"COND_MODCCONTROL\" was never defined.
21246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247 fi
21248 if test -z "${COND_MODCHANFIX_TRUE}" && test -z "${COND_MODCHANFIX_FALSE}"; then
21249 as_fn_error $? "conditional \"COND_MODCHANFIX\" was never defined.
21250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 fi
21252 if test -z "${COND_MODCLIENTEXAMPLE_TRUE}" && test -z "${COND_MODCLIENTEXAMPLE_FALSE}"; then
21253 as_fn_error $? "conditional \"COND_MODCLIENTEXAMPLE\" was never defined.
21254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 fi
21256 if test -z "${COND_MODCLONER_TRUE}" && test -z "${COND_MODCLONER_FALSE}"; then
21257 as_fn_error $? "conditional \"COND_MODCLONER\" was never defined.
21258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259 fi
21260 if test -z "${COND_MODCSERVICE_TRUE}" && test -z "${COND_MODCSERVICE_FALSE}"; then
21261 as_fn_error $? "conditional \"COND_MODCSERVICE\" was never defined.
21262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263 fi
21264 if test -z "${COND_MODDRONESCAN_TRUE}" && test -z "${COND_MODDRONESCAN_FALSE}"; then
21265 as_fn_error $? "conditional \"COND_MODDRONESCAN\" was never defined.
21266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267 fi
21268 if test -z "${COND_MODGNUTEST_TRUE}" && test -z "${COND_MODGNUTEST_FALSE}"; then
21269 as_fn_error $? "conditional \"COND_MODGNUTEST\" was never defined.
21270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 fi
21272 if test -z "${COND_MODNICKSERV_TRUE}" && test -z "${COND_MODNICKSERV_FALSE}"; then
21273 as_fn_error $? "conditional \"COND_MODNICKSERV\" was never defined.
21274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 fi
21276 if test -z "${COND_MODOPENCHANFIX_TRUE}" && test -z "${COND_MODOPENCHANFIX_FALSE}"; then
21277 as_fn_error $? "conditional \"COND_MODOPENCHANFIX\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 fi
21280 if test -z "${COND_MODSCANNER_TRUE}" && test -z "${COND_MODSCANNER_FALSE}"; then
21281 as_fn_error $? "conditional \"COND_MODSCANNER\" was never defined.
21282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 fi
21284 if test -z "${COND_MODSTATS_TRUE}" && test -z "${COND_MODSTATS_FALSE}"; then
21285 as_fn_error $? "conditional \"COND_MODSTATS\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 fi
21288 if test -z "${COND_MODSNOOP_TRUE}" && test -z "${COND_MODSNOOP_FALSE}"; then
21289 as_fn_error $? "conditional \"COND_MODSNOOP\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 fi
21292
21293 : "${CONFIG_STATUS=./config.status}"
21294 ac_write_fail=0
21295 ac_clean_files_save=$ac_clean_files
21296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21298 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21299 as_write_fail=0
21300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21301 #! $SHELL
21302 # Generated by $as_me.
21303 # Run this file to recreate the current configuration.
21304 # Compiler output produced by configure, useful for debugging
21305 # configure, is in config.log if it exists.
21306
21307 debug=false
21308 ac_cs_recheck=false
21309 ac_cs_silent=false
21310
21311 SHELL=\${CONFIG_SHELL-$SHELL}
21312 export SHELL
21313 _ASEOF
21314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21315 ## -------------------- ##
21316 ## M4sh Initialization. ##
21317 ## -------------------- ##
21318
21319 # Be more Bourne compatible
21320 DUALCASE=1; export DUALCASE # for MKS sh
21321 as_nop=:
21322 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21323 then :
21324 emulate sh
21325 NULLCMD=:
21326 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21327 # is contrary to our usage. Disable this feature.
21328 alias -g '${1+"$@"}'='"$@"'
21329 setopt NO_GLOB_SUBST
21330 else $as_nop
21331 case `(set -o) 2>/dev/null` in #(
21332 *posix*) :
21333 set -o posix ;; #(
21334 *) :
21335 ;;
21336 esac
21337 fi
21338
21339
21340
21341 # Reset variables that may have inherited troublesome values from
21342 # the environment.
21343
21344 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21345 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21346 # side effect of setting IFS to empty, thus disabling word splitting.)
21347 # Quoting is to prevent editors from complaining about space-tab.
21348 as_nl='
21349 '
21350 export as_nl
21351 IFS=" "" $as_nl"
21352
21353 PS1='$ '
21354 PS2='> '
21355 PS4='+ '
21356
21357 # Ensure predictable behavior from utilities with locale-dependent output.
21358 LC_ALL=C
21359 export LC_ALL
21360 LANGUAGE=C
21361 export LANGUAGE
21362
21363 # We cannot yet rely on "unset" to work, but we need these variables
21364 # to be unset--not just set to an empty or harmless value--now, to
21365 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21366 # also avoids known problems related to "unset" and subshell syntax
21367 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21368 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21369 do eval test \${$as_var+y} \
21370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21371 done
21372
21373 # Ensure that fds 0, 1, and 2 are open.
21374 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21375 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21376 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21377
21378 # The user is always right.
21379 if ${PATH_SEPARATOR+false} :; then
21380 PATH_SEPARATOR=:
21381 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21382 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21383 PATH_SEPARATOR=';'
21384 }
21385 fi
21386
21387
21388 # Find who we are. Look in the path if we contain no directory separator.
21389 as_myself=
21390 case $0 in #((
21391 *[\\/]* ) as_myself=$0 ;;
21392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393 for as_dir in $PATH
21394 do
21395 IFS=$as_save_IFS
21396 case $as_dir in #(((
21397 '') as_dir=./ ;;
21398 */) ;;
21399 *) as_dir=$as_dir/ ;;
21400 esac
21401 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21402 done
21403 IFS=$as_save_IFS
21404
21405 ;;
21406 esac
21407 # We did not find ourselves, most probably we were run as `sh COMMAND'
21408 # in which case we are not to be found in the path.
21409 if test "x$as_myself" = x; then
21410 as_myself=$0
21411 fi
21412 if test ! -f "$as_myself"; then
21413 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21414 exit 1
21415 fi
21416
21417
21418
21419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21420 # ----------------------------------------
21421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21423 # script with STATUS, using 1 if that was 0.
21424 as_fn_error ()
21425 {
21426 as_status=$1; test $as_status -eq 0 && as_status=1
21427 if test "$4"; then
21428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21430 fi
21431 printf "%s\n" "$as_me: error: $2" >&2
21432 as_fn_exit $as_status
21433 } # as_fn_error
21434
21435
21436
21437 # as_fn_set_status STATUS
21438 # -----------------------
21439 # Set $? to STATUS, without forking.
21440 as_fn_set_status ()
21441 {
21442 return $1
21443 } # as_fn_set_status
21444
21445 # as_fn_exit STATUS
21446 # -----------------
21447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21448 as_fn_exit ()
21449 {
21450 set +e
21451 as_fn_set_status $1
21452 exit $1
21453 } # as_fn_exit
21454
21455 # as_fn_unset VAR
21456 # ---------------
21457 # Portably unset VAR.
21458 as_fn_unset ()
21459 {
21460 { eval $1=; unset $1;}
21461 }
21462 as_unset=as_fn_unset
21463
21464 # as_fn_append VAR VALUE
21465 # ----------------------
21466 # Append the text in VALUE to the end of the definition contained in VAR. Take
21467 # advantage of any shell optimizations that allow amortized linear growth over
21468 # repeated appends, instead of the typical quadratic growth present in naive
21469 # implementations.
21470 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21471 then :
21472 eval 'as_fn_append ()
21473 {
21474 eval $1+=\$2
21475 }'
21476 else $as_nop
21477 as_fn_append ()
21478 {
21479 eval $1=\$$1\$2
21480 }
21481 fi # as_fn_append
21482
21483 # as_fn_arith ARG...
21484 # ------------------
21485 # Perform arithmetic evaluation on the ARGs, and store the result in the
21486 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21487 # must be portable across $(()) and expr.
21488 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21489 then :
21490 eval 'as_fn_arith ()
21491 {
21492 as_val=$(( $* ))
21493 }'
21494 else $as_nop
21495 as_fn_arith ()
21496 {
21497 as_val=`expr "$@" || test $? -eq 1`
21498 }
21499 fi # as_fn_arith
21500
21501
21502 if expr a : '\(a\)' >/dev/null 2>&1 &&
21503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21504 as_expr=expr
21505 else
21506 as_expr=false
21507 fi
21508
21509 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21510 as_basename=basename
21511 else
21512 as_basename=false
21513 fi
21514
21515 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21516 as_dirname=dirname
21517 else
21518 as_dirname=false
21519 fi
21520
21521 as_me=`$as_basename -- "$0" ||
21522 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21523 X"$0" : 'X\(//\)$' \| \
21524 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21525 printf "%s\n" X/"$0" |
21526 sed '/^.*\/\([^/][^/]*\)\/*$/{
21527 s//\1/
21528 q
21529 }
21530 /^X\/\(\/\/\)$/{
21531 s//\1/
21532 q
21533 }
21534 /^X\/\(\/\).*/{
21535 s//\1/
21536 q
21537 }
21538 s/.*/./; q'`
21539
21540 # Avoid depending upon Character Ranges.
21541 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21542 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21543 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21544 as_cr_digits='0123456789'
21545 as_cr_alnum=$as_cr_Letters$as_cr_digits
21546
21547
21548 # Determine whether it's possible to make 'echo' print without a newline.
21549 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21550 # for compatibility with existing Makefiles.
21551 ECHO_C= ECHO_N= ECHO_T=
21552 case `echo -n x` in #(((((
21553 -n*)
21554 case `echo 'xy\c'` in
21555 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21556 xy) ECHO_C='\c';;
21557 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21558 ECHO_T=' ';;
21559 esac;;
21560 *)
21561 ECHO_N='-n';;
21562 esac
21563
21564 # For backward compatibility with old third-party macros, we provide
21565 # the shell variables $as_echo and $as_echo_n. New code should use
21566 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21567 as_echo='printf %s\n'
21568 as_echo_n='printf %s'
21569
21570 rm -f conf$$ conf$$.exe conf$$.file
21571 if test -d conf$$.dir; then
21572 rm -f conf$$.dir/conf$$.file
21573 else
21574 rm -f conf$$.dir
21575 mkdir conf$$.dir 2>/dev/null
21576 fi
21577 if (echo >conf$$.file) 2>/dev/null; then
21578 if ln -s conf$$.file conf$$ 2>/dev/null; then
21579 as_ln_s='ln -s'
21580 # ... but there are two gotchas:
21581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21583 # In both cases, we have to default to `cp -pR'.
21584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21585 as_ln_s='cp -pR'
21586 elif ln conf$$.file conf$$ 2>/dev/null; then
21587 as_ln_s=ln
21588 else
21589 as_ln_s='cp -pR'
21590 fi
21591 else
21592 as_ln_s='cp -pR'
21593 fi
21594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21595 rmdir conf$$.dir 2>/dev/null
21596
21597
21598 # as_fn_mkdir_p
21599 # -------------
21600 # Create "$as_dir" as a directory, including parents if necessary.
21601 as_fn_mkdir_p ()
21602 {
21603
21604 case $as_dir in #(
21605 -*) as_dir=./$as_dir;;
21606 esac
21607 test -d "$as_dir" || eval $as_mkdir_p || {
21608 as_dirs=
21609 while :; do
21610 case $as_dir in #(
21611 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21612 *) as_qdir=$as_dir;;
21613 esac
21614 as_dirs="'$as_qdir' $as_dirs"
21615 as_dir=`$as_dirname -- "$as_dir" ||
21616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21617 X"$as_dir" : 'X\(//\)[^/]' \| \
21618 X"$as_dir" : 'X\(//\)$' \| \
21619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21620 printf "%s\n" X"$as_dir" |
21621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21622 s//\1/
21623 q
21624 }
21625 /^X\(\/\/\)[^/].*/{
21626 s//\1/
21627 q
21628 }
21629 /^X\(\/\/\)$/{
21630 s//\1/
21631 q
21632 }
21633 /^X\(\/\).*/{
21634 s//\1/
21635 q
21636 }
21637 s/.*/./; q'`
21638 test -d "$as_dir" && break
21639 done
21640 test -z "$as_dirs" || eval "mkdir $as_dirs"
21641 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21642
21643
21644 } # as_fn_mkdir_p
21645 if mkdir -p . 2>/dev/null; then
21646 as_mkdir_p='mkdir -p "$as_dir"'
21647 else
21648 test -d ./-p && rmdir ./-p
21649 as_mkdir_p=false
21650 fi
21651
21652
21653 # as_fn_executable_p FILE
21654 # -----------------------
21655 # Test if FILE is an executable regular file.
21656 as_fn_executable_p ()
21657 {
21658 test -f "$1" && test -x "$1"
21659 } # as_fn_executable_p
21660 as_test_x='test -x'
21661 as_executable_p=as_fn_executable_p
21662
21663 # Sed expression to map a string onto a valid CPP name.
21664 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21665
21666 # Sed expression to map a string onto a valid variable name.
21667 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21668
21669
21670 exec 6>&1
21671 ## ----------------------------------- ##
21672 ## Main body of $CONFIG_STATUS script. ##
21673 ## ----------------------------------- ##
21674 _ASEOF
21675 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21676
21677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21678 # Save the log message, to keep $0 and so on meaningful, and to
21679 # report actual input values of CONFIG_FILES etc. instead of their
21680 # values after options handling.
21681 ac_log="
21682 This file was extended by gnuworld $as_me 3.0, which was
21683 generated by GNU Autoconf 2.71. Invocation command line was
21684
21685 CONFIG_FILES = $CONFIG_FILES
21686 CONFIG_HEADERS = $CONFIG_HEADERS
21687 CONFIG_LINKS = $CONFIG_LINKS
21688 CONFIG_COMMANDS = $CONFIG_COMMANDS
21689 $ $0 $@
21690
21691 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21692 "
21693
21694 _ACEOF
21695
21696 case $ac_config_files in *"
21697 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21698 esac
21699
21700 case $ac_config_headers in *"
21701 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21702 esac
21703
21704
21705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21706 # Files that config.status was made for.
21707 config_files="$ac_config_files"
21708 config_headers="$ac_config_headers"
21709 config_commands="$ac_config_commands"
21710
21711 _ACEOF
21712
21713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21714 ac_cs_usage="\
21715 \`$as_me' instantiates files and other configuration actions
21716 from templates according to the current configuration. Unless the files
21717 and actions are specified as TAGs, all are instantiated by default.
21718
21719 Usage: $0 [OPTION]... [TAG]...
21720
21721 -h, --help print this help, then exit
21722 -V, --version print version number and configuration settings, then exit
21723 --config print configuration, then exit
21724 -q, --quiet, --silent
21725 do not print progress messages
21726 -d, --debug don't remove temporary files
21727 --recheck update $as_me by reconfiguring in the same conditions
21728 --file=FILE[:TEMPLATE]
21729 instantiate the configuration file FILE
21730 --header=FILE[:TEMPLATE]
21731 instantiate the configuration header FILE
21732
21733 Configuration files:
21734 $config_files
21735
21736 Configuration headers:
21737 $config_headers
21738
21739 Configuration commands:
21740 $config_commands
21741
21742 Report bugs to the package provider."
21743
21744 _ACEOF
21745 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21746 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21748 ac_cs_config='$ac_cs_config_escaped'
21749 ac_cs_version="\\
21750 gnuworld config.status 3.0
21751 configured by $0, generated by GNU Autoconf 2.71,
21752 with options \\"\$ac_cs_config\\"
21753
21754 Copyright (C) 2021 Free Software Foundation, Inc.
21755 This config.status script is free software; the Free Software Foundation
21756 gives unlimited permission to copy, distribute and modify it."
21757
21758 ac_pwd='$ac_pwd'
21759 srcdir='$srcdir'
21760 INSTALL='$INSTALL'
21761 MKDIR_P='$MKDIR_P'
21762 AWK='$AWK'
21763 test -n "\$AWK" || AWK=awk
21764 _ACEOF
21765
21766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21767 # The default lists apply if the user does not specify any file.
21768 ac_need_defaults=:
21769 while test $# != 0
21770 do
21771 case $1 in
21772 --*=?*)
21773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21774 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21775 ac_shift=:
21776 ;;
21777 --*=)
21778 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21779 ac_optarg=
21780 ac_shift=:
21781 ;;
21782 *)
21783 ac_option=$1
21784 ac_optarg=$2
21785 ac_shift=shift
21786 ;;
21787 esac
21788
21789 case $ac_option in
21790 # Handling of the options.
21791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21792 ac_cs_recheck=: ;;
21793 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21794 printf "%s\n" "$ac_cs_version"; exit ;;
21795 --config | --confi | --conf | --con | --co | --c )
21796 printf "%s\n" "$ac_cs_config"; exit ;;
21797 --debug | --debu | --deb | --de | --d | -d )
21798 debug=: ;;
21799 --file | --fil | --fi | --f )
21800 $ac_shift
21801 case $ac_optarg in
21802 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21803 '') as_fn_error $? "missing file argument" ;;
21804 esac
21805 as_fn_append CONFIG_FILES " '$ac_optarg'"
21806 ac_need_defaults=false;;
21807 --header | --heade | --head | --hea )
21808 $ac_shift
21809 case $ac_optarg in
21810 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21811 esac
21812 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21813 ac_need_defaults=false;;
21814 --he | --h)
21815 # Conflict between --help and --header
21816 as_fn_error $? "ambiguous option: \`$1'
21817 Try \`$0 --help' for more information.";;
21818 --help | --hel | -h )
21819 printf "%s\n" "$ac_cs_usage"; exit ;;
21820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21822 ac_cs_silent=: ;;
21823
21824 # This is an error.
21825 -*) as_fn_error $? "unrecognized option: \`$1'
21826 Try \`$0 --help' for more information." ;;
21827
21828 *) as_fn_append ac_config_targets " $1"
21829 ac_need_defaults=false ;;
21830
21831 esac
21832 shift
21833 done
21834
21835 ac_configure_extra_args=
21836
21837 if $ac_cs_silent; then
21838 exec 6>/dev/null
21839 ac_configure_extra_args="$ac_configure_extra_args --silent"
21840 fi
21841
21842 _ACEOF
21843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21844 if \$ac_cs_recheck; then
21845 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21846 shift
21847 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21848 CONFIG_SHELL='$SHELL'
21849 export CONFIG_SHELL
21850 exec "\$@"
21851 fi
21852
21853 _ACEOF
21854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21855 exec 5>>config.log
21856 {
21857 echo
21858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21859 ## Running $as_me. ##
21860 _ASBOX
21861 printf "%s\n" "$ac_log"
21862 } >&5
21863
21864 _ACEOF
21865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21866 #
21867 # INIT-COMMANDS
21868 #
21869 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21870
21871
21872 # The HP-UX ksh and POSIX shell print the target directory to stdout
21873 # if CDPATH is set.
21874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21875
21876 sed_quote_subst='$sed_quote_subst'
21877 double_quote_subst='$double_quote_subst'
21878 delay_variable_subst='$delay_variable_subst'
21879 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21880 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21881 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21882 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21883 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21884 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21885 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21886 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21887 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21888 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21889 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21890 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21891 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21892 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21893 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21894 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21895 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21896 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21897 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21898 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21899 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21900 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21901 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21902 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21903 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21904 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21905 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21906 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21907 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21908 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21909 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21910 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21911 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21912 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21913 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21914 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21915 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21916 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21917 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21918 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21919 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21920 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21921 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21922 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21923 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21924 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21925 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21926 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21927 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21928 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21929 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21930 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21931 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21932 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21933 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21934 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21935 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21936 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21937 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"`'
21938 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21939 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21940 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21941 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21942 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21943 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21944 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21945 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21946 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21947 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21948 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21949 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21950 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21951 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21952 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21953 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21954 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21955 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21956 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21957 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21958 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21959 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21960 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21961 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21962 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21963 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21964 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21965 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21966 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21967 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21968 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21969 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21970 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21971 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21972 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21973 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21974 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21975 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21976 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21977 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21978 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21979 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21980 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21981 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21982 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21983 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21984 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21985 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21986 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21987 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21988 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21989 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21990 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21991 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21992 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21993 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21994 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21995 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21996 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21997 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21998 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21999 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22000 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22001 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22002 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22003 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22004 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22005 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22006 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22007 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22008 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22009 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22010 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22011 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22012 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22013 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22014 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22015 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22016 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22017 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22018 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22019 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22020 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22021 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22022 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22023 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22024 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22025 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22026 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22027 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22028 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22029 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22030 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22031 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22032 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22033 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22034 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22035 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22036 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22037 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22038 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22039 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22040 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22041 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22042 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22043 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22044 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22045 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22046 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22047 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22048 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22049 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22050 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22051 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22052 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22053 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22054 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22055 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22056 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22057 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22058 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22059 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22060 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22061 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22062 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22063 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22064 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22065 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22066 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22067 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22068
22069 LTCC='$LTCC'
22070 LTCFLAGS='$LTCFLAGS'
22071 compiler='$compiler_DEFAULT'
22072
22073 # A function that is used when there is no print builtin or printf.
22074 func_fallback_echo ()
22075 {
22076 eval 'cat <<_LTECHO_EOF
22077 \$1
22078 _LTECHO_EOF'
22079 }
22080
22081 # Quote evaled strings.
22082 for var in SHELL \
22083 ECHO \
22084 PATH_SEPARATOR \
22085 SED \
22086 GREP \
22087 EGREP \
22088 FGREP \
22089 LD \
22090 NM \
22091 LN_S \
22092 lt_SP2NL \
22093 lt_NL2SP \
22094 reload_flag \
22095 OBJDUMP \
22096 deplibs_check_method \
22097 file_magic_cmd \
22098 file_magic_glob \
22099 want_nocaseglob \
22100 DLLTOOL \
22101 sharedlib_from_linklib_cmd \
22102 AR \
22103 AR_FLAGS \
22104 archiver_list_spec \
22105 STRIP \
22106 RANLIB \
22107 CC \
22108 CFLAGS \
22109 compiler \
22110 lt_cv_sys_global_symbol_pipe \
22111 lt_cv_sys_global_symbol_to_cdecl \
22112 lt_cv_sys_global_symbol_to_import \
22113 lt_cv_sys_global_symbol_to_c_name_address \
22114 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22115 lt_cv_nm_interface \
22116 nm_file_list_spec \
22117 lt_cv_truncate_bin \
22118 lt_prog_compiler_no_builtin_flag \
22119 lt_prog_compiler_pic \
22120 lt_prog_compiler_wl \
22121 lt_prog_compiler_static \
22122 lt_cv_prog_compiler_c_o \
22123 need_locks \
22124 MANIFEST_TOOL \
22125 DSYMUTIL \
22126 NMEDIT \
22127 LIPO \
22128 OTOOL \
22129 OTOOL64 \
22130 shrext_cmds \
22131 export_dynamic_flag_spec \
22132 whole_archive_flag_spec \
22133 compiler_needs_object \
22134 with_gnu_ld \
22135 allow_undefined_flag \
22136 no_undefined_flag \
22137 hardcode_libdir_flag_spec \
22138 hardcode_libdir_separator \
22139 exclude_expsyms \
22140 include_expsyms \
22141 file_list_spec \
22142 variables_saved_for_relink \
22143 libname_spec \
22144 library_names_spec \
22145 soname_spec \
22146 install_override_mode \
22147 finish_eval \
22148 old_striplib \
22149 striplib \
22150 compiler_lib_search_dirs \
22151 predep_objects \
22152 postdep_objects \
22153 predeps \
22154 postdeps \
22155 compiler_lib_search_path \
22156 LD_CXX \
22157 reload_flag_CXX \
22158 compiler_CXX \
22159 lt_prog_compiler_no_builtin_flag_CXX \
22160 lt_prog_compiler_pic_CXX \
22161 lt_prog_compiler_wl_CXX \
22162 lt_prog_compiler_static_CXX \
22163 lt_cv_prog_compiler_c_o_CXX \
22164 export_dynamic_flag_spec_CXX \
22165 whole_archive_flag_spec_CXX \
22166 compiler_needs_object_CXX \
22167 with_gnu_ld_CXX \
22168 allow_undefined_flag_CXX \
22169 no_undefined_flag_CXX \
22170 hardcode_libdir_flag_spec_CXX \
22171 hardcode_libdir_separator_CXX \
22172 exclude_expsyms_CXX \
22173 include_expsyms_CXX \
22174 file_list_spec_CXX \
22175 compiler_lib_search_dirs_CXX \
22176 predep_objects_CXX \
22177 postdep_objects_CXX \
22178 predeps_CXX \
22179 postdeps_CXX \
22180 compiler_lib_search_path_CXX; do
22181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22182 *[\\\\\\\`\\"\\\$]*)
22183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22184 ;;
22185 *)
22186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22187 ;;
22188 esac
22189 done
22190
22191 # Double-quote double-evaled strings.
22192 for var in reload_cmds \
22193 old_postinstall_cmds \
22194 old_postuninstall_cmds \
22195 old_archive_cmds \
22196 extract_expsyms_cmds \
22197 old_archive_from_new_cmds \
22198 old_archive_from_expsyms_cmds \
22199 archive_cmds \
22200 archive_expsym_cmds \
22201 module_cmds \
22202 module_expsym_cmds \
22203 export_symbols_cmds \
22204 prelink_cmds \
22205 postlink_cmds \
22206 postinstall_cmds \
22207 postuninstall_cmds \
22208 finish_cmds \
22209 sys_lib_search_path_spec \
22210 configure_time_dlsearch_path \
22211 configure_time_lt_sys_library_path \
22212 reload_cmds_CXX \
22213 old_archive_cmds_CXX \
22214 old_archive_from_new_cmds_CXX \
22215 old_archive_from_expsyms_cmds_CXX \
22216 archive_cmds_CXX \
22217 archive_expsym_cmds_CXX \
22218 module_cmds_CXX \
22219 module_expsym_cmds_CXX \
22220 export_symbols_cmds_CXX \
22221 prelink_cmds_CXX \
22222 postlink_cmds_CXX; do
22223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22224 *[\\\\\\\`\\"\\\$]*)
22225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22226 ;;
22227 *)
22228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22229 ;;
22230 esac
22231 done
22232
22233 ac_aux_dir='$ac_aux_dir'
22234
22235 # See if we are running on zsh, and set the options that allow our
22236 # commands through without removal of \ escapes INIT.
22237 if test -n "\${ZSH_VERSION+set}"; then
22238 setopt NO_GLOB_SUBST
22239 fi
22240
22241
22242 PACKAGE='$PACKAGE'
22243 VERSION='$VERSION'
22244 RM='$RM'
22245 ofile='$ofile'
22246
22247
22248
22249
22250
22251
22252 _ACEOF
22253
22254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22255
22256 # Handling of arguments.
22257 for ac_config_target in $ac_config_targets
22258 do
22259 case $ac_config_target in
22260 "include/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
22261 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22262 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22264 "tools/checkgnuworld.sh") CONFIG_FILES="$CONFIG_FILES tools/checkgnuworld.sh" ;;
22265
22266 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22267 esac
22268 done
22269
22270
22271 # If the user did not use the arguments to specify the items to instantiate,
22272 # then the envvar interface is used. Set only those that are not.
22273 # We use the long form for the default assignment because of an extremely
22274 # bizarre bug on SunOS 4.1.3.
22275 if $ac_need_defaults; then
22276 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22277 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22278 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22279 fi
22280
22281 # Have a temporary directory for convenience. Make it in the build tree
22282 # simply because there is no reason against having it here, and in addition,
22283 # creating and moving files from /tmp can sometimes cause problems.
22284 # Hook for its removal unless debugging.
22285 # Note that there is a small window in which the directory will not be cleaned:
22286 # after its creation but before its name has been assigned to `$tmp'.
22287 $debug ||
22288 {
22289 tmp= ac_tmp=
22290 trap 'exit_status=$?
22291 : "${ac_tmp:=$tmp}"
22292 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22293 ' 0
22294 trap 'as_fn_exit 1' 1 2 13 15
22295 }
22296 # Create a (secure) tmp directory for tmp files.
22297
22298 {
22299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22300 test -d "$tmp"
22301 } ||
22302 {
22303 tmp=./conf$$-$RANDOM
22304 (umask 077 && mkdir "$tmp")
22305 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22306 ac_tmp=$tmp
22307
22308 # Set up the scripts for CONFIG_FILES section.
22309 # No need to generate them if there are no CONFIG_FILES.
22310 # This happens for instance with `./config.status config.h'.
22311 if test -n "$CONFIG_FILES"; then
22312
22313
22314 ac_cr=`echo X | tr X '\015'`
22315 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22316 # But we know of no other shell where ac_cr would be empty at this
22317 # point, so we can use a bashism as a fallback.
22318 if test "x$ac_cr" = x; then
22319 eval ac_cr=\$\'\\r\'
22320 fi
22321 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22322 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22323 ac_cs_awk_cr='\\r'
22324 else
22325 ac_cs_awk_cr=$ac_cr
22326 fi
22327
22328 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22329 _ACEOF
22330
22331
22332 {
22333 echo "cat >conf$$subs.awk <<_ACEOF" &&
22334 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22335 echo "_ACEOF"
22336 } >conf$$subs.sh ||
22337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22338 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22339 ac_delim='%!_!# '
22340 for ac_last_try in false false false false false :; do
22341 . ./conf$$subs.sh ||
22342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22343
22344 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22345 if test $ac_delim_n = $ac_delim_num; then
22346 break
22347 elif $ac_last_try; then
22348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22349 else
22350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22351 fi
22352 done
22353 rm -f conf$$subs.sh
22354
22355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22356 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22357 _ACEOF
22358 sed -n '
22359 h
22360 s/^/S["/; s/!.*/"]=/
22361 p
22362 g
22363 s/^[^!]*!//
22364 :repl
22365 t repl
22366 s/'"$ac_delim"'$//
22367 t delim
22368 :nl
22369 h
22370 s/\(.\{148\}\)..*/\1/
22371 t more1
22372 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22373 p
22374 n
22375 b repl
22376 :more1
22377 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22378 p
22379 g
22380 s/.\{148\}//
22381 t nl
22382 :delim
22383 h
22384 s/\(.\{148\}\)..*/\1/
22385 t more2
22386 s/["\\]/\\&/g; s/^/"/; s/$/"/
22387 p
22388 b
22389 :more2
22390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22391 p
22392 g
22393 s/.\{148\}//
22394 t delim
22395 ' <conf$$subs.awk | sed '
22396 /^[^""]/{
22397 N
22398 s/\n//
22399 }
22400 ' >>$CONFIG_STATUS || ac_write_fail=1
22401 rm -f conf$$subs.awk
22402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22403 _ACAWK
22404 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22405 for (key in S) S_is_set[key] = 1
22406 FS = "\a"
22407
22408 }
22409 {
22410 line = $ 0
22411 nfields = split(line, field, "@")
22412 substed = 0
22413 len = length(field[1])
22414 for (i = 2; i < nfields; i++) {
22415 key = field[i]
22416 keylen = length(key)
22417 if (S_is_set[key]) {
22418 value = S[key]
22419 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22420 len += length(value) + length(field[++i])
22421 substed = 1
22422 } else
22423 len += 1 + keylen
22424 }
22425
22426 print line
22427 }
22428
22429 _ACAWK
22430 _ACEOF
22431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22432 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22433 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22434 else
22435 cat
22436 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22437 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22438 _ACEOF
22439
22440 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22441 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22442 # trailing colons and then remove the whole line if VPATH becomes empty
22443 # (actually we leave an empty line to preserve line numbers).
22444 if test "x$srcdir" = x.; then
22445 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22446 h
22447 s///
22448 s/^/:/
22449 s/[ ]*$/:/
22450 s/:\$(srcdir):/:/g
22451 s/:\${srcdir}:/:/g
22452 s/:@srcdir@:/:/g
22453 s/^:*//
22454 s/:*$//
22455 x
22456 s/\(=[ ]*\).*/\1/
22457 G
22458 s/\n//
22459 s/^[^=]*=[ ]*$//
22460 }'
22461 fi
22462
22463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22464 fi # test -n "$CONFIG_FILES"
22465
22466 # Set up the scripts for CONFIG_HEADERS section.
22467 # No need to generate them if there are no CONFIG_HEADERS.
22468 # This happens for instance with `./config.status Makefile'.
22469 if test -n "$CONFIG_HEADERS"; then
22470 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22471 BEGIN {
22472 _ACEOF
22473
22474 # Transform confdefs.h into an awk script `defines.awk', embedded as
22475 # here-document in config.status, that substitutes the proper values into
22476 # config.h.in to produce config.h.
22477
22478 # Create a delimiter string that does not exist in confdefs.h, to ease
22479 # handling of long lines.
22480 ac_delim='%!_!# '
22481 for ac_last_try in false false :; do
22482 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22483 if test -z "$ac_tt"; then
22484 break
22485 elif $ac_last_try; then
22486 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22487 else
22488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22489 fi
22490 done
22491
22492 # For the awk script, D is an array of macro values keyed by name,
22493 # likewise P contains macro parameters if any. Preserve backslash
22494 # newline sequences.
22495
22496 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22497 sed -n '
22498 s/.\{148\}/&'"$ac_delim"'/g
22499 t rset
22500 :rset
22501 s/^[ ]*#[ ]*define[ ][ ]*/ /
22502 t def
22503 d
22504 :def
22505 s/\\$//
22506 t bsnl
22507 s/["\\]/\\&/g
22508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22509 D["\1"]=" \3"/p
22510 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22511 d
22512 :bsnl
22513 s/["\\]/\\&/g
22514 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22515 D["\1"]=" \3\\\\\\n"\\/p
22516 t cont
22517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22518 t cont
22519 d
22520 :cont
22521 n
22522 s/.\{148\}/&'"$ac_delim"'/g
22523 t clear
22524 :clear
22525 s/\\$//
22526 t bsnlc
22527 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22528 d
22529 :bsnlc
22530 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22531 b cont
22532 ' <confdefs.h | sed '
22533 s/'"$ac_delim"'/"\\\
22534 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22535
22536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22537 for (key in D) D_is_set[key] = 1
22538 FS = "\a"
22539 }
22540 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22541 line = \$ 0
22542 split(line, arg, " ")
22543 if (arg[1] == "#") {
22544 defundef = arg[2]
22545 mac1 = arg[3]
22546 } else {
22547 defundef = substr(arg[1], 2)
22548 mac1 = arg[2]
22549 }
22550 split(mac1, mac2, "(") #)
22551 macro = mac2[1]
22552 prefix = substr(line, 1, index(line, defundef) - 1)
22553 if (D_is_set[macro]) {
22554 # Preserve the white space surrounding the "#".
22555 print prefix "define", macro P[macro] D[macro]
22556 next
22557 } else {
22558 # Replace #undef with comments. This is necessary, for example,
22559 # in the case of _POSIX_SOURCE, which is predefined and required
22560 # on some systems where configure will not decide to define it.
22561 if (defundef == "undef") {
22562 print "/*", prefix defundef, macro, "*/"
22563 next
22564 }
22565 }
22566 }
22567 { print }
22568 _ACAWK
22569 _ACEOF
22570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22571 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22572 fi # test -n "$CONFIG_HEADERS"
22573
22574
22575 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22576 shift
22577 for ac_tag
22578 do
22579 case $ac_tag in
22580 :[FHLC]) ac_mode=$ac_tag; continue;;
22581 esac
22582 case $ac_mode$ac_tag in
22583 :[FHL]*:*);;
22584 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22585 :[FH]-) ac_tag=-:-;;
22586 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22587 esac
22588 ac_save_IFS=$IFS
22589 IFS=:
22590 set x $ac_tag
22591 IFS=$ac_save_IFS
22592 shift
22593 ac_file=$1
22594 shift
22595
22596 case $ac_mode in
22597 :L) ac_source=$1;;
22598 :[FH])
22599 ac_file_inputs=
22600 for ac_f
22601 do
22602 case $ac_f in
22603 -) ac_f="$ac_tmp/stdin";;
22604 *) # Look for the file first in the build tree, then in the source tree
22605 # (if the path is not absolute). The absolute path cannot be DOS-style,
22606 # because $ac_f cannot contain `:'.
22607 test -f "$ac_f" ||
22608 case $ac_f in
22609 [\\/$]*) false;;
22610 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22611 esac ||
22612 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22613 esac
22614 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22615 as_fn_append ac_file_inputs " '$ac_f'"
22616 done
22617
22618 # Let's still pretend it is `configure' which instantiates (i.e., don't
22619 # use $as_me), people would be surprised to read:
22620 # /* config.h. Generated by config.status. */
22621 configure_input='Generated from '`
22622 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22623 `' by configure.'
22624 if test x"$ac_file" != x-; then
22625 configure_input="$ac_file. $configure_input"
22626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22627 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22628 fi
22629 # Neutralize special characters interpreted by sed in replacement strings.
22630 case $configure_input in #(
22631 *\&* | *\|* | *\\* )
22632 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22633 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22634 *) ac_sed_conf_input=$configure_input;;
22635 esac
22636
22637 case $ac_tag in
22638 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22640 esac
22641 ;;
22642 esac
22643
22644 ac_dir=`$as_dirname -- "$ac_file" ||
22645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22646 X"$ac_file" : 'X\(//\)[^/]' \| \
22647 X"$ac_file" : 'X\(//\)$' \| \
22648 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22649 printf "%s\n" X"$ac_file" |
22650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22651 s//\1/
22652 q
22653 }
22654 /^X\(\/\/\)[^/].*/{
22655 s//\1/
22656 q
22657 }
22658 /^X\(\/\/\)$/{
22659 s//\1/
22660 q
22661 }
22662 /^X\(\/\).*/{
22663 s//\1/
22664 q
22665 }
22666 s/.*/./; q'`
22667 as_dir="$ac_dir"; as_fn_mkdir_p
22668 ac_builddir=.
22669
22670 case "$ac_dir" in
22671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22672 *)
22673 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22674 # A ".." for each directory in $ac_dir_suffix.
22675 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22676 case $ac_top_builddir_sub in
22677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22679 esac ;;
22680 esac
22681 ac_abs_top_builddir=$ac_pwd
22682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22683 # for backward compatibility:
22684 ac_top_builddir=$ac_top_build_prefix
22685
22686 case $srcdir in
22687 .) # We are building in place.
22688 ac_srcdir=.
22689 ac_top_srcdir=$ac_top_builddir_sub
22690 ac_abs_top_srcdir=$ac_pwd ;;
22691 [\\/]* | ?:[\\/]* ) # Absolute name.
22692 ac_srcdir=$srcdir$ac_dir_suffix;
22693 ac_top_srcdir=$srcdir
22694 ac_abs_top_srcdir=$srcdir ;;
22695 *) # Relative name.
22696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22697 ac_top_srcdir=$ac_top_build_prefix$srcdir
22698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22699 esac
22700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22701
22702
22703 case $ac_mode in
22704 :F)
22705 #
22706 # CONFIG_FILE
22707 #
22708
22709 case $INSTALL in
22710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22711 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22712 esac
22713 ac_MKDIR_P=$MKDIR_P
22714 case $MKDIR_P in
22715 [\\/$]* | ?:[\\/]* ) ;;
22716 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22717 esac
22718 _ACEOF
22719
22720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22721 # If the template does not know about datarootdir, expand it.
22722 # FIXME: This hack should be removed a few years after 2.60.
22723 ac_datarootdir_hack=; ac_datarootdir_seen=
22724 ac_sed_dataroot='
22725 /datarootdir/ {
22726 p
22727 q
22728 }
22729 /@datadir@/p
22730 /@docdir@/p
22731 /@infodir@/p
22732 /@localedir@/p
22733 /@mandir@/p'
22734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22735 *datarootdir*) ac_datarootdir_seen=yes;;
22736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22738 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22739 _ACEOF
22740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22741 ac_datarootdir_hack='
22742 s&@datadir@&$datadir&g
22743 s&@docdir@&$docdir&g
22744 s&@infodir@&$infodir&g
22745 s&@localedir@&$localedir&g
22746 s&@mandir@&$mandir&g
22747 s&\\\${datarootdir}&$datarootdir&g' ;;
22748 esac
22749 _ACEOF
22750
22751 # Neutralize VPATH when `$srcdir' = `.'.
22752 # Shell code in configure.ac might set extrasub.
22753 # FIXME: do we really want to maintain this feature?
22754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22755 ac_sed_extra="$ac_vpsub
22756 $extrasub
22757 _ACEOF
22758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22759 :t
22760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22761 s|@configure_input@|$ac_sed_conf_input|;t t
22762 s&@top_builddir@&$ac_top_builddir_sub&;t t
22763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22764 s&@srcdir@&$ac_srcdir&;t t
22765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22766 s&@top_srcdir@&$ac_top_srcdir&;t t
22767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22768 s&@builddir@&$ac_builddir&;t t
22769 s&@abs_builddir@&$ac_abs_builddir&;t t
22770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22771 s&@INSTALL@&$ac_INSTALL&;t t
22772 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22773 $ac_datarootdir_hack
22774 "
22775 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22776 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22777
22778 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22779 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22781 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22783 which seems to be undefined. Please make sure it is defined" >&5
22784 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22785 which seems to be undefined. Please make sure it is defined" >&2;}
22786
22787 rm -f "$ac_tmp/stdin"
22788 case $ac_file in
22789 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22790 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22791 esac \
22792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22793 ;;
22794 :H)
22795 #
22796 # CONFIG_HEADER
22797 #
22798 if test x"$ac_file" != x-; then
22799 {
22800 printf "%s\n" "/* $configure_input */" >&1 \
22801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22802 } >"$ac_tmp/config.h" \
22803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22804 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22806 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22807 else
22808 rm -f "$ac_file"
22809 mv "$ac_tmp/config.h" "$ac_file" \
22810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22811 fi
22812 else
22813 printf "%s\n" "/* $configure_input */" >&1 \
22814 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22815 || as_fn_error $? "could not create -" "$LINENO" 5
22816 fi
22817 # Compute "$ac_file"'s index in $config_headers.
22818 _am_arg="$ac_file"
22819 _am_stamp_count=1
22820 for _am_header in $config_headers :; do
22821 case $_am_header in
22822 $_am_arg | $_am_arg:* )
22823 break ;;
22824 * )
22825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22826 esac
22827 done
22828 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22829 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22830 X"$_am_arg" : 'X\(//\)[^/]' \| \
22831 X"$_am_arg" : 'X\(//\)$' \| \
22832 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22833 printf "%s\n" X"$_am_arg" |
22834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22835 s//\1/
22836 q
22837 }
22838 /^X\(\/\/\)[^/].*/{
22839 s//\1/
22840 q
22841 }
22842 /^X\(\/\/\)$/{
22843 s//\1/
22844 q
22845 }
22846 /^X\(\/\).*/{
22847 s//\1/
22848 q
22849 }
22850 s/.*/./; q'`/stamp-h$_am_stamp_count
22851 ;;
22852
22853 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22854 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22855 ;;
22856 esac
22857
22858
22859 case $ac_file$ac_mode in
22860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22861 # Older Autoconf quotes --file arguments for eval, but not when files
22862 # are listed without --file. Let's play safe and only enable the eval
22863 # if we detect the quoting.
22864 # TODO: see whether this extra hack can be removed once we start
22865 # requiring Autoconf 2.70 or later.
22866 case $CONFIG_FILES in #(
22867 *\'*) :
22868 eval set x "$CONFIG_FILES" ;; #(
22869 *) :
22870 set x $CONFIG_FILES ;; #(
22871 *) :
22872 ;;
22873 esac
22874 shift
22875 # Used to flag and report bootstrapping failures.
22876 am_rc=0
22877 for am_mf
22878 do
22879 # Strip MF so we end up with the name of the file.
22880 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22881 # Check whether this is an Automake generated Makefile which includes
22882 # dependency-tracking related rules and includes.
22883 # Grep'ing the whole file directly is not great: AIX grep has a line
22884 # limit of 2048, but all sed's we know have understand at least 4000.
22885 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22886 || continue
22887 am_dirpart=`$as_dirname -- "$am_mf" ||
22888 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22889 X"$am_mf" : 'X\(//\)[^/]' \| \
22890 X"$am_mf" : 'X\(//\)$' \| \
22891 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22892 printf "%s\n" X"$am_mf" |
22893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22894 s//\1/
22895 q
22896 }
22897 /^X\(\/\/\)[^/].*/{
22898 s//\1/
22899 q
22900 }
22901 /^X\(\/\/\)$/{
22902 s//\1/
22903 q
22904 }
22905 /^X\(\/\).*/{
22906 s//\1/
22907 q
22908 }
22909 s/.*/./; q'`
22910 am_filepart=`$as_basename -- "$am_mf" ||
22911 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22912 X"$am_mf" : 'X\(//\)$' \| \
22913 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22914 printf "%s\n" X/"$am_mf" |
22915 sed '/^.*\/\([^/][^/]*\)\/*$/{
22916 s//\1/
22917 q
22918 }
22919 /^X\/\(\/\/\)$/{
22920 s//\1/
22921 q
22922 }
22923 /^X\/\(\/\).*/{
22924 s//\1/
22925 q
22926 }
22927 s/.*/./; q'`
22928 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22929 && sed -e '/# am--include-marker/d' "$am_filepart" \
22930 | $MAKE -f - am--depfiles" >&5
22931 (cd "$am_dirpart" \
22932 && sed -e '/# am--include-marker/d' "$am_filepart" \
22933 | $MAKE -f - am--depfiles) >&5 2>&5
22934 ac_status=$?
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } || am_rc=$?
22937 done
22938 if test $am_rc -ne 0; then
22939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22940 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22941 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22942 for automatic dependency tracking. If GNU make was not used, consider
22943 re-running the configure script with MAKE=\"gmake\" (or whatever is
22944 necessary). You can also try re-running configure with the
22945 '--disable-dependency-tracking' option to at least be able to build
22946 the package (albeit without support for automatic dependency tracking).
22947 See \`config.log' for more details" "$LINENO" 5; }
22948 fi
22949 { am_dirpart=; unset am_dirpart;}
22950 { am_filepart=; unset am_filepart;}
22951 { am_mf=; unset am_mf;}
22952 { am_rc=; unset am_rc;}
22953 rm -f conftest-deps.mk
22954 }
22955 ;;
22956 "libtool":C)
22957
22958 # See if we are running on zsh, and set the options that allow our
22959 # commands through without removal of \ escapes.
22960 if test -n "${ZSH_VERSION+set}"; then
22961 setopt NO_GLOB_SUBST
22962 fi
22963
22964 cfgfile=${ofile}T
22965 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22966 $RM "$cfgfile"
22967
22968 cat <<_LT_EOF >> "$cfgfile"
22969 #! $SHELL
22970 # Generated automatically by $as_me ($PACKAGE) $VERSION
22971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22972
22973 # Provide generalized library-building support services.
22974 # Written by Gordon Matzigkeit, 1996
22975
22976 # Copyright (C) 2014 Free Software Foundation, Inc.
22977 # This is free software; see the source for copying conditions. There is NO
22978 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22979
22980 # GNU Libtool is free software; you can redistribute it and/or modify
22981 # it under the terms of the GNU General Public License as published by
22982 # the Free Software Foundation; either version 2 of of the License, or
22983 # (at your option) any later version.
22984 #
22985 # As a special exception to the GNU General Public License, if you
22986 # distribute this file as part of a program or library that is built
22987 # using GNU Libtool, you may include this file under the same
22988 # distribution terms that you use for the rest of that program.
22989 #
22990 # GNU Libtool is distributed in the hope that it will be useful, but
22991 # WITHOUT ANY WARRANTY; without even the implied warranty of
22992 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22993 # GNU General Public License for more details.
22994 #
22995 # You should have received a copy of the GNU General Public License
22996 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22997
22998
22999 # The names of the tagged configurations supported by this script.
23000 available_tags='CXX '
23001
23002 # Configured defaults for sys_lib_dlsearch_path munging.
23003 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23004
23005 # ### BEGIN LIBTOOL CONFIG
23006
23007 # Which release of libtool.m4 was used?
23008 macro_version=$macro_version
23009 macro_revision=$macro_revision
23010
23011 # Whether or not to build static libraries.
23012 build_old_libs=$enable_static
23013
23014 # Whether or not to build shared libraries.
23015 build_libtool_libs=$enable_shared
23016
23017 # What type of objects to build.
23018 pic_mode=$pic_mode
23019
23020 # Whether or not to optimize for fast installation.
23021 fast_install=$enable_fast_install
23022
23023 # Shared archive member basename,for filename based shared library versioning on AIX.
23024 shared_archive_member_spec=$shared_archive_member_spec
23025
23026 # Shell to use when invoking shell scripts.
23027 SHELL=$lt_SHELL
23028
23029 # An echo program that protects backslashes.
23030 ECHO=$lt_ECHO
23031
23032 # The PATH separator for the build system.
23033 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23034
23035 # The host system.
23036 host_alias=$host_alias
23037 host=$host
23038 host_os=$host_os
23039
23040 # The build system.
23041 build_alias=$build_alias
23042 build=$build
23043 build_os=$build_os
23044
23045 # A sed program that does not truncate output.
23046 SED=$lt_SED
23047
23048 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23049 Xsed="\$SED -e 1s/^X//"
23050
23051 # A grep program that handles long lines.
23052 GREP=$lt_GREP
23053
23054 # An ERE matcher.
23055 EGREP=$lt_EGREP
23056
23057 # A literal string matcher.
23058 FGREP=$lt_FGREP
23059
23060 # A BSD- or MS-compatible name lister.
23061 NM=$lt_NM
23062
23063 # Whether we need soft or hard links.
23064 LN_S=$lt_LN_S
23065
23066 # What is the maximum length of a command?
23067 max_cmd_len=$max_cmd_len
23068
23069 # Object file suffix (normally "o").
23070 objext=$ac_objext
23071
23072 # Executable file suffix (normally "").
23073 exeext=$exeext
23074
23075 # whether the shell understands "unset".
23076 lt_unset=$lt_unset
23077
23078 # turn spaces into newlines.
23079 SP2NL=$lt_lt_SP2NL
23080
23081 # turn newlines into spaces.
23082 NL2SP=$lt_lt_NL2SP
23083
23084 # convert \$build file names to \$host format.
23085 to_host_file_cmd=$lt_cv_to_host_file_cmd
23086
23087 # convert \$build files to toolchain format.
23088 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23089
23090 # An object symbol dumper.
23091 OBJDUMP=$lt_OBJDUMP
23092
23093 # Method to check whether dependent libraries are shared objects.
23094 deplibs_check_method=$lt_deplibs_check_method
23095
23096 # Command to use when deplibs_check_method = "file_magic".
23097 file_magic_cmd=$lt_file_magic_cmd
23098
23099 # How to find potential files when deplibs_check_method = "file_magic".
23100 file_magic_glob=$lt_file_magic_glob
23101
23102 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23103 want_nocaseglob=$lt_want_nocaseglob
23104
23105 # DLL creation program.
23106 DLLTOOL=$lt_DLLTOOL
23107
23108 # Command to associate shared and link libraries.
23109 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23110
23111 # The archiver.
23112 AR=$lt_AR
23113
23114 # Flags to create an archive.
23115 AR_FLAGS=$lt_AR_FLAGS
23116
23117 # How to feed a file listing to the archiver.
23118 archiver_list_spec=$lt_archiver_list_spec
23119
23120 # A symbol stripping program.
23121 STRIP=$lt_STRIP
23122
23123 # Commands used to install an old-style archive.
23124 RANLIB=$lt_RANLIB
23125 old_postinstall_cmds=$lt_old_postinstall_cmds
23126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23127
23128 # Whether to use a lock for old archive extraction.
23129 lock_old_archive_extraction=$lock_old_archive_extraction
23130
23131 # A C compiler.
23132 LTCC=$lt_CC
23133
23134 # LTCC compiler flags.
23135 LTCFLAGS=$lt_CFLAGS
23136
23137 # Take the output of nm and produce a listing of raw symbols and C names.
23138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23139
23140 # Transform the output of nm in a proper C declaration.
23141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23142
23143 # Transform the output of nm into a list of symbols to manually relocate.
23144 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23145
23146 # Transform the output of nm in a C name address pair.
23147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23148
23149 # Transform the output of nm in a C name address pair when lib prefix is needed.
23150 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23151
23152 # The name lister interface.
23153 nm_interface=$lt_lt_cv_nm_interface
23154
23155 # Specify filename containing input files for \$NM.
23156 nm_file_list_spec=$lt_nm_file_list_spec
23157
23158 # The root where to search for dependent libraries,and where our libraries should be installed.
23159 lt_sysroot=$lt_sysroot
23160
23161 # Command to truncate a binary pipe.
23162 lt_truncate_bin=$lt_lt_cv_truncate_bin
23163
23164 # The name of the directory that contains temporary libtool files.
23165 objdir=$objdir
23166
23167 # Used to examine libraries when file_magic_cmd begins with "file".
23168 MAGIC_CMD=$MAGIC_CMD
23169
23170 # Must we lock files when doing compilation?
23171 need_locks=$lt_need_locks
23172
23173 # Manifest tool.
23174 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23175
23176 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23177 DSYMUTIL=$lt_DSYMUTIL
23178
23179 # Tool to change global to local symbols on Mac OS X.
23180 NMEDIT=$lt_NMEDIT
23181
23182 # Tool to manipulate fat objects and archives on Mac OS X.
23183 LIPO=$lt_LIPO
23184
23185 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23186 OTOOL=$lt_OTOOL
23187
23188 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23189 OTOOL64=$lt_OTOOL64
23190
23191 # Old archive suffix (normally "a").
23192 libext=$libext
23193
23194 # Shared library suffix (normally ".so").
23195 shrext_cmds=$lt_shrext_cmds
23196
23197 # The commands to extract the exported symbol list from a shared archive.
23198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23199
23200 # Variables whose values should be saved in libtool wrapper scripts and
23201 # restored at link time.
23202 variables_saved_for_relink=$lt_variables_saved_for_relink
23203
23204 # Do we need the "lib" prefix for modules?
23205 need_lib_prefix=$need_lib_prefix
23206
23207 # Do we need a version for libraries?
23208 need_version=$need_version
23209
23210 # Library versioning type.
23211 version_type=$version_type
23212
23213 # Shared library runtime path variable.
23214 runpath_var=$runpath_var
23215
23216 # Shared library path variable.
23217 shlibpath_var=$shlibpath_var
23218
23219 # Is shlibpath searched before the hard-coded library search path?
23220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23221
23222 # Format of library name prefix.
23223 libname_spec=$lt_libname_spec
23224
23225 # List of archive names. First name is the real one, the rest are links.
23226 # The last name is the one that the linker finds with -lNAME
23227 library_names_spec=$lt_library_names_spec
23228
23229 # The coded name of the library, if different from the real name.
23230 soname_spec=$lt_soname_spec
23231
23232 # Permission mode override for installation of shared libraries.
23233 install_override_mode=$lt_install_override_mode
23234
23235 # Command to use after installation of a shared archive.
23236 postinstall_cmds=$lt_postinstall_cmds
23237
23238 # Command to use after uninstallation of a shared archive.
23239 postuninstall_cmds=$lt_postuninstall_cmds
23240
23241 # Commands used to finish a libtool library installation in a directory.
23242 finish_cmds=$lt_finish_cmds
23243
23244 # As "finish_cmds", except a single script fragment to be evaled but
23245 # not shown.
23246 finish_eval=$lt_finish_eval
23247
23248 # Whether we should hardcode library paths into libraries.
23249 hardcode_into_libs=$hardcode_into_libs
23250
23251 # Compile-time system search path for libraries.
23252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23253
23254 # Detected run-time system search path for libraries.
23255 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23256
23257 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23258 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23259
23260 # Whether dlopen is supported.
23261 dlopen_support=$enable_dlopen
23262
23263 # Whether dlopen of programs is supported.
23264 dlopen_self=$enable_dlopen_self
23265
23266 # Whether dlopen of statically linked programs is supported.
23267 dlopen_self_static=$enable_dlopen_self_static
23268
23269 # Commands to strip libraries.
23270 old_striplib=$lt_old_striplib
23271 striplib=$lt_striplib
23272
23273
23274 # The linker used to build libraries.
23275 LD=$lt_LD
23276
23277 # How to create reloadable object files.
23278 reload_flag=$lt_reload_flag
23279 reload_cmds=$lt_reload_cmds
23280
23281 # Commands used to build an old-style archive.
23282 old_archive_cmds=$lt_old_archive_cmds
23283
23284 # A language specific compiler.
23285 CC=$lt_compiler
23286
23287 # Is the compiler the GNU compiler?
23288 with_gcc=$GCC
23289
23290 # Compiler flag to turn off builtin functions.
23291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23292
23293 # Additional compiler flags for building library objects.
23294 pic_flag=$lt_lt_prog_compiler_pic
23295
23296 # How to pass a linker flag through the compiler.
23297 wl=$lt_lt_prog_compiler_wl
23298
23299 # Compiler flag to prevent dynamic linking.
23300 link_static_flag=$lt_lt_prog_compiler_static
23301
23302 # Does compiler simultaneously support -c and -o options?
23303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23304
23305 # Whether or not to add -lc for building shared libraries.
23306 build_libtool_need_lc=$archive_cmds_need_lc
23307
23308 # Whether or not to disallow shared libs when runtime libs are static.
23309 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23310
23311 # Compiler flag to allow reflexive dlopens.
23312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23313
23314 # Compiler flag to generate shared objects directly from archives.
23315 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23316
23317 # Whether the compiler copes with passing no objects directly.
23318 compiler_needs_object=$lt_compiler_needs_object
23319
23320 # Create an old-style archive from a shared archive.
23321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23322
23323 # Create a temporary old-style archive to link instead of a shared archive.
23324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23325
23326 # Commands used to build a shared archive.
23327 archive_cmds=$lt_archive_cmds
23328 archive_expsym_cmds=$lt_archive_expsym_cmds
23329
23330 # Commands used to build a loadable module if different from building
23331 # a shared archive.
23332 module_cmds=$lt_module_cmds
23333 module_expsym_cmds=$lt_module_expsym_cmds
23334
23335 # Whether we are building with GNU ld or not.
23336 with_gnu_ld=$lt_with_gnu_ld
23337
23338 # Flag that allows shared libraries with undefined symbols to be built.
23339 allow_undefined_flag=$lt_allow_undefined_flag
23340
23341 # Flag that enforces no undefined symbols.
23342 no_undefined_flag=$lt_no_undefined_flag
23343
23344 # Flag to hardcode \$libdir into a binary during linking.
23345 # This must work even if \$libdir does not exist
23346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23347
23348 # Whether we need a single "-rpath" flag with a separated argument.
23349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23350
23351 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23352 # DIR into the resulting binary.
23353 hardcode_direct=$hardcode_direct
23354
23355 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23356 # DIR into the resulting binary and the resulting library dependency is
23357 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23358 # library is relocated.
23359 hardcode_direct_absolute=$hardcode_direct_absolute
23360
23361 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23362 # into the resulting binary.
23363 hardcode_minus_L=$hardcode_minus_L
23364
23365 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23366 # into the resulting binary.
23367 hardcode_shlibpath_var=$hardcode_shlibpath_var
23368
23369 # Set to "yes" if building a shared library automatically hardcodes DIR
23370 # into the library and all subsequent libraries and executables linked
23371 # against it.
23372 hardcode_automatic=$hardcode_automatic
23373
23374 # Set to yes if linker adds runtime paths of dependent libraries
23375 # to runtime path list.
23376 inherit_rpath=$inherit_rpath
23377
23378 # Whether libtool must link a program against all its dependency libraries.
23379 link_all_deplibs=$link_all_deplibs
23380
23381 # Set to "yes" if exported symbols are required.
23382 always_export_symbols=$always_export_symbols
23383
23384 # The commands to list exported symbols.
23385 export_symbols_cmds=$lt_export_symbols_cmds
23386
23387 # Symbols that should not be listed in the preloaded symbols.
23388 exclude_expsyms=$lt_exclude_expsyms
23389
23390 # Symbols that must always be exported.
23391 include_expsyms=$lt_include_expsyms
23392
23393 # Commands necessary for linking programs (against libraries) with templates.
23394 prelink_cmds=$lt_prelink_cmds
23395
23396 # Commands necessary for finishing linking programs.
23397 postlink_cmds=$lt_postlink_cmds
23398
23399 # Specify filename containing input files.
23400 file_list_spec=$lt_file_list_spec
23401
23402 # How to hardcode a shared library path into an executable.
23403 hardcode_action=$hardcode_action
23404
23405 # The directories searched by this compiler when creating a shared library.
23406 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23407
23408 # Dependencies to place before and after the objects being linked to
23409 # create a shared library.
23410 predep_objects=$lt_predep_objects
23411 postdep_objects=$lt_postdep_objects
23412 predeps=$lt_predeps
23413 postdeps=$lt_postdeps
23414
23415 # The library search path used internally by the compiler when linking
23416 # a shared library.
23417 compiler_lib_search_path=$lt_compiler_lib_search_path
23418
23419 # ### END LIBTOOL CONFIG
23420
23421 _LT_EOF
23422
23423 cat <<'_LT_EOF' >> "$cfgfile"
23424
23425 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23426
23427 # func_munge_path_list VARIABLE PATH
23428 # -----------------------------------
23429 # VARIABLE is name of variable containing _space_ separated list of
23430 # directories to be munged by the contents of PATH, which is string
23431 # having a format:
23432 # "DIR[:DIR]:"
23433 # string "DIR[ DIR]" will be prepended to VARIABLE
23434 # ":DIR[:DIR]"
23435 # string "DIR[ DIR]" will be appended to VARIABLE
23436 # "DIRP[:DIRP]::[DIRA:]DIRA"
23437 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23438 # "DIRA[ DIRA]" will be appended to VARIABLE
23439 # "DIR[:DIR]"
23440 # VARIABLE will be replaced by "DIR[ DIR]"
23441 func_munge_path_list ()
23442 {
23443 case x$2 in
23444 x)
23445 ;;
23446 *:)
23447 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23448 ;;
23449 x:*)
23450 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23451 ;;
23452 *::*)
23453 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23454 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23455 ;;
23456 *)
23457 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23458 ;;
23459 esac
23460 }
23461
23462
23463 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23464 func_cc_basename ()
23465 {
23466 for cc_temp in $*""; do
23467 case $cc_temp in
23468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23470 \-*) ;;
23471 *) break;;
23472 esac
23473 done
23474 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23475 }
23476
23477
23478 # ### END FUNCTIONS SHARED WITH CONFIGURE
23479
23480 _LT_EOF
23481
23482 case $host_os in
23483 aix3*)
23484 cat <<\_LT_EOF >> "$cfgfile"
23485 # AIX sometimes has problems with the GCC collect2 program. For some
23486 # reason, if we set the COLLECT_NAMES environment variable, the problems
23487 # vanish in a puff of smoke.
23488 if test set != "${COLLECT_NAMES+set}"; then
23489 COLLECT_NAMES=
23490 export COLLECT_NAMES
23491 fi
23492 _LT_EOF
23493 ;;
23494 esac
23495
23496
23497
23498 ltmain=$ac_aux_dir/ltmain.sh
23499
23500
23501 # We use sed instead of cat because bash on DJGPP gets confused if
23502 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23503 # text mode, it properly converts lines to CR/LF. This bash problem
23504 # is reportedly fixed, but why not run on old versions too?
23505 sed '$q' "$ltmain" >> "$cfgfile" \
23506 || (rm -f "$cfgfile"; exit 1)
23507
23508 mv -f "$cfgfile" "$ofile" ||
23509 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23510 chmod +x "$ofile"
23511
23512
23513 cat <<_LT_EOF >> "$ofile"
23514
23515 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23516
23517 # The linker used to build libraries.
23518 LD=$lt_LD_CXX
23519
23520 # How to create reloadable object files.
23521 reload_flag=$lt_reload_flag_CXX
23522 reload_cmds=$lt_reload_cmds_CXX
23523
23524 # Commands used to build an old-style archive.
23525 old_archive_cmds=$lt_old_archive_cmds_CXX
23526
23527 # A language specific compiler.
23528 CC=$lt_compiler_CXX
23529
23530 # Is the compiler the GNU compiler?
23531 with_gcc=$GCC_CXX
23532
23533 # Compiler flag to turn off builtin functions.
23534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23535
23536 # Additional compiler flags for building library objects.
23537 pic_flag=$lt_lt_prog_compiler_pic_CXX
23538
23539 # How to pass a linker flag through the compiler.
23540 wl=$lt_lt_prog_compiler_wl_CXX
23541
23542 # Compiler flag to prevent dynamic linking.
23543 link_static_flag=$lt_lt_prog_compiler_static_CXX
23544
23545 # Does compiler simultaneously support -c and -o options?
23546 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23547
23548 # Whether or not to add -lc for building shared libraries.
23549 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23550
23551 # Whether or not to disallow shared libs when runtime libs are static.
23552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23553
23554 # Compiler flag to allow reflexive dlopens.
23555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23556
23557 # Compiler flag to generate shared objects directly from archives.
23558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23559
23560 # Whether the compiler copes with passing no objects directly.
23561 compiler_needs_object=$lt_compiler_needs_object_CXX
23562
23563 # Create an old-style archive from a shared archive.
23564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23565
23566 # Create a temporary old-style archive to link instead of a shared archive.
23567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23568
23569 # Commands used to build a shared archive.
23570 archive_cmds=$lt_archive_cmds_CXX
23571 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23572
23573 # Commands used to build a loadable module if different from building
23574 # a shared archive.
23575 module_cmds=$lt_module_cmds_CXX
23576 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23577
23578 # Whether we are building with GNU ld or not.
23579 with_gnu_ld=$lt_with_gnu_ld_CXX
23580
23581 # Flag that allows shared libraries with undefined symbols to be built.
23582 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23583
23584 # Flag that enforces no undefined symbols.
23585 no_undefined_flag=$lt_no_undefined_flag_CXX
23586
23587 # Flag to hardcode \$libdir into a binary during linking.
23588 # This must work even if \$libdir does not exist
23589 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23590
23591 # Whether we need a single "-rpath" flag with a separated argument.
23592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23593
23594 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23595 # DIR into the resulting binary.
23596 hardcode_direct=$hardcode_direct_CXX
23597
23598 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23599 # DIR into the resulting binary and the resulting library dependency is
23600 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23601 # library is relocated.
23602 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23603
23604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23605 # into the resulting binary.
23606 hardcode_minus_L=$hardcode_minus_L_CXX
23607
23608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23609 # into the resulting binary.
23610 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23611
23612 # Set to "yes" if building a shared library automatically hardcodes DIR
23613 # into the library and all subsequent libraries and executables linked
23614 # against it.
23615 hardcode_automatic=$hardcode_automatic_CXX
23616
23617 # Set to yes if linker adds runtime paths of dependent libraries
23618 # to runtime path list.
23619 inherit_rpath=$inherit_rpath_CXX
23620
23621 # Whether libtool must link a program against all its dependency libraries.
23622 link_all_deplibs=$link_all_deplibs_CXX
23623
23624 # Set to "yes" if exported symbols are required.
23625 always_export_symbols=$always_export_symbols_CXX
23626
23627 # The commands to list exported symbols.
23628 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23629
23630 # Symbols that should not be listed in the preloaded symbols.
23631 exclude_expsyms=$lt_exclude_expsyms_CXX
23632
23633 # Symbols that must always be exported.
23634 include_expsyms=$lt_include_expsyms_CXX
23635
23636 # Commands necessary for linking programs (against libraries) with templates.
23637 prelink_cmds=$lt_prelink_cmds_CXX
23638
23639 # Commands necessary for finishing linking programs.
23640 postlink_cmds=$lt_postlink_cmds_CXX
23641
23642 # Specify filename containing input files.
23643 file_list_spec=$lt_file_list_spec_CXX
23644
23645 # How to hardcode a shared library path into an executable.
23646 hardcode_action=$hardcode_action_CXX
23647
23648 # The directories searched by this compiler when creating a shared library.
23649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23650
23651 # Dependencies to place before and after the objects being linked to
23652 # create a shared library.
23653 predep_objects=$lt_predep_objects_CXX
23654 postdep_objects=$lt_postdep_objects_CXX
23655 predeps=$lt_predeps_CXX
23656 postdeps=$lt_postdeps_CXX
23657
23658 # The library search path used internally by the compiler when linking
23659 # a shared library.
23660 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23661
23662 # ### END LIBTOOL TAG CONFIG: CXX
23663 _LT_EOF
23664
23665 ;;
23666
23667 esac
23668 done # for ac_tag
23669
23670
23671 as_fn_exit 0
23672 _ACEOF
23673 ac_clean_files=$ac_clean_files_save
23674
23675 test $ac_write_fail = 0 ||
23676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23677
23678
23679 # configure is writing to config.log, and then calls config.status.
23680 # config.status does its own redirection, appending to config.log.
23681 # Unfortunately, on DOS this fails, as config.log is still kept open
23682 # by configure, so config.status won't be able to write to it; its
23683 # output is simply discarded. So we exec the FD to /dev/null,
23684 # effectively closing config.log, so it can be properly (re)opened and
23685 # appended to by config.status. When coming back to configure, we
23686 # need to make the FD available again.
23687 if test "$no_create" != yes; then
23688 ac_cs_success=:
23689 ac_config_status_args=
23690 test "$silent" = yes &&
23691 ac_config_status_args="$ac_config_status_args --quiet"
23692 exec 5>/dev/null
23693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23694 exec 5>>config.log
23695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23696 # would make configure fail if this is the last instruction.
23697 $ac_cs_success || as_fn_exit 1
23698 fi
23699
23700 #
23701 # CONFIG_SUBDIRS section.
23702 #
23703 if test "$no_recursion" != yes; then
23704
23705 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23706 # so they do not pile up.
23707 ac_sub_configure_args=
23708 ac_prev=
23709 eval "set x $ac_configure_args"
23710 shift
23711 for ac_arg
23712 do
23713 if test -n "$ac_prev"; then
23714 ac_prev=
23715 continue
23716 fi
23717 case $ac_arg in
23718 -cache-file | --cache-file | --cache-fil | --cache-fi \
23719 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23720 ac_prev=cache_file ;;
23721 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23722 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23723 | --c=*)
23724 ;;
23725 --config-cache | -C)
23726 ;;
23727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23728 ac_prev=srcdir ;;
23729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23730 ;;
23731 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23732 ac_prev=prefix ;;
23733 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23734 ;;
23735 --disable-option-checking)
23736 ;;
23737 *)
23738 case $ac_arg in
23739 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23740 esac
23741 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23742 esac
23743 done
23744
23745 # Always prepend --prefix to ensure using the same prefix
23746 # in subdir configurations.
23747 ac_arg="--prefix=$prefix"
23748 case $ac_arg in
23749 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23750 esac
23751 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23752
23753 # Pass --silent
23754 if test "$silent" = yes; then
23755 ac_sub_configure_args="--silent $ac_sub_configure_args"
23756 fi
23757
23758 # Always prepend --disable-option-checking to silence warnings, since
23759 # different subdirs can have different --enable and --with options.
23760 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23761
23762 ac_popdir=`pwd`
23763 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23764
23765 # Do not complain, so a configure script can configure whichever
23766 # parts of a large source tree are present.
23767 test -d "$srcdir/$ac_dir" || continue
23768
23769 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23771 printf "%s\n" "$ac_msg" >&6
23772 as_dir="$ac_dir"; as_fn_mkdir_p
23773 ac_builddir=.
23774
23775 case "$ac_dir" in
23776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23777 *)
23778 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23779 # A ".." for each directory in $ac_dir_suffix.
23780 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23781 case $ac_top_builddir_sub in
23782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23784 esac ;;
23785 esac
23786 ac_abs_top_builddir=$ac_pwd
23787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23788 # for backward compatibility:
23789 ac_top_builddir=$ac_top_build_prefix
23790
23791 case $srcdir in
23792 .) # We are building in place.
23793 ac_srcdir=.
23794 ac_top_srcdir=$ac_top_builddir_sub
23795 ac_abs_top_srcdir=$ac_pwd ;;
23796 [\\/]* | ?:[\\/]* ) # Absolute name.
23797 ac_srcdir=$srcdir$ac_dir_suffix;
23798 ac_top_srcdir=$srcdir
23799 ac_abs_top_srcdir=$srcdir ;;
23800 *) # Relative name.
23801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23802 ac_top_srcdir=$ac_top_build_prefix$srcdir
23803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23804 esac
23805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23806
23807
23808 cd "$ac_dir"
23809
23810 # Check for configure.gnu first; this name is used for a wrapper for
23811 # Metaconfig's "Configure" on case-insensitive file systems.
23812 if test -f "$ac_srcdir/configure.gnu"; then
23813 ac_sub_configure=$ac_srcdir/configure.gnu
23814 elif test -f "$ac_srcdir/configure"; then
23815 ac_sub_configure=$ac_srcdir/configure
23816 else
23817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23818 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23819 ac_sub_configure=
23820 fi
23821
23822 # The recursion is here.
23823 if test -n "$ac_sub_configure"; then
23824 # Make the cache file name correct relative to the subdirectory.
23825 case $cache_file in
23826 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23827 *) # Relative name.
23828 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23829 esac
23830
23831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23832 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23833 # The eval makes quoting arguments work.
23834 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23835 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23836 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23837 fi
23838
23839 cd "$ac_popdir"
23840 done
23841 fi
23842 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23844 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23845 fi
23846
23847
23848 echo ""
23849 echo "##########################"
23850 echo "# GNUWorld Configuration #"
23851 echo "##########################"
23852 echo ""
23853 echo "Configuration of GNUWorld is complete - you're almost ready to run 'make'..."
23854 echo ""
23855 echo "Check the following files for modification before building:"
23856 echo " include/gnuworld_config.h"
23857
23858 if test $build_modcservice = true ; then
23859 echo " mod.cservice/cservice_config.h"
23860 fi
23861
23862 if test $build_modopenchanfix = true ; then
23863 echo " mod.openchanfix/chanfix_config.h"
23864 fi
23865
23866 echo ""
23867
23868