Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for protobuf-c 1.5.1.
4 #
5 # Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 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 case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="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 case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: https://github.com/protobuf-c/protobuf-c/issues about
283 $0: your system, including any error possibly output before
284 $0: this message. Then install a modern shell, or manually
285 $0: run the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='protobuf-c'
616 PACKAGE_TARNAME='protobuf-c'
617 PACKAGE_VERSION='1.5.1'
618 PACKAGE_STRING='protobuf-c 1.5.1'
619 PACKAGE_BUGREPORT='https://github.com/protobuf-c/protobuf-c/issues'
620 PACKAGE_URL='https://github.com/protobuf-c/protobuf-c'
621
622 ac_unique_file="protobuf-c/protobuf-c.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 enable_year2038=no
656 ac_subst_vars='am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 CODE_COVERAGE_RULES
661 CODE_COVERAGE_LDFLAGS
662 CODE_COVERAGE_CFLAGS
663 GENHTML
664 LCOV
665 CODE_COVERAGE_ENABLED
666 CODE_COVERAGE_ENABLED_FALSE
667 CODE_COVERAGE_ENABLED_TRUE
668 VALGRIND
669 HAVE_LD_VERSION_SCRIPT_FALSE
670 HAVE_LD_VERSION_SCRIPT_TRUE
671 CROSS_COMPILING_FALSE
672 CROSS_COMPILING_TRUE
673 BUILD_COMPILER_FALSE
674 BUILD_COMPILER_TRUE
675 PROTOC
676 protobuf_LIBS
677 protobuf_CFLAGS
678 HAVE_CXX17
679 pkgconfigdir
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 DOXYGEN_INPUT
684 HAVE_DOXYGEN_FALSE
685 HAVE_DOXYGEN_TRUE
686 DOXYGEN
687 my_CFLAGS
688 CXXCPP
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 ac_ct_AR
698 AR
699 DLLTOOL
700 OBJDUMP
701 FILECMD
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 EGREP
708 GREP
709 SED
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 LIBTOOL
719 LN_S
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 am__xargs_n
743 am__rm_f_notfound
744 AM_BACKSLASH
745 AM_DEFAULT_VERBOSITY
746 AM_DEFAULT_V
747 AM_V
748 CSCOPE
749 ETAGS
750 CTAGS
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 AWK
757 mkdir_p
758 MKDIR_P
759 INSTALL_STRIP_PROGRAM
760 STRIP
761 install_sh
762 MAKEINFO
763 AUTOHEADER
764 AUTOMAKE
765 AUTOCONF
766 ACLOCAL
767 VERSION
768 PACKAGE
769 CYGPATH_W
770 am__isrc
771 INSTALL_DATA
772 INSTALL_SCRIPT
773 INSTALL_PROGRAM
774 PACKAGE_DESCRIPTION
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 runstatedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL
814 am__quote'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_silent_rules
819 enable_dependency_tracking
820 enable_largefile
821 enable_shared
822 enable_static
823 enable_pic
824 with_pic
825 enable_fast_install
826 enable_aix_soname
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 with_pkgconfigdir
832 enable_protoc
833 enable_ld_version_script
834 enable_valgrind_tests
835 enable_code_coverage
836 enable_year2038
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CXX
847 CXXFLAGS
848 CCC
849 LT_SYS_LIBRARY_PATH
850 CXXCPP
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 protobuf_CFLAGS
855 protobuf_LIBS
856 PROTOC'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 runstatedir='${localstatedir}/run'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: '$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: '$ac_useropt'"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -runstatedir | --runstatedir | --runstatedi | --runstated \
1147 | --runstate | --runstat | --runsta | --runst | --runs \
1148 | --run | --ru | --r)
1149 ac_prev=runstatedir ;;
1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1152 | --run=* | --ru=* | --r=*)
1153 runstatedir=$ac_optarg ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: '$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: '$ac_useropt'"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: '$ac_option'
1251 Try '$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir runstatedir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: '$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 printf "%s\n" X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 'configure' configures protobuf-c 1.5.1 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print 'checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for '--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or '..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, 'make install' will install all the files in
1432 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than '$ac_default_prefix' using '--prefix',
1434 for instance '--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf-c]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of protobuf-c 1.5.1:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-silent-rules less verbose build output (undo: "make V=1")
1485 --disable-silent-rules verbose build output (undo: "make V=0")
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --disable-largefile omit support for large files
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --enable-aix-soname=aix|svr4|both
1498 shared library versioning (aka "SONAME") variant to
1499 provide on AIX, [default=aix].
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --disable-protoc Disable building protoc_c (also disables tests)
1502 --enable-ld-version-script
1503 enable linker version script (default is enabled
1504 when possible)
1505 --enable-valgrind-tests run self tests under valgrind
1506 --enable-code-coverage Whether to enable code coverage support
1507 --enable-year2038 support timestamps after 2038
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1514 compiler's sysroot if not specified).
1515 --with-pkgconfigdir pkg-config installation directory
1516 ['${prefix}/libdata/pkgconfig']
1517
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 LT_SYS_LIBRARY_PATH
1529 User-defined run-time library search path.
1530 CXXCPP C++ preprocessor
1531 PKG_CONFIG path to pkg-config utility
1532 PKG_CONFIG_PATH
1533 directories to add to pkg-config's search path
1534 PKG_CONFIG_LIBDIR
1535 path overriding pkg-config's built-in search path
1536 protobuf_CFLAGS
1537 C compiler flags for protobuf, overriding pkg-config
1538 protobuf_LIBS
1539 linker flags for protobuf, overriding pkg-config
1540 PROTOC protobuf compiler command
1541
1542 Use these variables to override the choices made by 'configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
1546 protobuf-c home page: <https://github.com/protobuf-c/protobuf-c>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for configure.gnu first; this name is used for a wrapper for
1593 # Metaconfig's "Configure" on case-insensitive file systems.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 protobuf-c configure 1.5.1
1611 generated by GNU Autoconf 2.72
1612
1613 Copyright (C) 2023 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617 exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam
1631 if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext
1650 then :
1651 ac_retval=0
1652 else case e in #(
1653 e) printf "%s\n" "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1 ;;
1657 esac
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_cxx_try_compile LINENO
1665 # ----------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_cxx_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest.beam
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 printf "%s\n" "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_cxx_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext
1690 then :
1691 ac_retval=0
1692 else case e in #(
1693 e) printf "%s\n" "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1 ;;
1697 esac
1698 fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_cxx_try_compile
1703
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 printf %s "checking for $2... " >&6; }
1713 if eval test \${$3+y}
1714 then :
1715 printf %s "(cached) " >&6
1716 else case e in #(
1717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 $4
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_compile "$LINENO"
1723 then :
1724 eval "$3=yes"
1725 else case e in #(
1726 e) eval "$3=no" ;;
1727 esac
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1730 esac
1731 fi
1732 eval ac_res=\$$3
1733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 printf "%s\n" "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 test -x conftest$ac_exeext
1767 }
1768 then :
1769 ac_retval=0
1770 else case e in #(
1771 e) printf "%s\n" "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1 ;;
1775 esac
1776 fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_link
1786
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 printf %s "checking for $2... " >&6; }
1795 if eval test \${$3+y}
1796 then :
1797 printf %s "(cached) " >&6
1798 else case e in #(
1799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1803 #define $2 innocuous_$2
1804
1805 /* System header to define __stub macros and hopefully few prototypes,
1806 which can conflict with char $2 (void); below. */
1807
1808 #include <limits.h>
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 (void);
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main (void)
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"
1834 then :
1835 eval "$3=yes"
1836 else case e in #(
1837 e) eval "$3=no" ;;
1838 esac
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1841 conftest$ac_exeext conftest.$ac_ext ;;
1842 esac
1843 fi
1844 eval ac_res=\$$3
1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 printf "%s\n" "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_func
1850
1851 # ac_fn_cxx_try_cpp LINENO
1852 # ------------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_cpp ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 printf "%s\n" "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } > conftest.i && {
1873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 }
1876 then :
1877 ac_retval=0
1878 else case e in #(
1879 e) printf "%s\n" "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1 ;;
1883 esac
1884 fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888 } # ac_fn_cxx_try_cpp
1889
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 printf "%s\n" "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1918 }
1919 then :
1920 ac_retval=0
1921 else case e in #(
1922 e) printf "%s\n" "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1 ;;
1926 esac
1927 fi
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_cxx_try_link
1937
1938 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1939 # ---------------------------------------------------------
1940 # Tests whether HEADER exists and can be compiled using the include files in
1941 # INCLUDES, setting the cache variable VAR accordingly.
1942 ac_fn_cxx_check_header_compile ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 printf %s "checking for $2... " >&6; }
1947 if eval test \${$3+y}
1948 then :
1949 printf %s "(cached) " >&6
1950 else case e in #(
1951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_cxx_try_compile "$LINENO"
1957 then :
1958 eval "$3=yes"
1959 else case e in #(
1960 e) eval "$3=no" ;;
1961 esac
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1964 esac
1965 fi
1966 eval ac_res=\$$3
1967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 printf "%s\n" "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_cxx_check_header_compile
1972
1973 # ac_fn_cxx_try_run LINENO
1974 # ------------------------
1975 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1976 # executables *can* be run.
1977 ac_fn_cxx_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 printf "%s\n" "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 printf "%s\n" "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }
2001 then :
2002 ac_retval=0
2003 else case e in #(
2004 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2005 printf "%s\n" "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status ;;
2009 esac
2010 fi
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2014
2015 } # ac_fn_cxx_try_run
2016 ac_configure_args_raw=
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 *\'*)
2021 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 esac
2023 as_fn_append ac_configure_args_raw " '$ac_arg'"
2024 done
2025
2026 case $ac_configure_args_raw in
2027 *$as_nl*)
2028 ac_safe_unquote= ;;
2029 *)
2030 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2031 ac_unsafe_a="$ac_unsafe_z#~"
2032 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2033 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2034 esac
2035
2036 cat >config.log <<_ACEOF
2037 This file contains any messages produced by compilers while
2038 running configure, to aid debugging if configure makes a mistake.
2039
2040 It was created by protobuf-c $as_me 1.5.1, which was
2041 generated by GNU Autoconf 2.72. Invocation command line was
2042
2043 $ $0$ac_configure_args_raw
2044
2045 _ACEOF
2046 exec 5>>config.log
2047 {
2048 cat <<_ASUNAME
2049 ## --------- ##
2050 ## Platform. ##
2051 ## --------- ##
2052
2053 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2054 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2055 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2056 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2057 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2058
2059 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2060 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2061
2062 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2063 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2064 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2065 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2066 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2067 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2068 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2069
2070 _ASUNAME
2071
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075 IFS=$as_save_IFS
2076 case $as_dir in #(((
2077 '') as_dir=./ ;;
2078 */) ;;
2079 *) as_dir=$as_dir/ ;;
2080 esac
2081 printf "%s\n" "PATH: $as_dir"
2082 done
2083 IFS=$as_save_IFS
2084
2085 } >&5
2086
2087 cat >&5 <<_ACEOF
2088
2089
2090 ## ----------- ##
2091 ## Core tests. ##
2092 ## ----------- ##
2093
2094 _ACEOF
2095
2096
2097 # Keep a trace of the command line.
2098 # Strip out --no-create and --no-recursion so they do not pile up.
2099 # Strip out --silent because we don't want to record it for future runs.
2100 # Also quote any args containing shell meta-characters.
2101 # Make two passes to allow for proper duplicate-argument suppression.
2102 ac_configure_args=
2103 ac_configure_args0=
2104 ac_configure_args1=
2105 ac_must_keep_next=false
2106 for ac_pass in 1 2
2107 do
2108 for ac_arg
2109 do
2110 case $ac_arg in
2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113 | -silent | --silent | --silen | --sile | --sil)
2114 continue ;;
2115 *\'*)
2116 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 esac
2118 case $ac_pass in
2119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 2)
2121 as_fn_append ac_configure_args1 " '$ac_arg'"
2122 if test $ac_must_keep_next = true; then
2123 ac_must_keep_next=false # Got value, back to normal.
2124 else
2125 case $ac_arg in
2126 *=* | --config-cache | -C | -disable-* | --disable-* \
2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129 | -with-* | --with-* | -without-* | --without-* | --x)
2130 case "$ac_configure_args0 " in
2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132 esac
2133 ;;
2134 -* ) ac_must_keep_next=true ;;
2135 esac
2136 fi
2137 as_fn_append ac_configure_args " '$ac_arg'"
2138 ;;
2139 esac
2140 done
2141 done
2142 { ac_configure_args0=; unset ac_configure_args0;}
2143 { ac_configure_args1=; unset ac_configure_args1;}
2144
2145 # When interrupted or exit'd, cleanup temporary files, and complete
2146 # config.log. We remove comments because anyway the quotes in there
2147 # would cause problems or look ugly.
2148 # WARNING: Use '\'' to represent an apostrophe within the trap.
2149 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150 trap 'exit_status=$?
2151 # Sanitize IFS.
2152 IFS=" "" $as_nl"
2153 # Save into config.log some information that might help in debugging.
2154 {
2155 echo
2156
2157 printf "%s\n" "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2160 echo
2161 # The following way of writing the cache mishandles newlines in values,
2162 (
2163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164 eval ac_val=\$$ac_var
2165 case $ac_val in #(
2166 *${as_nl}*)
2167 case $ac_var in #(
2168 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170 esac
2171 case $ac_var in #(
2172 _ | IFS | as_nl) ;; #(
2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174 *) { eval $ac_var=; unset $ac_var;} ;;
2175 esac ;;
2176 esac
2177 done
2178 (set) 2>&1 |
2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
2181 sed -n \
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184 ;; #(
2185 *)
2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187 ;;
2188 esac |
2189 sort
2190 )
2191 echo
2192
2193 printf "%s\n" "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2196 echo
2197 for ac_var in $ac_subst_vars
2198 do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in
2201 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202 esac
2203 printf "%s\n" "$ac_var='\''$ac_val'\''"
2204 done | sort
2205 echo
2206
2207 if test -n "$ac_subst_files"; then
2208 printf "%s\n" "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2211 echo
2212 for ac_var in $ac_subst_files
2213 do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in
2216 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 esac
2218 printf "%s\n" "$ac_var='\''$ac_val'\''"
2219 done | sort
2220 echo
2221 fi
2222
2223 if test -s confdefs.h; then
2224 printf "%s\n" "## ----------- ##
2225 ## confdefs.h. ##
2226 ## ----------- ##"
2227 echo
2228 cat confdefs.h
2229 echo
2230 fi
2231 test "$ac_signal" != 0 &&
2232 printf "%s\n" "$as_me: caught signal $ac_signal"
2233 printf "%s\n" "$as_me: exit $exit_status"
2234 } >&5
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2237 exit $exit_status
2238 ' 0
2239 for ac_signal in 1 2 13 15; do
2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2241 done
2242 ac_signal=0
2243
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2246
2247 printf "%s\n" "/* confdefs.h */" > confdefs.h
2248
2249 # Predefined preprocessor variables.
2250
2251 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2252
2253 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2254
2255 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2256
2257 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2258
2259 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2260
2261 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2262
2263
2264 # Let the site file select an alternate cache file if it wants to.
2265 # Prefer an explicitly selected file to automatically selected ones.
2266 if test -n "$CONFIG_SITE"; then
2267 ac_site_files="$CONFIG_SITE"
2268 elif test "x$prefix" != xNONE; then
2269 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2270 else
2271 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2272 fi
2273
2274 for ac_site_file in $ac_site_files
2275 do
2276 case $ac_site_file in #(
2277 */*) :
2278 ;; #(
2279 *) :
2280 ac_site_file=./$ac_site_file ;;
2281 esac
2282 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2285 sed 's/^/| /' "$ac_site_file" >&5
2286 . "$ac_site_file" \
2287 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2288 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2289 as_fn_error $? "failed to load site script $ac_site_file
2290 See 'config.log' for more details" "$LINENO" 5; }
2291 fi
2292 done
2293
2294 if test -r "$cache_file"; then
2295 # Some versions of bash will fail to source /dev/null (special files
2296 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2297 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2300 case $cache_file in
2301 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302 *) . "./$cache_file";;
2303 esac
2304 fi
2305 else
2306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2308 >$cache_file
2309 fi
2310
2311 # Test code for whether the C compiler supports C89 (global declarations)
2312 ac_c_conftest_c89_globals='
2313 /* Does the compiler advertise C89 conformance?
2314 Do not test the value of __STDC__, because some compilers set it to 0
2315 while being otherwise adequately conformant. */
2316 #if !defined __STDC__
2317 # error "Compiler does not advertise C89 conformance"
2318 #endif
2319
2320 #include <stddef.h>
2321 #include <stdarg.h>
2322 struct stat;
2323 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2324 struct buf { int x; };
2325 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2326 static char *e (char **p, int i)
2327 {
2328 return p[i];
2329 }
2330 static char *f (char * (*g) (char **, int), char **p, ...)
2331 {
2332 char *s;
2333 va_list v;
2334 va_start (v,p);
2335 s = g (p, va_arg (v,int));
2336 va_end (v);
2337 return s;
2338 }
2339
2340 /* C89 style stringification. */
2341 #define noexpand_stringify(a) #a
2342 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2343
2344 /* C89 style token pasting. Exercises some of the corner cases that
2345 e.g. old MSVC gets wrong, but not very hard. */
2346 #define noexpand_concat(a,b) a##b
2347 #define expand_concat(a,b) noexpand_concat(a,b)
2348 extern int vA;
2349 extern int vbee;
2350 #define aye A
2351 #define bee B
2352 int *pvA = &expand_concat(v,aye);
2353 int *pvbee = &noexpand_concat(v,bee);
2354
2355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2356 function prototypes and stuff, but not \xHH hex character constants.
2357 These do not provoke an error unfortunately, instead are silently treated
2358 as an "x". The following induces an error, until -std is added to get
2359 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2360 array size at least. It is necessary to write \x00 == 0 to get something
2361 that is true only with -std. */
2362 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2363
2364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2365 inside strings and character constants. */
2366 #define FOO(x) '\''x'\''
2367 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2368
2369 int test (int i, double x);
2370 struct s1 {int (*f) (int a);};
2371 struct s2 {int (*f) (double a);};
2372 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2373 int, int);'
2374
2375 # Test code for whether the C compiler supports C89 (body of main).
2376 ac_c_conftest_c89_main='
2377 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2378 '
2379
2380 # Test code for whether the C compiler supports C99 (global declarations)
2381 ac_c_conftest_c99_globals='
2382 /* Does the compiler advertise C99 conformance? */
2383 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2384 # error "Compiler does not advertise C99 conformance"
2385 #endif
2386
2387 // See if C++-style comments work.
2388
2389 #include <stdbool.h>
2390 extern int puts (const char *);
2391 extern int printf (const char *, ...);
2392 extern int dprintf (int, const char *, ...);
2393 extern void *malloc (size_t);
2394 extern void free (void *);
2395
2396 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2397 // dprintf is used instead of fprintf to avoid needing to declare
2398 // FILE and stderr.
2399 #define debug(...) dprintf (2, __VA_ARGS__)
2400 #define showlist(...) puts (#__VA_ARGS__)
2401 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2402 static void
2403 test_varargs_macros (void)
2404 {
2405 int x = 1234;
2406 int y = 5678;
2407 debug ("Flag");
2408 debug ("X = %d\n", x);
2409 showlist (The first, second, and third items.);
2410 report (x>y, "x is %d but y is %d", x, y);
2411 }
2412
2413 // Check long long types.
2414 #define BIG64 18446744073709551615ull
2415 #define BIG32 4294967295ul
2416 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2417 #if !BIG_OK
2418 #error "your preprocessor is broken"
2419 #endif
2420 #if BIG_OK
2421 #else
2422 #error "your preprocessor is broken"
2423 #endif
2424 static long long int bignum = -9223372036854775807LL;
2425 static unsigned long long int ubignum = BIG64;
2426
2427 struct incomplete_array
2428 {
2429 int datasize;
2430 double data[];
2431 };
2432
2433 struct named_init {
2434 int number;
2435 const wchar_t *name;
2436 double average;
2437 };
2438
2439 typedef const char *ccp;
2440
2441 static inline int
2442 test_restrict (ccp restrict text)
2443 {
2444 // Iterate through items via the restricted pointer.
2445 // Also check for declarations in for loops.
2446 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2447 continue;
2448 return 0;
2449 }
2450
2451 // Check varargs and va_copy.
2452 static bool
2453 test_varargs (const char *format, ...)
2454 {
2455 va_list args;
2456 va_start (args, format);
2457 va_list args_copy;
2458 va_copy (args_copy, args);
2459
2460 const char *str = "";
2461 int number = 0;
2462 float fnumber = 0;
2463
2464 while (*format)
2465 {
2466 switch (*format++)
2467 {
2468 case '\''s'\'': // string
2469 str = va_arg (args_copy, const char *);
2470 break;
2471 case '\''d'\'': // int
2472 number = va_arg (args_copy, int);
2473 break;
2474 case '\''f'\'': // float
2475 fnumber = va_arg (args_copy, double);
2476 break;
2477 default:
2478 break;
2479 }
2480 }
2481 va_end (args_copy);
2482 va_end (args);
2483
2484 return *str && number && fnumber;
2485 }
2486 '
2487
2488 # Test code for whether the C compiler supports C99 (body of main).
2489 ac_c_conftest_c99_main='
2490 // Check bool.
2491 _Bool success = false;
2492 success |= (argc != 0);
2493
2494 // Check restrict.
2495 if (test_restrict ("String literal") == 0)
2496 success = true;
2497 char *restrict newvar = "Another string";
2498
2499 // Check varargs.
2500 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2501 test_varargs_macros ();
2502
2503 // Check flexible array members.
2504 struct incomplete_array *ia =
2505 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2506 ia->datasize = 10;
2507 for (int i = 0; i < ia->datasize; ++i)
2508 ia->data[i] = i * 1.234;
2509 // Work around memory leak warnings.
2510 free (ia);
2511
2512 // Check named initializers.
2513 struct named_init ni = {
2514 .number = 34,
2515 .name = L"Test wide string",
2516 .average = 543.34343,
2517 };
2518
2519 ni.number = 58;
2520
2521 int dynamic_array[ni.number];
2522 dynamic_array[0] = argv[0][0];
2523 dynamic_array[ni.number - 1] = 543;
2524
2525 // work around unused variable warnings
2526 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2527 || dynamic_array[ni.number - 1] != 543);
2528 '
2529
2530 # Test code for whether the C compiler supports C11 (global declarations)
2531 ac_c_conftest_c11_globals='
2532 /* Does the compiler advertise C11 conformance? */
2533 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2534 # error "Compiler does not advertise C11 conformance"
2535 #endif
2536
2537 // Check _Alignas.
2538 char _Alignas (double) aligned_as_double;
2539 char _Alignas (0) no_special_alignment;
2540 extern char aligned_as_int;
2541 char _Alignas (0) _Alignas (int) aligned_as_int;
2542
2543 // Check _Alignof.
2544 enum
2545 {
2546 int_alignment = _Alignof (int),
2547 int_array_alignment = _Alignof (int[100]),
2548 char_alignment = _Alignof (char)
2549 };
2550 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2551
2552 // Check _Noreturn.
2553 int _Noreturn does_not_return (void) { for (;;) continue; }
2554
2555 // Check _Static_assert.
2556 struct test_static_assert
2557 {
2558 int x;
2559 _Static_assert (sizeof (int) <= sizeof (long int),
2560 "_Static_assert does not work in struct");
2561 long int y;
2562 };
2563
2564 // Check UTF-8 literals.
2565 #define u8 syntax error!
2566 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2567
2568 // Check duplicate typedefs.
2569 typedef long *long_ptr;
2570 typedef long int *long_ptr;
2571 typedef long_ptr long_ptr;
2572
2573 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2574 struct anonymous
2575 {
2576 union {
2577 struct { int i; int j; };
2578 struct { int k; long int l; } w;
2579 };
2580 int m;
2581 } v1;
2582 '
2583
2584 # Test code for whether the C compiler supports C11 (body of main).
2585 ac_c_conftest_c11_main='
2586 _Static_assert ((offsetof (struct anonymous, i)
2587 == offsetof (struct anonymous, w.k)),
2588 "Anonymous union alignment botch");
2589 v1.i = 2;
2590 v1.w.k = 5;
2591 ok |= v1.i != 5;
2592 '
2593
2594 # Test code for whether the C compiler supports C11 (complete).
2595 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2596 ${ac_c_conftest_c99_globals}
2597 ${ac_c_conftest_c11_globals}
2598
2599 int
2600 main (int argc, char **argv)
2601 {
2602 int ok = 0;
2603 ${ac_c_conftest_c89_main}
2604 ${ac_c_conftest_c99_main}
2605 ${ac_c_conftest_c11_main}
2606 return ok;
2607 }
2608 "
2609
2610 # Test code for whether the C compiler supports C99 (complete).
2611 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2612 ${ac_c_conftest_c99_globals}
2613
2614 int
2615 main (int argc, char **argv)
2616 {
2617 int ok = 0;
2618 ${ac_c_conftest_c89_main}
2619 ${ac_c_conftest_c99_main}
2620 return ok;
2621 }
2622 "
2623
2624 # Test code for whether the C compiler supports C89 (complete).
2625 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2626
2627 int
2628 main (int argc, char **argv)
2629 {
2630 int ok = 0;
2631 ${ac_c_conftest_c89_main}
2632 return ok;
2633 }
2634 "
2635
2636 # Test code for whether the C++ compiler supports C++98 (global declarations)
2637 ac_cxx_conftest_cxx98_globals='
2638 // Does the compiler advertise C++98 conformance?
2639 #if !defined __cplusplus || __cplusplus < 199711L
2640 # error "Compiler does not advertise C++98 conformance"
2641 #endif
2642
2643 // These inclusions are to reject old compilers that
2644 // lack the unsuffixed header files.
2645 #include <cstdlib>
2646 #include <exception>
2647
2648 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2649 extern void assert (int);
2650 namespace std {
2651 extern int strcmp (const char *, const char *);
2652 }
2653
2654 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2655 using std::exception;
2656 using std::strcmp;
2657
2658 namespace {
2659
2660 void test_exception_syntax()
2661 {
2662 try {
2663 throw "test";
2664 } catch (const char *s) {
2665 // Extra parentheses suppress a warning when building autoconf itself,
2666 // due to lint rules shared with more typical C programs.
2667 assert (!(strcmp) (s, "test"));
2668 }
2669 }
2670
2671 template <typename T> struct test_template
2672 {
2673 T const val;
2674 explicit test_template(T t) : val(t) {}
2675 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2676 };
2677
2678 } // anonymous namespace
2679 '
2680
2681 # Test code for whether the C++ compiler supports C++98 (body of main)
2682 ac_cxx_conftest_cxx98_main='
2683 assert (argc);
2684 assert (! argv[0]);
2685 {
2686 test_exception_syntax ();
2687 test_template<double> tt (2.0);
2688 assert (tt.add (4) == 6.0);
2689 assert (true && !false);
2690 }
2691 '
2692
2693 # Test code for whether the C++ compiler supports C++11 (global declarations)
2694 ac_cxx_conftest_cxx11_globals='
2695 // Does the compiler advertise C++ 2011 conformance?
2696 #if !defined __cplusplus || __cplusplus < 201103L
2697 # error "Compiler does not advertise C++11 conformance"
2698 #endif
2699
2700 namespace cxx11test
2701 {
2702 constexpr int get_val() { return 20; }
2703
2704 struct testinit
2705 {
2706 int i;
2707 double d;
2708 };
2709
2710 class delegate
2711 {
2712 public:
2713 delegate(int n) : n(n) {}
2714 delegate(): delegate(2354) {}
2715
2716 virtual int getval() { return this->n; };
2717 protected:
2718 int n;
2719 };
2720
2721 class overridden : public delegate
2722 {
2723 public:
2724 overridden(int n): delegate(n) {}
2725 virtual int getval() override final { return this->n * 2; }
2726 };
2727
2728 class nocopy
2729 {
2730 public:
2731 nocopy(int i): i(i) {}
2732 nocopy() = default;
2733 nocopy(const nocopy&) = delete;
2734 nocopy & operator=(const nocopy&) = delete;
2735 private:
2736 int i;
2737 };
2738
2739 // for testing lambda expressions
2740 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2741 {
2742 return f(v);
2743 }
2744
2745 // for testing variadic templates and trailing return types
2746 template <typename V> auto sum(V first) -> V
2747 {
2748 return first;
2749 }
2750 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2751 {
2752 return first + sum(rest...);
2753 }
2754 }
2755 '
2756
2757 # Test code for whether the C++ compiler supports C++11 (body of main)
2758 ac_cxx_conftest_cxx11_main='
2759 {
2760 // Test auto and decltype
2761 auto a1 = 6538;
2762 auto a2 = 48573953.4;
2763 auto a3 = "String literal";
2764
2765 int total = 0;
2766 for (auto i = a3; *i; ++i) { total += *i; }
2767
2768 decltype(a2) a4 = 34895.034;
2769 }
2770 {
2771 // Test constexpr
2772 short sa[cxx11test::get_val()] = { 0 };
2773 }
2774 {
2775 // Test initializer lists
2776 cxx11test::testinit il = { 4323, 435234.23544 };
2777 }
2778 {
2779 // Test range-based for
2780 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2781 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2782 for (auto &x : array) { x += 23; }
2783 }
2784 {
2785 // Test lambda expressions
2786 using cxx11test::eval;
2787 assert (eval ([](int x) { return x*2; }, 21) == 42);
2788 double d = 2.0;
2789 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2790 assert (d == 5.0);
2791 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2792 assert (d == 5.0);
2793 }
2794 {
2795 // Test use of variadic templates
2796 using cxx11test::sum;
2797 auto a = sum(1);
2798 auto b = sum(1, 2);
2799 auto c = sum(1.0, 2.0, 3.0);
2800 }
2801 {
2802 // Test constructor delegation
2803 cxx11test::delegate d1;
2804 cxx11test::delegate d2();
2805 cxx11test::delegate d3(45);
2806 }
2807 {
2808 // Test override and final
2809 cxx11test::overridden o1(55464);
2810 }
2811 {
2812 // Test nullptr
2813 char *c = nullptr;
2814 }
2815 {
2816 // Test template brackets
2817 test_template<::test_template<int>> v(test_template<int>(12));
2818 }
2819 {
2820 // Unicode literals
2821 char const *utf8 = u8"UTF-8 string \u2500";
2822 char16_t const *utf16 = u"UTF-8 string \u2500";
2823 char32_t const *utf32 = U"UTF-32 string \u2500";
2824 }
2825 '
2826
2827 # Test code for whether the C compiler supports C++11 (complete).
2828 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2829 ${ac_cxx_conftest_cxx11_globals}
2830
2831 int
2832 main (int argc, char **argv)
2833 {
2834 int ok = 0;
2835 ${ac_cxx_conftest_cxx98_main}
2836 ${ac_cxx_conftest_cxx11_main}
2837 return ok;
2838 }
2839 "
2840
2841 # Test code for whether the C compiler supports C++98 (complete).
2842 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2843 int
2844 main (int argc, char **argv)
2845 {
2846 int ok = 0;
2847 ${ac_cxx_conftest_cxx98_main}
2848 return ok;
2849 }
2850 "
2851
2852 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2853 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2854 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2855 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2856 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2857 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2858 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2859 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2860 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2861 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2862 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2863
2864 # Auxiliary files required by this configure script.
2865 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2866
2867 # Locations in which to look for auxiliary files.
2868 ac_aux_dir_candidates="${srcdir}/build-aux"
2869
2870 # Search for a directory containing all of the required auxiliary files,
2871 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2872 # If we don't find one directory that contains all the files we need,
2873 # we report the set of missing files from the *first* directory in
2874 # $ac_aux_dir_candidates and give up.
2875 ac_missing_aux_files=""
2876 ac_first_candidate=:
2877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 as_found=false
2880 for as_dir in $ac_aux_dir_candidates
2881 do
2882 IFS=$as_save_IFS
2883 case $as_dir in #(((
2884 '') as_dir=./ ;;
2885 */) ;;
2886 *) as_dir=$as_dir/ ;;
2887 esac
2888 as_found=:
2889
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2891 ac_aux_dir_found=yes
2892 ac_install_sh=
2893 for ac_aux in $ac_aux_files
2894 do
2895 # As a special case, if "install-sh" is required, that requirement
2896 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2897 # and $ac_install_sh is set appropriately for whichever one is found.
2898 if test x"$ac_aux" = x"install-sh"
2899 then
2900 if test -f "${as_dir}install-sh"; then
2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2902 ac_install_sh="${as_dir}install-sh -c"
2903 elif test -f "${as_dir}install.sh"; then
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2905 ac_install_sh="${as_dir}install.sh -c"
2906 elif test -f "${as_dir}shtool"; then
2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2908 ac_install_sh="${as_dir}shtool install -c"
2909 else
2910 ac_aux_dir_found=no
2911 if $ac_first_candidate; then
2912 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2913 else
2914 break
2915 fi
2916 fi
2917 else
2918 if test -f "${as_dir}${ac_aux}"; then
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2920 else
2921 ac_aux_dir_found=no
2922 if $ac_first_candidate; then
2923 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2924 else
2925 break
2926 fi
2927 fi
2928 fi
2929 done
2930 if test "$ac_aux_dir_found" = yes; then
2931 ac_aux_dir="$as_dir"
2932 break
2933 fi
2934 ac_first_candidate=false
2935
2936 as_found=false
2937 done
2938 IFS=$as_save_IFS
2939 if $as_found
2940 then :
2941
2942 else case e in #(
2943 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2944 esac
2945 fi
2946
2947
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 if test -f "${ac_aux_dir}config.guess"; then
2953 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2954 fi
2955 if test -f "${ac_aux_dir}config.sub"; then
2956 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2957 fi
2958 if test -f "$ac_aux_dir/configure"; then
2959 ac_configure="$SHELL ${ac_aux_dir}configure"
2960 fi
2961
2962 # Check that the precious variables saved in the cache have kept the same
2963 # value.
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2971 set,)
2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2973 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2975 ,set)
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2977 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,);;
2980 *)
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x $ac_old_val`
2984 ac_new_val_w=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2987 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted=:
2989 else
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2991 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2993 fi
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2995 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2997 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2998 fi;;
2999 esac
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3002 case $ac_new_val in
3003 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3005 esac
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3009 esac
3010 fi
3011 done
3012 if $ac_cache_corrupted; then
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3014 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3018 and start over" "$LINENO" 5
3019 fi
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031 PACKAGE_DESCRIPTION="Protocol Buffers implementation in C"
3032
3033
3034
3035
3036 am__api_version='1.17'
3037
3038
3039
3040 # Find a good install program. We prefer a C program (faster),
3041 # so one script is as good as another. But avoid the broken or
3042 # incompatible versions:
3043 # SysV /etc/install, /usr/sbin/install
3044 # SunOS /usr/etc/install
3045 # IRIX /sbin/install
3046 # AIX /bin/install
3047 # AmigaOS /C/install, which installs bootblocks on floppy discs
3048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3051 # OS/2's system install, which has a completely different semantic
3052 # ./install, which can be erroneously created by make from ./install.sh.
3053 # Reject install programs that cannot install multiple files.
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3055 printf %s "checking for a BSD-compatible install... " >&6; }
3056 if test -z "$INSTALL"; then
3057 if test ${ac_cv_path_install+y}
3058 then :
3059 printf %s "(cached) " >&6
3060 else case e in #(
3061 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 case $as_dir in #(((
3066 '') as_dir=./ ;;
3067 */) ;;
3068 *) as_dir=$as_dir/ ;;
3069 esac
3070 # Account for fact that we put trailing slashes in our PATH walk.
3071 case $as_dir in #((
3072 ./ | /[cC]/* | \
3073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3075 /usr/ucb/* ) ;;
3076 *)
3077 # OSF1 and SCO ODT 3.0 have their own names for install.
3078 # Don't use installbsd from OSF since it installs stuff as root
3079 # by default.
3080 for ac_prog in ginstall scoinst install; do
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3083 if test $ac_prog = install &&
3084 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3085 # AIX install. It has an incompatible calling convention.
3086 :
3087 elif test $ac_prog = install &&
3088 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089 # program-specific install script used by HP pwplus--don't use.
3090 :
3091 else
3092 rm -rf conftest.one conftest.two conftest.dir
3093 echo one > conftest.one
3094 echo two > conftest.two
3095 mkdir conftest.dir
3096 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3097 test -s conftest.one && test -s conftest.two &&
3098 test -s conftest.dir/conftest.one &&
3099 test -s conftest.dir/conftest.two
3100 then
3101 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3102 break 3
3103 fi
3104 fi
3105 fi
3106 done
3107 done
3108 ;;
3109 esac
3110
3111 done
3112 IFS=$as_save_IFS
3113
3114 rm -rf conftest.one conftest.two conftest.dir
3115 ;;
3116 esac
3117 fi
3118 if test ${ac_cv_path_install+y}; then
3119 INSTALL=$ac_cv_path_install
3120 else
3121 # As a last resort, use the slow shell script. Don't cache a
3122 # value for INSTALL within a source directory, because that will
3123 # break other packages using the cache if that directory is
3124 # removed, or if the value is a relative name.
3125 INSTALL=$ac_install_sh
3126 fi
3127 fi
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3129 printf "%s\n" "$INSTALL" >&6; }
3130
3131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3132 # It thinks the first close brace ends the variable substitution.
3133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134
3135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3136
3137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3140 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3141 if test ${am_cv_sleep_fractional_seconds+y}
3142 then :
3143 printf %s "(cached) " >&6
3144 else case e in #(
3145 e) if sleep 0.001 2>/dev/null
3146 then :
3147 am_cv_sleep_fractional_seconds=yes
3148 else case e in #(
3149 e) am_cv_sleep_fractional_seconds=no ;;
3150 esac
3151 fi
3152 ;;
3153 esac
3154 fi
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3156 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3157
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3159 printf %s "checking filesystem timestamp resolution... " >&6; }
3160 if test ${am_cv_filesystem_timestamp_resolution+y}
3161 then :
3162 printf %s "(cached) " >&6
3163 else case e in #(
3164 e) # Default to the worst case.
3165 am_cv_filesystem_timestamp_resolution=2
3166
3167 # Only try to go finer than 1 sec if sleep can do it.
3168 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3169 # - 1 sec is not much of a win compared to 2 sec, and
3170 # - it takes 2 seconds to perform the test whether 1 sec works.
3171 #
3172 # Instead, just use the default 2s on platforms that have 1s resolution,
3173 # accept the extra 1s delay when using $sleep in the Automake tests, in
3174 # exchange for not incurring the 2s delay for running the test for all
3175 # packages.
3176 #
3177 am_try_resolutions=
3178 if test "$am_cv_sleep_fractional_seconds" = yes; then
3179 # Even a millisecond often causes a bunch of false positives,
3180 # so just try a hundredth of a second. The time saved between .001 and
3181 # .01 is not terribly consequential.
3182 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3183 fi
3184
3185 # In order to catch current-generation FAT out, we must *modify* files
3186 # that already exist; the *creation* timestamp is finer. Use names
3187 # that make ls -t sort them differently when they have equal
3188 # timestamps than when they have distinct timestamps, keeping
3189 # in mind that ls -t prints the *newest* file first.
3190 rm -f conftest.ts?
3191 : > conftest.ts1
3192 : > conftest.ts2
3193 : > conftest.ts3
3194
3195 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3196 # clobber the current shell's arguments. (Outer-level square brackets
3197 # are removed by m4; they're present so that m4 does not expand
3198 # <dollar><star>; be careful, easy to get confused.)
3199 if (
3200 set X `ls -t conftest.ts[12]` &&
3201 {
3202 test "$*" != "X conftest.ts1 conftest.ts2" ||
3203 test "$*" != "X conftest.ts2 conftest.ts1";
3204 }
3205 ); then :; else
3206 # If neither matched, then we have a broken ls. This can happen
3207 # if, for instance, CONFIG_SHELL is bash and it inherits a
3208 # broken ls alias from the environment. This has actually
3209 # happened. Such a system could not be considered "sane".
3210 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3212 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3213 as_fn_error $? "ls -t produces unexpected output.
3214 Make sure there is not a broken ls alias in your environment.
3215 See 'config.log' for more details" "$LINENO" 5; }
3216 fi
3217
3218 for am_try_res in $am_try_resolutions; do
3219 # Any one fine-grained sleep might happen to cross the boundary
3220 # between two values of a coarser actual resolution, but if we do
3221 # two fine-grained sleeps in a row, at least one of them will fall
3222 # entirely within a coarse interval.
3223 echo alpha > conftest.ts1
3224 sleep $am_try_res
3225 echo beta > conftest.ts2
3226 sleep $am_try_res
3227 echo gamma > conftest.ts3
3228
3229 # We assume that 'ls -t' will make use of high-resolution
3230 # timestamps if the operating system supports them at all.
3231 if (set X `ls -t conftest.ts?` &&
3232 test "$2" = conftest.ts3 &&
3233 test "$3" = conftest.ts2 &&
3234 test "$4" = conftest.ts1); then
3235 #
3236 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3237 # because we don't need to test make.
3238 make_ok=true
3239 if test $am_try_res != 1; then
3240 # But if we've succeeded so far with a subsecond resolution, we
3241 # have one more thing to check: make. It can happen that
3242 # everything else supports the subsecond mtimes, but make doesn't;
3243 # notably on macOS, which ships make 3.81 from 2006 (the last one
3244 # released under GPLv2). https://bugs.gnu.org/68808
3245 #
3246 # We test $MAKE if it is defined in the environment, else "make".
3247 # It might get overridden later, but our hope is that in practice
3248 # it does not matter: it is the system "make" which is (by far)
3249 # the most likely to be broken, whereas if the user overrides it,
3250 # probably they did so with a better, or at least not worse, make.
3251 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3252 #
3253 # Create a Makefile (real tab character here):
3254 rm -f conftest.mk
3255 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3256 echo ' touch conftest.ts2' >>conftest.mk
3257 #
3258 # Now, running
3259 # touch conftest.ts1; touch conftest.ts2; make
3260 # should touch ts1 because ts2 is newer. This could happen by luck,
3261 # but most often, it will fail if make's support is insufficient. So
3262 # test for several consecutive successes.
3263 #
3264 # (We reuse conftest.ts[12] because we still want to modify existing
3265 # files, not create new ones, per above.)
3266 n=0
3267 make=${MAKE-make}
3268 until test $n -eq 3; do
3269 echo one > conftest.ts1
3270 sleep $am_try_res
3271 echo two > conftest.ts2 # ts2 should now be newer than ts1
3272 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3273 make_ok=false
3274 break # out of $n loop
3275 fi
3276 n=`expr $n + 1`
3277 done
3278 fi
3279 #
3280 if $make_ok; then
3281 # Everything we know to check worked out, so call this resolution good.
3282 am_cv_filesystem_timestamp_resolution=$am_try_res
3283 break # out of $am_try_res loop
3284 fi
3285 # Otherwise, we'll go on to check the next resolution.
3286 fi
3287 done
3288 rm -f conftest.ts?
3289 # (end _am_filesystem_timestamp_resolution)
3290 ;;
3291 esac
3292 fi
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3294 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3295
3296 # This check should not be cached, as it may vary across builds of
3297 # different projects.
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3299 printf %s "checking whether build environment is sane... " >&6; }
3300 # Reject unsafe characters in $srcdir or the absolute working directory
3301 # name. Accept space and tab only in the latter.
3302 am_lf='
3303 '
3304 case `pwd` in
3305 *[\\\"\#\$\&\'\`$am_lf]*)
3306 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3307 esac
3308 case $srcdir in
3309 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3310 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3311 esac
3312
3313 # Do 'set' in a subshell so we don't clobber the current shell's
3314 # arguments. Must try -L first in case configure is actually a
3315 # symlink; some systems play weird games with the mod time of symlinks
3316 # (eg FreeBSD returns the mod time of the symlink's containing
3317 # directory).
3318 am_build_env_is_sane=no
3319 am_has_slept=no
3320 rm -f conftest.file
3321 for am_try in 1 2; do
3322 echo "timestamp, slept: $am_has_slept" > conftest.file
3323 if (
3324 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3325 if test "$*" = "X"; then
3326 # -L didn't work.
3327 set X `ls -t "$srcdir/configure" conftest.file`
3328 fi
3329 test "$2" = conftest.file
3330 ); then
3331 am_build_env_is_sane=yes
3332 break
3333 fi
3334 # Just in case.
3335 sleep "$am_cv_filesystem_timestamp_resolution"
3336 am_has_slept=yes
3337 done
3338
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3340 printf "%s\n" "$am_build_env_is_sane" >&6; }
3341 if test "$am_build_env_is_sane" = no; then
3342 as_fn_error $? "newly created file is older than distributed files!
3343 Check your system clock" "$LINENO" 5
3344 fi
3345
3346 # If we didn't sleep, we still need to ensure time stamps of config.status and
3347 # generated files are strictly newer.
3348 am_sleep_pid=
3349 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3350 then :
3351
3352 else case e in #(
3353 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3354 am_sleep_pid=$!
3355 ;;
3356 esac
3357 fi
3358
3359 rm -f conftest.file
3360
3361 test "$program_prefix" != NONE &&
3362 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3363 # Use a double $ so make ignores it.
3364 test "$program_suffix" != NONE &&
3365 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3366 # Double any \ or $.
3367 # By default was 's,x,x', remove it if useless.
3368 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3369 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3370
3371
3372 # Expand $ac_aux_dir to an absolute path.
3373 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3374
3375
3376 if test x"${MISSING+set}" != xset; then
3377 MISSING="\${SHELL} '$am_aux_dir/missing'"
3378 fi
3379 # Use eval to expand $SHELL
3380 if eval "$MISSING --is-lightweight"; then
3381 am_missing_run="$MISSING "
3382 else
3383 am_missing_run=
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3385 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3386 fi
3387
3388 if test x"${install_sh+set}" != xset; then
3389 case $am_aux_dir in
3390 *\ * | *\ *)
3391 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3392 *)
3393 install_sh="\${SHELL} $am_aux_dir/install-sh"
3394 esac
3395 fi
3396
3397 # Installed binaries are usually stripped using 'strip' when the user
3398 # run "make install-strip". However 'strip' might not be the right
3399 # tool to use in cross-compilation environments, therefore Automake
3400 # will honor the 'STRIP' environment variable to overrule this program.
3401 if test "$cross_compiling" != no; then
3402 if test -n "$ac_tool_prefix"; then
3403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3404 set dummy ${ac_tool_prefix}strip; ac_word=$2
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 printf %s "checking for $ac_word... " >&6; }
3407 if test ${ac_cv_prog_STRIP+y}
3408 then :
3409 printf %s "(cached) " >&6
3410 else case e in #(
3411 e) if test -n "$STRIP"; then
3412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 case $as_dir in #(((
3419 '') as_dir=./ ;;
3420 */) ;;
3421 *) as_dir=$as_dir/ ;;
3422 esac
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi ;;
3434 esac
3435 fi
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3439 printf "%s\n" "$STRIP" >&6; }
3440 else
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 printf "%s\n" "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$ac_cv_prog_STRIP"; then
3448 ac_ct_STRIP=$STRIP
3449 # Extract the first word of "strip", so it can be a program name with args.
3450 set dummy strip; ac_word=$2
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 printf %s "checking for $ac_word... " >&6; }
3453 if test ${ac_cv_prog_ac_ct_STRIP+y}
3454 then :
3455 printf %s "(cached) " >&6
3456 else case e in #(
3457 e) if test -n "$ac_ct_STRIP"; then
3458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463 IFS=$as_save_IFS
3464 case $as_dir in #(((
3465 '') as_dir=./ ;;
3466 */) ;;
3467 *) as_dir=$as_dir/ ;;
3468 esac
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_STRIP="strip"
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi ;;
3480 esac
3481 fi
3482 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3483 if test -n "$ac_ct_STRIP"; then
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3485 printf "%s\n" "$ac_ct_STRIP" >&6; }
3486 else
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 printf "%s\n" "no" >&6; }
3489 fi
3490
3491 if test "x$ac_ct_STRIP" = x; then
3492 STRIP=":"
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 STRIP=$ac_ct_STRIP
3501 fi
3502 else
3503 STRIP="$ac_cv_prog_STRIP"
3504 fi
3505
3506 fi
3507 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3508
3509
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3511 printf %s "checking for a race-free mkdir -p... " >&6; }
3512 if test -z "$MKDIR_P"; then
3513 if test ${ac_cv_path_mkdir+y}
3514 then :
3515 printf %s "(cached) " >&6
3516 else case e in #(
3517 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3519 do
3520 IFS=$as_save_IFS
3521 case $as_dir in #(((
3522 '') as_dir=./ ;;
3523 */) ;;
3524 *) as_dir=$as_dir/ ;;
3525 esac
3526 for ac_prog in mkdir gmkdir; do
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3529 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3530 'mkdir ('*'coreutils) '* | \
3531 *'BusyBox '* | \
3532 'mkdir (fileutils) '4.1*)
3533 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3534 break 3;;
3535 esac
3536 done
3537 done
3538 done
3539 IFS=$as_save_IFS
3540 ;;
3541 esac
3542 fi
3543
3544 test -d ./--version && rmdir ./--version
3545 if test ${ac_cv_path_mkdir+y}; then
3546 MKDIR_P="$ac_cv_path_mkdir -p"
3547 else
3548 # As a last resort, use plain mkdir -p,
3549 # in the hope it doesn't have the bugs of ancient mkdir.
3550 MKDIR_P='mkdir -p'
3551 fi
3552 fi
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3554 printf "%s\n" "$MKDIR_P" >&6; }
3555
3556 for ac_prog in gawk mawk nawk awk
3557 do
3558 # Extract the first word of "$ac_prog", so it can be a program name with args.
3559 set dummy $ac_prog; ac_word=$2
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 printf %s "checking for $ac_word... " >&6; }
3562 if test ${ac_cv_prog_AWK+y}
3563 then :
3564 printf %s "(cached) " >&6
3565 else case e in #(
3566 e) if test -n "$AWK"; then
3567 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572 IFS=$as_save_IFS
3573 case $as_dir in #(((
3574 '') as_dir=./ ;;
3575 */) ;;
3576 *) as_dir=$as_dir/ ;;
3577 esac
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_AWK="$ac_prog"
3581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi ;;
3589 esac
3590 fi
3591 AWK=$ac_cv_prog_AWK
3592 if test -n "$AWK"; then
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3594 printf "%s\n" "$AWK" >&6; }
3595 else
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3598 fi
3599
3600
3601 test -n "$AWK" && break
3602 done
3603
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3605 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3606 set x ${MAKE-make}
3607 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3608 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3609 then :
3610 printf %s "(cached) " >&6
3611 else case e in #(
3612 e) cat >conftest.make <<\_ACEOF
3613 SHELL = /bin/sh
3614 all:
3615 @echo '@@@%%%=$(MAKE)=@@@%%%'
3616 _ACEOF
3617 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3618 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3619 *@@@%%%=?*=@@@%%%*)
3620 eval ac_cv_prog_make_${ac_make}_set=yes;;
3621 *)
3622 eval ac_cv_prog_make_${ac_make}_set=no;;
3623 esac
3624 rm -f conftest.make ;;
3625 esac
3626 fi
3627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 printf "%s\n" "yes" >&6; }
3630 SET_MAKE=
3631 else
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3634 SET_MAKE="MAKE=${MAKE-make}"
3635 fi
3636
3637 rm -rf .tst 2>/dev/null
3638 mkdir .tst 2>/dev/null
3639 if test -d .tst; then
3640 am__leading_dot=.
3641 else
3642 am__leading_dot=_
3643 fi
3644 rmdir .tst 2>/dev/null
3645
3646 AM_DEFAULT_VERBOSITY=1
3647 # Check whether --enable-silent-rules was given.
3648 if test ${enable_silent_rules+y}
3649 then :
3650 enableval=$enable_silent_rules;
3651 fi
3652
3653 am_make=${MAKE-make}
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3655 printf %s "checking whether $am_make supports nested variables... " >&6; }
3656 if test ${am_cv_make_support_nested_variables+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else case e in #(
3660 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3661 BAR0=false
3662 BAR1=true
3663 V=1
3664 am__doit:
3665 @$(TRUE)
3666 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3667 am_cv_make_support_nested_variables=yes
3668 else
3669 am_cv_make_support_nested_variables=no
3670 fi ;;
3671 esac
3672 fi
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3674 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3675 AM_BACKSLASH='\'
3676
3677 am__rm_f_notfound=
3678 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3679 then :
3680
3681 else case e in #(
3682 e) am__rm_f_notfound='""' ;;
3683 esac
3684 fi
3685
3686
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3688 printf %s "checking xargs -n works... " >&6; }
3689 if test ${am_cv_xargs_n_works+y}
3690 then :
3691 printf %s "(cached) " >&6
3692 else case e in #(
3693 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3694 3"
3695 then :
3696 am_cv_xargs_n_works=yes
3697 else case e in #(
3698 e) am_cv_xargs_n_works=no ;;
3699 esac
3700 fi ;;
3701 esac
3702 fi
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3704 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3705 if test "$am_cv_xargs_n_works" = yes
3706 then :
3707 am__xargs_n='xargs -n'
3708 else case e in #(
3709 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3710 ;;
3711 esac
3712 fi
3713
3714 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3715 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3716 # is not polluted with repeated "-I."
3717 am__isrc=' -I$(srcdir)'
3718 # test to see if srcdir already configured
3719 if test -f $srcdir/config.status; then
3720 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3721 fi
3722 fi
3723
3724 # test whether we have cygpath
3725 if test -z "$CYGPATH_W"; then
3726 if (cygpath --version) >/dev/null 2>/dev/null; then
3727 CYGPATH_W='cygpath -w'
3728 else
3729 CYGPATH_W=echo
3730 fi
3731 fi
3732
3733
3734 # Define the identity of the package.
3735 PACKAGE='protobuf-c'
3736 VERSION='1.5.1'
3737
3738
3739 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3740
3741
3742 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3743
3744 # Some tools Automake needs.
3745
3746 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3747
3748
3749 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3750
3751
3752 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3753
3754
3755 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3756
3757
3758 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3759
3760 # For better backward compatibility. To be removed once Automake 1.9.x
3761 # dies out for good. For more background, see:
3762 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3763 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3764 mkdir_p='$(MKDIR_P)'
3765
3766 # We need awk for the "check" target (and possibly the TAP driver). The
3767 # system "awk" is bad on some platforms.
3768 # Always define AMTAR for backward compatibility. Yes, it's still used
3769 # in the wild :-( We should find a proper way to deprecate it ...
3770 AMTAR='$${TAR-tar}'
3771
3772
3773 # We'll loop over all known methods to create a tar archive until one works.
3774 _am_tools='gnutar pax cpio none'
3775
3776 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3777
3778
3779
3780
3781
3782 # Variables for tags utilities; see am/tags.am
3783 if test -z "$CTAGS"; then
3784 CTAGS=ctags
3785 fi
3786
3787 if test -z "$ETAGS"; then
3788 ETAGS=etags
3789 fi
3790
3791 if test -z "$CSCOPE"; then
3792 CSCOPE=cscope
3793 fi
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 if test -n "$ac_tool_prefix"; then
3816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 printf %s "checking for $ac_word... " >&6; }
3820 if test ${ac_cv_prog_CC+y}
3821 then :
3822 printf %s "(cached) " >&6
3823 else case e in #(
3824 e) if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 case $as_dir in #(((
3832 '') as_dir=./ ;;
3833 */) ;;
3834 *) as_dir=$as_dir/ ;;
3835 esac
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842 done
3843 done
3844 IFS=$as_save_IFS
3845
3846 fi ;;
3847 esac
3848 fi
3849 CC=$ac_cv_prog_CC
3850 if test -n "$CC"; then
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852 printf "%s\n" "$CC" >&6; }
3853 else
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 printf "%s\n" "no" >&6; }
3856 fi
3857
3858
3859 fi
3860 if test -z "$ac_cv_prog_CC"; then
3861 ac_ct_CC=$CC
3862 # Extract the first word of "gcc", so it can be a program name with args.
3863 set dummy gcc; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_ac_ct_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test -n "$ac_ct_CC"; then
3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_ac_ct_CC="gcc"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi ;;
3893 esac
3894 fi
3895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896 if test -n "$ac_ct_CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898 printf "%s\n" "$ac_ct_CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904 if test "x$ac_ct_CC" = x; then
3905 CC=""
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908 yes:)
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911 ac_tool_warned=yes ;;
3912 esac
3913 CC=$ac_ct_CC
3914 fi
3915 else
3916 CC="$ac_cv_prog_CC"
3917 fi
3918
3919 if test -z "$CC"; then
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3922 set dummy ${ac_tool_prefix}cc; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_CC+y}
3926 then :
3927 printf %s "(cached) " >&6
3928 else case e in #(
3929 e) if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 case $as_dir in #(((
3937 '') as_dir=./ ;;
3938 */) ;;
3939 *) as_dir=$as_dir/ ;;
3940 esac
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_CC="${ac_tool_prefix}cc"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi ;;
3952 esac
3953 fi
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 printf "%s\n" "$CC" >&6; }
3958 else
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3961 fi
3962
3963
3964 fi
3965 fi
3966 if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968 set dummy cc; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_CC+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else case e in #(
3975 e) if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 ac_prog_rejected=no
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982 IFS=$as_save_IFS
3983 case $as_dir in #(((
3984 '') as_dir=./ ;;
3985 */) ;;
3986 *) as_dir=$as_dir/ ;;
3987 esac
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3991 ac_prog_rejected=yes
3992 continue
3993 fi
3994 ac_cv_prog_CC="cc"
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 if test $ac_prog_rejected = yes; then
4003 # We found a bogon in the path, so make sure we never use it.
4004 set dummy $ac_cv_prog_CC
4005 shift
4006 if test $# != 0; then
4007 # We chose a different compiler from the bogus one.
4008 # However, it has the same basename, so the bogon will be chosen
4009 # first if we set CC to just the basename; use the full file name.
4010 shift
4011 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4012 fi
4013 fi
4014 fi ;;
4015 esac
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 printf "%s\n" "$CC" >&6; }
4021 else
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 printf "%s\n" "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$CC"; then
4029 if test -n "$ac_tool_prefix"; then
4030 for ac_prog in cl.exe
4031 do
4032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4033 set dummy $ac_tool_prefix$ac_prog; 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 case e in #(
4040 e) 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$ac_prog"
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 esac
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068 printf "%s\n" "$CC" >&6; }
4069 else
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 printf "%s\n" "no" >&6; }
4072 fi
4073
4074
4075 test -n "$CC" && break
4076 done
4077 fi
4078 if test -z "$CC"; then
4079 ac_ct_CC=$CC
4080 for ac_prog in cl.exe
4081 do
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 printf %s "checking for $ac_word... " >&6; }
4086 if test ${ac_cv_prog_ac_ct_CC+y}
4087 then :
4088 printf %s "(cached) " >&6
4089 else case e in #(
4090 e) if test -n "$ac_ct_CC"; then
4091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 case $as_dir in #(((
4098 '') as_dir=./ ;;
4099 */) ;;
4100 *) as_dir=$as_dir/ ;;
4101 esac
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_CC="$ac_prog"
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 fi ;;
4113 esac
4114 fi
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 printf "%s\n" "$ac_ct_CC" >&6; }
4119 else
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 printf "%s\n" "no" >&6; }
4122 fi
4123
4124
4125 test -n "$ac_ct_CC" && break
4126 done
4127
4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 CC=$ac_ct_CC
4138 fi
4139 fi
4140
4141 fi
4142 if test -z "$CC"; then
4143 if test -n "$ac_tool_prefix"; then
4144 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4145 set dummy ${ac_tool_prefix}clang; ac_word=$2
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 printf %s "checking for $ac_word... " >&6; }
4148 if test ${ac_cv_prog_CC+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else case e in #(
4152 e) if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 case $as_dir in #(((
4160 '') as_dir=./ ;;
4161 */) ;;
4162 *) as_dir=$as_dir/ ;;
4163 esac
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_CC="${ac_tool_prefix}clang"
4167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi ;;
4175 esac
4176 fi
4177 CC=$ac_cv_prog_CC
4178 if test -n "$CC"; then
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180 printf "%s\n" "$CC" >&6; }
4181 else
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 printf "%s\n" "no" >&6; }
4184 fi
4185
4186
4187 fi
4188 if test -z "$ac_cv_prog_CC"; then
4189 ac_ct_CC=$CC
4190 # Extract the first word of "clang", so it can be a program name with args.
4191 set dummy clang; 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 case e in #(
4198 e) 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="clang"
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 esac
4222 fi
4223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4224 if test -n "$ac_ct_CC"; then
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4226 printf "%s\n" "$ac_ct_CC" >&6; }
4227 else
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 printf "%s\n" "no" >&6; }
4230 fi
4231
4232 if test "x$ac_ct_CC" = x; then
4233 CC=""
4234 else
4235 case $cross_compiling:$ac_tool_warned in
4236 yes:)
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4239 ac_tool_warned=yes ;;
4240 esac
4241 CC=$ac_ct_CC
4242 fi
4243 else
4244 CC="$ac_cv_prog_CC"
4245 fi
4246
4247 fi
4248
4249
4250 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4251 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4252 as_fn_error $? "no acceptable C compiler found in \$PATH
4253 See 'config.log' for more details" "$LINENO" 5; }
4254
4255 # Provide some information about the compiler.
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4257 set X $ac_compile
4258 ac_compiler=$2
4259 for ac_option in --version -v -V -qversion -version; do
4260 { { ac_try="$ac_compiler $ac_option >&5"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 printf "%s\n" "$ac_try_echo"; } >&5
4267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4268 ac_status=$?
4269 if test -s conftest.err; then
4270 sed '10a\
4271 ... rest of stderr output deleted ...
4272 10q' conftest.err >conftest.er1
4273 cat conftest.er1 >&5
4274 fi
4275 rm -f conftest.er1 conftest.err
4276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }
4278 done
4279
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282
4283 int
4284 main (void)
4285 {
4286
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 ac_clean_files_save=$ac_clean_files
4292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4293 # Try to create an executable without -o first, disregard a.out.
4294 # It will help us diagnose broken compilers, and finding out an intuition
4295 # of exeext.
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4297 printf %s "checking whether the C compiler works... " >&6; }
4298 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4299
4300 # The possible output files:
4301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4302
4303 ac_rmfiles=
4304 for ac_file in $ac_files
4305 do
4306 case $ac_file in
4307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4309 esac
4310 done
4311 rm -f $ac_rmfiles
4312
4313 if { { ac_try="$ac_link_default"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 printf "%s\n" "$ac_try_echo"; } >&5
4320 (eval "$ac_link_default") 2>&5
4321 ac_status=$?
4322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }
4324 then :
4325 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4326 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4328 # so that the user can short-circuit this test for compilers unknown to
4329 # Autoconf.
4330 for ac_file in $ac_files ''
4331 do
4332 test -f "$ac_file" || continue
4333 case $ac_file in
4334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4335 ;;
4336 [ab].out )
4337 # We found the default executable, but exeext='' is most
4338 # certainly right.
4339 break;;
4340 *.* )
4341 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4342 then :; else
4343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4344 fi
4345 # We set ac_cv_exeext here because the later test for it is not
4346 # safe: cross compilers may not add the suffix if given an '-o'
4347 # argument, so we may need to know it at that point already.
4348 # Even if this section looks crufty: it has the advantage of
4349 # actually working.
4350 break;;
4351 * )
4352 break;;
4353 esac
4354 done
4355 test "$ac_cv_exeext" = no && ac_cv_exeext=
4356
4357 else case e in #(
4358 e) ac_file='' ;;
4359 esac
4360 fi
4361 if test -z "$ac_file"
4362 then :
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 printf "%s\n" "no" >&6; }
4365 printf "%s\n" "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4369 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4370 as_fn_error 77 "C compiler cannot create executables
4371 See 'config.log' for more details" "$LINENO" 5; }
4372 else case e in #(
4373 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4374 printf "%s\n" "yes" >&6; } ;;
4375 esac
4376 fi
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4378 printf %s "checking for C compiler default output file name... " >&6; }
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4380 printf "%s\n" "$ac_file" >&6; }
4381 ac_exeext=$ac_cv_exeext
4382
4383 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4384 ac_clean_files=$ac_clean_files_save
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4386 printf %s "checking for suffix of executables... " >&6; }
4387 if { { ac_try="$ac_link"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 printf "%s\n" "$ac_try_echo"; } >&5
4394 (eval "$ac_link") 2>&5
4395 ac_status=$?
4396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 then :
4399 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4400 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4401 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4402 # 'rm'.
4403 for ac_file in conftest.exe conftest conftest.*; do
4404 test -f "$ac_file" || continue
4405 case $ac_file in
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 break;;
4409 * ) break;;
4410 esac
4411 done
4412 else case e in #(
4413 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4414 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4416 See 'config.log' for more details" "$LINENO" 5; } ;;
4417 esac
4418 fi
4419 rm -f conftest conftest$ac_cv_exeext
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4421 printf "%s\n" "$ac_cv_exeext" >&6; }
4422
4423 rm -f conftest.$ac_ext
4424 EXEEXT=$ac_cv_exeext
4425 ac_exeext=$EXEEXT
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <stdio.h>
4429 int
4430 main (void)
4431 {
4432 FILE *f = fopen ("conftest.out", "w");
4433 if (!f)
4434 return 1;
4435 return ferror (f) || fclose (f) != 0;
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 ac_clean_files="$ac_clean_files conftest.out"
4442 # Check that the compiler produces executables we can run. If not, either
4443 # the compiler is broken, or we cross compile.
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4445 printf %s "checking whether we are cross compiling... " >&6; }
4446 if test "$cross_compiling" != yes; then
4447 { { ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 printf "%s\n" "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4455 ac_status=$?
4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 if { ac_try='./conftest$ac_cv_exeext'
4459 { { case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465 (eval "$ac_try") 2>&5
4466 ac_status=$?
4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; }; then
4469 cross_compiling=no
4470 else
4471 if test "$cross_compiling" = maybe; then
4472 cross_compiling=yes
4473 else
4474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4476 as_fn_error 77 "cannot run C compiled programs.
4477 If you meant to cross compile, use '--host'.
4478 See 'config.log' for more details" "$LINENO" 5; }
4479 fi
4480 fi
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4483 printf "%s\n" "$cross_compiling" >&6; }
4484
4485 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4486 conftest.o conftest.obj conftest.out
4487 ac_clean_files=$ac_clean_files_save
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4489 printf %s "checking for suffix of object files... " >&6; }
4490 if test ${ac_cv_objext+y}
4491 then :
4492 printf %s "(cached) " >&6
4493 else case e in #(
4494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 int
4498 main (void)
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 rm -f conftest.o conftest.obj
4506 if { { ac_try="$ac_compile"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 printf "%s\n" "$ac_try_echo"; } >&5
4513 (eval "$ac_compile") 2>&5
4514 ac_status=$?
4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 then :
4518 for ac_file in conftest.o conftest.obj conftest.*; do
4519 test -f "$ac_file" || continue;
4520 case $ac_file in
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4523 break;;
4524 esac
4525 done
4526 else case e in #(
4527 e) printf "%s\n" "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4531 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4532 as_fn_error $? "cannot compute suffix of object files: cannot compile
4533 See 'config.log' for more details" "$LINENO" 5; } ;;
4534 esac
4535 fi
4536 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4537 esac
4538 fi
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4540 printf "%s\n" "$ac_cv_objext" >&6; }
4541 OBJEXT=$ac_cv_objext
4542 ac_objext=$OBJEXT
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4544 printf %s "checking whether the compiler supports GNU C... " >&6; }
4545 if test ${ac_cv_c_compiler_gnu+y}
4546 then :
4547 printf %s "(cached) " >&6
4548 else case e in #(
4549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551
4552 int
4553 main (void)
4554 {
4555 #ifndef __GNUC__
4556 choke me
4557 #endif
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565 ac_compiler_gnu=yes
4566 else case e in #(
4567 e) ac_compiler_gnu=no ;;
4568 esac
4569 fi
4570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4572 ;;
4573 esac
4574 fi
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4576 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4578
4579 if test $ac_compiler_gnu = yes; then
4580 GCC=yes
4581 else
4582 GCC=
4583 fi
4584 ac_test_CFLAGS=${CFLAGS+y}
4585 ac_save_CFLAGS=$CFLAGS
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4587 printf %s "checking whether $CC accepts -g... " >&6; }
4588 if test ${ac_cv_prog_cc_g+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else case e in #(
4592 e) ac_save_c_werror_flag=$ac_c_werror_flag
4593 ac_c_werror_flag=yes
4594 ac_cv_prog_cc_g=no
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main (void)
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"
4608 then :
4609 ac_cv_prog_cc_g=yes
4610 else case e in #(
4611 e) CFLAGS=""
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 int
4616 main (void)
4617 {
4618
4619 ;
4620 return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"
4624 then :
4625
4626 else case e in #(
4627 e) ac_c_werror_flag=$ac_save_c_werror_flag
4628 CFLAGS="-g"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 int
4633 main (void)
4634 {
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"
4641 then :
4642 ac_cv_prog_cc_g=yes
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4645 esac
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4648 esac
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4651 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4652 esac
4653 fi
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4655 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4656 if test $ac_test_CFLAGS; then
4657 CFLAGS=$ac_save_CFLAGS
4658 elif test $ac_cv_prog_cc_g = yes; then
4659 if test "$GCC" = yes; then
4660 CFLAGS="-g -O2"
4661 else
4662 CFLAGS="-g"
4663 fi
4664 else
4665 if test "$GCC" = yes; then
4666 CFLAGS="-O2"
4667 else
4668 CFLAGS=
4669 fi
4670 fi
4671 ac_prog_cc_stdc=no
4672 if test x$ac_prog_cc_stdc = xno
4673 then :
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4675 printf %s "checking for $CC option to enable C11 features... " >&6; }
4676 if test ${ac_cv_prog_cc_c11+y}
4677 then :
4678 printf %s "(cached) " >&6
4679 else case e in #(
4680 e) ac_cv_prog_cc_c11=no
4681 ac_save_CC=$CC
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 $ac_c_conftest_c11_program
4685 _ACEOF
4686 for ac_arg in '' -std=gnu11
4687 do
4688 CC="$ac_save_CC $ac_arg"
4689 if ac_fn_c_try_compile "$LINENO"
4690 then :
4691 ac_cv_prog_cc_c11=$ac_arg
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.beam
4694 test "x$ac_cv_prog_cc_c11" != "xno" && break
4695 done
4696 rm -f conftest.$ac_ext
4697 CC=$ac_save_CC ;;
4698 esac
4699 fi
4700
4701 if test "x$ac_cv_prog_cc_c11" = xno
4702 then :
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4704 printf "%s\n" "unsupported" >&6; }
4705 else case e in #(
4706 e) if test "x$ac_cv_prog_cc_c11" = x
4707 then :
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4709 printf "%s\n" "none needed" >&6; }
4710 else case e in #(
4711 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4712 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4713 CC="$CC $ac_cv_prog_cc_c11" ;;
4714 esac
4715 fi
4716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4717 ac_prog_cc_stdc=c11 ;;
4718 esac
4719 fi
4720 fi
4721 if test x$ac_prog_cc_stdc = xno
4722 then :
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4724 printf %s "checking for $CC option to enable C99 features... " >&6; }
4725 if test ${ac_cv_prog_cc_c99+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else case e in #(
4729 e) ac_cv_prog_cc_c99=no
4730 ac_save_CC=$CC
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 $ac_c_conftest_c99_program
4734 _ACEOF
4735 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4736 do
4737 CC="$ac_save_CC $ac_arg"
4738 if ac_fn_c_try_compile "$LINENO"
4739 then :
4740 ac_cv_prog_cc_c99=$ac_arg
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.beam
4743 test "x$ac_cv_prog_cc_c99" != "xno" && break
4744 done
4745 rm -f conftest.$ac_ext
4746 CC=$ac_save_CC ;;
4747 esac
4748 fi
4749
4750 if test "x$ac_cv_prog_cc_c99" = xno
4751 then :
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4753 printf "%s\n" "unsupported" >&6; }
4754 else case e in #(
4755 e) if test "x$ac_cv_prog_cc_c99" = x
4756 then :
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4758 printf "%s\n" "none needed" >&6; }
4759 else case e in #(
4760 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4761 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4762 CC="$CC $ac_cv_prog_cc_c99" ;;
4763 esac
4764 fi
4765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4766 ac_prog_cc_stdc=c99 ;;
4767 esac
4768 fi
4769 fi
4770 if test x$ac_prog_cc_stdc = xno
4771 then :
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4773 printf %s "checking for $CC option to enable C89 features... " >&6; }
4774 if test ${ac_cv_prog_cc_c89+y}
4775 then :
4776 printf %s "(cached) " >&6
4777 else case e in #(
4778 e) ac_cv_prog_cc_c89=no
4779 ac_save_CC=$CC
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 $ac_c_conftest_c89_program
4783 _ACEOF
4784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4785 do
4786 CC="$ac_save_CC $ac_arg"
4787 if ac_fn_c_try_compile "$LINENO"
4788 then :
4789 ac_cv_prog_cc_c89=$ac_arg
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.beam
4792 test "x$ac_cv_prog_cc_c89" != "xno" && break
4793 done
4794 rm -f conftest.$ac_ext
4795 CC=$ac_save_CC ;;
4796 esac
4797 fi
4798
4799 if test "x$ac_cv_prog_cc_c89" = xno
4800 then :
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4802 printf "%s\n" "unsupported" >&6; }
4803 else case e in #(
4804 e) if test "x$ac_cv_prog_cc_c89" = x
4805 then :
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4807 printf "%s\n" "none needed" >&6; }
4808 else case e in #(
4809 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4810 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4811 CC="$CC $ac_cv_prog_cc_c89" ;;
4812 esac
4813 fi
4814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4815 ac_prog_cc_stdc=c89 ;;
4816 esac
4817 fi
4818 fi
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4833 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4834 if test ${am_cv_prog_cc_c_o+y}
4835 then :
4836 printf %s "(cached) " >&6
4837 else case e in #(
4838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840
4841 int
4842 main (void)
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 # Make sure it works both with $CC and with simple cc.
4850 # Following AC_PROG_CC_C_O, we do the test twice because some
4851 # compilers refuse to overwrite an existing .o file with -o,
4852 # though they will create one.
4853 am_cv_prog_cc_c_o=yes
4854 for am_i in 1 2; do
4855 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4856 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } \
4860 && test -f conftest2.$ac_objext; then
4861 : OK
4862 else
4863 am_cv_prog_cc_c_o=no
4864 break
4865 fi
4866 done
4867 rm -f core conftest*
4868 unset am_i ;;
4869 esac
4870 fi
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4872 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4873 if test "$am_cv_prog_cc_c_o" != yes; then
4874 # Losing compiler, so override with the script.
4875 # FIXME: It is wrong to rewrite CC.
4876 # But if we don't then we get into trouble of one sort or another.
4877 # A longer-term fix would be to have automake use am__CC in this case,
4878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4879 CC="$am_aux_dir/compile $CC"
4880 fi
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887 DEPDIR="${am__leading_dot}deps"
4888
4889 ac_config_commands="$ac_config_commands depfiles"
4890
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4892 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4893 cat > confinc.mk << 'END'
4894 am__doit:
4895 @echo this is the am__doit target >confinc.out
4896 .PHONY: am__doit
4897 END
4898 am__include="#"
4899 am__quote=
4900 # BSD make does it like this.
4901 echo '.include "confinc.mk" # ignored' > confmf.BSD
4902 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4903 echo 'include confinc.mk # ignored' > confmf.GNU
4904 _am_result=no
4905 for s in GNU BSD; do
4906 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4907 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }
4911 case $?:`cat confinc.out 2>/dev/null` in #(
4912 '0:this is the am__doit target') :
4913 case $s in #(
4914 BSD) :
4915 am__include='.include' am__quote='"' ;; #(
4916 *) :
4917 am__include='include' am__quote='' ;;
4918 esac ;; #(
4919 *) :
4920 ;;
4921 esac
4922 if test "$am__include" != "#"; then
4923 _am_result="yes ($s style)"
4924 break
4925 fi
4926 done
4927 rm -f confinc.* confmf.*
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4929 printf "%s\n" "${_am_result}" >&6; }
4930
4931 # Check whether --enable-dependency-tracking was given.
4932 if test ${enable_dependency_tracking+y}
4933 then :
4934 enableval=$enable_dependency_tracking;
4935 fi
4936
4937 if test "x$enable_dependency_tracking" != xno; then
4938 am_depcomp="$ac_aux_dir/depcomp"
4939 AMDEPBACKSLASH='\'
4940 am__nodep='_no'
4941 fi
4942 if test "x$enable_dependency_tracking" != xno; then
4943 AMDEP_TRUE=
4944 AMDEP_FALSE='#'
4945 else
4946 AMDEP_TRUE='#'
4947 AMDEP_FALSE=
4948 fi
4949
4950
4951
4952 depcc="$CC" am_compiler_list=
4953
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4955 printf %s "checking dependency style of $depcc... " >&6; }
4956 if test ${am_cv_CC_dependencies_compiler_type+y}
4957 then :
4958 printf %s "(cached) " >&6
4959 else case e in #(
4960 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4961 # We make a subdir and do the tests there. Otherwise we can end up
4962 # making bogus files that we don't know about and never remove. For
4963 # instance it was reported that on HP-UX the gcc test will end up
4964 # making a dummy file named 'D' -- because '-MD' means "put the output
4965 # in D".
4966 rm -rf conftest.dir
4967 mkdir conftest.dir
4968 # Copy depcomp to subdir because otherwise we won't find it if we're
4969 # using a relative directory.
4970 cp "$am_depcomp" conftest.dir
4971 cd conftest.dir
4972 # We will build objects and dependencies in a subdirectory because
4973 # it helps to detect inapplicable dependency modes. For instance
4974 # both Tru64's cc and ICC support -MD to output dependencies as a
4975 # side effect of compilation, but ICC will put the dependencies in
4976 # the current directory while Tru64 will put them in the object
4977 # directory.
4978 mkdir sub
4979
4980 am_cv_CC_dependencies_compiler_type=none
4981 if test "$am_compiler_list" = ""; then
4982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4983 fi
4984 am__universal=false
4985 case " $depcc " in #(
4986 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4987 esac
4988
4989 for depmode in $am_compiler_list; do
4990 # Setup a source with many dependencies, because some compilers
4991 # like to wrap large dependency lists on column 80 (with \), and
4992 # we should not choose a depcomp mode which is confused by this.
4993 #
4994 # We need to recreate these files for each test, as the compiler may
4995 # overwrite some of them when testing with obscure command lines.
4996 # This happens at least with the AIX C compiler.
4997 : > sub/conftest.c
4998 for i in 1 2 3 4 5 6; do
4999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5000 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5001 # Solaris 10 /bin/sh.
5002 echo '/* dummy */' > sub/conftst$i.h
5003 done
5004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5005
5006 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5007 # mode. It turns out that the SunPro C++ compiler does not properly
5008 # handle '-M -o', and we need to detect this. Also, some Intel
5009 # versions had trouble with output in subdirs.
5010 am__obj=sub/conftest.${OBJEXT-o}
5011 am__minus_obj="-o $am__obj"
5012 case $depmode in
5013 gcc)
5014 # This depmode causes a compiler race in universal mode.
5015 test "$am__universal" = false || continue
5016 ;;
5017 nosideeffect)
5018 # After this tag, mechanisms are not by side-effect, so they'll
5019 # only be used when explicitly requested.
5020 if test "x$enable_dependency_tracking" = xyes; then
5021 continue
5022 else
5023 break
5024 fi
5025 ;;
5026 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5027 # This compiler won't grok '-c -o', but also, the minuso test has
5028 # not run yet. These depmodes are late enough in the game, and
5029 # so weak that their functioning should not be impacted.
5030 am__obj=conftest.${OBJEXT-o}
5031 am__minus_obj=
5032 ;;
5033 none) break ;;
5034 esac
5035 if depmode=$depmode \
5036 source=sub/conftest.c object=$am__obj \
5037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5039 >/dev/null 2>conftest.err &&
5040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5044 # icc doesn't choke on unknown options, it will just issue warnings
5045 # or remarks (even with -Werror). So we grep stderr for any message
5046 # that says an option was ignored or not supported.
5047 # When given -MP, icc 7.0 and 7.1 complain thus:
5048 # icc: Command line warning: ignoring option '-M'; no argument required
5049 # The diagnosis changed in icc 8.0:
5050 # icc: Command line remark: option '-MP' not supported
5051 if (grep 'ignoring option' conftest.err ||
5052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5053 am_cv_CC_dependencies_compiler_type=$depmode
5054 break
5055 fi
5056 fi
5057 done
5058
5059 cd ..
5060 rm -rf conftest.dir
5061 else
5062 am_cv_CC_dependencies_compiler_type=none
5063 fi
5064 ;;
5065 esac
5066 fi
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5068 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5069 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5070
5071 if
5072 test "x$enable_dependency_tracking" != xno \
5073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5074 am__fastdepCC_TRUE=
5075 am__fastdepCC_FALSE='#'
5076 else
5077 am__fastdepCC_TRUE='#'
5078 am__fastdepCC_FALSE=
5079 fi
5080
5081
5082
5083
5084
5085
5086
5087
5088 ac_ext=cpp
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093 if test -z "$CXX"; then
5094 if test -n "$CCC"; then
5095 CXX=$CCC
5096 else
5097 if test -n "$ac_tool_prefix"; then
5098 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5099 do
5100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 printf %s "checking for $ac_word... " >&6; }
5104 if test ${ac_cv_prog_CXX+y}
5105 then :
5106 printf %s "(cached) " >&6
5107 else case e in #(
5108 e) if test -n "$CXX"; then
5109 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 case $as_dir in #(((
5116 '') as_dir=./ ;;
5117 */) ;;
5118 *) as_dir=$as_dir/ ;;
5119 esac
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi ;;
5131 esac
5132 fi
5133 CXX=$ac_cv_prog_CXX
5134 if test -n "$CXX"; then
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5136 printf "%s\n" "$CXX" >&6; }
5137 else
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 printf "%s\n" "no" >&6; }
5140 fi
5141
5142
5143 test -n "$CXX" && break
5144 done
5145 fi
5146 if test -z "$CXX"; then
5147 ac_ct_CXX=$CXX
5148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5149 do
5150 # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 printf %s "checking for $ac_word... " >&6; }
5154 if test ${ac_cv_prog_ac_ct_CXX+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else case e in #(
5158 e) if test -n "$ac_ct_CXX"; then
5159 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 case $as_dir in #(((
5166 '') as_dir=./ ;;
5167 */) ;;
5168 *) as_dir=$as_dir/ ;;
5169 esac
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_ac_ct_CXX="$ac_prog"
5173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi ;;
5181 esac
5182 fi
5183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5184 if test -n "$ac_ct_CXX"; then
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5186 printf "%s\n" "$ac_ct_CXX" >&6; }
5187 else
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 printf "%s\n" "no" >&6; }
5190 fi
5191
5192
5193 test -n "$ac_ct_CXX" && break
5194 done
5195
5196 if test "x$ac_ct_CXX" = x; then
5197 CXX="g++"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 CXX=$ac_ct_CXX
5206 fi
5207 fi
5208
5209 fi
5210 fi
5211 # Provide some information about the compiler.
5212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5213 set X $ac_compile
5214 ac_compiler=$2
5215 for ac_option in --version -v -V -qversion; do
5216 { { ac_try="$ac_compiler $ac_option >&5"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 printf "%s\n" "$ac_try_echo"; } >&5
5223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5224 ac_status=$?
5225 if test -s conftest.err; then
5226 sed '10a\
5227 ... rest of stderr output deleted ...
5228 10q' conftest.err >conftest.er1
5229 cat conftest.er1 >&5
5230 fi
5231 rm -f conftest.er1 conftest.err
5232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }
5234 done
5235
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5237 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5238 if test ${ac_cv_cxx_compiler_gnu+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else case e in #(
5242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244
5245 int
5246 main (void)
5247 {
5248 #ifndef __GNUC__
5249 choke me
5250 #endif
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_cxx_try_compile "$LINENO"
5257 then :
5258 ac_compiler_gnu=yes
5259 else case e in #(
5260 e) ac_compiler_gnu=no ;;
5261 esac
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5265 ;;
5266 esac
5267 fi
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5269 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5271
5272 if test $ac_compiler_gnu = yes; then
5273 GXX=yes
5274 else
5275 GXX=
5276 fi
5277 ac_test_CXXFLAGS=${CXXFLAGS+y}
5278 ac_save_CXXFLAGS=$CXXFLAGS
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5280 printf %s "checking whether $CXX accepts -g... " >&6; }
5281 if test ${ac_cv_prog_cxx_g+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else case e in #(
5285 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5286 ac_cxx_werror_flag=yes
5287 ac_cv_prog_cxx_g=no
5288 CXXFLAGS="-g"
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291
5292 int
5293 main (void)
5294 {
5295
5296 ;
5297 return 0;
5298 }
5299 _ACEOF
5300 if ac_fn_cxx_try_compile "$LINENO"
5301 then :
5302 ac_cv_prog_cxx_g=yes
5303 else case e in #(
5304 e) CXXFLAGS=""
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 int
5309 main (void)
5310 {
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"
5317 then :
5318
5319 else case e in #(
5320 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5321 CXXFLAGS="-g"
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324
5325 int
5326 main (void)
5327 {
5328
5329 ;
5330 return 0;
5331 }
5332 _ACEOF
5333 if ac_fn_cxx_try_compile "$LINENO"
5334 then :
5335 ac_cv_prog_cxx_g=yes
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5338 esac
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5341 esac
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5345 esac
5346 fi
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5348 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5349 if test $ac_test_CXXFLAGS; then
5350 CXXFLAGS=$ac_save_CXXFLAGS
5351 elif test $ac_cv_prog_cxx_g = yes; then
5352 if test "$GXX" = yes; then
5353 CXXFLAGS="-g -O2"
5354 else
5355 CXXFLAGS="-g"
5356 fi
5357 else
5358 if test "$GXX" = yes; then
5359 CXXFLAGS="-O2"
5360 else
5361 CXXFLAGS=
5362 fi
5363 fi
5364 ac_prog_cxx_stdcxx=no
5365 if test x$ac_prog_cxx_stdcxx = xno
5366 then :
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5368 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5369 if test ${ac_cv_prog_cxx_cxx11+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else case e in #(
5373 e) ac_cv_prog_cxx_cxx11=no
5374 ac_save_CXX=$CXX
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 $ac_cxx_conftest_cxx11_program
5378 _ACEOF
5379 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5380 do
5381 CXX="$ac_save_CXX $ac_arg"
5382 if ac_fn_cxx_try_compile "$LINENO"
5383 then :
5384 ac_cv_prog_cxx_cxx11=$ac_arg
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.beam
5387 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5388 done
5389 rm -f conftest.$ac_ext
5390 CXX=$ac_save_CXX ;;
5391 esac
5392 fi
5393
5394 if test "x$ac_cv_prog_cxx_cxx11" = xno
5395 then :
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 printf "%s\n" "unsupported" >&6; }
5398 else case e in #(
5399 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5400 then :
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 printf "%s\n" "none needed" >&6; }
5403 else case e in #(
5404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5405 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5406 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5407 esac
5408 fi
5409 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5410 ac_prog_cxx_stdcxx=cxx11 ;;
5411 esac
5412 fi
5413 fi
5414 if test x$ac_prog_cxx_stdcxx = xno
5415 then :
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5417 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5418 if test ${ac_cv_prog_cxx_cxx98+y}
5419 then :
5420 printf %s "(cached) " >&6
5421 else case e in #(
5422 e) ac_cv_prog_cxx_cxx98=no
5423 ac_save_CXX=$CXX
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 $ac_cxx_conftest_cxx98_program
5427 _ACEOF
5428 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5429 do
5430 CXX="$ac_save_CXX $ac_arg"
5431 if ac_fn_cxx_try_compile "$LINENO"
5432 then :
5433 ac_cv_prog_cxx_cxx98=$ac_arg
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext conftest.beam
5436 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5437 done
5438 rm -f conftest.$ac_ext
5439 CXX=$ac_save_CXX ;;
5440 esac
5441 fi
5442
5443 if test "x$ac_cv_prog_cxx_cxx98" = xno
5444 then :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5446 printf "%s\n" "unsupported" >&6; }
5447 else case e in #(
5448 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5449 then :
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5451 printf "%s\n" "none needed" >&6; }
5452 else case e in #(
5453 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5454 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5455 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5456 esac
5457 fi
5458 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5459 ac_prog_cxx_stdcxx=cxx98 ;;
5460 esac
5461 fi
5462 fi
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470 depcc="$CXX" am_compiler_list=
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5473 printf %s "checking dependency style of $depcc... " >&6; }
5474 if test ${am_cv_CXX_dependencies_compiler_type+y}
5475 then :
5476 printf %s "(cached) " >&6
5477 else case e in #(
5478 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479 # We make a subdir and do the tests there. Otherwise we can end up
5480 # making bogus files that we don't know about and never remove. For
5481 # instance it was reported that on HP-UX the gcc test will end up
5482 # making a dummy file named 'D' -- because '-MD' means "put the output
5483 # in D".
5484 rm -rf conftest.dir
5485 mkdir conftest.dir
5486 # Copy depcomp to subdir because otherwise we won't find it if we're
5487 # using a relative directory.
5488 cp "$am_depcomp" conftest.dir
5489 cd conftest.dir
5490 # We will build objects and dependencies in a subdirectory because
5491 # it helps to detect inapplicable dependency modes. For instance
5492 # both Tru64's cc and ICC support -MD to output dependencies as a
5493 # side effect of compilation, but ICC will put the dependencies in
5494 # the current directory while Tru64 will put them in the object
5495 # directory.
5496 mkdir sub
5497
5498 am_cv_CXX_dependencies_compiler_type=none
5499 if test "$am_compiler_list" = ""; then
5500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5501 fi
5502 am__universal=false
5503 case " $depcc " in #(
5504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5505 esac
5506
5507 for depmode in $am_compiler_list; do
5508 # Setup a source with many dependencies, because some compilers
5509 # like to wrap large dependency lists on column 80 (with \), and
5510 # we should not choose a depcomp mode which is confused by this.
5511 #
5512 # We need to recreate these files for each test, as the compiler may
5513 # overwrite some of them when testing with obscure command lines.
5514 # This happens at least with the AIX C compiler.
5515 : > sub/conftest.c
5516 for i in 1 2 3 4 5 6; do
5517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5519 # Solaris 10 /bin/sh.
5520 echo '/* dummy */' > sub/conftst$i.h
5521 done
5522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523
5524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5525 # mode. It turns out that the SunPro C++ compiler does not properly
5526 # handle '-M -o', and we need to detect this. Also, some Intel
5527 # versions had trouble with output in subdirs.
5528 am__obj=sub/conftest.${OBJEXT-o}
5529 am__minus_obj="-o $am__obj"
5530 case $depmode in
5531 gcc)
5532 # This depmode causes a compiler race in universal mode.
5533 test "$am__universal" = false || continue
5534 ;;
5535 nosideeffect)
5536 # After this tag, mechanisms are not by side-effect, so they'll
5537 # only be used when explicitly requested.
5538 if test "x$enable_dependency_tracking" = xyes; then
5539 continue
5540 else
5541 break
5542 fi
5543 ;;
5544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5545 # This compiler won't grok '-c -o', but also, the minuso test has
5546 # not run yet. These depmodes are late enough in the game, and
5547 # so weak that their functioning should not be impacted.
5548 am__obj=conftest.${OBJEXT-o}
5549 am__minus_obj=
5550 ;;
5551 none) break ;;
5552 esac
5553 if depmode=$depmode \
5554 source=sub/conftest.c object=$am__obj \
5555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5557 >/dev/null 2>conftest.err &&
5558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5562 # icc doesn't choke on unknown options, it will just issue warnings
5563 # or remarks (even with -Werror). So we grep stderr for any message
5564 # that says an option was ignored or not supported.
5565 # When given -MP, icc 7.0 and 7.1 complain thus:
5566 # icc: Command line warning: ignoring option '-M'; no argument required
5567 # The diagnosis changed in icc 8.0:
5568 # icc: Command line remark: option '-MP' not supported
5569 if (grep 'ignoring option' conftest.err ||
5570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5571 am_cv_CXX_dependencies_compiler_type=$depmode
5572 break
5573 fi
5574 fi
5575 done
5576
5577 cd ..
5578 rm -rf conftest.dir
5579 else
5580 am_cv_CXX_dependencies_compiler_type=none
5581 fi
5582 ;;
5583 esac
5584 fi
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5586 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5587 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5588
5589 if
5590 test "x$enable_dependency_tracking" != xno \
5591 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5592 am__fastdepCXX_TRUE=
5593 am__fastdepCXX_FALSE='#'
5594 else
5595 am__fastdepCXX_TRUE='#'
5596 am__fastdepCXX_FALSE=
5597 fi
5598
5599
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5601 printf %s "checking whether ln -s works... " >&6; }
5602 LN_S=$as_ln_s
5603 if test "$LN_S" = "ln -s"; then
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5605 printf "%s\n" "yes" >&6; }
5606 else
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5608 printf "%s\n" "no, using $LN_S" >&6; }
5609 fi
5610
5611
5612
5613 ac_header= ac_cache=
5614 for ac_item in $ac_header_c_list
5615 do
5616 if test $ac_cache; then
5617 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5618 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5619 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5620 fi
5621 ac_header= ac_cache=
5622 elif test $ac_header; then
5623 ac_cache=$ac_item
5624 else
5625 ac_header=$ac_item
5626 fi
5627 done
5628
5629
5630
5631
5632
5633
5634
5635
5636 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5637 then :
5638
5639 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5640
5641 fi
5642
5643
5644
5645
5646
5647
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5649 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5650 if test ${ac_cv_safe_to_define___extensions__+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else case e in #(
5654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656
5657 # define __EXTENSIONS__ 1
5658 $ac_includes_default
5659 int
5660 main (void)
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"
5668 then :
5669 ac_cv_safe_to_define___extensions__=yes
5670 else case e in #(
5671 e) ac_cv_safe_to_define___extensions__=no ;;
5672 esac
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5675 esac
5676 fi
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5678 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5681 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5682 if test ${ac_cv_should_define__xopen_source+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else case e in #(
5686 e) ac_cv_should_define__xopen_source=no
5687 if test $ac_cv_header_wchar_h = yes
5688 then :
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691
5692 #include <wchar.h>
5693 mbstate_t x;
5694 int
5695 main (void)
5696 {
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"
5703 then :
5704
5705 else case e in #(
5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708
5709 #define _XOPEN_SOURCE 500
5710 #include <wchar.h>
5711 mbstate_t x;
5712 int
5713 main (void)
5714 {
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"
5721 then :
5722 ac_cv_should_define__xopen_source=yes
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5725 esac
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5728 fi ;;
5729 esac
5730 fi
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5732 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5733
5734 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5735
5736 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5737
5738 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5739
5740 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5741
5742 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5743
5744 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5745
5746 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5747
5748 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5749
5750 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5751
5752 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5753
5754 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5755
5756 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5757
5758 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5759
5760 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5761
5762 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5763
5764 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5765
5766 if test $ac_cv_header_minix_config_h = yes
5767 then :
5768 MINIX=yes
5769 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5770
5771 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5772
5773 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5774
5775 else case e in #(
5776 e) MINIX= ;;
5777 esac
5778 fi
5779 if test $ac_cv_safe_to_define___extensions__ = yes
5780 then :
5781 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5782
5783 fi
5784 if test $ac_cv_should_define__xopen_source = yes
5785 then :
5786 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5787
5788 fi
5789
5790 # Check whether --enable-largefile was given.
5791 if test ${enable_largefile+y}
5792 then :
5793 enableval=$enable_largefile;
5794 fi
5795 if test "$enable_largefile,$enable_year2038" != no,no
5796 then :
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
5798 printf %s "checking for $CC option to enable large file support... " >&6; }
5799 if test ${ac_cv_sys_largefile_opts+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else case e in #(
5803 e) ac_save_CC="$CC"
5804 ac_opt_found=no
5805 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
5806 if test x"$ac_opt" != x"none needed"
5807 then :
5808 CC="$ac_save_CC $ac_opt"
5809 fi
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 #include <sys/types.h>
5813 #ifndef FTYPE
5814 # define FTYPE off_t
5815 #endif
5816 /* Check that FTYPE can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_FTYPE to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
5821 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
5822 && LARGE_FTYPE % 2147483647 == 1)
5823 ? 1 : -1];
5824 int
5825 main (void)
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_compile "$LINENO"
5833 then :
5834 if test x"$ac_opt" = x"none needed"
5835 then :
5836 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
5837 CC="$CC -DFTYPE=ino_t"
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840
5841 else case e in #(
5842 e) CC="$CC -D_FILE_OFFSET_BITS=64"
5843 if ac_fn_c_try_compile "$LINENO"
5844 then :
5845 ac_opt='-D_FILE_OFFSET_BITS=64'
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
5848 esac
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.beam
5851 fi
5852 ac_cv_sys_largefile_opts=$ac_opt
5853 ac_opt_found=yes
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5856 test $ac_opt_found = no || break
5857 done
5858 CC="$ac_save_CC"
5859
5860 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
5861 esac
5862 fi
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
5864 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
5865
5866 ac_have_largefile=yes
5867 case $ac_cv_sys_largefile_opts in #(
5868 "none needed") :
5869 ;; #(
5870 "supported through gnulib") :
5871 ;; #(
5872 "support not detected") :
5873 ac_have_largefile=no ;; #(
5874 "-D_FILE_OFFSET_BITS=64") :
5875
5876 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
5877 ;; #(
5878 "-D_LARGE_FILES=1") :
5879
5880 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
5881 ;; #(
5882 "-n32") :
5883 CC="$CC -n32" ;; #(
5884 *) :
5885 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
5886 esac
5887
5888 if test "$enable_year2038" != no
5889 then :
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
5891 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
5892 if test ${ac_cv_sys_year2038_opts+y}
5893 then :
5894 printf %s "(cached) " >&6
5895 else case e in #(
5896 e) ac_save_CPPFLAGS="$CPPFLAGS"
5897 ac_opt_found=no
5898 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
5899 if test x"$ac_opt" != x"none needed"
5900 then :
5901 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
5902 fi
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905
5906 #include <time.h>
5907 /* Check that time_t can represent 2**32 - 1 correctly. */
5908 #define LARGE_TIME_T \\
5909 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
5910 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
5911 && LARGE_TIME_T % 65537 == 0)
5912 ? 1 : -1];
5913
5914 int
5915 main (void)
5916 {
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_compile "$LINENO"
5923 then :
5924 ac_cv_sys_year2038_opts="$ac_opt"
5925 ac_opt_found=yes
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5928 test $ac_opt_found = no || break
5929 done
5930 CPPFLAGS="$ac_save_CPPFLAGS"
5931 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
5932 esac
5933 fi
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
5935 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
5936
5937 ac_have_year2038=yes
5938 case $ac_cv_sys_year2038_opts in #(
5939 "none needed") :
5940 ;; #(
5941 "support not detected") :
5942 ac_have_year2038=no ;; #(
5943 "-D_TIME_BITS=64") :
5944
5945 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
5946 ;; #(
5947 "-D__MINGW_USE_VC2005_COMPAT") :
5948
5949 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
5950 ;; #(
5951 "-U_USE_32_BIT_TIME_T"*) :
5952 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5953 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5954 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
5955 will stop working after mid-January 2038. Remove
5956 _USE_32BIT_TIME_T from the compiler flags.
5957 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5958 *) :
5959 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
5960 esac
5961
5962 fi
5963
5964 fi
5965
5966
5967 AM_DEFAULT_VERBOSITY=0
5968 case `pwd` in
5969 *\ * | *\ *)
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5971 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5972 esac
5973
5974
5975
5976 macro_version='2.4.7'
5977 macro_revision='2.4.7'
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 ltmain=$ac_aux_dir/ltmain.sh
5993
5994
5995
5996 # Make sure we can run config.sub.
5997 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5998 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5999
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6001 printf %s "checking build system type... " >&6; }
6002 if test ${ac_cv_build+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else case e in #(
6006 e) ac_build_alias=$build_alias
6007 test "x$ac_build_alias" = x &&
6008 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6009 test "x$ac_build_alias" = x &&
6010 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6011 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6012 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6013 ;;
6014 esac
6015 fi
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6017 printf "%s\n" "$ac_cv_build" >&6; }
6018 case $ac_cv_build in
6019 *-*-*) ;;
6020 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6021 esac
6022 build=$ac_cv_build
6023 ac_save_IFS=$IFS; IFS='-'
6024 set x $ac_cv_build
6025 shift
6026 build_cpu=$1
6027 build_vendor=$2
6028 shift; shift
6029 # Remember, the first character of IFS is used to create $*,
6030 # except with old shells:
6031 build_os=$*
6032 IFS=$ac_save_IFS
6033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6034
6035
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6037 printf %s "checking host system type... " >&6; }
6038 if test ${ac_cv_host+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else case e in #(
6042 e) if test "x$host_alias" = x; then
6043 ac_cv_host=$ac_cv_build
6044 else
6045 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6046 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6047 fi
6048 ;;
6049 esac
6050 fi
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6052 printf "%s\n" "$ac_cv_host" >&6; }
6053 case $ac_cv_host in
6054 *-*-*) ;;
6055 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6056 esac
6057 host=$ac_cv_host
6058 ac_save_IFS=$IFS; IFS='-'
6059 set x $ac_cv_host
6060 shift
6061 host_cpu=$1
6062 host_vendor=$2
6063 shift; shift
6064 # Remember, the first character of IFS is used to create $*,
6065 # except with old shells:
6066 host_os=$*
6067 IFS=$ac_save_IFS
6068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6069
6070
6071 # Backslashify metacharacters that are still active within
6072 # double-quoted strings.
6073 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6074
6075 # Same as above, but do not quote variable references.
6076 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6077
6078 # Sed substitution to delay expansion of an escaped shell variable in a
6079 # double_quote_subst'ed string.
6080 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6081
6082 # Sed substitution to delay expansion of an escaped single quote.
6083 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6084
6085 # Sed substitution to avoid accidental globbing in evaled expressions
6086 no_glob_subst='s/\*/\\\*/g'
6087
6088 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6089 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6090 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6091
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6093 printf %s "checking how to print strings... " >&6; }
6094 # Test print first, because it will be a builtin if present.
6095 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6096 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6097 ECHO='print -r --'
6098 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6099 ECHO='printf %s\n'
6100 else
6101 # Use this function as a fallback that always works.
6102 func_fallback_echo ()
6103 {
6104 eval 'cat <<_LTECHO_EOF
6105 $1
6106 _LTECHO_EOF'
6107 }
6108 ECHO='func_fallback_echo'
6109 fi
6110
6111 # func_echo_all arg...
6112 # Invoke $ECHO with all args, space-separated.
6113 func_echo_all ()
6114 {
6115 $ECHO ""
6116 }
6117
6118 case $ECHO in
6119 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6120 printf "%s\n" "printf" >&6; } ;;
6121 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6122 printf "%s\n" "print -r" >&6; } ;;
6123 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6124 printf "%s\n" "cat" >&6; } ;;
6125 esac
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6141 printf %s "checking for a sed that does not truncate output... " >&6; }
6142 if test ${ac_cv_path_SED+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else case e in #(
6146 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6147 for ac_i in 1 2 3 4 5 6 7; do
6148 ac_script="$ac_script$as_nl$ac_script"
6149 done
6150 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6151 { ac_script=; unset ac_script;}
6152 if test -z "$SED"; then
6153 ac_path_SED_found=false
6154 # Loop through the user's path and test for each of PROGNAME-LIST
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158 IFS=$as_save_IFS
6159 case $as_dir in #(((
6160 '') as_dir=./ ;;
6161 */) ;;
6162 *) as_dir=$as_dir/ ;;
6163 esac
6164 for ac_prog in sed gsed
6165 do
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6168 as_fn_executable_p "$ac_path_SED" || continue
6169 # Check for GNU ac_path_SED and select it if it is found.
6170 # Check for GNU $ac_path_SED
6171 case `"$ac_path_SED" --version 2>&1` in #(
6172 *GNU*)
6173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6174 #(
6175 *)
6176 ac_count=0
6177 printf %s 0123456789 >"conftest.in"
6178 while :
6179 do
6180 cat "conftest.in" "conftest.in" >"conftest.tmp"
6181 mv "conftest.tmp" "conftest.in"
6182 cp "conftest.in" "conftest.nl"
6183 printf "%s\n" '' >> "conftest.nl"
6184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6186 as_fn_arith $ac_count + 1 && ac_count=$as_val
6187 if test $ac_count -gt ${ac_path_SED_max-0}; then
6188 # Best one so far, save it but keep looking for a better one
6189 ac_cv_path_SED="$ac_path_SED"
6190 ac_path_SED_max=$ac_count
6191 fi
6192 # 10*(2^10) chars as input seems more than enough
6193 test $ac_count -gt 10 && break
6194 done
6195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6196 esac
6197
6198 $ac_path_SED_found && break 3
6199 done
6200 done
6201 done
6202 IFS=$as_save_IFS
6203 if test -z "$ac_cv_path_SED"; then
6204 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6205 fi
6206 else
6207 ac_cv_path_SED=$SED
6208 fi
6209 ;;
6210 esac
6211 fi
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6213 printf "%s\n" "$ac_cv_path_SED" >&6; }
6214 SED="$ac_cv_path_SED"
6215 rm -f conftest.sed
6216
6217 test -z "$SED" && SED=sed
6218 Xsed="$SED -e 1s/^X//"
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6231 printf %s "checking for grep that handles long lines and -e... " >&6; }
6232 if test ${ac_cv_path_GREP+y}
6233 then :
6234 printf %s "(cached) " >&6
6235 else case e in #(
6236 e) if test -z "$GREP"; then
6237 ac_path_GREP_found=false
6238 # Loop through the user's path and test for each of PROGNAME-LIST
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 do
6242 IFS=$as_save_IFS
6243 case $as_dir in #(((
6244 '') as_dir=./ ;;
6245 */) ;;
6246 *) as_dir=$as_dir/ ;;
6247 esac
6248 for ac_prog in grep ggrep
6249 do
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6252 as_fn_executable_p "$ac_path_GREP" || continue
6253 # Check for GNU ac_path_GREP and select it if it is found.
6254 # Check for GNU $ac_path_GREP
6255 case `"$ac_path_GREP" --version 2>&1` in #(
6256 *GNU*)
6257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6258 #(
6259 *)
6260 ac_count=0
6261 printf %s 0123456789 >"conftest.in"
6262 while :
6263 do
6264 cat "conftest.in" "conftest.in" >"conftest.tmp"
6265 mv "conftest.tmp" "conftest.in"
6266 cp "conftest.in" "conftest.nl"
6267 printf "%s\n" 'GREP' >> "conftest.nl"
6268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6270 as_fn_arith $ac_count + 1 && ac_count=$as_val
6271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6272 # Best one so far, save it but keep looking for a better one
6273 ac_cv_path_GREP="$ac_path_GREP"
6274 ac_path_GREP_max=$ac_count
6275 fi
6276 # 10*(2^10) chars as input seems more than enough
6277 test $ac_count -gt 10 && break
6278 done
6279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6280 esac
6281
6282 $ac_path_GREP_found && break 3
6283 done
6284 done
6285 done
6286 IFS=$as_save_IFS
6287 if test -z "$ac_cv_path_GREP"; then
6288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6289 fi
6290 else
6291 ac_cv_path_GREP=$GREP
6292 fi
6293 ;;
6294 esac
6295 fi
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6297 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6298 GREP="$ac_cv_path_GREP"
6299
6300
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6302 printf %s "checking for egrep... " >&6; }
6303 if test ${ac_cv_path_EGREP+y}
6304 then :
6305 printf %s "(cached) " >&6
6306 else case e in #(
6307 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6308 then ac_cv_path_EGREP="$GREP -E"
6309 else
6310 if test -z "$EGREP"; then
6311 ac_path_EGREP_found=false
6312 # Loop through the user's path and test for each of PROGNAME-LIST
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6315 do
6316 IFS=$as_save_IFS
6317 case $as_dir in #(((
6318 '') as_dir=./ ;;
6319 */) ;;
6320 *) as_dir=$as_dir/ ;;
6321 esac
6322 for ac_prog in egrep
6323 do
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6326 as_fn_executable_p "$ac_path_EGREP" || continue
6327 # Check for GNU ac_path_EGREP and select it if it is found.
6328 # Check for GNU $ac_path_EGREP
6329 case `"$ac_path_EGREP" --version 2>&1` in #(
6330 *GNU*)
6331 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6332 #(
6333 *)
6334 ac_count=0
6335 printf %s 0123456789 >"conftest.in"
6336 while :
6337 do
6338 cat "conftest.in" "conftest.in" >"conftest.tmp"
6339 mv "conftest.tmp" "conftest.in"
6340 cp "conftest.in" "conftest.nl"
6341 printf "%s\n" 'EGREP' >> "conftest.nl"
6342 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6344 as_fn_arith $ac_count + 1 && ac_count=$as_val
6345 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6346 # Best one so far, save it but keep looking for a better one
6347 ac_cv_path_EGREP="$ac_path_EGREP"
6348 ac_path_EGREP_max=$ac_count
6349 fi
6350 # 10*(2^10) chars as input seems more than enough
6351 test $ac_count -gt 10 && break
6352 done
6353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6354 esac
6355
6356 $ac_path_EGREP_found && break 3
6357 done
6358 done
6359 done
6360 IFS=$as_save_IFS
6361 if test -z "$ac_cv_path_EGREP"; then
6362 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6363 fi
6364 else
6365 ac_cv_path_EGREP=$EGREP
6366 fi
6367
6368 fi ;;
6369 esac
6370 fi
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6372 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6373 EGREP="$ac_cv_path_EGREP"
6374
6375 EGREP_TRADITIONAL=$EGREP
6376 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6377
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6379 printf %s "checking for fgrep... " >&6; }
6380 if test ${ac_cv_path_FGREP+y}
6381 then :
6382 printf %s "(cached) " >&6
6383 else case e in #(
6384 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6385 then ac_cv_path_FGREP="$GREP -F"
6386 else
6387 if test -z "$FGREP"; then
6388 ac_path_FGREP_found=false
6389 # Loop through the user's path and test for each of PROGNAME-LIST
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6392 do
6393 IFS=$as_save_IFS
6394 case $as_dir in #(((
6395 '') as_dir=./ ;;
6396 */) ;;
6397 *) as_dir=$as_dir/ ;;
6398 esac
6399 for ac_prog in fgrep
6400 do
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6403 as_fn_executable_p "$ac_path_FGREP" || continue
6404 # Check for GNU ac_path_FGREP and select it if it is found.
6405 # Check for GNU $ac_path_FGREP
6406 case `"$ac_path_FGREP" --version 2>&1` in #(
6407 *GNU*)
6408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6409 #(
6410 *)
6411 ac_count=0
6412 printf %s 0123456789 >"conftest.in"
6413 while :
6414 do
6415 cat "conftest.in" "conftest.in" >"conftest.tmp"
6416 mv "conftest.tmp" "conftest.in"
6417 cp "conftest.in" "conftest.nl"
6418 printf "%s\n" 'FGREP' >> "conftest.nl"
6419 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6421 as_fn_arith $ac_count + 1 && ac_count=$as_val
6422 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6423 # Best one so far, save it but keep looking for a better one
6424 ac_cv_path_FGREP="$ac_path_FGREP"
6425 ac_path_FGREP_max=$ac_count
6426 fi
6427 # 10*(2^10) chars as input seems more than enough
6428 test $ac_count -gt 10 && break
6429 done
6430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6431 esac
6432
6433 $ac_path_FGREP_found && break 3
6434 done
6435 done
6436 done
6437 IFS=$as_save_IFS
6438 if test -z "$ac_cv_path_FGREP"; then
6439 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6440 fi
6441 else
6442 ac_cv_path_FGREP=$FGREP
6443 fi
6444
6445 fi ;;
6446 esac
6447 fi
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6449 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6450 FGREP="$ac_cv_path_FGREP"
6451
6452
6453 test -z "$GREP" && GREP=grep
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 # Check whether --with-gnu-ld was given.
6474 if test ${with_gnu_ld+y}
6475 then :
6476 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6477 else case e in #(
6478 e) with_gnu_ld=no ;;
6479 esac
6480 fi
6481
6482 ac_prog=ld
6483 if test yes = "$GCC"; then
6484 # Check if gcc -print-prog-name=ld gives a path.
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6486 printf %s "checking for ld used by $CC... " >&6; }
6487 case $host in
6488 *-*-mingw* | *-*-windows*)
6489 # gcc leaves a trailing carriage return, which upsets mingw
6490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6491 *)
6492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6493 esac
6494 case $ac_prog in
6495 # Accept absolute paths.
6496 [\\/]* | ?:[\\/]*)
6497 re_direlt='/[^/][^/]*/\.\./'
6498 # Canonicalize the pathname of ld
6499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6502 done
6503 test -z "$LD" && LD=$ac_prog
6504 ;;
6505 "")
6506 # If it fails, then pretend we aren't using GCC.
6507 ac_prog=ld
6508 ;;
6509 *)
6510 # If it is relative, then search for the first ld in PATH.
6511 with_gnu_ld=unknown
6512 ;;
6513 esac
6514 elif test yes = "$with_gnu_ld"; then
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6516 printf %s "checking for GNU ld... " >&6; }
6517 else
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6519 printf %s "checking for non-GNU ld... " >&6; }
6520 fi
6521 if test ${lt_cv_path_LD+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else case e in #(
6525 e) if test -z "$LD"; then
6526 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6527 for ac_dir in $PATH; do
6528 IFS=$lt_save_ifs
6529 test -z "$ac_dir" && ac_dir=.
6530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6531 lt_cv_path_LD=$ac_dir/$ac_prog
6532 # Check to see if the program is GNU ld. I'd rather use --version,
6533 # but apparently some variants of GNU ld only accept -v.
6534 # Break only if it was the GNU/non-GNU ld that we prefer.
6535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6536 *GNU* | *'with BFD'*)
6537 test no != "$with_gnu_ld" && break
6538 ;;
6539 *)
6540 test yes != "$with_gnu_ld" && break
6541 ;;
6542 esac
6543 fi
6544 done
6545 IFS=$lt_save_ifs
6546 else
6547 lt_cv_path_LD=$LD # Let the user override the test with a path.
6548 fi ;;
6549 esac
6550 fi
6551
6552 LD=$lt_cv_path_LD
6553 if test -n "$LD"; then
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6555 printf "%s\n" "$LD" >&6; }
6556 else
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 printf "%s\n" "no" >&6; }
6559 fi
6560 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6562 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6563 if test ${lt_cv_prog_gnu_ld+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else case e in #(
6567 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6568 case `$LD -v 2>&1 </dev/null` in
6569 *GNU* | *'with BFD'*)
6570 lt_cv_prog_gnu_ld=yes
6571 ;;
6572 *)
6573 lt_cv_prog_gnu_ld=no
6574 ;;
6575 esac ;;
6576 esac
6577 fi
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6579 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6580 with_gnu_ld=$lt_cv_prog_gnu_ld
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6591 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6592 if test ${lt_cv_path_NM+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else case e in #(
6596 e) if test -n "$NM"; then
6597 # Let the user override the test.
6598 lt_cv_path_NM=$NM
6599 else
6600 lt_nm_to_check=${ac_tool_prefix}nm
6601 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6602 lt_nm_to_check="$lt_nm_to_check nm"
6603 fi
6604 for lt_tmp_nm in $lt_nm_to_check; do
6605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6606 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6607 IFS=$lt_save_ifs
6608 test -z "$ac_dir" && ac_dir=.
6609 tmp_nm=$ac_dir/$lt_tmp_nm
6610 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6611 # Check to see if the nm accepts a BSD-compat flag.
6612 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6613 # nm: unknown option "B" ignored
6614 # Tru64's nm complains that /dev/null is an invalid object file
6615 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6616 case $build_os in
6617 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6618 *) lt_bad_file=/dev/null ;;
6619 esac
6620 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6621 *$lt_bad_file* | *'Invalid file or object type'*)
6622 lt_cv_path_NM="$tmp_nm -B"
6623 break 2
6624 ;;
6625 *)
6626 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6627 */dev/null*)
6628 lt_cv_path_NM="$tmp_nm -p"
6629 break 2
6630 ;;
6631 *)
6632 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6633 continue # so that we can try to find one that supports BSD flags
6634 ;;
6635 esac
6636 ;;
6637 esac
6638 fi
6639 done
6640 IFS=$lt_save_ifs
6641 done
6642 : ${lt_cv_path_NM=no}
6643 fi ;;
6644 esac
6645 fi
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6647 printf "%s\n" "$lt_cv_path_NM" >&6; }
6648 if test no != "$lt_cv_path_NM"; then
6649 NM=$lt_cv_path_NM
6650 else
6651 # Didn't find any BSD compatible name lister, look for dumpbin.
6652 if test -n "$DUMPBIN"; then :
6653 # Let the user override the test.
6654 else
6655 if test -n "$ac_tool_prefix"; then
6656 for ac_prog in dumpbin "link -dump"
6657 do
6658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_DUMPBIN+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) if test -n "$DUMPBIN"; then
6667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi ;;
6689 esac
6690 fi
6691 DUMPBIN=$ac_cv_prog_DUMPBIN
6692 if test -n "$DUMPBIN"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6694 printf "%s\n" "$DUMPBIN" >&6; }
6695 else
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 fi
6699
6700
6701 test -n "$DUMPBIN" && break
6702 done
6703 fi
6704 if test -z "$DUMPBIN"; then
6705 ac_ct_DUMPBIN=$DUMPBIN
6706 for ac_prog in dumpbin "link -dump"
6707 do
6708 # Extract the first word of "$ac_prog", so it can be a program name with args.
6709 set dummy $ac_prog; ac_word=$2
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 printf %s "checking for $ac_word... " >&6; }
6712 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else case e in #(
6716 e) if test -n "$ac_ct_DUMPBIN"; then
6717 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722 IFS=$as_save_IFS
6723 case $as_dir in #(((
6724 '') as_dir=./ ;;
6725 */) ;;
6726 *) as_dir=$as_dir/ ;;
6727 esac
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi ;;
6739 esac
6740 fi
6741 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6742 if test -n "$ac_ct_DUMPBIN"; then
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6744 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6745 else
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 printf "%s\n" "no" >&6; }
6748 fi
6749
6750
6751 test -n "$ac_ct_DUMPBIN" && break
6752 done
6753
6754 if test "x$ac_ct_DUMPBIN" = x; then
6755 DUMPBIN=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763 DUMPBIN=$ac_ct_DUMPBIN
6764 fi
6765 fi
6766
6767 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6768 *COFF*)
6769 DUMPBIN="$DUMPBIN -symbols -headers"
6770 ;;
6771 *)
6772 DUMPBIN=:
6773 ;;
6774 esac
6775 fi
6776
6777 if test : != "$DUMPBIN"; then
6778 NM=$DUMPBIN
6779 fi
6780 fi
6781 test -z "$NM" && NM=nm
6782
6783
6784
6785
6786
6787
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6789 printf %s "checking the name lister ($NM) interface... " >&6; }
6790 if test ${lt_cv_nm_interface+y}
6791 then :
6792 printf %s "(cached) " >&6
6793 else case e in #(
6794 e) lt_cv_nm_interface="BSD nm"
6795 echo "int some_variable = 0;" > conftest.$ac_ext
6796 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6797 (eval "$ac_compile" 2>conftest.err)
6798 cat conftest.err >&5
6799 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6800 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6801 cat conftest.err >&5
6802 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6803 cat conftest.out >&5
6804 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6805 lt_cv_nm_interface="MS dumpbin"
6806 fi
6807 rm -f conftest* ;;
6808 esac
6809 fi
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6811 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6812
6813 # find the maximum length of command line arguments
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6815 printf %s "checking the maximum length of command line arguments... " >&6; }
6816 if test ${lt_cv_sys_max_cmd_len+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else case e in #(
6820 e) i=0
6821 teststring=ABCD
6822
6823 case $build_os in
6824 msdosdjgpp*)
6825 # On DJGPP, this test can blow up pretty badly due to problems in libc
6826 # (any single argument exceeding 2000 bytes causes a buffer overrun
6827 # during glob expansion). Even if it were fixed, the result of this
6828 # check would be larger than it should be.
6829 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6830 ;;
6831
6832 gnu* | ironclad*)
6833 # Under GNU Hurd and Ironclad, this test is not required because there
6834 # is no limit to the length of command line arguments.
6835 # Libtool will interpret -1 as no limit whatsoever
6836 lt_cv_sys_max_cmd_len=-1;
6837 ;;
6838
6839 cygwin* | mingw* | windows* | cegcc*)
6840 # On Win9x/ME, this test blows up -- it succeeds, but takes
6841 # about 5 minutes as the teststring grows exponentially.
6842 # Worse, since 9x/ME are not pre-emptively multitasking,
6843 # you end up with a "frozen" computer, even though with patience
6844 # the test eventually succeeds (with a max line length of 256k).
6845 # Instead, let's just punt: use the minimum linelength reported by
6846 # all of the supported platforms: 8192 (on NT/2K/XP).
6847 lt_cv_sys_max_cmd_len=8192;
6848 ;;
6849
6850 mint*)
6851 # On MiNT this can take a long time and run out of memory.
6852 lt_cv_sys_max_cmd_len=8192;
6853 ;;
6854
6855 amigaos*)
6856 # On AmigaOS with pdksh, this test takes hours, literally.
6857 # So we just punt and use a minimum line length of 8192.
6858 lt_cv_sys_max_cmd_len=8192;
6859 ;;
6860
6861 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6862 # This has been around since 386BSD, at least. Likely further.
6863 if test -x /sbin/sysctl; then
6864 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6865 elif test -x /usr/sbin/sysctl; then
6866 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6867 else
6868 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6869 fi
6870 # And add a safety zone
6871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6873 ;;
6874
6875 interix*)
6876 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6877 lt_cv_sys_max_cmd_len=196608
6878 ;;
6879
6880 os2*)
6881 # The test takes a long time on OS/2.
6882 lt_cv_sys_max_cmd_len=8192
6883 ;;
6884
6885 osf*)
6886 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6887 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6888 # nice to cause kernel panics so lets avoid the loop below.
6889 # First set a reasonable default.
6890 lt_cv_sys_max_cmd_len=16384
6891 #
6892 if test -x /sbin/sysconfig; then
6893 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6894 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6895 esac
6896 fi
6897 ;;
6898 sco3.2v5*)
6899 lt_cv_sys_max_cmd_len=102400
6900 ;;
6901 sysv5* | sco5v6* | sysv4.2uw2*)
6902 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6903 if test -n "$kargmax"; then
6904 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6905 else
6906 lt_cv_sys_max_cmd_len=32768
6907 fi
6908 ;;
6909 *)
6910 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6911 if test -n "$lt_cv_sys_max_cmd_len" && \
6912 test undefined != "$lt_cv_sys_max_cmd_len"; then
6913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6915 else
6916 # Make teststring a little bigger before we do anything with it.
6917 # a 1K string should be a reasonable start.
6918 for i in 1 2 3 4 5 6 7 8; do
6919 teststring=$teststring$teststring
6920 done
6921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6922 # If test is not a shell built-in, we'll probably end up computing a
6923 # maximum length that is only half of the actual maximum length, but
6924 # we can't tell.
6925 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6926 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6927 test 17 != "$i" # 1/2 MB should be enough
6928 do
6929 i=`expr $i + 1`
6930 teststring=$teststring$teststring
6931 done
6932 # Only check the string length outside the loop.
6933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6934 teststring=
6935 # Add a significant safety factor because C++ compilers can tack on
6936 # massive amounts of additional arguments before passing them to the
6937 # linker. It appears as though 1/2 is a usable value.
6938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6939 fi
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945
6946 if test -n "$lt_cv_sys_max_cmd_len"; then
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6948 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6949 else
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6951 printf "%s\n" "none" >&6; }
6952 fi
6953 max_cmd_len=$lt_cv_sys_max_cmd_len
6954
6955
6956
6957
6958
6959
6960 : ${CP="cp -f"}
6961 : ${MV="mv -f"}
6962 : ${RM="rm -f"}
6963
6964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6965 lt_unset=unset
6966 else
6967 lt_unset=false
6968 fi
6969
6970
6971
6972
6973
6974 # test EBCDIC or ASCII
6975 case `echo X|tr X '\101'` in
6976 A) # ASCII based system
6977 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6978 lt_SP2NL='tr \040 \012'
6979 lt_NL2SP='tr \015\012 \040\040'
6980 ;;
6981 *) # EBCDIC based system
6982 lt_SP2NL='tr \100 \n'
6983 lt_NL2SP='tr \r\n \100\100'
6984 ;;
6985 esac
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6996 printf %s "checking how to convert $build file names to $host format... " >&6; }
6997 if test ${lt_cv_to_host_file_cmd+y}
6998 then :
6999 printf %s "(cached) " >&6
7000 else case e in #(
7001 e) case $host in
7002 *-*-mingw* )
7003 case $build in
7004 *-*-mingw* | *-*-windows* ) # actually msys
7005 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7006 ;;
7007 *-*-cygwin* )
7008 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7009 ;;
7010 * ) # otherwise, assume *nix
7011 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7012 ;;
7013 esac
7014 ;;
7015 *-*-cygwin* )
7016 case $build in
7017 *-*-mingw* | *-*-windows* ) # actually msys
7018 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7019 ;;
7020 *-*-cygwin* )
7021 lt_cv_to_host_file_cmd=func_convert_file_noop
7022 ;;
7023 * ) # otherwise, assume *nix
7024 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7025 ;;
7026 esac
7027 ;;
7028 * ) # unhandled hosts (and "normal" native builds)
7029 lt_cv_to_host_file_cmd=func_convert_file_noop
7030 ;;
7031 esac
7032 ;;
7033 esac
7034 fi
7035
7036 to_host_file_cmd=$lt_cv_to_host_file_cmd
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7038 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7039
7040
7041
7042
7043
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7045 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7046 if test ${lt_cv_to_tool_file_cmd+y}
7047 then :
7048 printf %s "(cached) " >&6
7049 else case e in #(
7050 e) #assume ordinary cross tools, or native build.
7051 lt_cv_to_tool_file_cmd=func_convert_file_noop
7052 case $host in
7053 *-*-mingw* | *-*-windows* )
7054 case $build in
7055 *-*-mingw* | *-*-windows* ) # actually msys
7056 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7057 ;;
7058 esac
7059 ;;
7060 esac
7061 ;;
7062 esac
7063 fi
7064
7065 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7067 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7068
7069
7070
7071
7072
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7074 printf %s "checking for $LD option to reload object files... " >&6; }
7075 if test ${lt_cv_ld_reload_flag+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else case e in #(
7079 e) lt_cv_ld_reload_flag='-r' ;;
7080 esac
7081 fi
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7083 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7084 reload_flag=$lt_cv_ld_reload_flag
7085 case $reload_flag in
7086 "" | " "*) ;;
7087 *) reload_flag=" $reload_flag" ;;
7088 esac
7089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7090 case $host_os in
7091 cygwin* | mingw* | windows* | pw32* | cegcc*)
7092 if test yes != "$GCC"; then
7093 reload_cmds=false
7094 fi
7095 ;;
7096 darwin*)
7097 if test yes = "$GCC"; then
7098 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7099 else
7100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7101 fi
7102 ;;
7103 esac
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113 # Extract the first word of "file", so it can be a program name with args.
7114 set dummy file; ac_word=$2
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 printf %s "checking for $ac_word... " >&6; }
7117 if test ${ac_cv_prog_FILECMD+y}
7118 then :
7119 printf %s "(cached) " >&6
7120 else case e in #(
7121 e) if test -n "$FILECMD"; then
7122 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127 IFS=$as_save_IFS
7128 case $as_dir in #(((
7129 '') as_dir=./ ;;
7130 */) ;;
7131 *) as_dir=$as_dir/ ;;
7132 esac
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_FILECMD="file"
7136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7144 fi ;;
7145 esac
7146 fi
7147 FILECMD=$ac_cv_prog_FILECMD
7148 if test -n "$FILECMD"; then
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7150 printf "%s\n" "$FILECMD" >&6; }
7151 else
7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 printf "%s\n" "no" >&6; }
7154 fi
7155
7156
7157
7158
7159
7160
7161
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 printf %s "checking for $ac_word... " >&6; }
7168 if test ${ac_cv_prog_OBJDUMP+y}
7169 then :
7170 printf %s "(cached) " >&6
7171 else case e in #(
7172 e) if test -n "$OBJDUMP"; then
7173 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 case $as_dir in #(((
7180 '') as_dir=./ ;;
7181 */) ;;
7182 *) as_dir=$as_dir/ ;;
7183 esac
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi ;;
7195 esac
7196 fi
7197 OBJDUMP=$ac_cv_prog_OBJDUMP
7198 if test -n "$OBJDUMP"; then
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7200 printf "%s\n" "$OBJDUMP" >&6; }
7201 else
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 printf "%s\n" "no" >&6; }
7204 fi
7205
7206
7207 fi
7208 if test -z "$ac_cv_prog_OBJDUMP"; then
7209 ac_ct_OBJDUMP=$OBJDUMP
7210 # Extract the first word of "objdump", so it can be a program name with args.
7211 set dummy objdump; ac_word=$2
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 printf %s "checking for $ac_word... " >&6; }
7214 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7215 then :
7216 printf %s "(cached) " >&6
7217 else case e in #(
7218 e) if test -n "$ac_ct_OBJDUMP"; then
7219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 case $as_dir in #(((
7226 '') as_dir=./ ;;
7227 */) ;;
7228 *) as_dir=$as_dir/ ;;
7229 esac
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi ;;
7241 esac
7242 fi
7243 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7244 if test -n "$ac_ct_OBJDUMP"; then
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7246 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7247 else
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 printf "%s\n" "no" >&6; }
7250 fi
7251
7252 if test "x$ac_ct_OBJDUMP" = x; then
7253 OBJDUMP="false"
7254 else
7255 case $cross_compiling:$ac_tool_warned in
7256 yes:)
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261 OBJDUMP=$ac_ct_OBJDUMP
7262 fi
7263 else
7264 OBJDUMP="$ac_cv_prog_OBJDUMP"
7265 fi
7266
7267 test -z "$OBJDUMP" && OBJDUMP=objdump
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7278 printf %s "checking how to recognize dependent libraries... " >&6; }
7279 if test ${lt_cv_deplibs_check_method+y}
7280 then :
7281 printf %s "(cached) " >&6
7282 else case e in #(
7283 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7284 lt_cv_file_magic_test_file=
7285 lt_cv_deplibs_check_method='unknown'
7286 # Need to set the preceding variable on all platforms that support
7287 # interlibrary dependencies.
7288 # 'none' -- dependencies not supported.
7289 # 'unknown' -- same as none, but documents that we really don't know.
7290 # 'pass_all' -- all dependencies passed with no checks.
7291 # 'file_magic [[regex]]' -- check by looking for files in library path
7292 # that responds to the $file_magic_cmd with a given extended regex.
7293 # If you have 'file' or equivalent on your system and you're not sure
7294 # whether 'pass_all' will *always* work, you probably want this one.
7295
7296 case $host_os in
7297 aix[4-9]*)
7298 lt_cv_deplibs_check_method=pass_all
7299 ;;
7300
7301 beos*)
7302 lt_cv_deplibs_check_method=pass_all
7303 ;;
7304
7305 bsdi[45]*)
7306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7307 lt_cv_file_magic_cmd='$FILECMD -L'
7308 lt_cv_file_magic_test_file=/shlib/libc.so
7309 ;;
7310
7311 cygwin*)
7312 # func_win32_libid is a shell function defined in ltmain.sh
7313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7314 lt_cv_file_magic_cmd='func_win32_libid'
7315 ;;
7316
7317 mingw* | windows* | pw32*)
7318 # Base MSYS/MinGW do not provide the 'file' command needed by
7319 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7320 # unless we find 'file', for example because we are cross-compiling.
7321 if ( file / ) >/dev/null 2>&1; then
7322 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7323 lt_cv_file_magic_cmd='func_win32_libid'
7324 else
7325 # Keep this pattern in sync with the one in func_win32_libid.
7326 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7327 lt_cv_file_magic_cmd='$OBJDUMP -f'
7328 fi
7329 ;;
7330
7331 cegcc*)
7332 # use the weaker test based on 'objdump'. See mingw*.
7333 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7334 lt_cv_file_magic_cmd='$OBJDUMP -f'
7335 ;;
7336
7337 darwin* | rhapsody*)
7338 lt_cv_deplibs_check_method=pass_all
7339 ;;
7340
7341 freebsd* | dragonfly* | midnightbsd*)
7342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7343 case $host_cpu in
7344 i*86 )
7345 # Not sure whether the presence of OpenBSD here was a mistake.
7346 # Let's accept both of them until this is cleared up.
7347 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7348 lt_cv_file_magic_cmd=$FILECMD
7349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7350 ;;
7351 esac
7352 else
7353 lt_cv_deplibs_check_method=pass_all
7354 fi
7355 ;;
7356
7357 haiku*)
7358 lt_cv_deplibs_check_method=pass_all
7359 ;;
7360
7361 hpux10.20* | hpux11*)
7362 lt_cv_file_magic_cmd=$FILECMD
7363 case $host_cpu in
7364 ia64*)
7365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7367 ;;
7368 hppa*64*)
7369 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]'
7370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7371 ;;
7372 *)
7373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7375 ;;
7376 esac
7377 ;;
7378
7379 interix[3-9]*)
7380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7382 ;;
7383
7384 irix5* | irix6* | nonstopux*)
7385 case $LD in
7386 *-32|*"-32 ") libmagic=32-bit;;
7387 *-n32|*"-n32 ") libmagic=N32;;
7388 *-64|*"-64 ") libmagic=64-bit;;
7389 *) libmagic=never-match;;
7390 esac
7391 lt_cv_deplibs_check_method=pass_all
7392 ;;
7393
7394 # This must be glibc/ELF.
7395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7396 lt_cv_deplibs_check_method=pass_all
7397 ;;
7398
7399 *-mlibc)
7400 lt_cv_deplibs_check_method=pass_all
7401 ;;
7402
7403 netbsd* | netbsdelf*-gnu)
7404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7406 else
7407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7408 fi
7409 ;;
7410
7411 newos6*)
7412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7413 lt_cv_file_magic_cmd=$FILECMD
7414 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7415 ;;
7416
7417 *nto* | *qnx*)
7418 lt_cv_deplibs_check_method=pass_all
7419 ;;
7420
7421 openbsd*)
7422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7424 else
7425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7426 fi
7427 ;;
7428
7429 osf3* | osf4* | osf5*)
7430 lt_cv_deplibs_check_method=pass_all
7431 ;;
7432
7433 rdos*)
7434 lt_cv_deplibs_check_method=pass_all
7435 ;;
7436
7437 serenity*)
7438 lt_cv_deplibs_check_method=pass_all
7439 ;;
7440
7441 solaris*)
7442 lt_cv_deplibs_check_method=pass_all
7443 ;;
7444
7445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7446 lt_cv_deplibs_check_method=pass_all
7447 ;;
7448
7449 sysv4 | sysv4.3*)
7450 case $host_vendor in
7451 motorola)
7452 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]'
7453 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7454 ;;
7455 ncr)
7456 lt_cv_deplibs_check_method=pass_all
7457 ;;
7458 sequent)
7459 lt_cv_file_magic_cmd='/bin/file'
7460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7461 ;;
7462 sni)
7463 lt_cv_file_magic_cmd='/bin/file'
7464 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7465 lt_cv_file_magic_test_file=/lib/libc.so
7466 ;;
7467 siemens)
7468 lt_cv_deplibs_check_method=pass_all
7469 ;;
7470 pc)
7471 lt_cv_deplibs_check_method=pass_all
7472 ;;
7473 esac
7474 ;;
7475
7476 tpf*)
7477 lt_cv_deplibs_check_method=pass_all
7478 ;;
7479 os2*)
7480 lt_cv_deplibs_check_method=pass_all
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 fi
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7487 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7488
7489 file_magic_glob=
7490 want_nocaseglob=no
7491 if test "$build" = "$host"; then
7492 case $host_os in
7493 mingw* | windows* | pw32*)
7494 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7495 want_nocaseglob=yes
7496 else
7497 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7498 fi
7499 ;;
7500 esac
7501 fi
7502
7503 file_magic_cmd=$lt_cv_file_magic_cmd
7504 deplibs_check_method=$lt_cv_deplibs_check_method
7505 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 if test -n "$ac_tool_prefix"; then
7529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+y}
7534 then :
7535 printf %s "(cached) " >&6
7536 else case e in #(
7537 e) if test -n "$DLLTOOL"; then
7538 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 esac
7561 fi
7562 DLLTOOL=$ac_cv_prog_DLLTOOL
7563 if test -n "$DLLTOOL"; then
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7565 printf "%s\n" "$DLLTOOL" >&6; }
7566 else
7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 printf "%s\n" "no" >&6; }
7569 fi
7570
7571
7572 fi
7573 if test -z "$ac_cv_prog_DLLTOOL"; then
7574 ac_ct_DLLTOOL=$DLLTOOL
7575 # Extract the first word of "dlltool", so it can be a program name with args.
7576 set dummy dlltool; ac_word=$2
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 printf %s "checking for $ac_word... " >&6; }
7579 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else case e in #(
7583 e) if test -n "$ac_ct_DLLTOOL"; then
7584 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589 IFS=$as_save_IFS
7590 case $as_dir in #(((
7591 '') as_dir=./ ;;
7592 */) ;;
7593 *) as_dir=$as_dir/ ;;
7594 esac
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605 fi ;;
7606 esac
7607 fi
7608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7609 if test -n "$ac_ct_DLLTOOL"; then
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7611 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7612 else
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 printf "%s\n" "no" >&6; }
7615 fi
7616
7617 if test "x$ac_ct_DLLTOOL" = x; then
7618 DLLTOOL="false"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 DLLTOOL=$ac_ct_DLLTOOL
7627 fi
7628 else
7629 DLLTOOL="$ac_cv_prog_DLLTOOL"
7630 fi
7631
7632 test -z "$DLLTOOL" && DLLTOOL=dlltool
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7644 printf %s "checking how to associate runtime and link libraries... " >&6; }
7645 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7646 then :
7647 printf %s "(cached) " >&6
7648 else case e in #(
7649 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7650
7651 case $host_os in
7652 cygwin* | mingw* | windows* | pw32* | cegcc*)
7653 # two different shell functions defined in ltmain.sh;
7654 # decide which one to use based on capabilities of $DLLTOOL
7655 case `$DLLTOOL --help 2>&1` in
7656 *--identify-strict*)
7657 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7658 ;;
7659 *)
7660 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7661 ;;
7662 esac
7663 ;;
7664 *)
7665 # fallback: assume linklib IS sharedlib
7666 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7667 ;;
7668 esac
7669 ;;
7670 esac
7671 fi
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7673 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7674 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7675 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7676
7677
7678
7679
7680
7681
7682
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 printf %s "checking for $ac_word... " >&6; }
7688 if test ${ac_cv_prog_RANLIB+y}
7689 then :
7690 printf %s "(cached) " >&6
7691 else case e in #(
7692 e) if test -n "$RANLIB"; then
7693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 case $as_dir in #(((
7700 '') as_dir=./ ;;
7701 */) ;;
7702 *) as_dir=$as_dir/ ;;
7703 esac
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710 done
7711 done
7712 IFS=$as_save_IFS
7713
7714 fi ;;
7715 esac
7716 fi
7717 RANLIB=$ac_cv_prog_RANLIB
7718 if test -n "$RANLIB"; then
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7720 printf "%s\n" "$RANLIB" >&6; }
7721 else
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 printf "%s\n" "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_RANLIB"; then
7729 ac_ct_RANLIB=$RANLIB
7730 # Extract the first word of "ranlib", so it can be a program name with args.
7731 set dummy ranlib; ac_word=$2
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 printf %s "checking for $ac_word... " >&6; }
7734 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else case e in #(
7738 e) if test -n "$ac_ct_RANLIB"; then
7739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 case $as_dir in #(((
7746 '') as_dir=./ ;;
7747 */) ;;
7748 *) as_dir=$as_dir/ ;;
7749 esac
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_RANLIB="ranlib"
7753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758 IFS=$as_save_IFS
7759
7760 fi ;;
7761 esac
7762 fi
7763 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7764 if test -n "$ac_ct_RANLIB"; then
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7766 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7767 else
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 printf "%s\n" "no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_RANLIB" = x; then
7773 RANLIB=":"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 RANLIB=$ac_ct_RANLIB
7782 fi
7783 else
7784 RANLIB="$ac_cv_prog_RANLIB"
7785 fi
7786
7787 if test -n "$ac_tool_prefix"; then
7788 for ac_prog in ar
7789 do
7790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 printf %s "checking for $ac_word... " >&6; }
7794 if test ${ac_cv_prog_AR+y}
7795 then :
7796 printf %s "(cached) " >&6
7797 else case e in #(
7798 e) if test -n "$AR"; then
7799 ac_cv_prog_AR="$AR" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7803 do
7804 IFS=$as_save_IFS
7805 case $as_dir in #(((
7806 '') as_dir=./ ;;
7807 */) ;;
7808 *) as_dir=$as_dir/ ;;
7809 esac
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi ;;
7821 esac
7822 fi
7823 AR=$ac_cv_prog_AR
7824 if test -n "$AR"; then
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7826 printf "%s\n" "$AR" >&6; }
7827 else
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 printf "%s\n" "no" >&6; }
7830 fi
7831
7832
7833 test -n "$AR" && break
7834 done
7835 fi
7836 if test -z "$AR"; then
7837 ac_ct_AR=$AR
7838 for ac_prog in ar
7839 do
7840 # Extract the first word of "$ac_prog", so it can be a program name with args.
7841 set dummy $ac_prog; ac_word=$2
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 printf %s "checking for $ac_word... " >&6; }
7844 if test ${ac_cv_prog_ac_ct_AR+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else case e in #(
7848 e) if test -n "$ac_ct_AR"; then
7849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 case $as_dir in #(((
7856 '') as_dir=./ ;;
7857 */) ;;
7858 *) as_dir=$as_dir/ ;;
7859 esac
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_AR="$ac_prog"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi ;;
7871 esac
7872 fi
7873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7874 if test -n "$ac_ct_AR"; then
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7876 printf "%s\n" "$ac_ct_AR" >&6; }
7877 else
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 printf "%s\n" "no" >&6; }
7880 fi
7881
7882
7883 test -n "$ac_ct_AR" && break
7884 done
7885
7886 if test "x$ac_ct_AR" = x; then
7887 AR="false"
7888 else
7889 case $cross_compiling:$ac_tool_warned in
7890 yes:)
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893 ac_tool_warned=yes ;;
7894 esac
7895 AR=$ac_ct_AR
7896 fi
7897 fi
7898
7899 : ${AR=ar}
7900
7901
7902
7903
7904
7905
7906 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7907 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7908 # higher priority because that's what people were doing historically (setting
7909 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7910 # variable obsoleted/removed.
7911
7912 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7913 lt_ar_flags=$AR_FLAGS
7914
7915
7916
7917
7918
7919
7920 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7921 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7922
7923
7924
7925
7926
7927
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7929 printf %s "checking for archiver @FILE support... " >&6; }
7930 if test ${lt_cv_ar_at_file+y}
7931 then :
7932 printf %s "(cached) " >&6
7933 else case e in #(
7934 e) lt_cv_ar_at_file=no
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937
7938 int
7939 main (void)
7940 {
7941
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"
7947 then :
7948 echo conftest.$ac_objext > conftest.lst
7949 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7951 (eval $lt_ar_try) 2>&5
7952 ac_status=$?
7953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }
7955 if test 0 -eq "$ac_status"; then
7956 # Ensure the archiver fails upon bogus file names.
7957 rm -f conftest.$ac_objext libconftest.a
7958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7959 (eval $lt_ar_try) 2>&5
7960 ac_status=$?
7961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }
7963 if test 0 -ne "$ac_status"; then
7964 lt_cv_ar_at_file=@
7965 fi
7966 fi
7967 rm -f conftest.* libconftest.a
7968
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7971 ;;
7972 esac
7973 fi
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7975 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7976
7977 if test no = "$lt_cv_ar_at_file"; then
7978 archiver_list_spec=
7979 else
7980 archiver_list_spec=$lt_cv_ar_at_file
7981 fi
7982
7983
7984
7985
7986
7987
7988
7989 if test -n "$ac_tool_prefix"; then
7990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}strip; ac_word=$2
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 printf %s "checking for $ac_word... " >&6; }
7994 if test ${ac_cv_prog_STRIP+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else case e in #(
7998 e) if test -n "$STRIP"; then
7999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 case $as_dir in #(((
8006 '') as_dir=./ ;;
8007 */) ;;
8008 *) as_dir=$as_dir/ ;;
8009 esac
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi ;;
8021 esac
8022 fi
8023 STRIP=$ac_cv_prog_STRIP
8024 if test -n "$STRIP"; then
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8026 printf "%s\n" "$STRIP" >&6; }
8027 else
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 printf "%s\n" "no" >&6; }
8030 fi
8031
8032
8033 fi
8034 if test -z "$ac_cv_prog_STRIP"; then
8035 ac_ct_STRIP=$STRIP
8036 # Extract the first word of "strip", so it can be a program name with args.
8037 set dummy strip; ac_word=$2
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 printf %s "checking for $ac_word... " >&6; }
8040 if test ${ac_cv_prog_ac_ct_STRIP+y}
8041 then :
8042 printf %s "(cached) " >&6
8043 else case e in #(
8044 e) if test -n "$ac_ct_STRIP"; then
8045 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050 IFS=$as_save_IFS
8051 case $as_dir in #(((
8052 '') as_dir=./ ;;
8053 */) ;;
8054 *) as_dir=$as_dir/ ;;
8055 esac
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_ac_ct_STRIP="strip"
8059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066 fi ;;
8067 esac
8068 fi
8069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8070 if test -n "$ac_ct_STRIP"; then
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8072 printf "%s\n" "$ac_ct_STRIP" >&6; }
8073 else
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 printf "%s\n" "no" >&6; }
8076 fi
8077
8078 if test "x$ac_ct_STRIP" = x; then
8079 STRIP=":"
8080 else
8081 case $cross_compiling:$ac_tool_warned in
8082 yes:)
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8084 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8085 ac_tool_warned=yes ;;
8086 esac
8087 STRIP=$ac_ct_STRIP
8088 fi
8089 else
8090 STRIP="$ac_cv_prog_STRIP"
8091 fi
8092
8093 test -z "$STRIP" && STRIP=:
8094
8095
8096
8097
8098
8099
8100
8101 test -z "$RANLIB" && RANLIB=:
8102
8103
8104
8105
8106
8107
8108 # Determine commands to create old-style static archives.
8109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8110 old_postinstall_cmds='chmod 644 $oldlib'
8111 old_postuninstall_cmds=
8112
8113 if test -n "$RANLIB"; then
8114 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8116 fi
8117
8118 case $host_os in
8119 darwin*)
8120 lock_old_archive_extraction=yes ;;
8121 *)
8122 lock_old_archive_extraction=no ;;
8123 esac
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 # If no C compiler was specified, use CC.
8164 LTCC=${LTCC-"$CC"}
8165
8166 # If no C compiler flags were specified, use CFLAGS.
8167 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8168
8169 # Allow CC to be a program name with arguments.
8170 compiler=$CC
8171
8172
8173 # Check for command to grab the raw symbol name followed by C symbol from nm.
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8175 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8176 if test ${lt_cv_sys_global_symbol_pipe+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else case e in #(
8180 e)
8181 # These are sane defaults that work on at least a few old systems.
8182 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8183
8184 # Character class describing NM global symbol codes.
8185 symcode='[BCDEGRST]'
8186
8187 # Regexp to match symbols that can be accessed directly from C.
8188 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8189
8190 # Define system-specific variables.
8191 case $host_os in
8192 aix*)
8193 symcode='[BCDT]'
8194 ;;
8195 cygwin* | mingw* | windows* | pw32* | cegcc*)
8196 symcode='[ABCDGISTW]'
8197 ;;
8198 hpux*)
8199 if test ia64 = "$host_cpu"; then
8200 symcode='[ABCDEGRST]'
8201 fi
8202 ;;
8203 irix* | nonstopux*)
8204 symcode='[BCDEGRST]'
8205 ;;
8206 osf*)
8207 symcode='[BCDEGQRST]'
8208 ;;
8209 solaris*)
8210 symcode='[BCDRT]'
8211 ;;
8212 sco3.2v5*)
8213 symcode='[DT]'
8214 ;;
8215 sysv4.2uw2*)
8216 symcode='[DT]'
8217 ;;
8218 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8219 symcode='[ABDT]'
8220 ;;
8221 sysv4)
8222 symcode='[DFNSTU]'
8223 ;;
8224 esac
8225
8226 # If we're using GNU nm, then use its standard symbol codes.
8227 case `$NM -V 2>&1` in
8228 *GNU* | *'with BFD'*)
8229 symcode='[ABCDGIRSTW]' ;;
8230 esac
8231
8232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8233 # Gets list of data symbols to import.
8234 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8235 # Adjust the below global symbol transforms to fixup imported variables.
8236 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8237 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8238 lt_c_name_lib_hook="\
8239 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8240 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8241 else
8242 # Disable hooks by default.
8243 lt_cv_sys_global_symbol_to_import=
8244 lt_cdecl_hook=
8245 lt_c_name_hook=
8246 lt_c_name_lib_hook=
8247 fi
8248
8249 # Transform an extracted symbol line into a proper C declaration.
8250 # Some systems (esp. on ia64) link data and code symbols differently,
8251 # so use this general approach.
8252 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8253 $lt_cdecl_hook\
8254 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8255 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8256
8257 # Transform an extracted symbol line into symbol name and symbol address
8258 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8259 $lt_c_name_hook\
8260 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8261 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8262
8263 # Transform an extracted symbol line into symbol name with lib prefix and
8264 # symbol address.
8265 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8266 $lt_c_name_lib_hook\
8267 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8268 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8269 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8270
8271 # Handle CRLF in mingw tool chain
8272 opt_cr=
8273 case $build_os in
8274 mingw* | windows*)
8275 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8276 ;;
8277 esac
8278
8279 # Try without a prefix underscore, then with it.
8280 for ac_symprfx in "" "_"; do
8281
8282 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8283 symxfrm="\\1 $ac_symprfx\\2 \\2"
8284
8285 # Write the raw and C identifiers.
8286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8287 # Fake it for dumpbin and say T for any non-static function,
8288 # D for any global variable and I for any imported variable.
8289 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8290 # which start with @ or ?.
8291 lt_cv_sys_global_symbol_pipe="$AWK '"\
8292 " {last_section=section; section=\$ 3};"\
8293 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8294 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8295 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8296 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8297 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8298 " \$ 0!~/External *\|/{next};"\
8299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8300 " {if(hide[section]) next};"\
8301 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8302 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8303 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8304 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8305 " ' prfx=^$ac_symprfx"
8306 else
8307 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8308 fi
8309 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8310
8311 # Check to see that the pipe works correctly.
8312 pipe_works=no
8313
8314 rm -f conftest*
8315 cat > conftest.$ac_ext <<_LT_EOF
8316 #ifdef __cplusplus
8317 extern "C" {
8318 #endif
8319 char nm_test_var;
8320 void nm_test_func(void);
8321 void nm_test_func(void){}
8322 #ifdef __cplusplus
8323 }
8324 #endif
8325 int main(void){nm_test_var='a';nm_test_func();return(0);}
8326 _LT_EOF
8327
8328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8329 (eval $ac_compile) 2>&5
8330 ac_status=$?
8331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8332 test $ac_status = 0; }; then
8333 # Now try to grab the symbols.
8334 nlist=conftest.nm
8335 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8336 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8337 # Try sorting and uniquifying the output.
8338 if sort "$nlist" | uniq > "$nlist"T; then
8339 mv -f "$nlist"T "$nlist"
8340 else
8341 rm -f "$nlist"T
8342 fi
8343
8344 # Make sure that we snagged all the symbols we need.
8345 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8346 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8347 cat <<_LT_EOF > conftest.$ac_ext
8348 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8349 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8350 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8351 relocations are performed -- see ld's documentation on pseudo-relocs. */
8352 # define LT_DLSYM_CONST
8353 #elif defined __osf__
8354 /* This system does not cope well with relocations in const data. */
8355 # define LT_DLSYM_CONST
8356 #else
8357 # define LT_DLSYM_CONST const
8358 #endif
8359
8360 #ifdef __cplusplus
8361 extern "C" {
8362 #endif
8363
8364 _LT_EOF
8365 # Now generate the symbol file.
8366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8367
8368 cat <<_LT_EOF >> conftest.$ac_ext
8369
8370 /* The mapping between symbol names and symbols. */
8371 LT_DLSYM_CONST struct {
8372 const char *name;
8373 void *address;
8374 }
8375 lt__PROGRAM__LTX_preloaded_symbols[] =
8376 {
8377 { "@PROGRAM@", (void *) 0 },
8378 _LT_EOF
8379 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8380 cat <<\_LT_EOF >> conftest.$ac_ext
8381 {0, (void *) 0}
8382 };
8383
8384 /* This works around a problem in FreeBSD linker */
8385 #ifdef FREEBSD_WORKAROUND
8386 static const void *lt_preloaded_setup() {
8387 return lt__PROGRAM__LTX_preloaded_symbols;
8388 }
8389 #endif
8390
8391 #ifdef __cplusplus
8392 }
8393 #endif
8394 _LT_EOF
8395 # Now try linking the two files.
8396 mv conftest.$ac_objext conftstm.$ac_objext
8397 lt_globsym_save_LIBS=$LIBS
8398 lt_globsym_save_CFLAGS=$CFLAGS
8399 LIBS=conftstm.$ac_objext
8400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8402 (eval $ac_link) 2>&5
8403 ac_status=$?
8404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8405 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8406 pipe_works=yes
8407 fi
8408 LIBS=$lt_globsym_save_LIBS
8409 CFLAGS=$lt_globsym_save_CFLAGS
8410 else
8411 echo "cannot find nm_test_func in $nlist" >&5
8412 fi
8413 else
8414 echo "cannot find nm_test_var in $nlist" >&5
8415 fi
8416 else
8417 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8418 fi
8419 else
8420 echo "$progname: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 fi
8423 rm -rf conftest* conftst*
8424
8425 # Do not use the global_symbol_pipe unless it works.
8426 if test yes = "$pipe_works"; then
8427 break
8428 else
8429 lt_cv_sys_global_symbol_pipe=
8430 fi
8431 done
8432 ;;
8433 esac
8434 fi
8435
8436 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8437 lt_cv_sys_global_symbol_to_cdecl=
8438 fi
8439 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8441 printf "%s\n" "failed" >&6; }
8442 else
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8444 printf "%s\n" "ok" >&6; }
8445 fi
8446
8447 # Response file support.
8448 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8449 nm_file_list_spec='@'
8450 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8451 nm_file_list_spec='@'
8452 fi
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8491 printf %s "checking for sysroot... " >&6; }
8492
8493 # Check whether --with-sysroot was given.
8494 if test ${with_sysroot+y}
8495 then :
8496 withval=$with_sysroot;
8497 else case e in #(
8498 e) with_sysroot=no ;;
8499 esac
8500 fi
8501
8502
8503 lt_sysroot=
8504 case $with_sysroot in #(
8505 yes)
8506 if test yes = "$GCC"; then
8507 # Trim trailing / since we'll always append absolute paths and we want
8508 # to avoid //, if only for less confusing output for the user.
8509 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8510 fi
8511 ;; #(
8512 /*)
8513 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8514 ;; #(
8515 no|'')
8516 ;; #(
8517 *)
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8519 printf "%s\n" "$with_sysroot" >&6; }
8520 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8521 ;;
8522 esac
8523
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8525 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8526
8527
8528
8529
8530
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8532 printf %s "checking for a working dd... " >&6; }
8533 if test ${ac_cv_path_lt_DD+y}
8534 then :
8535 printf %s "(cached) " >&6
8536 else case e in #(
8537 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8538 cat conftest.i conftest.i >conftest2.i
8539 : ${lt_DD:=$DD}
8540 if test -z "$lt_DD"; then
8541 ac_path_lt_DD_found=false
8542 # Loop through the user's path and test for each of PROGNAME-LIST
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546 IFS=$as_save_IFS
8547 case $as_dir in #(((
8548 '') as_dir=./ ;;
8549 */) ;;
8550 *) as_dir=$as_dir/ ;;
8551 esac
8552 for ac_prog in dd
8553 do
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8556 as_fn_executable_p "$ac_path_lt_DD" || continue
8557 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8558 cmp -s conftest.i conftest.out \
8559 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8560 fi
8561 $ac_path_lt_DD_found && break 3
8562 done
8563 done
8564 done
8565 IFS=$as_save_IFS
8566 if test -z "$ac_cv_path_lt_DD"; then
8567 :
8568 fi
8569 else
8570 ac_cv_path_lt_DD=$lt_DD
8571 fi
8572
8573 rm -f conftest.i conftest2.i conftest.out ;;
8574 esac
8575 fi
8576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8577 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8578
8579
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8581 printf %s "checking how to truncate binary pipes... " >&6; }
8582 if test ${lt_cv_truncate_bin+y}
8583 then :
8584 printf %s "(cached) " >&6
8585 else case e in #(
8586 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8587 cat conftest.i conftest.i >conftest2.i
8588 lt_cv_truncate_bin=
8589 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8590 cmp -s conftest.i conftest.out \
8591 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8592 fi
8593 rm -f conftest.i conftest2.i conftest.out
8594 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8595 esac
8596 fi
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8598 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8599
8600
8601
8602
8603
8604
8605
8606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8607 func_cc_basename ()
8608 {
8609 for cc_temp in $*""; do
8610 case $cc_temp in
8611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8613 \-*) ;;
8614 *) break;;
8615 esac
8616 done
8617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8618 }
8619
8620 # Check whether --enable-libtool-lock was given.
8621 if test ${enable_libtool_lock+y}
8622 then :
8623 enableval=$enable_libtool_lock;
8624 fi
8625
8626 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8627
8628 # Some flags need to be propagated to the compiler or linker for good
8629 # libtool support.
8630 case $host in
8631 ia64-*-hpux*)
8632 # Find out what ABI is being produced by ac_compile, and set mode
8633 # options accordingly.
8634 echo 'int i;' > conftest.$ac_ext
8635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8636 (eval $ac_compile) 2>&5
8637 ac_status=$?
8638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8639 test $ac_status = 0; }; then
8640 case `$FILECMD conftest.$ac_objext` in
8641 *ELF-32*)
8642 HPUX_IA64_MODE=32
8643 ;;
8644 *ELF-64*)
8645 HPUX_IA64_MODE=64
8646 ;;
8647 esac
8648 fi
8649 rm -rf conftest*
8650 ;;
8651 *-*-irix6*)
8652 # Find out what ABI is being produced by ac_compile, and set linker
8653 # options accordingly.
8654 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8656 (eval $ac_compile) 2>&5
8657 ac_status=$?
8658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659 test $ac_status = 0; }; then
8660 if test yes = "$lt_cv_prog_gnu_ld"; then
8661 case `$FILECMD conftest.$ac_objext` in
8662 *32-bit*)
8663 LD="${LD-ld} -melf32bsmip"
8664 ;;
8665 *N32*)
8666 LD="${LD-ld} -melf32bmipn32"
8667 ;;
8668 *64-bit*)
8669 LD="${LD-ld} -melf64bmip"
8670 ;;
8671 esac
8672 else
8673 case `$FILECMD conftest.$ac_objext` in
8674 *32-bit*)
8675 LD="${LD-ld} -32"
8676 ;;
8677 *N32*)
8678 LD="${LD-ld} -n32"
8679 ;;
8680 *64-bit*)
8681 LD="${LD-ld} -64"
8682 ;;
8683 esac
8684 fi
8685 fi
8686 rm -rf conftest*
8687 ;;
8688
8689 mips64*-*linux*)
8690 # Find out what ABI is being produced by ac_compile, and set linker
8691 # options accordingly.
8692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8694 (eval $ac_compile) 2>&5
8695 ac_status=$?
8696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8697 test $ac_status = 0; }; then
8698 emul=elf
8699 case `$FILECMD conftest.$ac_objext` in
8700 *32-bit*)
8701 emul="${emul}32"
8702 ;;
8703 *64-bit*)
8704 emul="${emul}64"
8705 ;;
8706 esac
8707 case `$FILECMD conftest.$ac_objext` in
8708 *MSB*)
8709 emul="${emul}btsmip"
8710 ;;
8711 *LSB*)
8712 emul="${emul}ltsmip"
8713 ;;
8714 esac
8715 case `$FILECMD conftest.$ac_objext` in
8716 *N32*)
8717 emul="${emul}n32"
8718 ;;
8719 esac
8720 LD="${LD-ld} -m $emul"
8721 fi
8722 rm -rf conftest*
8723 ;;
8724
8725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8727 # Find out what ABI is being produced by ac_compile, and set linker
8728 # options accordingly. Note that the listed cases only cover the
8729 # situations where additional linker options are needed (such as when
8730 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8731 # vice versa); the common cases where no linker options are needed do
8732 # not appear in the list.
8733 echo 'int i;' > conftest.$ac_ext
8734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8735 (eval $ac_compile) 2>&5
8736 ac_status=$?
8737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8738 test $ac_status = 0; }; then
8739 case `$FILECMD conftest.o` in
8740 *32-bit*)
8741 case $host in
8742 x86_64-*kfreebsd*-gnu)
8743 LD="${LD-ld} -m elf_i386_fbsd"
8744 ;;
8745 x86_64-*linux*|x86_64-gnu*)
8746 case `$FILECMD conftest.o` in
8747 *x86-64*)
8748 LD="${LD-ld} -m elf32_x86_64"
8749 ;;
8750 *)
8751 LD="${LD-ld} -m elf_i386"
8752 ;;
8753 esac
8754 ;;
8755 powerpc64le-*linux*)
8756 LD="${LD-ld} -m elf32lppclinux"
8757 ;;
8758 powerpc64-*linux*)
8759 LD="${LD-ld} -m elf32ppclinux"
8760 ;;
8761 s390x-*linux*)
8762 LD="${LD-ld} -m elf_s390"
8763 ;;
8764 sparc64-*linux*)
8765 LD="${LD-ld} -m elf32_sparc"
8766 ;;
8767 esac
8768 ;;
8769 *64-bit*)
8770 case $host in
8771 x86_64-*kfreebsd*-gnu)
8772 LD="${LD-ld} -m elf_x86_64_fbsd"
8773 ;;
8774 x86_64-*linux*|x86_64-gnu*)
8775 LD="${LD-ld} -m elf_x86_64"
8776 ;;
8777 powerpcle-*linux*)
8778 LD="${LD-ld} -m elf64lppc"
8779 ;;
8780 powerpc-*linux*)
8781 LD="${LD-ld} -m elf64ppc"
8782 ;;
8783 s390*-*linux*|s390*-*tpf*)
8784 LD="${LD-ld} -m elf64_s390"
8785 ;;
8786 sparc*-*linux*)
8787 LD="${LD-ld} -m elf64_sparc"
8788 ;;
8789 esac
8790 ;;
8791 esac
8792 fi
8793 rm -rf conftest*
8794 ;;
8795
8796 *-*-sco3.2v5*)
8797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8798 SAVE_CFLAGS=$CFLAGS
8799 CFLAGS="$CFLAGS -belf"
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8801 printf %s "checking whether the C compiler needs -belf... " >&6; }
8802 if test ${lt_cv_cc_needs_belf+y}
8803 then :
8804 printf %s "(cached) " >&6
8805 else case e in #(
8806 e) ac_ext=c
8807 ac_cpp='$CPP $CPPFLAGS'
8808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8811
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814
8815 int
8816 main (void)
8817 {
8818
8819 ;
8820 return 0;
8821 }
8822 _ACEOF
8823 if ac_fn_c_try_link "$LINENO"
8824 then :
8825 lt_cv_cc_needs_belf=yes
8826 else case e in #(
8827 e) lt_cv_cc_needs_belf=no ;;
8828 esac
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8831 conftest$ac_exeext conftest.$ac_ext
8832 ac_ext=c
8833 ac_cpp='$CPP $CPPFLAGS'
8834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837 ;;
8838 esac
8839 fi
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8841 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8842 if test yes != "$lt_cv_cc_needs_belf"; then
8843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8844 CFLAGS=$SAVE_CFLAGS
8845 fi
8846 ;;
8847 *-*solaris*)
8848 # Find out what ABI is being produced by ac_compile, and set linker
8849 # options accordingly.
8850 echo 'int i;' > conftest.$ac_ext
8851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8852 (eval $ac_compile) 2>&5
8853 ac_status=$?
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8855 test $ac_status = 0; }; then
8856 case `$FILECMD conftest.o` in
8857 *64-bit*)
8858 case $lt_cv_prog_gnu_ld in
8859 yes*)
8860 case $host in
8861 i?86-*-solaris*|x86_64-*-solaris*)
8862 LD="${LD-ld} -m elf_x86_64"
8863 ;;
8864 sparc*-*-solaris*)
8865 LD="${LD-ld} -m elf64_sparc"
8866 ;;
8867 esac
8868 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8869 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8870 LD=${LD-ld}_sol2
8871 fi
8872 ;;
8873 *)
8874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8875 LD="${LD-ld} -64"
8876 fi
8877 ;;
8878 esac
8879 ;;
8880 esac
8881 fi
8882 rm -rf conftest*
8883 ;;
8884 esac
8885
8886 need_locks=$enable_libtool_lock
8887
8888 if test -n "$ac_tool_prefix"; then
8889 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8890 set dummy ${ac_tool_prefix}mt; ac_word=$2
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 printf %s "checking for $ac_word... " >&6; }
8893 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else case e in #(
8897 e) if test -n "$MANIFEST_TOOL"; then
8898 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8899 else
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903 IFS=$as_save_IFS
8904 case $as_dir in #(((
8905 '') as_dir=./ ;;
8906 */) ;;
8907 *) as_dir=$as_dir/ ;;
8908 esac
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi ;;
8920 esac
8921 fi
8922 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8923 if test -n "$MANIFEST_TOOL"; then
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8925 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8926 else
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 printf "%s\n" "no" >&6; }
8929 fi
8930
8931
8932 fi
8933 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8934 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8935 # Extract the first word of "mt", so it can be a program name with args.
8936 set dummy mt; ac_word=$2
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 printf %s "checking for $ac_word... " >&6; }
8939 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else case e in #(
8943 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8944 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949 IFS=$as_save_IFS
8950 case $as_dir in #(((
8951 '') as_dir=./ ;;
8952 */) ;;
8953 *) as_dir=$as_dir/ ;;
8954 esac
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8959 break 2
8960 fi
8961 done
8962 done
8963 IFS=$as_save_IFS
8964
8965 fi ;;
8966 esac
8967 fi
8968 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8969 if test -n "$ac_ct_MANIFEST_TOOL"; then
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8971 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then
8978 MANIFEST_TOOL=":"
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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8987 fi
8988 else
8989 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8990 fi
8991
8992 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8994 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8995 if test ${lt_cv_path_manifest_tool+y}
8996 then :
8997 printf %s "(cached) " >&6
8998 else case e in #(
8999 e) lt_cv_path_manifest_tool=no
9000 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9001 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9002 cat conftest.err >&5
9003 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9004 lt_cv_path_manifest_tool=yes
9005 fi
9006 rm -f conftest* ;;
9007 esac
9008 fi
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9010 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9011 if test yes != "$lt_cv_path_manifest_tool"; then
9012 MANIFEST_TOOL=:
9013 fi
9014
9015
9016
9017
9018
9019
9020 case $host_os in
9021 rhapsody* | darwin*)
9022 if test -n "$ac_tool_prefix"; then
9023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 printf %s "checking for $ac_word... " >&6; }
9027 if test ${ac_cv_prog_DSYMUTIL+y}
9028 then :
9029 printf %s "(cached) " >&6
9030 else case e in #(
9031 e) if test -n "$DSYMUTIL"; then
9032 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9033 else
9034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035 for as_dir in $PATH
9036 do
9037 IFS=$as_save_IFS
9038 case $as_dir in #(((
9039 '') as_dir=./ ;;
9040 */) ;;
9041 *) as_dir=$as_dir/ ;;
9042 esac
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9047 break 2
9048 fi
9049 done
9050 done
9051 IFS=$as_save_IFS
9052
9053 fi ;;
9054 esac
9055 fi
9056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9057 if test -n "$DSYMUTIL"; then
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9059 printf "%s\n" "$DSYMUTIL" >&6; }
9060 else
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 printf "%s\n" "no" >&6; }
9063 fi
9064
9065
9066 fi
9067 if test -z "$ac_cv_prog_DSYMUTIL"; then
9068 ac_ct_DSYMUTIL=$DSYMUTIL
9069 # Extract the first word of "dsymutil", so it can be a program name with args.
9070 set dummy dsymutil; ac_word=$2
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 printf %s "checking for $ac_word... " >&6; }
9073 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9074 then :
9075 printf %s "(cached) " >&6
9076 else case e in #(
9077 e) if test -n "$ac_ct_DSYMUTIL"; then
9078 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083 IFS=$as_save_IFS
9084 case $as_dir in #(((
9085 '') as_dir=./ ;;
9086 */) ;;
9087 *) as_dir=$as_dir/ ;;
9088 esac
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095 done
9096 done
9097 IFS=$as_save_IFS
9098
9099 fi ;;
9100 esac
9101 fi
9102 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9103 if test -n "$ac_ct_DSYMUTIL"; then
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9105 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9106 else
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 printf "%s\n" "no" >&6; }
9109 fi
9110
9111 if test "x$ac_ct_DSYMUTIL" = x; then
9112 DSYMUTIL=":"
9113 else
9114 case $cross_compiling:$ac_tool_warned in
9115 yes:)
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9118 ac_tool_warned=yes ;;
9119 esac
9120 DSYMUTIL=$ac_ct_DSYMUTIL
9121 fi
9122 else
9123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9124 fi
9125
9126 if test -n "$ac_tool_prefix"; then
9127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 printf %s "checking for $ac_word... " >&6; }
9131 if test ${ac_cv_prog_NMEDIT+y}
9132 then :
9133 printf %s "(cached) " >&6
9134 else case e in #(
9135 e) if test -n "$NMEDIT"; then
9136 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141 IFS=$as_save_IFS
9142 case $as_dir in #(((
9143 '') as_dir=./ ;;
9144 */) ;;
9145 *) as_dir=$as_dir/ ;;
9146 esac
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153 done
9154 done
9155 IFS=$as_save_IFS
9156
9157 fi ;;
9158 esac
9159 fi
9160 NMEDIT=$ac_cv_prog_NMEDIT
9161 if test -n "$NMEDIT"; then
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9163 printf "%s\n" "$NMEDIT" >&6; }
9164 else
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9167 fi
9168
9169
9170 fi
9171 if test -z "$ac_cv_prog_NMEDIT"; then
9172 ac_ct_NMEDIT=$NMEDIT
9173 # Extract the first word of "nmedit", so it can be a program name with args.
9174 set dummy nmedit; ac_word=$2
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 printf %s "checking for $ac_word... " >&6; }
9177 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9178 then :
9179 printf %s "(cached) " >&6
9180 else case e in #(
9181 e) if test -n "$ac_ct_NMEDIT"; then
9182 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187 IFS=$as_save_IFS
9188 case $as_dir in #(((
9189 '') as_dir=./ ;;
9190 */) ;;
9191 *) as_dir=$as_dir/ ;;
9192 esac
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9195 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9197 break 2
9198 fi
9199 done
9200 done
9201 IFS=$as_save_IFS
9202
9203 fi ;;
9204 esac
9205 fi
9206 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9207 if test -n "$ac_ct_NMEDIT"; then
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9209 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9210 else
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 printf "%s\n" "no" >&6; }
9213 fi
9214
9215 if test "x$ac_ct_NMEDIT" = x; then
9216 NMEDIT=":"
9217 else
9218 case $cross_compiling:$ac_tool_warned in
9219 yes:)
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9222 ac_tool_warned=yes ;;
9223 esac
9224 NMEDIT=$ac_ct_NMEDIT
9225 fi
9226 else
9227 NMEDIT="$ac_cv_prog_NMEDIT"
9228 fi
9229
9230 if test -n "$ac_tool_prefix"; then
9231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 printf %s "checking for $ac_word... " >&6; }
9235 if test ${ac_cv_prog_LIPO+y}
9236 then :
9237 printf %s "(cached) " >&6
9238 else case e in #(
9239 e) if test -n "$LIPO"; then
9240 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9241 else
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9244 do
9245 IFS=$as_save_IFS
9246 case $as_dir in #(((
9247 '') as_dir=./ ;;
9248 */) ;;
9249 *) as_dir=$as_dir/ ;;
9250 esac
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9253 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257 done
9258 done
9259 IFS=$as_save_IFS
9260
9261 fi ;;
9262 esac
9263 fi
9264 LIPO=$ac_cv_prog_LIPO
9265 if test -n "$LIPO"; then
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9267 printf "%s\n" "$LIPO" >&6; }
9268 else
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 printf "%s\n" "no" >&6; }
9271 fi
9272
9273
9274 fi
9275 if test -z "$ac_cv_prog_LIPO"; then
9276 ac_ct_LIPO=$LIPO
9277 # Extract the first word of "lipo", so it can be a program name with args.
9278 set dummy lipo; ac_word=$2
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 printf %s "checking for $ac_word... " >&6; }
9281 if test ${ac_cv_prog_ac_ct_LIPO+y}
9282 then :
9283 printf %s "(cached) " >&6
9284 else case e in #(
9285 e) if test -n "$ac_ct_LIPO"; then
9286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9290 do
9291 IFS=$as_save_IFS
9292 case $as_dir in #(((
9293 '') as_dir=./ ;;
9294 */) ;;
9295 *) as_dir=$as_dir/ ;;
9296 esac
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_ac_ct_LIPO="lipo"
9300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9301 break 2
9302 fi
9303 done
9304 done
9305 IFS=$as_save_IFS
9306
9307 fi ;;
9308 esac
9309 fi
9310 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9311 if test -n "$ac_ct_LIPO"; then
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9313 printf "%s\n" "$ac_ct_LIPO" >&6; }
9314 else
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 printf "%s\n" "no" >&6; }
9317 fi
9318
9319 if test "x$ac_ct_LIPO" = x; then
9320 LIPO=":"
9321 else
9322 case $cross_compiling:$ac_tool_warned in
9323 yes:)
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9326 ac_tool_warned=yes ;;
9327 esac
9328 LIPO=$ac_ct_LIPO
9329 fi
9330 else
9331 LIPO="$ac_cv_prog_LIPO"
9332 fi
9333
9334 if test -n "$ac_tool_prefix"; then
9335 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9336 set dummy ${ac_tool_prefix}otool; ac_word=$2
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9338 printf %s "checking for $ac_word... " >&6; }
9339 if test ${ac_cv_prog_OTOOL+y}
9340 then :
9341 printf %s "(cached) " >&6
9342 else case e in #(
9343 e) if test -n "$OTOOL"; then
9344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349 IFS=$as_save_IFS
9350 case $as_dir in #(((
9351 '') as_dir=./ ;;
9352 */) ;;
9353 *) as_dir=$as_dir/ ;;
9354 esac
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9357 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9359 break 2
9360 fi
9361 done
9362 done
9363 IFS=$as_save_IFS
9364
9365 fi ;;
9366 esac
9367 fi
9368 OTOOL=$ac_cv_prog_OTOOL
9369 if test -n "$OTOOL"; then
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9371 printf "%s\n" "$OTOOL" >&6; }
9372 else
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 printf "%s\n" "no" >&6; }
9375 fi
9376
9377
9378 fi
9379 if test -z "$ac_cv_prog_OTOOL"; then
9380 ac_ct_OTOOL=$OTOOL
9381 # Extract the first word of "otool", so it can be a program name with args.
9382 set dummy otool; ac_word=$2
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 printf %s "checking for $ac_word... " >&6; }
9385 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9386 then :
9387 printf %s "(cached) " >&6
9388 else case e in #(
9389 e) if test -n "$ac_ct_OTOOL"; then
9390 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395 IFS=$as_save_IFS
9396 case $as_dir in #(((
9397 '') as_dir=./ ;;
9398 */) ;;
9399 *) as_dir=$as_dir/ ;;
9400 esac
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_ac_ct_OTOOL="otool"
9404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407 done
9408 done
9409 IFS=$as_save_IFS
9410
9411 fi ;;
9412 esac
9413 fi
9414 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9415 if test -n "$ac_ct_OTOOL"; then
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9417 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9418 else
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 printf "%s\n" "no" >&6; }
9421 fi
9422
9423 if test "x$ac_ct_OTOOL" = x; then
9424 OTOOL=":"
9425 else
9426 case $cross_compiling:$ac_tool_warned in
9427 yes:)
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9430 ac_tool_warned=yes ;;
9431 esac
9432 OTOOL=$ac_ct_OTOOL
9433 fi
9434 else
9435 OTOOL="$ac_cv_prog_OTOOL"
9436 fi
9437
9438 if test -n "$ac_tool_prefix"; then
9439 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9440 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 printf %s "checking for $ac_word... " >&6; }
9443 if test ${ac_cv_prog_OTOOL64+y}
9444 then :
9445 printf %s "(cached) " >&6
9446 else case e in #(
9447 e) if test -n "$OTOOL64"; then
9448 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9449 else
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9452 do
9453 IFS=$as_save_IFS
9454 case $as_dir in #(((
9455 '') as_dir=./ ;;
9456 */) ;;
9457 *) as_dir=$as_dir/ ;;
9458 esac
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9463 break 2
9464 fi
9465 done
9466 done
9467 IFS=$as_save_IFS
9468
9469 fi ;;
9470 esac
9471 fi
9472 OTOOL64=$ac_cv_prog_OTOOL64
9473 if test -n "$OTOOL64"; then
9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9475 printf "%s\n" "$OTOOL64" >&6; }
9476 else
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 printf "%s\n" "no" >&6; }
9479 fi
9480
9481
9482 fi
9483 if test -z "$ac_cv_prog_OTOOL64"; then
9484 ac_ct_OTOOL64=$OTOOL64
9485 # Extract the first word of "otool64", so it can be a program name with args.
9486 set dummy otool64; ac_word=$2
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 printf %s "checking for $ac_word... " >&6; }
9489 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9490 then :
9491 printf %s "(cached) " >&6
9492 else case e in #(
9493 e) if test -n "$ac_ct_OTOOL64"; then
9494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9495 else
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9498 do
9499 IFS=$as_save_IFS
9500 case $as_dir in #(((
9501 '') as_dir=./ ;;
9502 */) ;;
9503 *) as_dir=$as_dir/ ;;
9504 esac
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9507 ac_cv_prog_ac_ct_OTOOL64="otool64"
9508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9509 break 2
9510 fi
9511 done
9512 done
9513 IFS=$as_save_IFS
9514
9515 fi ;;
9516 esac
9517 fi
9518 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9519 if test -n "$ac_ct_OTOOL64"; then
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9521 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9522 else
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 printf "%s\n" "no" >&6; }
9525 fi
9526
9527 if test "x$ac_ct_OTOOL64" = x; then
9528 OTOOL64=":"
9529 else
9530 case $cross_compiling:$ac_tool_warned in
9531 yes:)
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9534 ac_tool_warned=yes ;;
9535 esac
9536 OTOOL64=$ac_ct_OTOOL64
9537 fi
9538 else
9539 OTOOL64="$ac_cv_prog_OTOOL64"
9540 fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9569 printf %s "checking for -single_module linker flag... " >&6; }
9570 if test ${lt_cv_apple_cc_single_mod+y}
9571 then :
9572 printf %s "(cached) " >&6
9573 else case e in #(
9574 e) lt_cv_apple_cc_single_mod=no
9575 if test -z "$LT_MULTI_MODULE"; then
9576 # By default we will add the -single_module flag. You can override
9577 # by either setting the environment variable LT_MULTI_MODULE
9578 # non-empty at configure time, or by adding -multi_module to the
9579 # link flags.
9580 rm -rf libconftest.dylib*
9581 echo "int foo(void){return 1;}" > conftest.c
9582 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9583 -dynamiclib -Wl,-single_module conftest.c" >&5
9584 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9585 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9586 _lt_result=$?
9587 # If there is a non-empty error log, and "single_module"
9588 # appears in it, assume the flag caused a linker warning
9589 if test -s conftest.err && $GREP single_module conftest.err; then
9590 cat conftest.err >&5
9591 # Otherwise, if the output was created with a 0 exit code from
9592 # the compiler, it worked.
9593 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9594 lt_cv_apple_cc_single_mod=yes
9595 else
9596 cat conftest.err >&5
9597 fi
9598 rm -rf libconftest.dylib*
9599 rm -f conftest.*
9600 fi ;;
9601 esac
9602 fi
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9604 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9605
9606 # Feature test to disable chained fixups since it is not
9607 # compatible with '-undefined dynamic_lookup'
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9609 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9610 if test ${lt_cv_support_no_fixup_chains+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else case e in #(
9614 e) save_LDFLAGS=$LDFLAGS
9615 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618
9619 int
9620 main (void)
9621 {
9622
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"
9628 then :
9629 lt_cv_support_no_fixup_chains=yes
9630 else case e in #(
9631 e) lt_cv_support_no_fixup_chains=no
9632 ;;
9633 esac
9634 fi
9635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LDFLAGS=$save_LDFLAGS
9638
9639 ;;
9640 esac
9641 fi
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9643 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9644
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9646 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9647 if test ${lt_cv_ld_exported_symbols_list+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else case e in #(
9651 e) lt_cv_ld_exported_symbols_list=no
9652 save_LDFLAGS=$LDFLAGS
9653 echo "_main" > conftest.sym
9654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657
9658 int
9659 main (void)
9660 {
9661
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_link "$LINENO"
9667 then :
9668 lt_cv_ld_exported_symbols_list=yes
9669 else case e in #(
9670 e) lt_cv_ld_exported_symbols_list=no ;;
9671 esac
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LDFLAGS=$save_LDFLAGS
9676 ;;
9677 esac
9678 fi
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9680 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9681
9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9683 printf %s "checking for -force_load linker flag... " >&6; }
9684 if test ${lt_cv_ld_force_load+y}
9685 then :
9686 printf %s "(cached) " >&6
9687 else case e in #(
9688 e) lt_cv_ld_force_load=no
9689 cat > conftest.c << _LT_EOF
9690 int forced_loaded() { return 2;}
9691 _LT_EOF
9692 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9693 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9694 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9695 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9696 echo "$RANLIB libconftest.a" >&5
9697 $RANLIB libconftest.a 2>&5
9698 cat > conftest.c << _LT_EOF
9699 int main(void) { return 0;}
9700 _LT_EOF
9701 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9702 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9703 _lt_result=$?
9704 if test -s conftest.err && $GREP force_load conftest.err; then
9705 cat conftest.err >&5
9706 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9707 lt_cv_ld_force_load=yes
9708 else
9709 cat conftest.err >&5
9710 fi
9711 rm -f conftest.err libconftest.a conftest conftest.c
9712 rm -rf conftest.dSYM
9713 ;;
9714 esac
9715 fi
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9717 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9718 case $host_os in
9719 rhapsody* | darwin1.[012])
9720 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9721 darwin1.*)
9722 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9723 darwin*)
9724 case $MACOSX_DEPLOYMENT_TARGET,$host in
9725 10.[012],*|,*powerpc*-darwin[5-8]*)
9726 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9727 *)
9728 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9729 if test yes = "$lt_cv_support_no_fixup_chains"; then
9730 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9731 fi
9732 ;;
9733 esac
9734 ;;
9735 esac
9736 if test yes = "$lt_cv_apple_cc_single_mod"; then
9737 _lt_dar_single_mod='$single_module'
9738 fi
9739 _lt_dar_needs_single_mod=no
9740 case $host_os in
9741 rhapsody* | darwin1.*)
9742 _lt_dar_needs_single_mod=yes ;;
9743 darwin*)
9744 # When targeting Mac OS X 10.4 (darwin 8) or later,
9745 # -single_module is the default and -multi_module is unsupported.
9746 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9747 # target any OS version that needs -single_module.
9748 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9749 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9750 _lt_dar_needs_single_mod=yes ;;
9751 esac
9752 ;;
9753 esac
9754 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9755 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9756 else
9757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9758 fi
9759 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9760 _lt_dsymutil='~$DSYMUTIL $lib || :'
9761 else
9762 _lt_dsymutil=
9763 fi
9764 ;;
9765 esac
9766
9767 # func_munge_path_list VARIABLE PATH
9768 # -----------------------------------
9769 # VARIABLE is name of variable containing _space_ separated list of
9770 # directories to be munged by the contents of PATH, which is string
9771 # having a format:
9772 # "DIR[:DIR]:"
9773 # string "DIR[ DIR]" will be prepended to VARIABLE
9774 # ":DIR[:DIR]"
9775 # string "DIR[ DIR]" will be appended to VARIABLE
9776 # "DIRP[:DIRP]::[DIRA:]DIRA"
9777 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9778 # "DIRA[ DIRA]" will be appended to VARIABLE
9779 # "DIR[:DIR]"
9780 # VARIABLE will be replaced by "DIR[ DIR]"
9781 func_munge_path_list ()
9782 {
9783 case x$2 in
9784 x)
9785 ;;
9786 *:)
9787 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9788 ;;
9789 x:*)
9790 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9791 ;;
9792 *::*)
9793 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9794 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9795 ;;
9796 *)
9797 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9798 ;;
9799 esac
9800 }
9801
9802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9803 "
9804 if test "x$ac_cv_header_dlfcn_h" = xyes
9805 then :
9806 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9807
9808 fi
9809
9810
9811
9812
9813 func_stripname_cnf ()
9814 {
9815 case $2 in
9816 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9817 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9818 esac
9819 } # func_stripname_cnf
9820
9821
9822
9823
9824
9825 # Set options
9826
9827
9828
9829 enable_dlopen=no
9830
9831
9832 enable_win32_dll=no
9833
9834
9835 # Check whether --enable-shared was given.
9836 if test ${enable_shared+y}
9837 then :
9838 enableval=$enable_shared; p=${PACKAGE-default}
9839 case $enableval in
9840 yes) enable_shared=yes ;;
9841 no) enable_shared=no ;;
9842 *)
9843 enable_shared=no
9844 # Look at the argument we got. We use all the common list separators.
9845 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9846 for pkg in $enableval; do
9847 IFS=$lt_save_ifs
9848 if test "X$pkg" = "X$p"; then
9849 enable_shared=yes
9850 fi
9851 done
9852 IFS=$lt_save_ifs
9853 ;;
9854 esac
9855 else case e in #(
9856 e) enable_shared=yes ;;
9857 esac
9858 fi
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868 # Check whether --enable-static was given.
9869 if test ${enable_static+y}
9870 then :
9871 enableval=$enable_static; p=${PACKAGE-default}
9872 case $enableval in
9873 yes) enable_static=yes ;;
9874 no) enable_static=no ;;
9875 *)
9876 enable_static=no
9877 # Look at the argument we got. We use all the common list separators.
9878 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9879 for pkg in $enableval; do
9880 IFS=$lt_save_ifs
9881 if test "X$pkg" = "X$p"; then
9882 enable_static=yes
9883 fi
9884 done
9885 IFS=$lt_save_ifs
9886 ;;
9887 esac
9888 else case e in #(
9889 e) enable_static=yes ;;
9890 esac
9891 fi
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901 # Check whether --enable-pic was given.
9902 if test ${enable_pic+y}
9903 then :
9904 enableval=$enable_pic; lt_p=${PACKAGE-default}
9905 case $enableval in
9906 yes|no) pic_mode=$enableval ;;
9907 *)
9908 pic_mode=default
9909 # Look at the argument we got. We use all the common list separators.
9910 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9911 for lt_pkg in $enableval; do
9912 IFS=$lt_save_ifs
9913 if test "X$lt_pkg" = "X$lt_p"; then
9914 pic_mode=yes
9915 fi
9916 done
9917 IFS=$lt_save_ifs
9918 ;;
9919 esac
9920 else case e in #(
9921 e) # Check whether --with-pic was given.
9922 if test ${with_pic+y}
9923 then :
9924 withval=$with_pic; lt_p=${PACKAGE-default}
9925 case $withval in
9926 yes|no) pic_mode=$withval ;;
9927 *)
9928 pic_mode=default
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9931 for lt_pkg in $withval; do
9932 IFS=$lt_save_ifs
9933 if test "X$lt_pkg" = "X$lt_p"; then
9934 pic_mode=yes
9935 fi
9936 done
9937 IFS=$lt_save_ifs
9938 ;;
9939 esac
9940 else case e in #(
9941 e) pic_mode=default ;;
9942 esac
9943 fi
9944
9945 ;;
9946 esac
9947 fi
9948
9949
9950
9951
9952
9953
9954
9955
9956 # Check whether --enable-fast-install was given.
9957 if test ${enable_fast_install+y}
9958 then :
9959 enableval=$enable_fast_install; p=${PACKAGE-default}
9960 case $enableval in
9961 yes) enable_fast_install=yes ;;
9962 no) enable_fast_install=no ;;
9963 *)
9964 enable_fast_install=no
9965 # Look at the argument we got. We use all the common list separators.
9966 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9967 for pkg in $enableval; do
9968 IFS=$lt_save_ifs
9969 if test "X$pkg" = "X$p"; then
9970 enable_fast_install=yes
9971 fi
9972 done
9973 IFS=$lt_save_ifs
9974 ;;
9975 esac
9976 else case e in #(
9977 e) enable_fast_install=yes ;;
9978 esac
9979 fi
9980
9981
9982
9983
9984
9985
9986
9987
9988 shared_archive_member_spec=
9989 case $host,$enable_shared in
9990 power*-*-aix[5-9]*,yes)
9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9992 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9993 # Check whether --enable-aix-soname was given.
9994 if test ${enable_aix_soname+y}
9995 then :
9996 enableval=$enable_aix_soname; case $enableval in
9997 aix|svr4|both)
9998 ;;
9999 *)
10000 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10001 ;;
10002 esac
10003 lt_cv_with_aix_soname=$enable_aix_soname
10004 else case e in #(
10005 e) # Check whether --with-aix-soname was given.
10006 if test ${with_aix_soname+y}
10007 then :
10008 withval=$with_aix_soname; case $withval in
10009 aix|svr4|both)
10010 ;;
10011 *)
10012 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10013 ;;
10014 esac
10015 lt_cv_with_aix_soname=$with_aix_soname
10016 else case e in #(
10017 e) if test ${lt_cv_with_aix_soname+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else case e in #(
10021 e) lt_cv_with_aix_soname=aix ;;
10022 esac
10023 fi
10024 ;;
10025 esac
10026 fi
10027
10028 enable_aix_soname=$lt_cv_with_aix_soname ;;
10029 esac
10030 fi
10031
10032 with_aix_soname=$enable_aix_soname
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10034 printf "%s\n" "$with_aix_soname" >&6; }
10035 if test aix != "$with_aix_soname"; then
10036 # For the AIX way of multilib, we name the shared archive member
10037 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10038 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10039 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10040 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10041 if test 64 = "${OBJECT_MODE-32}"; then
10042 shared_archive_member_spec=shr_64
10043 else
10044 shared_archive_member_spec=shr
10045 fi
10046 fi
10047 ;;
10048 *)
10049 with_aix_soname=aix
10050 ;;
10051 esac
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062 # This can be used to rebuild libtool when needed
10063 LIBTOOL_DEPS=$ltmain
10064
10065 # Always use our own libtool.
10066 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 test -z "$LN_S" && LN_S="ln -s"
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 if test -n "${ZSH_VERSION+set}"; then
10113 setopt NO_GLOB_SUBST
10114 fi
10115
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10117 printf %s "checking for objdir... " >&6; }
10118 if test ${lt_cv_objdir+y}
10119 then :
10120 printf %s "(cached) " >&6
10121 else case e in #(
10122 e) rm -f .libs 2>/dev/null
10123 mkdir .libs 2>/dev/null
10124 if test -d .libs; then
10125 lt_cv_objdir=.libs
10126 else
10127 # MS-DOS does not allow filenames that begin with a dot.
10128 lt_cv_objdir=_libs
10129 fi
10130 rmdir .libs 2>/dev/null ;;
10131 esac
10132 fi
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10134 printf "%s\n" "$lt_cv_objdir" >&6; }
10135 objdir=$lt_cv_objdir
10136
10137
10138
10139
10140
10141 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10142
10143
10144
10145
10146 case $host_os in
10147 aix3*)
10148 # AIX sometimes has problems with the GCC collect2 program. For some
10149 # reason, if we set the COLLECT_NAMES environment variable, the problems
10150 # vanish in a puff of smoke.
10151 if test set != "${COLLECT_NAMES+set}"; then
10152 COLLECT_NAMES=
10153 export COLLECT_NAMES
10154 fi
10155 ;;
10156 esac
10157
10158 # Global variables:
10159 ofile=libtool
10160 can_build_shared=yes
10161
10162 # All known linkers require a '.a' archive for static linking (except MSVC and
10163 # ICC, which need '.lib').
10164 libext=a
10165
10166 with_gnu_ld=$lt_cv_prog_gnu_ld
10167
10168 old_CC=$CC
10169 old_CFLAGS=$CFLAGS
10170
10171 # Set sane defaults for various variables
10172 test -z "$CC" && CC=cc
10173 test -z "$LTCC" && LTCC=$CC
10174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10175 test -z "$LD" && LD=ld
10176 test -z "$ac_objext" && ac_objext=o
10177
10178 func_cc_basename $compiler
10179 cc_basename=$func_cc_basename_result
10180
10181
10182 # Only perform the check for file, if the check method requires it
10183 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10184 case $deplibs_check_method in
10185 file_magic*)
10186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10188 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10189 if test ${lt_cv_path_MAGIC_CMD+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else case e in #(
10193 e) case $MAGIC_CMD in
10194 [\\/*] | ?:[\\/]*)
10195 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10196 ;;
10197 *)
10198 lt_save_MAGIC_CMD=$MAGIC_CMD
10199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10201 for ac_dir in $ac_dummy; do
10202 IFS=$lt_save_ifs
10203 test -z "$ac_dir" && ac_dir=.
10204 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10205 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10206 if test -n "$file_magic_test_file"; then
10207 case $deplibs_check_method in
10208 "file_magic "*)
10209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10212 $EGREP "$file_magic_regex" > /dev/null; then
10213 :
10214 else
10215 cat <<_LT_EOF 1>&2
10216
10217 *** Warning: the command libtool uses to detect shared libraries,
10218 *** $file_magic_cmd, produces output that libtool cannot recognize.
10219 *** The result is that libtool may fail to recognize shared libraries
10220 *** as such. This will affect the creation of libtool libraries that
10221 *** depend on shared libraries, but programs linked with such libtool
10222 *** libraries will work regardless of this problem. Nevertheless, you
10223 *** may want to report the problem to your system manager and/or to
10224 *** [email protected]
10225
10226 _LT_EOF
10227 fi ;;
10228 esac
10229 fi
10230 break
10231 fi
10232 done
10233 IFS=$lt_save_ifs
10234 MAGIC_CMD=$lt_save_MAGIC_CMD
10235 ;;
10236 esac ;;
10237 esac
10238 fi
10239
10240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10241 if test -n "$MAGIC_CMD"; then
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10243 printf "%s\n" "$MAGIC_CMD" >&6; }
10244 else
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 printf "%s\n" "no" >&6; }
10247 fi
10248
10249
10250
10251
10252
10253 if test -z "$lt_cv_path_MAGIC_CMD"; then
10254 if test -n "$ac_tool_prefix"; then
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10256 printf %s "checking for file... " >&6; }
10257 if test ${lt_cv_path_MAGIC_CMD+y}
10258 then :
10259 printf %s "(cached) " >&6
10260 else case e in #(
10261 e) case $MAGIC_CMD in
10262 [\\/*] | ?:[\\/]*)
10263 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10264 ;;
10265 *)
10266 lt_save_MAGIC_CMD=$MAGIC_CMD
10267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10269 for ac_dir in $ac_dummy; do
10270 IFS=$lt_save_ifs
10271 test -z "$ac_dir" && ac_dir=.
10272 if test -f "$ac_dir/file"; then
10273 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10274 if test -n "$file_magic_test_file"; then
10275 case $deplibs_check_method in
10276 "file_magic "*)
10277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10278 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10280 $EGREP "$file_magic_regex" > /dev/null; then
10281 :
10282 else
10283 cat <<_LT_EOF 1>&2
10284
10285 *** Warning: the command libtool uses to detect shared libraries,
10286 *** $file_magic_cmd, produces output that libtool cannot recognize.
10287 *** The result is that libtool may fail to recognize shared libraries
10288 *** as such. This will affect the creation of libtool libraries that
10289 *** depend on shared libraries, but programs linked with such libtool
10290 *** libraries will work regardless of this problem. Nevertheless, you
10291 *** may want to report the problem to your system manager and/or to
10292 *** [email protected]
10293
10294 _LT_EOF
10295 fi ;;
10296 esac
10297 fi
10298 break
10299 fi
10300 done
10301 IFS=$lt_save_ifs
10302 MAGIC_CMD=$lt_save_MAGIC_CMD
10303 ;;
10304 esac ;;
10305 esac
10306 fi
10307
10308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10309 if test -n "$MAGIC_CMD"; then
10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10311 printf "%s\n" "$MAGIC_CMD" >&6; }
10312 else
10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 printf "%s\n" "no" >&6; }
10315 fi
10316
10317
10318 else
10319 MAGIC_CMD=:
10320 fi
10321 fi
10322
10323 fi
10324 ;;
10325 esac
10326
10327 # Use C for the default configuration in the libtool script
10328
10329 lt_save_CC=$CC
10330 ac_ext=c
10331 ac_cpp='$CPP $CPPFLAGS'
10332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335
10336
10337 # Source file extension for C test sources.
10338 ac_ext=c
10339
10340 # Object file extension for compiled C test sources.
10341 objext=o
10342 objext=$objext
10343
10344 # Code to be used in simple compile tests
10345 lt_simple_compile_test_code="int some_variable = 0;"
10346
10347 # Code to be used in simple link tests
10348 lt_simple_link_test_code='int main(void){return(0);}'
10349
10350
10351
10352
10353
10354
10355
10356 # If no C compiler was specified, use CC.
10357 LTCC=${LTCC-"$CC"}
10358
10359 # If no C compiler flags were specified, use CFLAGS.
10360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10361
10362 # Allow CC to be a program name with arguments.
10363 compiler=$CC
10364
10365 # Save the default compiler, since it gets overwritten when the other
10366 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10367 compiler_DEFAULT=$CC
10368
10369 # save warnings/boilerplate of simple test code
10370 ac_outfile=conftest.$ac_objext
10371 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10373 _lt_compiler_boilerplate=`cat conftest.err`
10374 $RM conftest*
10375
10376 ac_outfile=conftest.$ac_objext
10377 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10379 _lt_linker_boilerplate=`cat conftest.err`
10380 $RM -r conftest*
10381
10382
10383 ## CAVEAT EMPTOR:
10384 ## There is no encapsulation within the following macros, do not change
10385 ## the running order or otherwise move them around unless you know exactly
10386 ## what you are doing...
10387 if test -n "$compiler"; then
10388
10389 lt_prog_compiler_no_builtin_flag=
10390
10391 if test yes = "$GCC"; then
10392 case $cc_basename in
10393 nvcc*)
10394 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10395 *)
10396 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10397 esac
10398
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10400 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10401 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10402 then :
10403 printf %s "(cached) " >&6
10404 else case e in #(
10405 e) lt_cv_prog_compiler_rtti_exceptions=no
10406 ac_outfile=conftest.$ac_objext
10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10408 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10409 # Insert the option either (1) after the last *FLAGS variable, or
10410 # (2) before a word containing "conftest.", or (3) at the end.
10411 # Note that $ac_compile itself does not contain backslashes and begins
10412 # with a dollar sign (not a hyphen), so the echo should work correctly.
10413 # The option is referenced via a variable to avoid confusing sed.
10414 lt_compile=`echo "$ac_compile" | $SED \
10415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10417 -e 's:$: $lt_compiler_flag:'`
10418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10419 (eval "$lt_compile" 2>conftest.err)
10420 ac_status=$?
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 if (exit $ac_status) && test -s "$ac_outfile"; then
10424 # The compiler can only warn and ignore the option if not recognized
10425 # So say no if there are warnings other than the usual output.
10426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10429 lt_cv_prog_compiler_rtti_exceptions=yes
10430 fi
10431 fi
10432 $RM conftest*
10433 ;;
10434 esac
10435 fi
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10437 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10438
10439 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10441 else
10442 :
10443 fi
10444
10445 fi
10446
10447
10448
10449
10450
10451
10452 lt_prog_compiler_wl=
10453 lt_prog_compiler_pic=
10454 lt_prog_compiler_static=
10455
10456
10457 if test yes = "$GCC"; then
10458 lt_prog_compiler_wl='-Wl,'
10459 lt_prog_compiler_static='-static'
10460
10461 case $host_os in
10462 aix*)
10463 # All AIX code is PIC.
10464 if test ia64 = "$host_cpu"; then
10465 # AIX 5 now supports IA64 processor
10466 lt_prog_compiler_static='-Bstatic'
10467 fi
10468 lt_prog_compiler_pic='-fPIC'
10469 ;;
10470
10471 amigaos*)
10472 case $host_cpu in
10473 powerpc)
10474 # see comment about AmigaOS4 .so support
10475 lt_prog_compiler_pic='-fPIC'
10476 ;;
10477 m68k)
10478 # FIXME: we need at least 68020 code to build shared libraries, but
10479 # adding the '-m68020' flag to GCC prevents building anything better,
10480 # like '-m68040'.
10481 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10482 ;;
10483 esac
10484 ;;
10485
10486 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10487 # PIC is the default for these OSes.
10488 ;;
10489
10490 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10491 # This hack is so that the source file can tell whether it is being
10492 # built for inclusion in a dll (and should export symbols for example).
10493 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10494 # (--disable-auto-import) libraries
10495 lt_prog_compiler_pic='-DDLL_EXPORT'
10496 case $host_os in
10497 os2*)
10498 lt_prog_compiler_static='$wl-static'
10499 ;;
10500 esac
10501 ;;
10502
10503 darwin* | rhapsody*)
10504 # PIC is the default on this platform
10505 # Common symbols not allowed in MH_DYLIB files
10506 lt_prog_compiler_pic='-fno-common'
10507 ;;
10508
10509 haiku*)
10510 # PIC is the default for Haiku.
10511 # The "-static" flag exists, but is broken.
10512 lt_prog_compiler_static=
10513 ;;
10514
10515 hpux*)
10516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10518 # sets the default TLS model and affects inlining.
10519 case $host_cpu in
10520 hppa*64*)
10521 # +Z the default
10522 ;;
10523 *)
10524 lt_prog_compiler_pic='-fPIC'
10525 ;;
10526 esac
10527 ;;
10528
10529 interix[3-9]*)
10530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10531 # Instead, we relocate shared libraries at runtime.
10532 ;;
10533
10534 msdosdjgpp*)
10535 # Just because we use GCC doesn't mean we suddenly get shared libraries
10536 # on systems that don't support them.
10537 lt_prog_compiler_can_build_shared=no
10538 enable_shared=no
10539 ;;
10540
10541 *nto* | *qnx*)
10542 # QNX uses GNU C++, but need to define -shared option too, otherwise
10543 # it will coredump.
10544 lt_prog_compiler_pic='-fPIC -shared'
10545 ;;
10546
10547 sysv4*MP*)
10548 if test -d /usr/nec; then
10549 lt_prog_compiler_pic=-Kconform_pic
10550 fi
10551 ;;
10552
10553 *)
10554 lt_prog_compiler_pic='-fPIC'
10555 ;;
10556 esac
10557
10558 case $cc_basename in
10559 nvcc*) # Cuda Compiler Driver 2.2
10560 lt_prog_compiler_wl='-Xlinker '
10561 if test -n "$lt_prog_compiler_pic"; then
10562 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10563 fi
10564 ;;
10565 esac
10566 else
10567 # PORTME Check for flag to pass linker flags through the system compiler.
10568 case $host_os in
10569 aix*)
10570 lt_prog_compiler_wl='-Wl,'
10571 if test ia64 = "$host_cpu"; then
10572 # AIX 5 now supports IA64 processor
10573 lt_prog_compiler_static='-Bstatic'
10574 else
10575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10576 fi
10577 ;;
10578
10579 darwin* | rhapsody*)
10580 # PIC is the default on this platform
10581 # Common symbols not allowed in MH_DYLIB files
10582 lt_prog_compiler_pic='-fno-common'
10583 case $cc_basename in
10584 nagfor*)
10585 # NAG Fortran compiler
10586 lt_prog_compiler_wl='-Wl,-Wl,,'
10587 lt_prog_compiler_pic='-PIC'
10588 lt_prog_compiler_static='-Bstatic'
10589 ;;
10590 esac
10591 ;;
10592
10593 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10594 # This hack is so that the source file can tell whether it is being
10595 # built for inclusion in a dll (and should export symbols for example).
10596 lt_prog_compiler_pic='-DDLL_EXPORT'
10597 case $host_os in
10598 os2*)
10599 lt_prog_compiler_static='$wl-static'
10600 ;;
10601 esac
10602 ;;
10603
10604 hpux9* | hpux10* | hpux11*)
10605 lt_prog_compiler_wl='-Wl,'
10606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10607 # not for PA HP-UX.
10608 case $host_cpu in
10609 hppa*64*|ia64*)
10610 # +Z the default
10611 ;;
10612 *)
10613 lt_prog_compiler_pic='+Z'
10614 ;;
10615 esac
10616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10617 lt_prog_compiler_static='$wl-a ${wl}archive'
10618 ;;
10619
10620 irix5* | irix6* | nonstopux*)
10621 lt_prog_compiler_wl='-Wl,'
10622 # PIC (with -KPIC) is the default.
10623 lt_prog_compiler_static='-non_shared'
10624 ;;
10625
10626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10627 case $cc_basename in
10628 # old Intel for x86_64, which still supported -KPIC.
10629 ecc*)
10630 lt_prog_compiler_wl='-Wl,'
10631 lt_prog_compiler_pic='-KPIC'
10632 lt_prog_compiler_static='-static'
10633 ;;
10634 *flang* | ftn | f18* | f95*)
10635 # Flang compiler.
10636 lt_prog_compiler_wl='-Wl,'
10637 lt_prog_compiler_pic='-fPIC'
10638 lt_prog_compiler_static='-static'
10639 ;;
10640 # flang / f18. f95 an alias for gfortran or flang on Debian
10641 flang* | f18* | f95*)
10642 lt_prog_compiler_wl='-Wl,'
10643 lt_prog_compiler_pic='-fPIC'
10644 lt_prog_compiler_static='-static'
10645 ;;
10646 # icc used to be incompatible with GCC.
10647 # ICC 10 doesn't accept -KPIC any more.
10648 icc* | ifort*)
10649 lt_prog_compiler_wl='-Wl,'
10650 lt_prog_compiler_pic='-fPIC'
10651 lt_prog_compiler_static='-static'
10652 ;;
10653 # Lahey Fortran 8.1.
10654 lf95*)
10655 lt_prog_compiler_wl='-Wl,'
10656 lt_prog_compiler_pic='--shared'
10657 lt_prog_compiler_static='--static'
10658 ;;
10659 nagfor*)
10660 # NAG Fortran compiler
10661 lt_prog_compiler_wl='-Wl,-Wl,,'
10662 lt_prog_compiler_pic='-PIC'
10663 lt_prog_compiler_static='-Bstatic'
10664 ;;
10665 tcc*)
10666 # Fabrice Bellard et al's Tiny C Compiler
10667 lt_prog_compiler_wl='-Wl,'
10668 lt_prog_compiler_pic='-fPIC'
10669 lt_prog_compiler_static='-static'
10670 ;;
10671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10672 # Portland Group compilers (*not* the Pentium gcc compiler,
10673 # which looks to be a dead project)
10674 lt_prog_compiler_wl='-Wl,'
10675 lt_prog_compiler_pic='-fpic'
10676 lt_prog_compiler_static='-Bstatic'
10677 ;;
10678 ccc*)
10679 lt_prog_compiler_wl='-Wl,'
10680 # All Alpha code is PIC.
10681 lt_prog_compiler_static='-non_shared'
10682 ;;
10683 xl* | bgxl* | bgf* | mpixl*)
10684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_pic='-qpic'
10687 lt_prog_compiler_static='-qstaticlink'
10688 ;;
10689 *)
10690 case `$CC -V 2>&1 | $SED 5q` in
10691 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10693 lt_prog_compiler_pic='-KPIC'
10694 lt_prog_compiler_static='-Bstatic'
10695 lt_prog_compiler_wl=''
10696 ;;
10697 *Sun\ F* | *Sun*Fortran*)
10698 lt_prog_compiler_pic='-KPIC'
10699 lt_prog_compiler_static='-Bstatic'
10700 lt_prog_compiler_wl='-Qoption ld '
10701 ;;
10702 *Sun\ C*)
10703 # Sun C 5.9
10704 lt_prog_compiler_pic='-KPIC'
10705 lt_prog_compiler_static='-Bstatic'
10706 lt_prog_compiler_wl='-Wl,'
10707 ;;
10708 *Intel*\ [CF]*Compiler*)
10709 lt_prog_compiler_wl='-Wl,'
10710 lt_prog_compiler_pic='-fPIC'
10711 lt_prog_compiler_static='-static'
10712 ;;
10713 *Portland\ Group*)
10714 lt_prog_compiler_wl='-Wl,'
10715 lt_prog_compiler_pic='-fpic'
10716 lt_prog_compiler_static='-Bstatic'
10717 ;;
10718 esac
10719 ;;
10720 esac
10721 ;;
10722
10723 newsos6)
10724 lt_prog_compiler_pic='-KPIC'
10725 lt_prog_compiler_static='-Bstatic'
10726 ;;
10727
10728 *-mlibc)
10729 lt_prog_compiler_wl='-Wl,'
10730 lt_prog_compiler_pic='-fPIC'
10731 lt_prog_compiler_static='-static'
10732 ;;
10733
10734 *nto* | *qnx*)
10735 # QNX uses GNU C++, but need to define -shared option too, otherwise
10736 # it will coredump.
10737 lt_prog_compiler_pic='-fPIC -shared'
10738 ;;
10739
10740 osf3* | osf4* | osf5*)
10741 lt_prog_compiler_wl='-Wl,'
10742 # All OSF/1 code is PIC.
10743 lt_prog_compiler_static='-non_shared'
10744 ;;
10745
10746 rdos*)
10747 lt_prog_compiler_static='-non_shared'
10748 ;;
10749
10750 serenity*)
10751 ;;
10752
10753 solaris*)
10754 lt_prog_compiler_pic='-KPIC'
10755 lt_prog_compiler_static='-Bstatic'
10756 case $cc_basename in
10757 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10758 lt_prog_compiler_wl='-Qoption ld ';;
10759 *)
10760 lt_prog_compiler_wl='-Wl,';;
10761 esac
10762 ;;
10763
10764 sunos4*)
10765 lt_prog_compiler_wl='-Qoption ld '
10766 lt_prog_compiler_pic='-PIC'
10767 lt_prog_compiler_static='-Bstatic'
10768 ;;
10769
10770 sysv4 | sysv4.2uw2* | sysv4.3*)
10771 lt_prog_compiler_wl='-Wl,'
10772 lt_prog_compiler_pic='-KPIC'
10773 lt_prog_compiler_static='-Bstatic'
10774 ;;
10775
10776 sysv4*MP*)
10777 if test -d /usr/nec; then
10778 lt_prog_compiler_pic='-Kconform_pic'
10779 lt_prog_compiler_static='-Bstatic'
10780 fi
10781 ;;
10782
10783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10784 lt_prog_compiler_wl='-Wl,'
10785 lt_prog_compiler_pic='-KPIC'
10786 lt_prog_compiler_static='-Bstatic'
10787 ;;
10788
10789 unicos*)
10790 lt_prog_compiler_wl='-Wl,'
10791 lt_prog_compiler_can_build_shared=no
10792 ;;
10793
10794 uts4*)
10795 lt_prog_compiler_pic='-pic'
10796 lt_prog_compiler_static='-Bstatic'
10797 ;;
10798
10799 *)
10800 lt_prog_compiler_can_build_shared=no
10801 ;;
10802 esac
10803 fi
10804
10805 case $host_os in
10806 # For platforms that do not support PIC, -DPIC is meaningless:
10807 *djgpp*)
10808 lt_prog_compiler_pic=
10809 ;;
10810 *)
10811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10812 ;;
10813 esac
10814
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10816 printf %s "checking for $compiler option to produce PIC... " >&6; }
10817 if test ${lt_cv_prog_compiler_pic+y}
10818 then :
10819 printf %s "(cached) " >&6
10820 else case e in #(
10821 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10822 esac
10823 fi
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10825 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10826 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10827
10828 #
10829 # Check to make sure the PIC flag actually works.
10830 #
10831 if test -n "$lt_prog_compiler_pic"; then
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10833 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10834 if test ${lt_cv_prog_compiler_pic_works+y}
10835 then :
10836 printf %s "(cached) " >&6
10837 else case e in #(
10838 e) lt_cv_prog_compiler_pic_works=no
10839 ac_outfile=conftest.$ac_objext
10840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10841 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10842 # Insert the option either (1) after the last *FLAGS variable, or
10843 # (2) before a word containing "conftest.", or (3) at the end.
10844 # Note that $ac_compile itself does not contain backslashes and begins
10845 # with a dollar sign (not a hyphen), so the echo should work correctly.
10846 # The option is referenced via a variable to avoid confusing sed.
10847 lt_compile=`echo "$ac_compile" | $SED \
10848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10850 -e 's:$: $lt_compiler_flag:'`
10851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10852 (eval "$lt_compile" 2>conftest.err)
10853 ac_status=$?
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 if (exit $ac_status) && test -s "$ac_outfile"; then
10857 # The compiler can only warn and ignore the option if not recognized
10858 # So say no if there are warnings other than the usual output.
10859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10862 lt_cv_prog_compiler_pic_works=yes
10863 fi
10864 fi
10865 $RM conftest*
10866 ;;
10867 esac
10868 fi
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10870 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10871
10872 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10873 case $lt_prog_compiler_pic in
10874 "" | " "*) ;;
10875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10876 esac
10877 else
10878 lt_prog_compiler_pic=
10879 lt_prog_compiler_can_build_shared=no
10880 fi
10881
10882 fi
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894 #
10895 # Check to make sure the static flag actually works.
10896 #
10897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10899 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10900 if test ${lt_cv_prog_compiler_static_works+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else case e in #(
10904 e) lt_cv_prog_compiler_static_works=no
10905 save_LDFLAGS=$LDFLAGS
10906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10909 # The linker can only warn and ignore the option if not recognized
10910 # So say no if there are warnings
10911 if test -s conftest.err; then
10912 # Append any errors to the config.log.
10913 cat conftest.err 1>&5
10914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10916 if diff conftest.exp conftest.er2 >/dev/null; then
10917 lt_cv_prog_compiler_static_works=yes
10918 fi
10919 else
10920 lt_cv_prog_compiler_static_works=yes
10921 fi
10922 fi
10923 $RM -r conftest*
10924 LDFLAGS=$save_LDFLAGS
10925 ;;
10926 esac
10927 fi
10928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10929 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10930
10931 if test yes = "$lt_cv_prog_compiler_static_works"; then
10932 :
10933 else
10934 lt_prog_compiler_static=
10935 fi
10936
10937
10938
10939
10940
10941
10942
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10944 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10945 if test ${lt_cv_prog_compiler_c_o+y}
10946 then :
10947 printf %s "(cached) " >&6
10948 else case e in #(
10949 e) lt_cv_prog_compiler_c_o=no
10950 $RM -r conftest 2>/dev/null
10951 mkdir conftest
10952 cd conftest
10953 mkdir out
10954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10955
10956 lt_compiler_flag="-o out/conftest2.$ac_objext"
10957 # Insert the option either (1) after the last *FLAGS variable, or
10958 # (2) before a word containing "conftest.", or (3) at the end.
10959 # Note that $ac_compile itself does not contain backslashes and begins
10960 # with a dollar sign (not a hyphen), so the echo should work correctly.
10961 lt_compile=`echo "$ac_compile" | $SED \
10962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10964 -e 's:$: $lt_compiler_flag:'`
10965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10966 (eval "$lt_compile" 2>out/conftest.err)
10967 ac_status=$?
10968 cat out/conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10971 then
10972 # The compiler can only warn and ignore the option if not recognized
10973 # So say no if there are warnings
10974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10977 lt_cv_prog_compiler_c_o=yes
10978 fi
10979 fi
10980 chmod u+w . 2>&5
10981 $RM conftest*
10982 # SGI C++ compiler will create directory out/ii_files/ for
10983 # template instantiation
10984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10985 $RM out/* && rmdir out
10986 cd ..
10987 $RM -r conftest
10988 $RM conftest*
10989 ;;
10990 esac
10991 fi
10992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10993 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10994
10995
10996
10997
10998
10999
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11001 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11002 if test ${lt_cv_prog_compiler_c_o+y}
11003 then :
11004 printf %s "(cached) " >&6
11005 else case e in #(
11006 e) lt_cv_prog_compiler_c_o=no
11007 $RM -r conftest 2>/dev/null
11008 mkdir conftest
11009 cd conftest
11010 mkdir out
11011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11012
11013 lt_compiler_flag="-o out/conftest2.$ac_objext"
11014 # Insert the option either (1) after the last *FLAGS variable, or
11015 # (2) before a word containing "conftest.", or (3) at the end.
11016 # Note that $ac_compile itself does not contain backslashes and begins
11017 # with a dollar sign (not a hyphen), so the echo should work correctly.
11018 lt_compile=`echo "$ac_compile" | $SED \
11019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11021 -e 's:$: $lt_compiler_flag:'`
11022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11023 (eval "$lt_compile" 2>out/conftest.err)
11024 ac_status=$?
11025 cat out/conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11028 then
11029 # The compiler can only warn and ignore the option if not recognized
11030 # So say no if there are warnings
11031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11032 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11033 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11034 lt_cv_prog_compiler_c_o=yes
11035 fi
11036 fi
11037 chmod u+w . 2>&5
11038 $RM conftest*
11039 # SGI C++ compiler will create directory out/ii_files/ for
11040 # template instantiation
11041 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11042 $RM out/* && rmdir out
11043 cd ..
11044 $RM -r conftest
11045 $RM conftest*
11046 ;;
11047 esac
11048 fi
11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11050 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11051
11052
11053
11054
11055 hard_links=nottested
11056 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11057 # do not overwrite the value of need_locks provided by the user
11058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11059 printf %s "checking if we can lock with hard links... " >&6; }
11060 hard_links=yes
11061 $RM conftest*
11062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11063 touch conftest.a
11064 ln conftest.a conftest.b 2>&5 || hard_links=no
11065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11067 printf "%s\n" "$hard_links" >&6; }
11068 if test no = "$hard_links"; then
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11070 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11071 need_locks=warn
11072 fi
11073 else
11074 need_locks=no
11075 fi
11076
11077
11078
11079
11080
11081
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11083 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11084
11085 runpath_var=
11086 allow_undefined_flag=
11087 always_export_symbols=no
11088 archive_cmds=
11089 archive_expsym_cmds=
11090 compiler_needs_object=no
11091 enable_shared_with_static_runtimes=no
11092 export_dynamic_flag_spec=
11093 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11094 hardcode_automatic=no
11095 hardcode_direct=no
11096 hardcode_direct_absolute=no
11097 hardcode_libdir_flag_spec=
11098 hardcode_libdir_separator=
11099 hardcode_minus_L=no
11100 hardcode_shlibpath_var=unsupported
11101 inherit_rpath=no
11102 link_all_deplibs=unknown
11103 module_cmds=
11104 module_expsym_cmds=
11105 old_archive_from_new_cmds=
11106 old_archive_from_expsyms_cmds=
11107 thread_safe_flag_spec=
11108 whole_archive_flag_spec=
11109 # include_expsyms should be a list of space-separated symbols to be *always*
11110 # included in the symbol list
11111 include_expsyms=
11112 # exclude_expsyms can be an extended regexp of symbols to exclude
11113 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11114 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11115 # as well as any symbol that contains 'd'.
11116 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11117 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11118 # platforms (ab)use it in PIC code, but their linkers get confused if
11119 # the symbol is explicitly referenced. Since portable code cannot
11120 # rely on this symbol name, it's probably fine to never include it in
11121 # preloaded symbol tables.
11122 # Exclude shared library initialization/finalization symbols.
11123 extract_expsyms_cmds=
11124
11125 case $host_os in
11126 cygwin* | mingw* | windows* | pw32* | cegcc*)
11127 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11128 # When not using gcc, we currently assume that we are using
11129 # Microsoft Visual C++ or Intel C++ Compiler.
11130 if test yes != "$GCC"; then
11131 with_gnu_ld=no
11132 fi
11133 ;;
11134 interix*)
11135 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11136 with_gnu_ld=yes
11137 ;;
11138 linux* | k*bsd*-gnu | gnu*)
11139 link_all_deplibs=no
11140 ;;
11141 esac
11142
11143 ld_shlibs=yes
11144
11145 # On some targets, GNU ld is compatible enough with the native linker
11146 # that we're better off using the native interface for both.
11147 lt_use_gnu_ld_interface=no
11148 if test yes = "$with_gnu_ld"; then
11149 case $host_os in
11150 aix*)
11151 # The AIX port of GNU ld has always aspired to compatibility
11152 # with the native linker. However, as the warning in the GNU ld
11153 # block says, versions before 2.19.5* couldn't really create working
11154 # shared libraries, regardless of the interface used.
11155 case `$LD -v 2>&1` in
11156 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11157 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11158 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11159 *)
11160 lt_use_gnu_ld_interface=yes
11161 ;;
11162 esac
11163 ;;
11164 *)
11165 lt_use_gnu_ld_interface=yes
11166 ;;
11167 esac
11168 fi
11169
11170 if test yes = "$lt_use_gnu_ld_interface"; then
11171 # If archive_cmds runs LD, not CC, wlarc should be empty
11172 wlarc='$wl'
11173
11174 # Set some defaults for GNU ld with shared library support. These
11175 # are reset later if shared libraries are not supported. Putting them
11176 # here allows them to be overridden if necessary.
11177 runpath_var=LD_RUN_PATH
11178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11179 export_dynamic_flag_spec='$wl--export-dynamic'
11180 # ancient GNU ld didn't support --whole-archive et. al.
11181 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11182 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11183 else
11184 whole_archive_flag_spec=
11185 fi
11186 supports_anon_versioning=no
11187 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11188 *GNU\ gold*) supports_anon_versioning=yes ;;
11189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11192 *\ 2.11.*) ;; # other 2.11 versions
11193 *) supports_anon_versioning=yes ;;
11194 esac
11195
11196 # See if GNU ld supports shared libraries.
11197 case $host_os in
11198 aix[3-9]*)
11199 # On AIX/PPC, the GNU linker is very broken
11200 if test ia64 != "$host_cpu"; then
11201 ld_shlibs=no
11202 cat <<_LT_EOF 1>&2
11203
11204 *** Warning: the GNU linker, at least up to release 2.19, is reported
11205 *** to be unable to reliably create shared libraries on AIX.
11206 *** Therefore, libtool is disabling shared libraries support. If you
11207 *** really care for shared libraries, you may want to install binutils
11208 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11209 *** You will then need to restart the configuration process.
11210
11211 _LT_EOF
11212 fi
11213 ;;
11214
11215 amigaos*)
11216 case $host_cpu in
11217 powerpc)
11218 # see comment about AmigaOS4 .so support
11219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11220 archive_expsym_cmds=''
11221 ;;
11222 m68k)
11223 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)'
11224 hardcode_libdir_flag_spec='-L$libdir'
11225 hardcode_minus_L=yes
11226 ;;
11227 esac
11228 ;;
11229
11230 beos*)
11231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232 allow_undefined_flag=unsupported
11233 # Joseph Beckenbach <[email protected]> says some releases of gcc
11234 # support --undefined. This deserves some investigation. FIXME
11235 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11236 else
11237 ld_shlibs=no
11238 fi
11239 ;;
11240
11241 cygwin* | mingw* | windows* | pw32* | cegcc*)
11242 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11243 # as there is no search path for DLLs.
11244 hardcode_libdir_flag_spec='-L$libdir'
11245 export_dynamic_flag_spec='$wl--export-all-symbols'
11246 allow_undefined_flag=unsupported
11247 always_export_symbols=no
11248 enable_shared_with_static_runtimes=yes
11249 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'
11250 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11251 file_list_spec='@'
11252
11253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11255 # If the export-symbols file already is a .def file, use it as
11256 # is; otherwise, prepend EXPORTS...
11257 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11258 cp $export_symbols $output_objdir/$soname.def;
11259 else
11260 echo EXPORTS > $output_objdir/$soname.def;
11261 cat $export_symbols >> $output_objdir/$soname.def;
11262 fi~
11263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11264 else
11265 ld_shlibs=no
11266 fi
11267 ;;
11268
11269 haiku*)
11270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11271 link_all_deplibs=no
11272 ;;
11273
11274 os2*)
11275 hardcode_libdir_flag_spec='-L$libdir'
11276 hardcode_minus_L=yes
11277 allow_undefined_flag=unsupported
11278 shrext_cmds=.dll
11279 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11280 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11281 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11282 $ECHO EXPORTS >> $output_objdir/$libname.def~
11283 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11284 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11285 emximp -o $lib $output_objdir/$libname.def'
11286 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11287 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11288 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11289 $ECHO EXPORTS >> $output_objdir/$libname.def~
11290 prefix_cmds="$SED"~
11291 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11292 prefix_cmds="$prefix_cmds -e 1d";
11293 fi~
11294 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11295 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11297 emximp -o $lib $output_objdir/$libname.def'
11298 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11299 enable_shared_with_static_runtimes=yes
11300 file_list_spec='@'
11301 ;;
11302
11303 interix[3-9]*)
11304 hardcode_direct=no
11305 hardcode_shlibpath_var=no
11306 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11307 export_dynamic_flag_spec='$wl-E'
11308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11309 # Instead, shared libraries are loaded at an image base (0x10000000 by
11310 # default) and relocated if they conflict, which is a slow very memory
11311 # consuming and fragmenting process. To avoid this, we pick a random,
11312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11315 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'
11316 ;;
11317
11318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11319 tmp_diet=no
11320 if test linux-dietlibc = "$host_os"; then
11321 case $cc_basename in
11322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11323 esac
11324 fi
11325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11326 && test no = "$tmp_diet"
11327 then
11328 tmp_addflag=' $pic_flag'
11329 tmp_sharedflag='-shared'
11330 case $cc_basename,$host_cpu in
11331 pgcc*) # Portland Group C compiler
11332 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'
11333 tmp_addflag=' $pic_flag'
11334 ;;
11335 pgf77* | pgf90* | pgf95* | pgfortran*)
11336 # Portland Group f77 and f90 compilers
11337 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'
11338 tmp_addflag=' $pic_flag -Mnomain' ;;
11339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11340 tmp_addflag=' -i_dynamic' ;;
11341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11342 tmp_addflag=' -i_dynamic -nofor_main' ;;
11343 ifc* | ifort*) # Intel Fortran compiler
11344 tmp_addflag=' -nofor_main' ;;
11345 lf95*) # Lahey Fortran 8.1
11346 whole_archive_flag_spec=
11347 tmp_sharedflag='--shared' ;;
11348 nagfor*) # NAGFOR 5.3
11349 tmp_sharedflag='-Wl,-shared' ;;
11350 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11351 tmp_sharedflag='-qmkshrobj'
11352 tmp_addflag= ;;
11353 nvcc*) # Cuda Compiler Driver 2.2
11354 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'
11355 compiler_needs_object=yes
11356 ;;
11357 esac
11358 case `$CC -V 2>&1 | $SED 5q` in
11359 *Sun\ C*) # Sun C 5.9
11360 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'
11361 compiler_needs_object=yes
11362 tmp_sharedflag='-G' ;;
11363 *Sun\ F*) # Sun Fortran 8.3
11364 tmp_sharedflag='-G' ;;
11365 esac
11366 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11367
11368 if test yes = "$supports_anon_versioning"; then
11369 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11370 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11371 echo "local: *; };" >> $output_objdir/$libname.ver~
11372 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11373 fi
11374
11375 case $cc_basename in
11376 tcc*)
11377 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11378 export_dynamic_flag_spec='-rdynamic'
11379 ;;
11380 xlf* | bgf* | bgxlf* | mpixlf*)
11381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11384 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11385 if test yes = "$supports_anon_versioning"; then
11386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11387 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11388 echo "local: *; };" >> $output_objdir/$libname.ver~
11389 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11390 fi
11391 ;;
11392 esac
11393 else
11394 ld_shlibs=no
11395 fi
11396 ;;
11397
11398 *-mlibc)
11399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11400 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11401 ;;
11402
11403 netbsd* | netbsdelf*-gnu)
11404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11405 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11406 wlarc=
11407 else
11408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11409 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11410 fi
11411 ;;
11412
11413 solaris*)
11414 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11415 ld_shlibs=no
11416 cat <<_LT_EOF 1>&2
11417
11418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11419 *** create shared libraries on Solaris systems. Therefore, libtool
11420 *** is disabling shared libraries support. We urge you to upgrade GNU
11421 *** binutils to release 2.9.1 or newer. Another option is to modify
11422 *** your PATH or compiler configuration so that the native linker is
11423 *** used, and then restart.
11424
11425 _LT_EOF
11426 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11428 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11429 else
11430 ld_shlibs=no
11431 fi
11432 ;;
11433
11434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11435 case `$LD -v 2>&1` in
11436 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11437 ld_shlibs=no
11438 cat <<_LT_EOF 1>&2
11439
11440 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11441 *** reliably create shared libraries on SCO systems. Therefore, libtool
11442 *** is disabling shared libraries support. We urge you to upgrade GNU
11443 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11444 *** your PATH or compiler configuration so that the native linker is
11445 *** used, and then restart.
11446
11447 _LT_EOF
11448 ;;
11449 *)
11450 # For security reasons, it is highly recommended that you always
11451 # use absolute paths for naming shared libraries, and exclude the
11452 # DT_RUNPATH tag from executables and libraries. But doing so
11453 # requires that you compile everything twice, which is a pain.
11454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11458 else
11459 ld_shlibs=no
11460 fi
11461 ;;
11462 esac
11463 ;;
11464
11465 sunos4*)
11466 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11467 wlarc=
11468 hardcode_direct=yes
11469 hardcode_shlibpath_var=no
11470 ;;
11471
11472 *)
11473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11476 else
11477 ld_shlibs=no
11478 fi
11479 ;;
11480 esac
11481
11482 if test no = "$ld_shlibs"; then
11483 runpath_var=
11484 hardcode_libdir_flag_spec=
11485 export_dynamic_flag_spec=
11486 whole_archive_flag_spec=
11487 fi
11488 else
11489 # PORTME fill in a description of your system's linker (not GNU ld)
11490 case $host_os in
11491 aix3*)
11492 allow_undefined_flag=unsupported
11493 always_export_symbols=yes
11494 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'
11495 # Note: this linker hardcodes the directories in LIBPATH if there
11496 # are no directories specified by -L.
11497 hardcode_minus_L=yes
11498 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11499 # Neither direct hardcoding nor static linking is supported with a
11500 # broken collect2.
11501 hardcode_direct=unsupported
11502 fi
11503 ;;
11504
11505 aix[4-9]*)
11506 if test ia64 = "$host_cpu"; then
11507 # On IA64, the linker does run time linking by default, so we don't
11508 # have to do anything special.
11509 aix_use_runtimelinking=no
11510 exp_sym_flag='-Bexport'
11511 no_entry_flag=
11512 else
11513 # If we're using GNU nm, then we don't want the "-C" option.
11514 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11515 # Without the "-l" option, or with the "-B" option, AIX nm treats
11516 # weak defined symbols like other global defined symbols, whereas
11517 # GNU nm marks them as "W".
11518 # While the 'weak' keyword is ignored in the Export File, we need
11519 # it in the Import File for the 'aix-soname' feature, so we have
11520 # to replace the "-B" option with "-P" for AIX nm.
11521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11522 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'
11523 else
11524 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 == "L") || (\$ 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'
11525 fi
11526 aix_use_runtimelinking=no
11527
11528 # Test if we are trying to use run time linking or normal
11529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11530 # have runtime linking enabled, and use it for executables.
11531 # For shared libraries, we enable/disable runtime linking
11532 # depending on the kind of the shared library created -
11533 # when "with_aix_soname,aix_use_runtimelinking" is:
11534 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11535 # "aix,yes" lib.so shared, rtl:yes, for executables
11536 # lib.a static archive
11537 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11538 # lib.a(lib.so.V) shared, rtl:no, for executables
11539 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11540 # lib.a(lib.so.V) shared, rtl:no
11541 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11542 # lib.a static archive
11543 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11544 for ld_flag in $LDFLAGS; do
11545 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11546 aix_use_runtimelinking=yes
11547 break
11548 fi
11549 done
11550 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11551 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11552 # so we don't have lib.a shared libs to link our executables.
11553 # We have to force runtime linking in this case.
11554 aix_use_runtimelinking=yes
11555 LDFLAGS="$LDFLAGS -Wl,-brtl"
11556 fi
11557 ;;
11558 esac
11559
11560 exp_sym_flag='-bexport'
11561 no_entry_flag='-bnoentry'
11562 fi
11563
11564 # When large executables or shared objects are built, AIX ld can
11565 # have problems creating the table of contents. If linking a library
11566 # or program results in "error TOC overflow" add -mminimal-toc to
11567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11569
11570 archive_cmds=''
11571 hardcode_direct=yes
11572 hardcode_direct_absolute=yes
11573 hardcode_libdir_separator=':'
11574 link_all_deplibs=yes
11575 file_list_spec='$wl-f,'
11576 case $with_aix_soname,$aix_use_runtimelinking in
11577 aix,*) ;; # traditional, no import file
11578 svr4,* | *,yes) # use import file
11579 # The Import File defines what to hardcode.
11580 hardcode_direct=no
11581 hardcode_direct_absolute=no
11582 ;;
11583 esac
11584
11585 if test yes = "$GCC"; then
11586 case $host_os in aix4.[012]|aix4.[012].*)
11587 # We only want to do this on AIX 4.2 and lower, the check
11588 # below for broken collect2 doesn't work under 4.3+
11589 collect2name=`$CC -print-prog-name=collect2`
11590 if test -f "$collect2name" &&
11591 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11592 then
11593 # We have reworked collect2
11594 :
11595 else
11596 # We have old collect2
11597 hardcode_direct=unsupported
11598 # It fails to find uninstalled libraries when the uninstalled
11599 # path is not listed in the libpath. Setting hardcode_minus_L
11600 # to unsupported forces relinking
11601 hardcode_minus_L=yes
11602 hardcode_libdir_flag_spec='-L$libdir'
11603 hardcode_libdir_separator=
11604 fi
11605 ;;
11606 esac
11607 shared_flag='-shared'
11608 if test yes = "$aix_use_runtimelinking"; then
11609 shared_flag="$shared_flag "'$wl-G'
11610 fi
11611 # Need to ensure runtime linking is disabled for the traditional
11612 # shared library, or the linker may eventually find shared libraries
11613 # /with/ Import File - we do not want to mix them.
11614 shared_flag_aix='-shared'
11615 shared_flag_svr4='-shared $wl-G'
11616 else
11617 # not using gcc
11618 if test ia64 = "$host_cpu"; then
11619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11620 # chokes on -Wl,-G. The following line is correct:
11621 shared_flag='-G'
11622 else
11623 if test yes = "$aix_use_runtimelinking"; then
11624 shared_flag='$wl-G'
11625 else
11626 shared_flag='$wl-bM:SRE'
11627 fi
11628 shared_flag_aix='$wl-bM:SRE'
11629 shared_flag_svr4='$wl-G'
11630 fi
11631 fi
11632
11633 export_dynamic_flag_spec='$wl-bexpall'
11634 # It seems that -bexpall does not export symbols beginning with
11635 # underscore (_), so it is better to generate a list of symbols to export.
11636 always_export_symbols=yes
11637 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11638 # Warning - without using the other runtime loading flags (-brtl),
11639 # -berok will link without error, but may produce a broken library.
11640 allow_undefined_flag='-berok'
11641 # Determine the default libpath from the value encoded in an
11642 # empty executable.
11643 if test set = "${lt_cv_aix_libpath+set}"; then
11644 aix_libpath=$lt_cv_aix_libpath
11645 else
11646 if test ${lt_cv_aix_libpath_+y}
11647 then :
11648 printf %s "(cached) " >&6
11649 else case e in #(
11650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652
11653 int
11654 main (void)
11655 {
11656
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"
11662 then :
11663
11664 lt_aix_libpath_sed='
11665 /Import File Strings/,/^$/ {
11666 /^0/ {
11667 s/^0 *\([^ ]*\) *$/\1/
11668 p
11669 }
11670 }'
11671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11672 # Check for a 64-bit object if we didn't find anything.
11673 if test -z "$lt_cv_aix_libpath_"; then
11674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11675 fi
11676 fi
11677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11678 conftest$ac_exeext conftest.$ac_ext
11679 if test -z "$lt_cv_aix_libpath_"; then
11680 lt_cv_aix_libpath_=/usr/lib:/lib
11681 fi
11682 ;;
11683 esac
11684 fi
11685
11686 aix_libpath=$lt_cv_aix_libpath_
11687 fi
11688
11689 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11690 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
11691 else
11692 if test ia64 = "$host_cpu"; then
11693 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11694 allow_undefined_flag="-z nodefs"
11695 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"
11696 else
11697 # Determine the default libpath from the value encoded in an
11698 # empty executable.
11699 if test set = "${lt_cv_aix_libpath+set}"; then
11700 aix_libpath=$lt_cv_aix_libpath
11701 else
11702 if test ${lt_cv_aix_libpath_+y}
11703 then :
11704 printf %s "(cached) " >&6
11705 else case e in #(
11706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708
11709 int
11710 main (void)
11711 {
11712
11713 ;
11714 return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_c_try_link "$LINENO"
11718 then :
11719
11720 lt_aix_libpath_sed='
11721 /Import File Strings/,/^$/ {
11722 /^0/ {
11723 s/^0 *\([^ ]*\) *$/\1/
11724 p
11725 }
11726 }'
11727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11728 # Check for a 64-bit object if we didn't find anything.
11729 if test -z "$lt_cv_aix_libpath_"; then
11730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11731 fi
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11734 conftest$ac_exeext conftest.$ac_ext
11735 if test -z "$lt_cv_aix_libpath_"; then
11736 lt_cv_aix_libpath_=/usr/lib:/lib
11737 fi
11738 ;;
11739 esac
11740 fi
11741
11742 aix_libpath=$lt_cv_aix_libpath_
11743 fi
11744
11745 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11746 # Warning - without using the other run time loading flags,
11747 # -berok will link without error, but may produce a broken library.
11748 no_undefined_flag=' $wl-bernotok'
11749 allow_undefined_flag=' $wl-berok'
11750 if test yes = "$with_gnu_ld"; then
11751 # We only use this code for GNU lds that support --whole-archive.
11752 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11753 else
11754 # Exported symbols can be pulled into shared objects from archives
11755 whole_archive_flag_spec='$convenience'
11756 fi
11757 archive_cmds_need_lc=yes
11758 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11759 # -brtl affects multiple linker settings, -berok does not and is overridden later
11760 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11761 if test svr4 != "$with_aix_soname"; then
11762 # This is similar to how AIX traditionally builds its shared libraries.
11763 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'
11764 fi
11765 if test aix != "$with_aix_soname"; then
11766 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'
11767 else
11768 # used by -dlpreopen to get the symbols
11769 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11770 fi
11771 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11772 fi
11773 fi
11774 ;;
11775
11776 amigaos*)
11777 case $host_cpu in
11778 powerpc)
11779 # see comment about AmigaOS4 .so support
11780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11781 archive_expsym_cmds=''
11782 ;;
11783 m68k)
11784 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)'
11785 hardcode_libdir_flag_spec='-L$libdir'
11786 hardcode_minus_L=yes
11787 ;;
11788 esac
11789 ;;
11790
11791 bsdi[45]*)
11792 export_dynamic_flag_spec=-rdynamic
11793 ;;
11794
11795 cygwin* | mingw* | windows* | pw32* | cegcc*)
11796 # When not using gcc, we currently assume that we are using
11797 # Microsoft Visual C++ or Intel C++ Compiler.
11798 # hardcode_libdir_flag_spec is actually meaningless, as there is
11799 # no search path for DLLs.
11800 case $cc_basename in
11801 cl* | icl*)
11802 # Native MSVC or ICC
11803 hardcode_libdir_flag_spec=' '
11804 allow_undefined_flag=unsupported
11805 always_export_symbols=yes
11806 file_list_spec='@'
11807 # Tell ltmain to make .lib files, not .a files.
11808 libext=lib
11809 # Tell ltmain to make .dll files, not .so files.
11810 shrext_cmds=.dll
11811 # FIXME: Setting linknames here is a bad hack.
11812 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11813 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11814 cp "$export_symbols" "$output_objdir/$soname.def";
11815 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11816 else
11817 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11818 fi~
11819 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11820 linknames='
11821 # The linker will not automatically build a static lib if we build a DLL.
11822 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11823 enable_shared_with_static_runtimes=yes
11824 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11826 # Don't use ranlib
11827 old_postinstall_cmds='chmod 644 $oldlib'
11828 postlink_cmds='lt_outputfile="@OUTPUT@"~
11829 lt_tool_outputfile="@TOOL_OUTPUT@"~
11830 case $lt_outputfile in
11831 *.exe|*.EXE) ;;
11832 *)
11833 lt_outputfile=$lt_outputfile.exe
11834 lt_tool_outputfile=$lt_tool_outputfile.exe
11835 ;;
11836 esac~
11837 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11838 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11839 $RM "$lt_outputfile.manifest";
11840 fi'
11841 ;;
11842 *)
11843 # Assume MSVC and ICC wrapper
11844 hardcode_libdir_flag_spec=' '
11845 allow_undefined_flag=unsupported
11846 # Tell ltmain to make .lib files, not .a files.
11847 libext=lib
11848 # Tell ltmain to make .dll files, not .so files.
11849 shrext_cmds=.dll
11850 # FIXME: Setting linknames here is a bad hack.
11851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11852 # The linker will automatically build a .lib file if we build a DLL.
11853 old_archive_from_new_cmds='true'
11854 # FIXME: Should let the user specify the lib program.
11855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11856 enable_shared_with_static_runtimes=yes
11857 ;;
11858 esac
11859 ;;
11860
11861 darwin* | rhapsody*)
11862
11863
11864 archive_cmds_need_lc=no
11865 hardcode_direct=no
11866 hardcode_automatic=yes
11867 hardcode_shlibpath_var=unsupported
11868 if test yes = "$lt_cv_ld_force_load"; then
11869 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\"`'
11870
11871 else
11872 whole_archive_flag_spec=''
11873 fi
11874 link_all_deplibs=yes
11875 allow_undefined_flag=$_lt_dar_allow_undefined
11876 case $cc_basename in
11877 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11878 *) _lt_dar_can_shared=$GCC ;;
11879 esac
11880 if test yes = "$_lt_dar_can_shared"; then
11881 output_verbose_link_cmd=func_echo_all
11882 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11883 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11884 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"
11885 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"
11886
11887 else
11888 ld_shlibs=no
11889 fi
11890
11891 ;;
11892
11893 dgux*)
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_libdir_flag_spec='-L$libdir'
11896 hardcode_shlibpath_var=no
11897 ;;
11898
11899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11900 # support. Future versions do this automatically, but an explicit c++rt0.o
11901 # does not break anything, and helps significantly (at the cost of a little
11902 # extra space).
11903 freebsd2.2*)
11904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11905 hardcode_libdir_flag_spec='-R$libdir'
11906 hardcode_direct=yes
11907 hardcode_shlibpath_var=no
11908 ;;
11909
11910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11911 freebsd2.*)
11912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_direct=yes
11914 hardcode_minus_L=yes
11915 hardcode_shlibpath_var=no
11916 ;;
11917
11918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11919 freebsd* | dragonfly* | midnightbsd*)
11920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11921 hardcode_libdir_flag_spec='-R$libdir'
11922 hardcode_direct=yes
11923 hardcode_shlibpath_var=no
11924 ;;
11925
11926 hpux9*)
11927 if test yes = "$GCC"; then
11928 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'
11929 else
11930 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'
11931 fi
11932 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11933 hardcode_libdir_separator=:
11934 hardcode_direct=yes
11935
11936 # hardcode_minus_L: Not really in the search PATH,
11937 # but as the default location of the library.
11938 hardcode_minus_L=yes
11939 export_dynamic_flag_spec='$wl-E'
11940 ;;
11941
11942 hpux10*)
11943 if test yes,no = "$GCC,$with_gnu_ld"; then
11944 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11945 else
11946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11947 fi
11948 if test no = "$with_gnu_ld"; then
11949 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11950 hardcode_libdir_separator=:
11951 hardcode_direct=yes
11952 hardcode_direct_absolute=yes
11953 export_dynamic_flag_spec='$wl-E'
11954 # hardcode_minus_L: Not really in the search PATH,
11955 # but as the default location of the library.
11956 hardcode_minus_L=yes
11957 fi
11958 ;;
11959
11960 hpux11*)
11961 if test yes,no = "$GCC,$with_gnu_ld"; then
11962 case $host_cpu in
11963 hppa*64*)
11964 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 ;;
11966 ia64*)
11967 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11968 ;;
11969 *)
11970 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11971 ;;
11972 esac
11973 else
11974 case $host_cpu in
11975 hppa*64*)
11976 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11977 ;;
11978 ia64*)
11979 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11980 ;;
11981 *)
11982
11983 # Older versions of the 11.00 compiler do not understand -b yet
11984 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11986 printf %s "checking if $CC understands -b... " >&6; }
11987 if test ${lt_cv_prog_compiler__b+y}
11988 then :
11989 printf %s "(cached) " >&6
11990 else case e in #(
11991 e) lt_cv_prog_compiler__b=no
11992 save_LDFLAGS=$LDFLAGS
11993 LDFLAGS="$LDFLAGS -b"
11994 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11996 # The linker can only warn and ignore the option if not recognized
11997 # So say no if there are warnings
11998 if test -s conftest.err; then
11999 # Append any errors to the config.log.
12000 cat conftest.err 1>&5
12001 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12003 if diff conftest.exp conftest.er2 >/dev/null; then
12004 lt_cv_prog_compiler__b=yes
12005 fi
12006 else
12007 lt_cv_prog_compiler__b=yes
12008 fi
12009 fi
12010 $RM -r conftest*
12011 LDFLAGS=$save_LDFLAGS
12012 ;;
12013 esac
12014 fi
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12016 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12017
12018 if test yes = "$lt_cv_prog_compiler__b"; then
12019 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12020 else
12021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12022 fi
12023
12024 ;;
12025 esac
12026 fi
12027 if test no = "$with_gnu_ld"; then
12028 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12029 hardcode_libdir_separator=:
12030
12031 case $host_cpu in
12032 hppa*64*|ia64*)
12033 hardcode_direct=no
12034 hardcode_shlibpath_var=no
12035 ;;
12036 *)
12037 hardcode_direct=yes
12038 hardcode_direct_absolute=yes
12039 export_dynamic_flag_spec='$wl-E'
12040
12041 # hardcode_minus_L: Not really in the search PATH,
12042 # but as the default location of the library.
12043 hardcode_minus_L=yes
12044 ;;
12045 esac
12046 fi
12047 ;;
12048
12049 irix5* | irix6* | nonstopux*)
12050 if test yes = "$GCC"; then
12051 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'
12052 # Try to use the -exported_symbol ld option, if it does not
12053 # work, assume that -exports_file does not work either and
12054 # implicitly export all symbols.
12055 # This should be the same for all languages, so no per-tag cache variable.
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12057 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12058 if test ${lt_cv_irix_exported_symbol+y}
12059 then :
12060 printf %s "(cached) " >&6
12061 else case e in #(
12062 e) save_LDFLAGS=$LDFLAGS
12063 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 int foo (void) { return 0; }
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"
12069 then :
12070 lt_cv_irix_exported_symbol=yes
12071 else case e in #(
12072 e) lt_cv_irix_exported_symbol=no ;;
12073 esac
12074 fi
12075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LDFLAGS=$save_LDFLAGS ;;
12078 esac
12079 fi
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12081 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12082 if test yes = "$lt_cv_irix_exported_symbol"; then
12083 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'
12084 fi
12085 link_all_deplibs=no
12086 else
12087 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'
12088 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'
12089 fi
12090 archive_cmds_need_lc='no'
12091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12092 hardcode_libdir_separator=:
12093 inherit_rpath=yes
12094 link_all_deplibs=yes
12095 ;;
12096
12097 linux*)
12098 case $cc_basename in
12099 tcc*)
12100 # Fabrice Bellard et al's Tiny C Compiler
12101 ld_shlibs=yes
12102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12103 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12104 ;;
12105 esac
12106 ;;
12107
12108 *-mlibc)
12109 ;;
12110
12111 netbsd* | netbsdelf*-gnu)
12112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12114 else
12115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12116 fi
12117 hardcode_libdir_flag_spec='-R$libdir'
12118 hardcode_direct=yes
12119 hardcode_shlibpath_var=no
12120 ;;
12121
12122 newsos6)
12123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12124 hardcode_direct=yes
12125 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12126 hardcode_libdir_separator=:
12127 hardcode_shlibpath_var=no
12128 ;;
12129
12130 *nto* | *qnx*)
12131 ;;
12132
12133 openbsd*)
12134 if test -f /usr/libexec/ld.so; then
12135 hardcode_direct=yes
12136 hardcode_shlibpath_var=no
12137 hardcode_direct_absolute=yes
12138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12142 export_dynamic_flag_spec='$wl-E'
12143 else
12144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12145 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12146 fi
12147 else
12148 ld_shlibs=no
12149 fi
12150 ;;
12151
12152 os2*)
12153 hardcode_libdir_flag_spec='-L$libdir'
12154 hardcode_minus_L=yes
12155 allow_undefined_flag=unsupported
12156 shrext_cmds=.dll
12157 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12160 $ECHO EXPORTS >> $output_objdir/$libname.def~
12161 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12163 emximp -o $lib $output_objdir/$libname.def'
12164 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12167 $ECHO EXPORTS >> $output_objdir/$libname.def~
12168 prefix_cmds="$SED"~
12169 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12170 prefix_cmds="$prefix_cmds -e 1d";
12171 fi~
12172 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12173 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12175 emximp -o $lib $output_objdir/$libname.def'
12176 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12177 enable_shared_with_static_runtimes=yes
12178 file_list_spec='@'
12179 ;;
12180
12181 osf3*)
12182 if test yes = "$GCC"; then
12183 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12184 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'
12185 else
12186 allow_undefined_flag=' -expect_unresolved \*'
12187 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'
12188 fi
12189 archive_cmds_need_lc='no'
12190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12191 hardcode_libdir_separator=:
12192 ;;
12193
12194 osf4* | osf5*) # as osf3* with the addition of -msym flag
12195 if test yes = "$GCC"; then
12196 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12197 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'
12198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12199 else
12200 allow_undefined_flag=' -expect_unresolved \*'
12201 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'
12202 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~
12203 $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'
12204
12205 # Both c and cxx compiler support -rpath directly
12206 hardcode_libdir_flag_spec='-rpath $libdir'
12207 fi
12208 archive_cmds_need_lc='no'
12209 hardcode_libdir_separator=:
12210 ;;
12211
12212 serenity*)
12213 ;;
12214
12215 solaris*)
12216 no_undefined_flag=' -z defs'
12217 if test yes = "$GCC"; then
12218 wlarc='$wl'
12219 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221 $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'
12222 else
12223 case `$CC -V 2>&1` in
12224 *"Compilers 5.0"*)
12225 wlarc=''
12226 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12228 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12229 ;;
12230 *)
12231 wlarc='$wl'
12232 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12235 ;;
12236 esac
12237 fi
12238 hardcode_libdir_flag_spec='-R$libdir'
12239 hardcode_shlibpath_var=no
12240 case $host_os in
12241 solaris2.[0-5] | solaris2.[0-5].*) ;;
12242 *)
12243 # The compiler driver will combine and reorder linker options,
12244 # but understands '-z linker_flag'. GCC discards it without '$wl',
12245 # but is careful enough not to reorder.
12246 # Supported since Solaris 2.6 (maybe 2.5.1?)
12247 if test yes = "$GCC"; then
12248 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12249 else
12250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12251 fi
12252 ;;
12253 esac
12254 link_all_deplibs=yes
12255 ;;
12256
12257 sunos4*)
12258 if test sequent = "$host_vendor"; then
12259 # Use $CC to link under sequent, because it throws in some extra .o
12260 # files that make .init and .fini sections work.
12261 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12262 else
12263 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12264 fi
12265 hardcode_libdir_flag_spec='-L$libdir'
12266 hardcode_direct=yes
12267 hardcode_minus_L=yes
12268 hardcode_shlibpath_var=no
12269 ;;
12270
12271 sysv4)
12272 case $host_vendor in
12273 sni)
12274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct=yes # is this really true???
12276 ;;
12277 siemens)
12278 ## LD is ld it makes a PLAMLIB
12279 ## CC just makes a GrossModule.
12280 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12281 reload_cmds='$CC -r -o $output$reload_objs'
12282 hardcode_direct=no
12283 ;;
12284 motorola)
12285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12287 ;;
12288 esac
12289 runpath_var='LD_RUN_PATH'
12290 hardcode_shlibpath_var=no
12291 ;;
12292
12293 sysv4.3*)
12294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_shlibpath_var=no
12296 export_dynamic_flag_spec='-Bexport'
12297 ;;
12298
12299 sysv4*MP*)
12300 if test -d /usr/nec; then
12301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12302 hardcode_shlibpath_var=no
12303 runpath_var=LD_RUN_PATH
12304 hardcode_runpath_var=yes
12305 ld_shlibs=yes
12306 fi
12307 ;;
12308
12309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12310 no_undefined_flag='$wl-z,text'
12311 archive_cmds_need_lc=no
12312 hardcode_shlibpath_var=no
12313 runpath_var='LD_RUN_PATH'
12314
12315 if test yes = "$GCC"; then
12316 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318 else
12319 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 fi
12322 ;;
12323
12324 sysv5* | sco3.2v5* | sco5v6*)
12325 # Note: We CANNOT use -z defs as we might desire, because we do not
12326 # link with -lc, and that would cause any symbols used from libc to
12327 # always be unresolved, which means just about no library would
12328 # ever link correctly. If we're not using GNU ld we use -z text
12329 # though, which does catch some bad symbols but isn't as heavy-handed
12330 # as -z defs.
12331 no_undefined_flag='$wl-z,text'
12332 allow_undefined_flag='$wl-z,nodefs'
12333 archive_cmds_need_lc=no
12334 hardcode_shlibpath_var=no
12335 hardcode_libdir_flag_spec='$wl-R,$libdir'
12336 hardcode_libdir_separator=':'
12337 link_all_deplibs=yes
12338 export_dynamic_flag_spec='$wl-Bexport'
12339 runpath_var='LD_RUN_PATH'
12340
12341 if test yes = "$GCC"; then
12342 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12344 else
12345 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347 fi
12348 ;;
12349
12350 uts4*)
12351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352 hardcode_libdir_flag_spec='-L$libdir'
12353 hardcode_shlibpath_var=no
12354 ;;
12355
12356 *)
12357 ld_shlibs=no
12358 ;;
12359 esac
12360
12361 if test sni = "$host_vendor"; then
12362 case $host in
12363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12364 export_dynamic_flag_spec='$wl-Blargedynsym'
12365 ;;
12366 esac
12367 fi
12368 fi
12369
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12371 printf "%s\n" "$ld_shlibs" >&6; }
12372 test no = "$ld_shlibs" && can_build_shared=no
12373
12374 with_gnu_ld=$with_gnu_ld
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390 #
12391 # Do we need to explicitly link libc?
12392 #
12393 case "x$archive_cmds_need_lc" in
12394 x|xyes)
12395 # Assume -lc should be added
12396 archive_cmds_need_lc=yes
12397
12398 if test yes,yes = "$GCC,$enable_shared"; then
12399 case $archive_cmds in
12400 *'~'*)
12401 # FIXME: we may have to deal with multi-command sequences.
12402 ;;
12403 '$CC '*)
12404 # Test whether the compiler implicitly links with -lc since on some
12405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12406 # to ld, don't add -lc before -lgcc.
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12408 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12409 if test ${lt_cv_archive_cmds_need_lc+y}
12410 then :
12411 printf %s "(cached) " >&6
12412 else case e in #(
12413 e) $RM conftest*
12414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12415
12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; } 2>conftest.err; then
12421 soname=conftest
12422 lib=conftest
12423 libobjs=conftest.$ac_objext
12424 deplibs=
12425 wl=$lt_prog_compiler_wl
12426 pic_flag=$lt_prog_compiler_pic
12427 compiler_flags=-v
12428 linker_flags=-v
12429 verstring=
12430 output_objdir=.
12431 libname=conftest
12432 lt_save_allow_undefined_flag=$allow_undefined_flag
12433 allow_undefined_flag=
12434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12436 ac_status=$?
12437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438 test $ac_status = 0; }
12439 then
12440 lt_cv_archive_cmds_need_lc=no
12441 else
12442 lt_cv_archive_cmds_need_lc=yes
12443 fi
12444 allow_undefined_flag=$lt_save_allow_undefined_flag
12445 else
12446 cat conftest.err 1>&5
12447 fi
12448 $RM conftest*
12449 ;;
12450 esac
12451 fi
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12453 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12454 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12455 ;;
12456 esac
12457 fi
12458 ;;
12459 esac
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12613 printf %s "checking dynamic linker characteristics... " >&6; }
12614
12615 if test yes = "$GCC"; then
12616 case $host_os in
12617 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12618 *) lt_awk_arg='/^libraries:/' ;;
12619 esac
12620 case $host_os in
12621 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12622 *) lt_sed_strip_eq='s|=/|/|g' ;;
12623 esac
12624 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12625 case $lt_search_path_spec in
12626 *\;*)
12627 # if the path contains ";" then we assume it to be the separator
12628 # otherwise default to the standard path separator (i.e. ":") - it is
12629 # assumed that no part of a normal pathname contains ";" but that should
12630 # okay in the real world where ";" in dirpaths is itself problematic.
12631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12632 ;;
12633 *)
12634 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12635 ;;
12636 esac
12637 # Ok, now we have the path, separated by spaces, we can step through it
12638 # and add multilib dir if necessary...
12639 lt_tmp_lt_search_path_spec=
12640 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12641 # ...but if some path component already ends with the multilib dir we assume
12642 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12643 case "$lt_multi_os_dir; $lt_search_path_spec " in
12644 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12645 lt_multi_os_dir=
12646 ;;
12647 esac
12648 for lt_sys_path in $lt_search_path_spec; do
12649 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12651 elif test -n "$lt_multi_os_dir"; then
12652 test -d "$lt_sys_path" && \
12653 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12654 fi
12655 done
12656 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12657 BEGIN {RS = " "; FS = "/|\n";} {
12658 lt_foo = "";
12659 lt_count = 0;
12660 for (lt_i = NF; lt_i > 0; lt_i--) {
12661 if ($lt_i != "" && $lt_i != ".") {
12662 if ($lt_i == "..") {
12663 lt_count++;
12664 } else {
12665 if (lt_count == 0) {
12666 lt_foo = "/" $lt_i lt_foo;
12667 } else {
12668 lt_count--;
12669 }
12670 }
12671 }
12672 }
12673 if (lt_foo != "") { lt_freq[lt_foo]++; }
12674 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12675 }'`
12676 # AWK program above erroneously prepends '/' to C:/dos/paths
12677 # for these hosts.
12678 case $host_os in
12679 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12680 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12681 esac
12682 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12683 else
12684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12685 fi
12686 library_names_spec=
12687 libname_spec='lib$name'
12688 soname_spec=
12689 shrext_cmds=.so
12690 postinstall_cmds=
12691 postuninstall_cmds=
12692 finish_cmds=
12693 finish_eval=
12694 shlibpath_var=
12695 shlibpath_overrides_runpath=unknown
12696 version_type=none
12697 dynamic_linker="$host_os ld.so"
12698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12699 need_lib_prefix=unknown
12700 hardcode_into_libs=no
12701
12702 # when you set need_version to no, make sure it does not cause -set_version
12703 # flags to be left without arguments
12704 need_version=unknown
12705
12706
12707
12708 case $host_os in
12709 aix3*)
12710 version_type=linux # correct to gnu/linux during the next big refactor
12711 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12712 shlibpath_var=LIBPATH
12713
12714 # AIX 3 has no versioning support, so we append a major version to the name.
12715 soname_spec='$libname$release$shared_ext$major'
12716 ;;
12717
12718 aix[4-9]*)
12719 version_type=linux # correct to gnu/linux during the next big refactor
12720 need_lib_prefix=no
12721 need_version=no
12722 hardcode_into_libs=yes
12723 if test ia64 = "$host_cpu"; then
12724 # AIX 5 supports IA64
12725 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 else
12728 # With GCC up to 2.95.x, collect2 would create an import file
12729 # for dependence libraries. The import file would start with
12730 # the line '#! .'. This would cause the generated library to
12731 # depend on '.', always an invalid library. This was fixed in
12732 # development snapshots of GCC prior to 3.0.
12733 case $host_os in
12734 aix4 | aix4.[01] | aix4.[01].*)
12735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12736 echo ' yes '
12737 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12738 :
12739 else
12740 can_build_shared=no
12741 fi
12742 ;;
12743 esac
12744 # Using Import Files as archive members, it is possible to support
12745 # filename-based versioning of shared library archives on AIX. While
12746 # this would work for both with and without runtime linking, it will
12747 # prevent static linking of such archives. So we do filename-based
12748 # shared library versioning with .so extension only, which is used
12749 # when both runtime linking and shared linking is enabled.
12750 # Unfortunately, runtime linking may impact performance, so we do
12751 # not want this to be the default eventually. Also, we use the
12752 # versioned .so libs for executables only if there is the -brtl
12753 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12754 # To allow for filename-based versioning support, we need to create
12755 # libNAME.so.V as an archive file, containing:
12756 # *) an Import File, referring to the versioned filename of the
12757 # archive as well as the shared archive member, telling the
12758 # bitwidth (32 or 64) of that shared object, and providing the
12759 # list of exported symbols of that shared object, eventually
12760 # decorated with the 'weak' keyword
12761 # *) the shared object with the F_LOADONLY flag set, to really avoid
12762 # it being seen by the linker.
12763 # At run time we better use the real file rather than another symlink,
12764 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12765
12766 case $with_aix_soname,$aix_use_runtimelinking in
12767 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12768 # soname into executable. Probably we can add versioning support to
12769 # collect2, so additional links can be useful in future.
12770 aix,yes) # traditional libtool
12771 dynamic_linker='AIX unversionable lib.so'
12772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12773 # instead of lib<name>.a to let people know that these are not
12774 # typical AIX shared libraries.
12775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12776 ;;
12777 aix,no) # traditional AIX only
12778 dynamic_linker='AIX lib.a(lib.so.V)'
12779 # We preserve .a as extension for shared libraries through AIX4.2
12780 # and later when we are not doing run time linking.
12781 library_names_spec='$libname$release.a $libname.a'
12782 soname_spec='$libname$release$shared_ext$major'
12783 ;;
12784 svr4,*) # full svr4 only
12785 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12786 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12787 # We do not specify a path in Import Files, so LIBPATH fires.
12788 shlibpath_overrides_runpath=yes
12789 ;;
12790 *,yes) # both, prefer svr4
12791 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12792 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12793 # unpreferred sharedlib libNAME.a needs extra handling
12794 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"'
12795 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"'
12796 # We do not specify a path in Import Files, so LIBPATH fires.
12797 shlibpath_overrides_runpath=yes
12798 ;;
12799 *,no) # both, prefer aix
12800 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12801 library_names_spec='$libname$release.a $libname.a'
12802 soname_spec='$libname$release$shared_ext$major'
12803 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12804 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)'
12805 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"'
12806 ;;
12807 esac
12808 shlibpath_var=LIBPATH
12809 fi
12810 ;;
12811
12812 amigaos*)
12813 case $host_cpu in
12814 powerpc)
12815 # Since July 2007 AmigaOS4 officially supports .so libraries.
12816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12818 ;;
12819 m68k)
12820 library_names_spec='$libname.ixlibrary $libname.a'
12821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12822 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'
12823 ;;
12824 esac
12825 ;;
12826
12827 beos*)
12828 library_names_spec='$libname$shared_ext'
12829 dynamic_linker="$host_os ld.so"
12830 shlibpath_var=LIBRARY_PATH
12831 ;;
12832
12833 bsdi[45]*)
12834 version_type=linux # correct to gnu/linux during the next big refactor
12835 need_version=no
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12837 soname_spec='$libname$release$shared_ext$major'
12838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12839 shlibpath_var=LD_LIBRARY_PATH
12840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12842 # the default ld.so.conf also contains /usr/contrib/lib and
12843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12844 # libtool to hard-code these into programs
12845 ;;
12846
12847 cygwin* | mingw* | windows* | pw32* | cegcc*)
12848 version_type=windows
12849 shrext_cmds=.dll
12850 need_version=no
12851 need_lib_prefix=no
12852
12853 case $GCC,$cc_basename in
12854 yes,*)
12855 # gcc
12856 library_names_spec='$libname.dll.a'
12857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12858 # If user builds GCC with multilib enabled,
12859 # it should just install on $(libdir)
12860 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12861 if test xyes = x"$multilib"; then
12862 postinstall_cmds='base_file=`basename \$file`~
12863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12864 dldir=$destdir/`dirname \$dlpath`~
12865 $install_prog $dir/$dlname $destdir/$dlname~
12866 chmod a+x $destdir/$dlname~
12867 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12868 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12869 fi'
12870 else
12871 postinstall_cmds='base_file=`basename \$file`~
12872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12873 dldir=$destdir/`dirname \$dlpath`~
12874 test -d \$dldir || mkdir -p \$dldir~
12875 $install_prog $dir/$dlname \$dldir/$dlname~
12876 chmod a+x \$dldir/$dlname~
12877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12879 fi'
12880 fi
12881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12882 dlpath=$dir/\$dldll~
12883 $RM \$dlpath'
12884 shlibpath_overrides_runpath=yes
12885
12886 case $host_os in
12887 cygwin*)
12888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12889 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12890
12891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12892 ;;
12893 mingw* | windows* | cegcc*)
12894 # MinGW DLLs use traditional 'lib' prefix
12895 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12896 ;;
12897 pw32*)
12898 # pw32 DLLs use 'pw' prefix rather than 'lib'
12899 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12900 ;;
12901 esac
12902 dynamic_linker='Win32 ld.exe'
12903 ;;
12904
12905 *,cl* | *,icl*)
12906 # Native MSVC or ICC
12907 libname_spec='$name'
12908 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12909 library_names_spec='$libname.dll.lib'
12910
12911 case $build_os in
12912 mingw* | windows*)
12913 sys_lib_search_path_spec=
12914 lt_save_ifs=$IFS
12915 IFS=';'
12916 for lt_path in $LIB
12917 do
12918 IFS=$lt_save_ifs
12919 # Let DOS variable expansion print the short 8.3 style file name.
12920 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12921 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12922 done
12923 IFS=$lt_save_ifs
12924 # Convert to MSYS style.
12925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12926 ;;
12927 cygwin*)
12928 # Convert to unix form, then to dos form, then back to unix form
12929 # but this time dos style (no spaces!) so that the unix form looks
12930 # like /cygdrive/c/PROGRA~1:/cygdr...
12931 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12932 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12933 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12934 ;;
12935 *)
12936 sys_lib_search_path_spec=$LIB
12937 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12938 # It is most probably a Windows format PATH.
12939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12940 else
12941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12942 fi
12943 # FIXME: find the short name or the path components, as spaces are
12944 # common. (e.g. "Program Files" -> "PROGRA~1")
12945 ;;
12946 esac
12947
12948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12949 postinstall_cmds='base_file=`basename \$file`~
12950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12951 dldir=$destdir/`dirname \$dlpath`~
12952 test -d \$dldir || mkdir -p \$dldir~
12953 $install_prog $dir/$dlname \$dldir/$dlname'
12954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12955 dlpath=$dir/\$dldll~
12956 $RM \$dlpath'
12957 shlibpath_overrides_runpath=yes
12958 dynamic_linker='Win32 link.exe'
12959 ;;
12960
12961 *)
12962 # Assume MSVC and ICC wrapper
12963 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12964 dynamic_linker='Win32 ld.exe'
12965 ;;
12966 esac
12967 # FIXME: first we should search . and the directory the executable is in
12968 shlibpath_var=PATH
12969 ;;
12970
12971 darwin* | rhapsody*)
12972 dynamic_linker="$host_os dyld"
12973 version_type=darwin
12974 need_lib_prefix=no
12975 need_version=no
12976 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12977 soname_spec='$libname$release$major$shared_ext'
12978 shlibpath_overrides_runpath=yes
12979 shlibpath_var=DYLD_LIBRARY_PATH
12980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12981
12982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12984 ;;
12985
12986 dgux*)
12987 version_type=linux # correct to gnu/linux during the next big refactor
12988 need_lib_prefix=no
12989 need_version=no
12990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12991 soname_spec='$libname$release$shared_ext$major'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 ;;
12994
12995 freebsd* | dragonfly* | midnightbsd*)
12996 # DragonFly does not have aout. When/if they implement a new
12997 # versioning mechanism, adjust this.
12998 if test -x /usr/bin/objformat; then
12999 objformat=`/usr/bin/objformat`
13000 else
13001 case $host_os in
13002 freebsd[23].*) objformat=aout ;;
13003 *) objformat=elf ;;
13004 esac
13005 fi
13006 version_type=freebsd-$objformat
13007 case $version_type in
13008 freebsd-elf*)
13009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010 soname_spec='$libname$release$shared_ext$major'
13011 need_version=no
13012 need_lib_prefix=no
13013 ;;
13014 freebsd-*)
13015 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13016 need_version=yes
13017 ;;
13018 esac
13019 case $host_cpu in
13020 powerpc64)
13021 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13022 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025 int test_pointer_size[sizeof (void *) - 5];
13026
13027 _ACEOF
13028 if ac_fn_c_try_compile "$LINENO"
13029 then :
13030 shlibpath_var=LD_LIBRARY_PATH
13031 else case e in #(
13032 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13033 esac
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13036 ;;
13037 *)
13038 shlibpath_var=LD_LIBRARY_PATH
13039 ;;
13040 esac
13041 case $host_os in
13042 freebsd2.*)
13043 shlibpath_overrides_runpath=yes
13044 ;;
13045 freebsd3.[01]* | freebsdelf3.[01]*)
13046 shlibpath_overrides_runpath=yes
13047 hardcode_into_libs=yes
13048 ;;
13049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13051 shlibpath_overrides_runpath=no
13052 hardcode_into_libs=yes
13053 ;;
13054 *) # from 4.6 on, and DragonFly
13055 shlibpath_overrides_runpath=yes
13056 hardcode_into_libs=yes
13057 ;;
13058 esac
13059 ;;
13060
13061 haiku*)
13062 version_type=linux # correct to gnu/linux during the next big refactor
13063 need_lib_prefix=no
13064 need_version=no
13065 dynamic_linker="$host_os runtime_loader"
13066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13067 soname_spec='$libname$release$shared_ext$major'
13068 shlibpath_var=LIBRARY_PATH
13069 shlibpath_overrides_runpath=no
13070 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13071 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13072 hardcode_into_libs=no
13073 ;;
13074
13075 hpux9* | hpux10* | hpux11*)
13076 # Give a soname corresponding to the major version so that dld.sl refuses to
13077 # link against other versions.
13078 version_type=sunos
13079 need_lib_prefix=no
13080 need_version=no
13081 case $host_cpu in
13082 ia64*)
13083 shrext_cmds='.so'
13084 hardcode_into_libs=yes
13085 dynamic_linker="$host_os dld.so"
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13089 soname_spec='$libname$release$shared_ext$major'
13090 if test 32 = "$HPUX_IA64_MODE"; then
13091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13092 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13093 else
13094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13095 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13096 fi
13097 ;;
13098 hppa*64*)
13099 shrext_cmds='.sl'
13100 hardcode_into_libs=yes
13101 dynamic_linker="$host_os dld.sl"
13102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13105 soname_spec='$libname$release$shared_ext$major'
13106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13108 ;;
13109 *)
13110 shrext_cmds='.sl'
13111 dynamic_linker="$host_os dld.sl"
13112 shlibpath_var=SHLIB_PATH
13113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115 soname_spec='$libname$release$shared_ext$major'
13116 ;;
13117 esac
13118 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13119 postinstall_cmds='chmod 555 $lib'
13120 # or fails outright, so override atomically:
13121 install_override_mode=555
13122 ;;
13123
13124 interix[3-9]*)
13125 version_type=linux # correct to gnu/linux during the next big refactor
13126 need_lib_prefix=no
13127 need_version=no
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 soname_spec='$libname$release$shared_ext$major'
13130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=no
13133 hardcode_into_libs=yes
13134 ;;
13135
13136 irix5* | irix6* | nonstopux*)
13137 case $host_os in
13138 nonstopux*) version_type=nonstopux ;;
13139 *)
13140 if test yes = "$lt_cv_prog_gnu_ld"; then
13141 version_type=linux # correct to gnu/linux during the next big refactor
13142 else
13143 version_type=irix
13144 fi ;;
13145 esac
13146 need_lib_prefix=no
13147 need_version=no
13148 soname_spec='$libname$release$shared_ext$major'
13149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13150 case $host_os in
13151 irix5* | nonstopux*)
13152 libsuff= shlibsuff=
13153 ;;
13154 *)
13155 case $LD in # libtool.m4 will add one of these switches to LD
13156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13157 libsuff= shlibsuff= libmagic=32-bit;;
13158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13159 libsuff=32 shlibsuff=N32 libmagic=N32;;
13160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13162 *) libsuff= shlibsuff= libmagic=never-match;;
13163 esac
13164 ;;
13165 esac
13166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13167 shlibpath_overrides_runpath=no
13168 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13169 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13170 hardcode_into_libs=yes
13171 ;;
13172
13173 # No shared lib support for Linux oldld, aout, or coff.
13174 linux*oldld* | linux*aout* | linux*coff*)
13175 dynamic_linker=no
13176 ;;
13177
13178 linux*android*)
13179 version_type=none # Android doesn't support versioned libraries.
13180 need_lib_prefix=no
13181 need_version=no
13182 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13183 soname_spec='$libname$release$shared_ext'
13184 finish_cmds=
13185 shlibpath_var=LD_LIBRARY_PATH
13186 shlibpath_overrides_runpath=yes
13187
13188 # This implies no fast_install, which is unacceptable.
13189 # Some rework will be needed to allow for fast_install
13190 # before this can be enabled.
13191 hardcode_into_libs=yes
13192
13193 dynamic_linker='Android linker'
13194 # -rpath works at least for libraries that are not overridden by
13195 # libraries installed in system locations.
13196 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13197 ;;
13198
13199 # This must be glibc/ELF.
13200 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13201 version_type=linux # correct to gnu/linux during the next big refactor
13202 need_lib_prefix=no
13203 need_version=no
13204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205 soname_spec='$libname$release$shared_ext$major'
13206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=no
13209
13210 # Some binutils ld are patched to set DT_RUNPATH
13211 if test ${lt_cv_shlibpath_overrides_runpath+y}
13212 then :
13213 printf %s "(cached) " >&6
13214 else case e in #(
13215 e) lt_cv_shlibpath_overrides_runpath=no
13216 save_LDFLAGS=$LDFLAGS
13217 save_libdir=$libdir
13218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222
13223 int
13224 main (void)
13225 {
13226
13227 ;
13228 return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_link "$LINENO"
13232 then :
13233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13234 then :
13235 lt_cv_shlibpath_overrides_runpath=yes
13236 fi
13237 fi
13238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13239 conftest$ac_exeext conftest.$ac_ext
13240 LDFLAGS=$save_LDFLAGS
13241 libdir=$save_libdir
13242 ;;
13243 esac
13244 fi
13245
13246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13247
13248 # This implies no fast_install, which is unacceptable.
13249 # Some rework will be needed to allow for fast_install
13250 # before this can be enabled.
13251 hardcode_into_libs=yes
13252
13253 # Ideally, we could use ldconfig to report *all* directories which are
13254 # searched for libraries, however this is still not possible. Aside from not
13255 # being certain /sbin/ldconfig is available, command
13256 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13257 # even though it is searched at run-time. Try to do the best guess by
13258 # appending ld.so.conf contents (and includes) to the search path.
13259 if test -f /etc/ld.so.conf; then
13260 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' ' '`
13261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13262 fi
13263
13264 # We used to test for /lib/ld.so.1 and disable shared libraries on
13265 # powerpc, because MkLinux only supported shared libraries with the
13266 # GNU dynamic linker. Since this was broken with cross compilers,
13267 # most powerpc-linux boxes support dynamic linking these days and
13268 # people can always --disable-shared, the test was removed, and we
13269 # assume the GNU/Linux dynamic linker is in use.
13270 dynamic_linker='GNU/Linux ld.so'
13271 ;;
13272
13273 netbsdelf*-gnu)
13274 version_type=linux
13275 need_lib_prefix=no
13276 need_version=no
13277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13278 soname_spec='$libname$release$shared_ext$major'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13282 dynamic_linker='NetBSD ld.elf_so'
13283 ;;
13284
13285 netbsdelf*-gnu)
13286 version_type=linux
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13294 dynamic_linker='NetBSD ld.elf_so'
13295 ;;
13296
13297 netbsd*)
13298 version_type=sunos
13299 need_lib_prefix=no
13300 need_version=no
13301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13302 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 dynamic_linker='NetBSD (a.out) ld.so'
13305 else
13306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13307 soname_spec='$libname$release$shared_ext$major'
13308 dynamic_linker='NetBSD ld.elf_so'
13309 fi
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes
13312 hardcode_into_libs=yes
13313 ;;
13314
13315 *-mlibc)
13316 version_type=linux # correct to gnu/linux during the next big refactor
13317 need_lib_prefix=no
13318 need_version=no
13319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13320 soname_spec='$libname$release$shared_ext$major'
13321 dynamic_linker='mlibc ld.so'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=no
13324 hardcode_into_libs=yes
13325 ;;
13326
13327 newsos6)
13328 version_type=linux # correct to gnu/linux during the next big refactor
13329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=yes
13332 ;;
13333
13334 *nto* | *qnx*)
13335 version_type=qnx
13336 need_lib_prefix=no
13337 need_version=no
13338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13339 soname_spec='$libname$release$shared_ext$major'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=no
13342 hardcode_into_libs=yes
13343 dynamic_linker='ldqnx.so'
13344 ;;
13345
13346 openbsd*)
13347 version_type=sunos
13348 sys_lib_dlsearch_path_spec=/usr/lib
13349 need_lib_prefix=no
13350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13351 need_version=no
13352 else
13353 need_version=yes
13354 fi
13355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13359 ;;
13360
13361 os2*)
13362 libname_spec='$name'
13363 version_type=windows
13364 shrext_cmds=.dll
13365 need_version=no
13366 need_lib_prefix=no
13367 # OS/2 can only load a DLL with a base name of 8 characters or less.
13368 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13369 v=$($ECHO $release$versuffix | tr -d .-);
13370 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13371 $ECHO $n$v`$shared_ext'
13372 library_names_spec='${libname}_dll.$libext'
13373 dynamic_linker='OS/2 ld.exe'
13374 shlibpath_var=BEGINLIBPATH
13375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13377 postinstall_cmds='base_file=`basename \$file`~
13378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13379 dldir=$destdir/`dirname \$dlpath`~
13380 test -d \$dldir || mkdir -p \$dldir~
13381 $install_prog $dir/$dlname \$dldir/$dlname~
13382 chmod a+x \$dldir/$dlname~
13383 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13384 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13385 fi'
13386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13387 dlpath=$dir/\$dldll~
13388 $RM \$dlpath'
13389 ;;
13390
13391 osf3* | osf4* | osf5*)
13392 version_type=osf
13393 need_lib_prefix=no
13394 need_version=no
13395 soname_spec='$libname$release$shared_ext$major'
13396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13400 ;;
13401
13402 rdos*)
13403 dynamic_linker=no
13404 ;;
13405
13406 serenity*)
13407 version_type=linux # correct to gnu/linux during the next big refactor
13408 need_lib_prefix=no
13409 need_version=no
13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13411 soname_spec='$libname$release$shared_ext$major'
13412 shlibpath_var=LD_LIBRARY_PATH
13413 shlibpath_overrides_runpath=no
13414 dynamic_linker='SerenityOS LibELF'
13415 ;;
13416
13417 solaris*)
13418 version_type=linux # correct to gnu/linux during the next big refactor
13419 need_lib_prefix=no
13420 need_version=no
13421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13422 soname_spec='$libname$release$shared_ext$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=yes
13425 hardcode_into_libs=yes
13426 # ldd complains unless libraries are executable
13427 postinstall_cmds='chmod +x $lib'
13428 ;;
13429
13430 sunos4*)
13431 version_type=sunos
13432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=yes
13436 if test yes = "$with_gnu_ld"; then
13437 need_lib_prefix=no
13438 fi
13439 need_version=yes
13440 ;;
13441
13442 sysv4 | sysv4.3*)
13443 version_type=linux # correct to gnu/linux during the next big refactor
13444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13445 soname_spec='$libname$release$shared_ext$major'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 case $host_vendor in
13448 sni)
13449 shlibpath_overrides_runpath=no
13450 need_lib_prefix=no
13451 runpath_var=LD_RUN_PATH
13452 ;;
13453 siemens)
13454 need_lib_prefix=no
13455 ;;
13456 motorola)
13457 need_lib_prefix=no
13458 need_version=no
13459 shlibpath_overrides_runpath=no
13460 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13461 ;;
13462 esac
13463 ;;
13464
13465 sysv4*MP*)
13466 if test -d /usr/nec; then
13467 version_type=linux # correct to gnu/linux during the next big refactor
13468 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13469 soname_spec='$libname$shared_ext.$major'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 fi
13472 ;;
13473
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475 version_type=sco
13476 need_lib_prefix=no
13477 need_version=no
13478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13479 soname_spec='$libname$release$shared_ext$major'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 shlibpath_overrides_runpath=yes
13482 hardcode_into_libs=yes
13483 if test yes = "$with_gnu_ld"; then
13484 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13485 else
13486 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13487 case $host_os in
13488 sco3.2v5*)
13489 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13490 ;;
13491 esac
13492 fi
13493 sys_lib_dlsearch_path_spec='/usr/lib'
13494 ;;
13495
13496 tpf*)
13497 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13498 version_type=linux # correct to gnu/linux during the next big refactor
13499 need_lib_prefix=no
13500 need_version=no
13501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=no
13504 hardcode_into_libs=yes
13505 ;;
13506
13507 uts4*)
13508 version_type=linux # correct to gnu/linux during the next big refactor
13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510 soname_spec='$libname$release$shared_ext$major'
13511 shlibpath_var=LD_LIBRARY_PATH
13512 ;;
13513
13514 emscripten*)
13515 version_type=none
13516 need_lib_prefix=no
13517 need_version=no
13518 library_names_spec='$libname$release$shared_ext'
13519 soname_spec='$libname$release$shared_ext'
13520 finish_cmds=
13521 dynamic_linker="Emscripten linker"
13522 lt_prog_compiler_wl=
13523 lt_prog_compiler_pic=
13524 lt_prog_compiler_static=
13525
13526
13527 if test yes = "$GCC"; then
13528 lt_prog_compiler_wl='-Wl,'
13529 lt_prog_compiler_static='-static'
13530
13531 case $host_os in
13532 aix*)
13533 # All AIX code is PIC.
13534 if test ia64 = "$host_cpu"; then
13535 # AIX 5 now supports IA64 processor
13536 lt_prog_compiler_static='-Bstatic'
13537 fi
13538 lt_prog_compiler_pic='-fPIC'
13539 ;;
13540
13541 amigaos*)
13542 case $host_cpu in
13543 powerpc)
13544 # see comment about AmigaOS4 .so support
13545 lt_prog_compiler_pic='-fPIC'
13546 ;;
13547 m68k)
13548 # FIXME: we need at least 68020 code to build shared libraries, but
13549 # adding the '-m68020' flag to GCC prevents building anything better,
13550 # like '-m68040'.
13551 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13552 ;;
13553 esac
13554 ;;
13555
13556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13557 # PIC is the default for these OSes.
13558 ;;
13559
13560 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13561 # This hack is so that the source file can tell whether it is being
13562 # built for inclusion in a dll (and should export symbols for example).
13563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13564 # (--disable-auto-import) libraries
13565 lt_prog_compiler_pic='-DDLL_EXPORT'
13566 case $host_os in
13567 os2*)
13568 lt_prog_compiler_static='$wl-static'
13569 ;;
13570 esac
13571 ;;
13572
13573 darwin* | rhapsody*)
13574 # PIC is the default on this platform
13575 # Common symbols not allowed in MH_DYLIB files
13576 lt_prog_compiler_pic='-fno-common'
13577 ;;
13578
13579 haiku*)
13580 # PIC is the default for Haiku.
13581 # The "-static" flag exists, but is broken.
13582 lt_prog_compiler_static=
13583 ;;
13584
13585 hpux*)
13586 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13587 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13588 # sets the default TLS model and affects inlining.
13589 case $host_cpu in
13590 hppa*64*)
13591 # +Z the default
13592 ;;
13593 *)
13594 lt_prog_compiler_pic='-fPIC'
13595 ;;
13596 esac
13597 ;;
13598
13599 interix[3-9]*)
13600 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13601 # Instead, we relocate shared libraries at runtime.
13602 ;;
13603
13604 msdosdjgpp*)
13605 # Just because we use GCC doesn't mean we suddenly get shared libraries
13606 # on systems that don't support them.
13607 lt_prog_compiler_can_build_shared=no
13608 enable_shared=no
13609 ;;
13610
13611 *nto* | *qnx*)
13612 # QNX uses GNU C++, but need to define -shared option too, otherwise
13613 # it will coredump.
13614 lt_prog_compiler_pic='-fPIC -shared'
13615 ;;
13616
13617 sysv4*MP*)
13618 if test -d /usr/nec; then
13619 lt_prog_compiler_pic=-Kconform_pic
13620 fi
13621 ;;
13622
13623 *)
13624 lt_prog_compiler_pic='-fPIC'
13625 ;;
13626 esac
13627
13628 case $cc_basename in
13629 nvcc*) # Cuda Compiler Driver 2.2
13630 lt_prog_compiler_wl='-Xlinker '
13631 if test -n "$lt_prog_compiler_pic"; then
13632 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13633 fi
13634 ;;
13635 esac
13636 else
13637 # PORTME Check for flag to pass linker flags through the system compiler.
13638 case $host_os in
13639 aix*)
13640 lt_prog_compiler_wl='-Wl,'
13641 if test ia64 = "$host_cpu"; then
13642 # AIX 5 now supports IA64 processor
13643 lt_prog_compiler_static='-Bstatic'
13644 else
13645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13646 fi
13647 ;;
13648
13649 darwin* | rhapsody*)
13650 # PIC is the default on this platform
13651 # Common symbols not allowed in MH_DYLIB files
13652 lt_prog_compiler_pic='-fno-common'
13653 case $cc_basename in
13654 nagfor*)
13655 # NAG Fortran compiler
13656 lt_prog_compiler_wl='-Wl,-Wl,,'
13657 lt_prog_compiler_pic='-PIC'
13658 lt_prog_compiler_static='-Bstatic'
13659 ;;
13660 esac
13661 ;;
13662
13663 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13664 # This hack is so that the source file can tell whether it is being
13665 # built for inclusion in a dll (and should export symbols for example).
13666 lt_prog_compiler_pic='-DDLL_EXPORT'
13667 case $host_os in
13668 os2*)
13669 lt_prog_compiler_static='$wl-static'
13670 ;;
13671 esac
13672 ;;
13673
13674 hpux9* | hpux10* | hpux11*)
13675 lt_prog_compiler_wl='-Wl,'
13676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13677 # not for PA HP-UX.
13678 case $host_cpu in
13679 hppa*64*|ia64*)
13680 # +Z the default
13681 ;;
13682 *)
13683 lt_prog_compiler_pic='+Z'
13684 ;;
13685 esac
13686 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13687 lt_prog_compiler_static='$wl-a ${wl}archive'
13688 ;;
13689
13690 irix5* | irix6* | nonstopux*)
13691 lt_prog_compiler_wl='-Wl,'
13692 # PIC (with -KPIC) is the default.
13693 lt_prog_compiler_static='-non_shared'
13694 ;;
13695
13696 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13697 case $cc_basename in
13698 # old Intel for x86_64, which still supported -KPIC.
13699 ecc*)
13700 lt_prog_compiler_wl='-Wl,'
13701 lt_prog_compiler_pic='-KPIC'
13702 lt_prog_compiler_static='-static'
13703 ;;
13704 *flang* | ftn | f18* | f95*)
13705 # Flang compiler.
13706 lt_prog_compiler_wl='-Wl,'
13707 lt_prog_compiler_pic='-fPIC'
13708 lt_prog_compiler_static='-static'
13709 ;;
13710 # flang / f18. f95 an alias for gfortran or flang on Debian
13711 flang* | f18* | f95*)
13712 lt_prog_compiler_wl='-Wl,'
13713 lt_prog_compiler_pic='-fPIC'
13714 lt_prog_compiler_static='-static'
13715 ;;
13716 # icc used to be incompatible with GCC.
13717 # ICC 10 doesn't accept -KPIC any more.
13718 icc* | ifort*)
13719 lt_prog_compiler_wl='-Wl,'
13720 lt_prog_compiler_pic='-fPIC'
13721 lt_prog_compiler_static='-static'
13722 ;;
13723 # Lahey Fortran 8.1.
13724 lf95*)
13725 lt_prog_compiler_wl='-Wl,'
13726 lt_prog_compiler_pic='--shared'
13727 lt_prog_compiler_static='--static'
13728 ;;
13729 nagfor*)
13730 # NAG Fortran compiler
13731 lt_prog_compiler_wl='-Wl,-Wl,,'
13732 lt_prog_compiler_pic='-PIC'
13733 lt_prog_compiler_static='-Bstatic'
13734 ;;
13735 tcc*)
13736 # Fabrice Bellard et al's Tiny C Compiler
13737 lt_prog_compiler_wl='-Wl,'
13738 lt_prog_compiler_pic='-fPIC'
13739 lt_prog_compiler_static='-static'
13740 ;;
13741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13742 # Portland Group compilers (*not* the Pentium gcc compiler,
13743 # which looks to be a dead project)
13744 lt_prog_compiler_wl='-Wl,'
13745 lt_prog_compiler_pic='-fpic'
13746 lt_prog_compiler_static='-Bstatic'
13747 ;;
13748 ccc*)
13749 lt_prog_compiler_wl='-Wl,'
13750 # All Alpha code is PIC.
13751 lt_prog_compiler_static='-non_shared'
13752 ;;
13753 xl* | bgxl* | bgf* | mpixl*)
13754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13755 lt_prog_compiler_wl='-Wl,'
13756 lt_prog_compiler_pic='-qpic'
13757 lt_prog_compiler_static='-qstaticlink'
13758 ;;
13759 *)
13760 case `$CC -V 2>&1 | $SED 5q` in
13761 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13763 lt_prog_compiler_pic='-KPIC'
13764 lt_prog_compiler_static='-Bstatic'
13765 lt_prog_compiler_wl=''
13766 ;;
13767 *Sun\ F* | *Sun*Fortran*)
13768 lt_prog_compiler_pic='-KPIC'
13769 lt_prog_compiler_static='-Bstatic'
13770 lt_prog_compiler_wl='-Qoption ld '
13771 ;;
13772 *Sun\ C*)
13773 # Sun C 5.9
13774 lt_prog_compiler_pic='-KPIC'
13775 lt_prog_compiler_static='-Bstatic'
13776 lt_prog_compiler_wl='-Wl,'
13777 ;;
13778 *Intel*\ [CF]*Compiler*)
13779 lt_prog_compiler_wl='-Wl,'
13780 lt_prog_compiler_pic='-fPIC'
13781 lt_prog_compiler_static='-static'
13782 ;;
13783 *Portland\ Group*)
13784 lt_prog_compiler_wl='-Wl,'
13785 lt_prog_compiler_pic='-fpic'
13786 lt_prog_compiler_static='-Bstatic'
13787 ;;
13788 esac
13789 ;;
13790 esac
13791 ;;
13792
13793 newsos6)
13794 lt_prog_compiler_pic='-KPIC'
13795 lt_prog_compiler_static='-Bstatic'
13796 ;;
13797
13798 *-mlibc)
13799 lt_prog_compiler_wl='-Wl,'
13800 lt_prog_compiler_pic='-fPIC'
13801 lt_prog_compiler_static='-static'
13802 ;;
13803
13804 *nto* | *qnx*)
13805 # QNX uses GNU C++, but need to define -shared option too, otherwise
13806 # it will coredump.
13807 lt_prog_compiler_pic='-fPIC -shared'
13808 ;;
13809
13810 osf3* | osf4* | osf5*)
13811 lt_prog_compiler_wl='-Wl,'
13812 # All OSF/1 code is PIC.
13813 lt_prog_compiler_static='-non_shared'
13814 ;;
13815
13816 rdos*)
13817 lt_prog_compiler_static='-non_shared'
13818 ;;
13819
13820 serenity*)
13821 ;;
13822
13823 solaris*)
13824 lt_prog_compiler_pic='-KPIC'
13825 lt_prog_compiler_static='-Bstatic'
13826 case $cc_basename in
13827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13828 lt_prog_compiler_wl='-Qoption ld ';;
13829 *)
13830 lt_prog_compiler_wl='-Wl,';;
13831 esac
13832 ;;
13833
13834 sunos4*)
13835 lt_prog_compiler_wl='-Qoption ld '
13836 lt_prog_compiler_pic='-PIC'
13837 lt_prog_compiler_static='-Bstatic'
13838 ;;
13839
13840 sysv4 | sysv4.2uw2* | sysv4.3*)
13841 lt_prog_compiler_wl='-Wl,'
13842 lt_prog_compiler_pic='-KPIC'
13843 lt_prog_compiler_static='-Bstatic'
13844 ;;
13845
13846 sysv4*MP*)
13847 if test -d /usr/nec; then
13848 lt_prog_compiler_pic='-Kconform_pic'
13849 lt_prog_compiler_static='-Bstatic'
13850 fi
13851 ;;
13852
13853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13854 lt_prog_compiler_wl='-Wl,'
13855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 unicos*)
13860 lt_prog_compiler_wl='-Wl,'
13861 lt_prog_compiler_can_build_shared=no
13862 ;;
13863
13864 uts4*)
13865 lt_prog_compiler_pic='-pic'
13866 lt_prog_compiler_static='-Bstatic'
13867 ;;
13868
13869 *)
13870 lt_prog_compiler_can_build_shared=no
13871 ;;
13872 esac
13873 fi
13874
13875 case $host_os in
13876 # For platforms that do not support PIC, -DPIC is meaningless:
13877 *djgpp*)
13878 lt_prog_compiler_pic=
13879 ;;
13880 *)
13881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13882 ;;
13883 esac
13884
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13886 printf %s "checking for $compiler option to produce PIC... " >&6; }
13887 if test ${lt_cv_prog_compiler_pic+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else case e in #(
13891 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13892 esac
13893 fi
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13895 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13896 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13897
13898 #
13899 # Check to make sure the PIC flag actually works.
13900 #
13901 if test -n "$lt_prog_compiler_pic"; then
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13903 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13904 if test ${lt_cv_prog_compiler_pic_works+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else case e in #(
13908 e) lt_cv_prog_compiler_pic_works=no
13909 ac_outfile=conftest.$ac_objext
13910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13912 # Insert the option either (1) after the last *FLAGS variable, or
13913 # (2) before a word containing "conftest.", or (3) at the end.
13914 # Note that $ac_compile itself does not contain backslashes and begins
13915 # with a dollar sign (not a hyphen), so the echo should work correctly.
13916 # The option is referenced via a variable to avoid confusing sed.
13917 lt_compile=`echo "$ac_compile" | $SED \
13918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13920 -e 's:$: $lt_compiler_flag:'`
13921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13922 (eval "$lt_compile" 2>conftest.err)
13923 ac_status=$?
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 if (exit $ac_status) && test -s "$ac_outfile"; then
13927 # The compiler can only warn and ignore the option if not recognized
13928 # So say no if there are warnings other than the usual output.
13929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13932 lt_cv_prog_compiler_pic_works=yes
13933 fi
13934 fi
13935 $RM conftest*
13936 ;;
13937 esac
13938 fi
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13940 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13941
13942 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13943 case $lt_prog_compiler_pic in
13944 "" | " "*) ;;
13945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13946 esac
13947 else
13948 lt_prog_compiler_pic=
13949 lt_prog_compiler_can_build_shared=no
13950 fi
13951
13952 fi
13953
13954
13955
13956
13957
13958 #
13959 # Check to make sure the static flag actually works.
13960 #
13961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964 if test ${lt_cv_prog_compiler_static_works+y}
13965 then :
13966 printf %s "(cached) " >&6
13967 else case e in #(
13968 e) lt_cv_prog_compiler_static_works=no
13969 save_LDFLAGS=$LDFLAGS
13970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13973 # The linker can only warn and ignore the option if not recognized
13974 # So say no if there are warnings
13975 if test -s conftest.err; then
13976 # Append any errors to the config.log.
13977 cat conftest.err 1>&5
13978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_cv_prog_compiler_static_works=yes
13982 fi
13983 else
13984 lt_cv_prog_compiler_static_works=yes
13985 fi
13986 fi
13987 $RM -r conftest*
13988 LDFLAGS=$save_LDFLAGS
13989 ;;
13990 esac
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13993 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13994
13995 if test yes = "$lt_cv_prog_compiler_static_works"; then
13996 :
13997 else
13998 lt_prog_compiler_static=
13999 fi
14000
14001
14002
14003 ='-fPIC'
14004 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14005 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14006 archive_cmds_need_lc=no
14007 no_undefined_flag=
14008 ;;
14009
14010 *)
14011 dynamic_linker=no
14012 ;;
14013 esac
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14015 printf "%s\n" "$dynamic_linker" >&6; }
14016 test no = "$dynamic_linker" && can_build_shared=no
14017
14018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14019 if test yes = "$GCC"; then
14020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14021 fi
14022
14023 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14024 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14025 fi
14026
14027 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14028 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14029 fi
14030
14031 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14032 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14033
14034 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14035 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14036
14037 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14038 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14137 printf %s "checking how to hardcode library paths into programs... " >&6; }
14138 hardcode_action=
14139 if test -n "$hardcode_libdir_flag_spec" ||
14140 test -n "$runpath_var" ||
14141 test yes = "$hardcode_automatic"; then
14142
14143 # We can hardcode non-existent directories.
14144 if test no != "$hardcode_direct" &&
14145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14146 # have to relink, otherwise we might link with an installed library
14147 # when we should be linking with a yet-to-be-installed one
14148 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14149 test no != "$hardcode_minus_L"; then
14150 # Linking always hardcodes the temporary library directory.
14151 hardcode_action=relink
14152 else
14153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14154 hardcode_action=immediate
14155 fi
14156 else
14157 # We cannot hardcode anything, or else we can only hardcode existing
14158 # directories.
14159 hardcode_action=unsupported
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14162 printf "%s\n" "$hardcode_action" >&6; }
14163
14164 if test relink = "$hardcode_action" ||
14165 test yes = "$inherit_rpath"; then
14166 # Fast installation is not supported
14167 enable_fast_install=no
14168 elif test yes = "$shlibpath_overrides_runpath" ||
14169 test no = "$enable_shared"; then
14170 # Fast installation is not necessary
14171 enable_fast_install=needless
14172 fi
14173
14174
14175
14176
14177
14178
14179 if test yes != "$enable_dlopen"; then
14180 enable_dlopen=unknown
14181 enable_dlopen_self=unknown
14182 enable_dlopen_self_static=unknown
14183 else
14184 lt_cv_dlopen=no
14185 lt_cv_dlopen_libs=
14186
14187 case $host_os in
14188 beos*)
14189 lt_cv_dlopen=load_add_on
14190 lt_cv_dlopen_libs=
14191 lt_cv_dlopen_self=yes
14192 ;;
14193
14194 mingw* | windows* | pw32* | cegcc*)
14195 lt_cv_dlopen=LoadLibrary
14196 lt_cv_dlopen_libs=
14197 ;;
14198
14199 cygwin*)
14200 lt_cv_dlopen=dlopen
14201 lt_cv_dlopen_libs=
14202 ;;
14203
14204 darwin*)
14205 # if libdl is installed we need to link against it
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14207 printf %s "checking for dlopen in -ldl... " >&6; }
14208 if test ${ac_cv_lib_dl_dlopen+y}
14209 then :
14210 printf %s "(cached) " >&6
14211 else case e in #(
14212 e) ac_check_lib_save_LIBS=$LIBS
14213 LIBS="-ldl $LIBS"
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216
14217 /* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply.
14220 The 'extern "C"' is for builds by C++ compilers;
14221 although this is not generally supported in C code supporting it here
14222 has little cost and some practical benefit (sr 110532). */
14223 #ifdef __cplusplus
14224 extern "C"
14225 #endif
14226 char dlopen (void);
14227 int
14228 main (void)
14229 {
14230 return dlopen ();
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"
14236 then :
14237 ac_cv_lib_dl_dlopen=yes
14238 else case e in #(
14239 e) ac_cv_lib_dl_dlopen=no ;;
14240 esac
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS ;;
14245 esac
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14248 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14249 if test "x$ac_cv_lib_dl_dlopen" = xyes
14250 then :
14251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14252 else case e in #(
14253 e)
14254 lt_cv_dlopen=dyld
14255 lt_cv_dlopen_libs=
14256 lt_cv_dlopen_self=yes
14257 ;;
14258 esac
14259 fi
14260
14261 ;;
14262
14263 tpf*)
14264 # Don't try to run any link tests for TPF. We know it's impossible
14265 # because TPF is a cross-compiler, and we know how we open DSOs.
14266 lt_cv_dlopen=dlopen
14267 lt_cv_dlopen_libs=
14268 lt_cv_dlopen_self=no
14269 ;;
14270
14271 *)
14272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14273 if test "x$ac_cv_func_shl_load" = xyes
14274 then :
14275 lt_cv_dlopen=shl_load
14276 else case e in #(
14277 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14278 printf %s "checking for shl_load in -ldld... " >&6; }
14279 if test ${ac_cv_lib_dld_shl_load+y}
14280 then :
14281 printf %s "(cached) " >&6
14282 else case e in #(
14283 e) ac_check_lib_save_LIBS=$LIBS
14284 LIBS="-ldld $LIBS"
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply.
14291 The 'extern "C"' is for builds by C++ compilers;
14292 although this is not generally supported in C code supporting it here
14293 has little cost and some practical benefit (sr 110532). */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char shl_load (void);
14298 int
14299 main (void)
14300 {
14301 return shl_load ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"
14307 then :
14308 ac_cv_lib_dld_shl_load=yes
14309 else case e in #(
14310 e) ac_cv_lib_dld_shl_load=no ;;
14311 esac
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext
14315 LIBS=$ac_check_lib_save_LIBS ;;
14316 esac
14317 fi
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14319 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14320 if test "x$ac_cv_lib_dld_shl_load" = xyes
14321 then :
14322 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14323 else case e in #(
14324 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14325 if test "x$ac_cv_func_dlopen" = xyes
14326 then :
14327 lt_cv_dlopen=dlopen
14328 else case e in #(
14329 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14330 printf %s "checking for dlopen in -ldl... " >&6; }
14331 if test ${ac_cv_lib_dl_dlopen+y}
14332 then :
14333 printf %s "(cached) " >&6
14334 else case e in #(
14335 e) ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-ldl $LIBS"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply.
14343 The 'extern "C"' is for builds by C++ compilers;
14344 although this is not generally supported in C code supporting it here
14345 has little cost and some practical benefit (sr 110532). */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char dlopen (void);
14350 int
14351 main (void)
14352 {
14353 return dlopen ();
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"
14359 then :
14360 ac_cv_lib_dl_dlopen=yes
14361 else case e in #(
14362 e) ac_cv_lib_dl_dlopen=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS ;;
14368 esac
14369 fi
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14371 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14372 if test "x$ac_cv_lib_dl_dlopen" = xyes
14373 then :
14374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14375 else case e in #(
14376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14377 printf %s "checking for dlopen in -lsvld... " >&6; }
14378 if test ${ac_cv_lib_svld_dlopen+y}
14379 then :
14380 printf %s "(cached) " >&6
14381 else case e in #(
14382 e) ac_check_lib_save_LIBS=$LIBS
14383 LIBS="-lsvld $LIBS"
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply.
14390 The 'extern "C"' is for builds by C++ compilers;
14391 although this is not generally supported in C code supporting it here
14392 has little cost and some practical benefit (sr 110532). */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char dlopen (void);
14397 int
14398 main (void)
14399 {
14400 return dlopen ();
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"
14406 then :
14407 ac_cv_lib_svld_dlopen=yes
14408 else case e in #(
14409 e) ac_cv_lib_svld_dlopen=no ;;
14410 esac
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS ;;
14415 esac
14416 fi
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14418 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14419 if test "x$ac_cv_lib_svld_dlopen" = xyes
14420 then :
14421 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14422 else case e in #(
14423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14424 printf %s "checking for dld_link in -ldld... " >&6; }
14425 if test ${ac_cv_lib_dld_dld_link+y}
14426 then :
14427 printf %s "(cached) " >&6
14428 else case e in #(
14429 e) ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-ldld $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply.
14437 The 'extern "C"' is for builds by C++ compilers;
14438 although this is not generally supported in C code supporting it here
14439 has little cost and some practical benefit (sr 110532). */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char dld_link (void);
14444 int
14445 main (void)
14446 {
14447 return dld_link ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"
14453 then :
14454 ac_cv_lib_dld_dld_link=yes
14455 else case e in #(
14456 e) ac_cv_lib_dld_dld_link=no ;;
14457 esac
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14460 conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS ;;
14462 esac
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14465 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14466 if test "x$ac_cv_lib_dld_dld_link" = xyes
14467 then :
14468 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14469 fi
14470
14471 ;;
14472 esac
14473 fi
14474
14475 ;;
14476 esac
14477 fi
14478
14479 ;;
14480 esac
14481 fi
14482
14483 ;;
14484 esac
14485 fi
14486
14487 ;;
14488 esac
14489 fi
14490
14491 ;;
14492 esac
14493
14494 if test no = "$lt_cv_dlopen"; then
14495 enable_dlopen=no
14496 else
14497 enable_dlopen=yes
14498 fi
14499
14500 case $lt_cv_dlopen in
14501 dlopen)
14502 save_CPPFLAGS=$CPPFLAGS
14503 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14504
14505 save_LDFLAGS=$LDFLAGS
14506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14507
14508 save_LIBS=$LIBS
14509 LIBS="$lt_cv_dlopen_libs $LIBS"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14512 printf %s "checking whether a program can dlopen itself... " >&6; }
14513 if test ${lt_cv_dlopen_self+y}
14514 then :
14515 printf %s "(cached) " >&6
14516 else case e in #(
14517 e) if test yes = "$cross_compiling"; then :
14518 lt_cv_dlopen_self=cross
14519 else
14520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521 lt_status=$lt_dlunknown
14522 cat > conftest.$ac_ext <<_LT_EOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525
14526 #if HAVE_DLFCN_H
14527 #include <dlfcn.h>
14528 #endif
14529
14530 #include <stdio.h>
14531
14532 #ifdef RTLD_GLOBAL
14533 # define LT_DLGLOBAL RTLD_GLOBAL
14534 #else
14535 # ifdef DL_GLOBAL
14536 # define LT_DLGLOBAL DL_GLOBAL
14537 # else
14538 # define LT_DLGLOBAL 0
14539 # endif
14540 #endif
14541
14542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543 find out it does not work in some platform. */
14544 #ifndef LT_DLLAZY_OR_NOW
14545 # ifdef RTLD_LAZY
14546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14547 # else
14548 # ifdef DL_LAZY
14549 # define LT_DLLAZY_OR_NOW DL_LAZY
14550 # else
14551 # ifdef RTLD_NOW
14552 # define LT_DLLAZY_OR_NOW RTLD_NOW
14553 # else
14554 # ifdef DL_NOW
14555 # define LT_DLLAZY_OR_NOW DL_NOW
14556 # else
14557 # define LT_DLLAZY_OR_NOW 0
14558 # endif
14559 # endif
14560 # endif
14561 # endif
14562 #endif
14563
14564 /* When -fvisibility=hidden is used, assume the code has been annotated
14565 correspondingly for the symbols needed. */
14566 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14567 int fnord (void) __attribute__((visibility("default")));
14568 #endif
14569
14570 int fnord (void) { return 42; }
14571 int main (void)
14572 {
14573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14574 int status = $lt_dlunknown;
14575
14576 if (self)
14577 {
14578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14579 else
14580 {
14581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14582 else puts (dlerror ());
14583 }
14584 /* dlclose (self); */
14585 }
14586 else
14587 puts (dlerror ());
14588
14589 return status;
14590 }
14591 _LT_EOF
14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14593 (eval $ac_link) 2>&5
14594 ac_status=$?
14595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14597 (./conftest; exit; ) >&5 2>/dev/null
14598 lt_status=$?
14599 case x$lt_status in
14600 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14601 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14602 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14603 esac
14604 else :
14605 # compilation failed
14606 lt_cv_dlopen_self=no
14607 fi
14608 fi
14609 rm -fr conftest*
14610
14611 ;;
14612 esac
14613 fi
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14615 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14616
14617 if test yes = "$lt_cv_dlopen_self"; then
14618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14620 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14621 if test ${lt_cv_dlopen_self_static+y}
14622 then :
14623 printf %s "(cached) " >&6
14624 else case e in #(
14625 e) if test yes = "$cross_compiling"; then :
14626 lt_cv_dlopen_self_static=cross
14627 else
14628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14629 lt_status=$lt_dlunknown
14630 cat > conftest.$ac_ext <<_LT_EOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633
14634 #if HAVE_DLFCN_H
14635 #include <dlfcn.h>
14636 #endif
14637
14638 #include <stdio.h>
14639
14640 #ifdef RTLD_GLOBAL
14641 # define LT_DLGLOBAL RTLD_GLOBAL
14642 #else
14643 # ifdef DL_GLOBAL
14644 # define LT_DLGLOBAL DL_GLOBAL
14645 # else
14646 # define LT_DLGLOBAL 0
14647 # endif
14648 #endif
14649
14650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14651 find out it does not work in some platform. */
14652 #ifndef LT_DLLAZY_OR_NOW
14653 # ifdef RTLD_LAZY
14654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14655 # else
14656 # ifdef DL_LAZY
14657 # define LT_DLLAZY_OR_NOW DL_LAZY
14658 # else
14659 # ifdef RTLD_NOW
14660 # define LT_DLLAZY_OR_NOW RTLD_NOW
14661 # else
14662 # ifdef DL_NOW
14663 # define LT_DLLAZY_OR_NOW DL_NOW
14664 # else
14665 # define LT_DLLAZY_OR_NOW 0
14666 # endif
14667 # endif
14668 # endif
14669 # endif
14670 #endif
14671
14672 /* When -fvisibility=hidden is used, assume the code has been annotated
14673 correspondingly for the symbols needed. */
14674 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14675 int fnord (void) __attribute__((visibility("default")));
14676 #endif
14677
14678 int fnord (void) { return 42; }
14679 int main (void)
14680 {
14681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14682 int status = $lt_dlunknown;
14683
14684 if (self)
14685 {
14686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14687 else
14688 {
14689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14690 else puts (dlerror ());
14691 }
14692 /* dlclose (self); */
14693 }
14694 else
14695 puts (dlerror ());
14696
14697 return status;
14698 }
14699 _LT_EOF
14700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14705 (./conftest; exit; ) >&5 2>/dev/null
14706 lt_status=$?
14707 case x$lt_status in
14708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14710 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14711 esac
14712 else :
14713 # compilation failed
14714 lt_cv_dlopen_self_static=no
14715 fi
14716 fi
14717 rm -fr conftest*
14718
14719 ;;
14720 esac
14721 fi
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14723 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14724 fi
14725
14726 CPPFLAGS=$save_CPPFLAGS
14727 LDFLAGS=$save_LDFLAGS
14728 LIBS=$save_LIBS
14729 ;;
14730 esac
14731
14732 case $lt_cv_dlopen_self in
14733 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14734 *) enable_dlopen_self=unknown ;;
14735 esac
14736
14737 case $lt_cv_dlopen_self_static in
14738 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14739 *) enable_dlopen_self_static=unknown ;;
14740 esac
14741 fi
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759 striplib=
14760 old_striplib=
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14762 printf %s "checking whether stripping libraries is possible... " >&6; }
14763 if test -z "$STRIP"; then
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 printf "%s\n" "no" >&6; }
14766 else
14767 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14768 old_striplib="$STRIP --strip-debug"
14769 striplib="$STRIP --strip-unneeded"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 printf "%s\n" "yes" >&6; }
14772 else
14773 case $host_os in
14774 darwin*)
14775 # FIXME - insert some real tests, host_os isn't really good enough
14776 striplib="$STRIP -x"
14777 old_striplib="$STRIP -S"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779 printf "%s\n" "yes" >&6; }
14780 ;;
14781 freebsd*)
14782 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14783 old_striplib="$STRIP --strip-debug"
14784 striplib="$STRIP --strip-unneeded"
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 printf "%s\n" "yes" >&6; }
14787 else
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 printf "%s\n" "no" >&6; }
14790 fi
14791 ;;
14792 *)
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 printf "%s\n" "no" >&6; }
14795 ;;
14796 esac
14797 fi
14798 fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811 # Report what library types will actually be built
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14813 printf %s "checking if libtool supports shared libraries... " >&6; }
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14815 printf "%s\n" "$can_build_shared" >&6; }
14816
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14818 printf %s "checking whether to build shared libraries... " >&6; }
14819 test no = "$can_build_shared" && enable_shared=no
14820
14821 # On AIX, shared libraries and static libraries use the same namespace, and
14822 # are all built from PIC.
14823 case $host_os in
14824 aix3*)
14825 test yes = "$enable_shared" && enable_static=no
14826 if test -n "$RANLIB"; then
14827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14828 postinstall_cmds='$RANLIB $lib'
14829 fi
14830 ;;
14831
14832 aix[4-9]*)
14833 if test ia64 != "$host_cpu"; then
14834 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14835 yes,aix,yes) ;; # shared object as lib.so file only
14836 yes,svr4,*) ;; # shared object as lib.so archive member only
14837 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14838 esac
14839 fi
14840 ;;
14841 esac
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14843 printf "%s\n" "$enable_shared" >&6; }
14844
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14846 printf %s "checking whether to build static libraries... " >&6; }
14847 # Make sure either enable_shared or enable_static is yes.
14848 test yes = "$enable_shared" || enable_static=yes
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14850 printf "%s\n" "$enable_static" >&6; }
14851
14852
14853
14854
14855 fi
14856 ac_ext=c
14857 ac_cpp='$CPP $CPPFLAGS'
14858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14861
14862 CC=$lt_save_CC
14863
14864 if test -n "$CXX" && ( test no != "$CXX" &&
14865 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14866 (test g++ != "$CXX"))); then
14867 ac_ext=cpp
14868 ac_cpp='$CXXCPP $CPPFLAGS'
14869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14873 printf %s "checking how to run the C++ preprocessor... " >&6; }
14874 if test -z "$CXXCPP"; then
14875 if test ${ac_cv_prog_CXXCPP+y}
14876 then :
14877 printf %s "(cached) " >&6
14878 else case e in #(
14879 e) # Double quotes because $CXX needs to be expanded
14880 for CXXCPP in "$CXX -E" cpp /lib/cpp
14881 do
14882 ac_preproc_ok=false
14883 for ac_cxx_preproc_warn_flag in '' yes
14884 do
14885 # Use a header file that comes with gcc, so configuring glibc
14886 # with a fresh cross-compiler works.
14887 # On the NeXT, cc -E runs the code through the compiler's parser,
14888 # not just through cpp. "Syntax error" is here to catch this case.
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <limits.h>
14892 Syntax error
14893 _ACEOF
14894 if ac_fn_cxx_try_cpp "$LINENO"
14895 then :
14896
14897 else case e in #(
14898 e) # Broken: fails on valid input.
14899 continue ;;
14900 esac
14901 fi
14902 rm -f conftest.err conftest.i conftest.$ac_ext
14903
14904 # OK, works on sane cases. Now check whether nonexistent headers
14905 # can be detected and how.
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <ac_nonexistent.h>
14909 _ACEOF
14910 if ac_fn_cxx_try_cpp "$LINENO"
14911 then :
14912 # Broken: success on invalid input.
14913 continue
14914 else case e in #(
14915 e) # Passes both tests.
14916 ac_preproc_ok=:
14917 break ;;
14918 esac
14919 fi
14920 rm -f conftest.err conftest.i conftest.$ac_ext
14921
14922 done
14923 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14924 rm -f conftest.i conftest.err conftest.$ac_ext
14925 if $ac_preproc_ok
14926 then :
14927 break
14928 fi
14929
14930 done
14931 ac_cv_prog_CXXCPP=$CXXCPP
14932 ;;
14933 esac
14934 fi
14935 CXXCPP=$ac_cv_prog_CXXCPP
14936 else
14937 ac_cv_prog_CXXCPP=$CXXCPP
14938 fi
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14940 printf "%s\n" "$CXXCPP" >&6; }
14941 ac_preproc_ok=false
14942 for ac_cxx_preproc_warn_flag in '' yes
14943 do
14944 # Use a header file that comes with gcc, so configuring glibc
14945 # with a fresh cross-compiler works.
14946 # On the NeXT, cc -E runs the code through the compiler's parser,
14947 # not just through cpp. "Syntax error" is here to catch this case.
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950 #include <limits.h>
14951 Syntax error
14952 _ACEOF
14953 if ac_fn_cxx_try_cpp "$LINENO"
14954 then :
14955
14956 else case e in #(
14957 e) # Broken: fails on valid input.
14958 continue ;;
14959 esac
14960 fi
14961 rm -f conftest.err conftest.i conftest.$ac_ext
14962
14963 # OK, works on sane cases. Now check whether nonexistent headers
14964 # can be detected and how.
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <ac_nonexistent.h>
14968 _ACEOF
14969 if ac_fn_cxx_try_cpp "$LINENO"
14970 then :
14971 # Broken: success on invalid input.
14972 continue
14973 else case e in #(
14974 e) # Passes both tests.
14975 ac_preproc_ok=:
14976 break ;;
14977 esac
14978 fi
14979 rm -f conftest.err conftest.i conftest.$ac_ext
14980
14981 done
14982 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14983 rm -f conftest.i conftest.err conftest.$ac_ext
14984 if $ac_preproc_ok
14985 then :
14986
14987 else case e in #(
14988 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14989 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14990 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14991 See 'config.log' for more details" "$LINENO" 5; } ;;
14992 esac
14993 fi
14994
14995 ac_ext=c
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15000
15001 else
15002 _lt_caught_CXX_error=yes
15003 fi
15004
15005 ac_ext=cpp
15006 ac_cpp='$CXXCPP $CPPFLAGS'
15007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15010
15011 archive_cmds_need_lc_CXX=no
15012 allow_undefined_flag_CXX=
15013 always_export_symbols_CXX=no
15014 archive_expsym_cmds_CXX=
15015 compiler_needs_object_CXX=no
15016 export_dynamic_flag_spec_CXX=
15017 hardcode_direct_CXX=no
15018 hardcode_direct_absolute_CXX=no
15019 hardcode_libdir_flag_spec_CXX=
15020 hardcode_libdir_separator_CXX=
15021 hardcode_minus_L_CXX=no
15022 hardcode_shlibpath_var_CXX=unsupported
15023 hardcode_automatic_CXX=no
15024 inherit_rpath_CXX=no
15025 module_cmds_CXX=
15026 module_expsym_cmds_CXX=
15027 link_all_deplibs_CXX=unknown
15028 old_archive_cmds_CXX=$old_archive_cmds
15029 reload_flag_CXX=$reload_flag
15030 reload_cmds_CXX=$reload_cmds
15031 no_undefined_flag_CXX=
15032 whole_archive_flag_spec_CXX=
15033 enable_shared_with_static_runtimes_CXX=no
15034
15035 # Source file extension for C++ test sources.
15036 ac_ext=cpp
15037
15038 # Object file extension for compiled C++ test sources.
15039 objext=o
15040 objext_CXX=$objext
15041
15042 # No sense in running all these tests if we already determined that
15043 # the CXX compiler isn't working. Some variables (like enable_shared)
15044 # are currently assumed to apply to all compilers on this platform,
15045 # and will be corrupted by setting them based on a non-working compiler.
15046 if test yes != "$_lt_caught_CXX_error"; then
15047 # Code to be used in simple compile tests
15048 lt_simple_compile_test_code="int some_variable = 0;"
15049
15050 # Code to be used in simple link tests
15051 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15052
15053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15054
15055
15056
15057
15058
15059
15060 # If no C compiler was specified, use CC.
15061 LTCC=${LTCC-"$CC"}
15062
15063 # If no C compiler flags were specified, use CFLAGS.
15064 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15065
15066 # Allow CC to be a program name with arguments.
15067 compiler=$CC
15068
15069
15070 # save warnings/boilerplate of simple test code
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15074 _lt_compiler_boilerplate=`cat conftest.err`
15075 $RM conftest*
15076
15077 ac_outfile=conftest.$ac_objext
15078 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15080 _lt_linker_boilerplate=`cat conftest.err`
15081 $RM -r conftest*
15082
15083
15084 # Allow CC to be a program name with arguments.
15085 lt_save_CC=$CC
15086 lt_save_CFLAGS=$CFLAGS
15087 lt_save_LD=$LD
15088 lt_save_GCC=$GCC
15089 GCC=$GXX
15090 lt_save_with_gnu_ld=$with_gnu_ld
15091 lt_save_path_LD=$lt_cv_path_LD
15092 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15093 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15094 else
15095 $as_unset lt_cv_prog_gnu_ld
15096 fi
15097 if test -n "${lt_cv_path_LDCXX+set}"; then
15098 lt_cv_path_LD=$lt_cv_path_LDCXX
15099 else
15100 $as_unset lt_cv_path_LD
15101 fi
15102 test -z "${LDCXX+set}" || LD=$LDCXX
15103 CC=${CXX-"c++"}
15104 CFLAGS=$CXXFLAGS
15105 compiler=$CC
15106 compiler_CXX=$CC
15107 func_cc_basename $compiler
15108 cc_basename=$func_cc_basename_result
15109
15110
15111 if test -n "$compiler"; then
15112 # We don't want -fno-exception when compiling C++ code, so set the
15113 # no_builtin_flag separately
15114 if test yes = "$GXX"; then
15115 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15116 else
15117 lt_prog_compiler_no_builtin_flag_CXX=
15118 fi
15119
15120 if test yes = "$GXX"; then
15121 # Set up default GNU C++ configuration
15122
15123
15124
15125 # Check whether --with-gnu-ld was given.
15126 if test ${with_gnu_ld+y}
15127 then :
15128 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15129 else case e in #(
15130 e) with_gnu_ld=no ;;
15131 esac
15132 fi
15133
15134 ac_prog=ld
15135 if test yes = "$GCC"; then
15136 # Check if gcc -print-prog-name=ld gives a path.
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15138 printf %s "checking for ld used by $CC... " >&6; }
15139 case $host in
15140 *-*-mingw* | *-*-windows*)
15141 # gcc leaves a trailing carriage return, which upsets mingw
15142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15143 *)
15144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15145 esac
15146 case $ac_prog in
15147 # Accept absolute paths.
15148 [\\/]* | ?:[\\/]*)
15149 re_direlt='/[^/][^/]*/\.\./'
15150 # Canonicalize the pathname of ld
15151 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15152 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15153 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15154 done
15155 test -z "$LD" && LD=$ac_prog
15156 ;;
15157 "")
15158 # If it fails, then pretend we aren't using GCC.
15159 ac_prog=ld
15160 ;;
15161 *)
15162 # If it is relative, then search for the first ld in PATH.
15163 with_gnu_ld=unknown
15164 ;;
15165 esac
15166 elif test yes = "$with_gnu_ld"; then
15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15168 printf %s "checking for GNU ld... " >&6; }
15169 else
15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15171 printf %s "checking for non-GNU ld... " >&6; }
15172 fi
15173 if test ${lt_cv_path_LD+y}
15174 then :
15175 printf %s "(cached) " >&6
15176 else case e in #(
15177 e) if test -z "$LD"; then
15178 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15179 for ac_dir in $PATH; do
15180 IFS=$lt_save_ifs
15181 test -z "$ac_dir" && ac_dir=.
15182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15183 lt_cv_path_LD=$ac_dir/$ac_prog
15184 # Check to see if the program is GNU ld. I'd rather use --version,
15185 # but apparently some variants of GNU ld only accept -v.
15186 # Break only if it was the GNU/non-GNU ld that we prefer.
15187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15188 *GNU* | *'with BFD'*)
15189 test no != "$with_gnu_ld" && break
15190 ;;
15191 *)
15192 test yes != "$with_gnu_ld" && break
15193 ;;
15194 esac
15195 fi
15196 done
15197 IFS=$lt_save_ifs
15198 else
15199 lt_cv_path_LD=$LD # Let the user override the test with a path.
15200 fi ;;
15201 esac
15202 fi
15203
15204 LD=$lt_cv_path_LD
15205 if test -n "$LD"; then
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15207 printf "%s\n" "$LD" >&6; }
15208 else
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 printf "%s\n" "no" >&6; }
15211 fi
15212 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15214 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15215 if test ${lt_cv_prog_gnu_ld+y}
15216 then :
15217 printf %s "(cached) " >&6
15218 else case e in #(
15219 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
15220 case `$LD -v 2>&1 </dev/null` in
15221 *GNU* | *'with BFD'*)
15222 lt_cv_prog_gnu_ld=yes
15223 ;;
15224 *)
15225 lt_cv_prog_gnu_ld=no
15226 ;;
15227 esac ;;
15228 esac
15229 fi
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15231 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
15232 with_gnu_ld=$lt_cv_prog_gnu_ld
15233
15234
15235
15236
15237
15238
15239
15240 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15241 # archiving commands below assume that GNU ld is being used.
15242 if test yes = "$with_gnu_ld"; then
15243 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15244 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'
15245
15246 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15247 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15248
15249 # If archive_cmds runs LD, not CC, wlarc should be empty
15250 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15251 # investigate it a little bit more. (MM)
15252 wlarc='$wl'
15253
15254 # ancient GNU ld didn't support --whole-archive et. al.
15255 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15256 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15257 else
15258 whole_archive_flag_spec_CXX=
15259 fi
15260 else
15261 with_gnu_ld=no
15262 wlarc=
15263
15264 # A generic and very simple default shared library creation
15265 # command for GNU C++ for the case where it uses the native
15266 # linker, instead of GNU ld. If possible, this setting should
15267 # overridden to take advantage of the native linker features on
15268 # the platform it is being used on.
15269 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15270 fi
15271
15272 # Commands to make compiler produce verbose output that lists
15273 # what "hidden" libraries, object files and flags are used when
15274 # linking a shared library.
15275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15276
15277 else
15278 GXX=no
15279 with_gnu_ld=no
15280 wlarc=
15281 fi
15282
15283 # PORTME: fill in a description of your system's C++ link characteristics
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15285 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15286 ld_shlibs_CXX=yes
15287 case $host_os in
15288 aix3*)
15289 # FIXME: insert proper C++ library support
15290 ld_shlibs_CXX=no
15291 ;;
15292 aix[4-9]*)
15293 if test ia64 = "$host_cpu"; then
15294 # On IA64, the linker does run time linking by default, so we don't
15295 # have to do anything special.
15296 aix_use_runtimelinking=no
15297 exp_sym_flag='-Bexport'
15298 no_entry_flag=
15299 else
15300 aix_use_runtimelinking=no
15301
15302 # Test if we are trying to use run time linking or normal
15303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15304 # have runtime linking enabled, and use it for executables.
15305 # For shared libraries, we enable/disable runtime linking
15306 # depending on the kind of the shared library created -
15307 # when "with_aix_soname,aix_use_runtimelinking" is:
15308 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15309 # "aix,yes" lib.so shared, rtl:yes, for executables
15310 # lib.a static archive
15311 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15312 # lib.a(lib.so.V) shared, rtl:no, for executables
15313 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15314 # lib.a(lib.so.V) shared, rtl:no
15315 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15316 # lib.a static archive
15317 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15318 for ld_flag in $LDFLAGS; do
15319 case $ld_flag in
15320 *-brtl*)
15321 aix_use_runtimelinking=yes
15322 break
15323 ;;
15324 esac
15325 done
15326 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15327 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15328 # so we don't have lib.a shared libs to link our executables.
15329 # We have to force runtime linking in this case.
15330 aix_use_runtimelinking=yes
15331 LDFLAGS="$LDFLAGS -Wl,-brtl"
15332 fi
15333 ;;
15334 esac
15335
15336 exp_sym_flag='-bexport'
15337 no_entry_flag='-bnoentry'
15338 fi
15339
15340 # When large executables or shared objects are built, AIX ld can
15341 # have problems creating the table of contents. If linking a library
15342 # or program results in "error TOC overflow" add -mminimal-toc to
15343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15345
15346 archive_cmds_CXX=''
15347 hardcode_direct_CXX=yes
15348 hardcode_direct_absolute_CXX=yes
15349 hardcode_libdir_separator_CXX=':'
15350 link_all_deplibs_CXX=yes
15351 file_list_spec_CXX='$wl-f,'
15352 case $with_aix_soname,$aix_use_runtimelinking in
15353 aix,*) ;; # no import file
15354 svr4,* | *,yes) # use import file
15355 # The Import File defines what to hardcode.
15356 hardcode_direct_CXX=no
15357 hardcode_direct_absolute_CXX=no
15358 ;;
15359 esac
15360
15361 if test yes = "$GXX"; then
15362 case $host_os in aix4.[012]|aix4.[012].*)
15363 # We only want to do this on AIX 4.2 and lower, the check
15364 # below for broken collect2 doesn't work under 4.3+
15365 collect2name=`$CC -print-prog-name=collect2`
15366 if test -f "$collect2name" &&
15367 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15368 then
15369 # We have reworked collect2
15370 :
15371 else
15372 # We have old collect2
15373 hardcode_direct_CXX=unsupported
15374 # It fails to find uninstalled libraries when the uninstalled
15375 # path is not listed in the libpath. Setting hardcode_minus_L
15376 # to unsupported forces relinking
15377 hardcode_minus_L_CXX=yes
15378 hardcode_libdir_flag_spec_CXX='-L$libdir'
15379 hardcode_libdir_separator_CXX=
15380 fi
15381 esac
15382 shared_flag='-shared'
15383 if test yes = "$aix_use_runtimelinking"; then
15384 shared_flag=$shared_flag' $wl-G'
15385 fi
15386 # Need to ensure runtime linking is disabled for the traditional
15387 # shared library, or the linker may eventually find shared libraries
15388 # /with/ Import File - we do not want to mix them.
15389 shared_flag_aix='-shared'
15390 shared_flag_svr4='-shared $wl-G'
15391 else
15392 # not using gcc
15393 if test ia64 = "$host_cpu"; then
15394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15395 # chokes on -Wl,-G. The following line is correct:
15396 shared_flag='-G'
15397 else
15398 if test yes = "$aix_use_runtimelinking"; then
15399 shared_flag='$wl-G'
15400 else
15401 shared_flag='$wl-bM:SRE'
15402 fi
15403 shared_flag_aix='$wl-bM:SRE'
15404 shared_flag_svr4='$wl-G'
15405 fi
15406 fi
15407
15408 export_dynamic_flag_spec_CXX='$wl-bexpall'
15409 # It seems that -bexpall does not export symbols beginning with
15410 # underscore (_), so it is better to generate a list of symbols to
15411 # export.
15412 always_export_symbols_CXX=yes
15413 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15414 # Warning - without using the other runtime loading flags (-brtl),
15415 # -berok will link without error, but may produce a broken library.
15416 # The "-G" linker flag allows undefined symbols.
15417 no_undefined_flag_CXX='-bernotok'
15418 # Determine the default libpath from the value encoded in an empty
15419 # executable.
15420 if test set = "${lt_cv_aix_libpath+set}"; then
15421 aix_libpath=$lt_cv_aix_libpath
15422 else
15423 if test ${lt_cv_aix_libpath__CXX+y}
15424 then :
15425 printf %s "(cached) " >&6
15426 else case e in #(
15427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429
15430 int
15431 main (void)
15432 {
15433
15434 ;
15435 return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_cxx_try_link "$LINENO"
15439 then :
15440
15441 lt_aix_libpath_sed='
15442 /Import File Strings/,/^$/ {
15443 /^0/ {
15444 s/^0 *\([^ ]*\) *$/\1/
15445 p
15446 }
15447 }'
15448 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15449 # Check for a 64-bit object if we didn't find anything.
15450 if test -z "$lt_cv_aix_libpath__CXX"; then
15451 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15452 fi
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15455 conftest$ac_exeext conftest.$ac_ext
15456 if test -z "$lt_cv_aix_libpath__CXX"; then
15457 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15458 fi
15459 ;;
15460 esac
15461 fi
15462
15463 aix_libpath=$lt_cv_aix_libpath__CXX
15464 fi
15465
15466 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15467
15468 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
15469 else
15470 if test ia64 = "$host_cpu"; then
15471 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15472 allow_undefined_flag_CXX="-z nodefs"
15473 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"
15474 else
15475 # Determine the default libpath from the value encoded in an
15476 # empty executable.
15477 if test set = "${lt_cv_aix_libpath+set}"; then
15478 aix_libpath=$lt_cv_aix_libpath
15479 else
15480 if test ${lt_cv_aix_libpath__CXX+y}
15481 then :
15482 printf %s "(cached) " >&6
15483 else case e in #(
15484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486
15487 int
15488 main (void)
15489 {
15490
15491 ;
15492 return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_cxx_try_link "$LINENO"
15496 then :
15497
15498 lt_aix_libpath_sed='
15499 /Import File Strings/,/^$/ {
15500 /^0/ {
15501 s/^0 *\([^ ]*\) *$/\1/
15502 p
15503 }
15504 }'
15505 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15506 # Check for a 64-bit object if we didn't find anything.
15507 if test -z "$lt_cv_aix_libpath__CXX"; then
15508 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15509 fi
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15512 conftest$ac_exeext conftest.$ac_ext
15513 if test -z "$lt_cv_aix_libpath__CXX"; then
15514 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15515 fi
15516 ;;
15517 esac
15518 fi
15519
15520 aix_libpath=$lt_cv_aix_libpath__CXX
15521 fi
15522
15523 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15524 # Warning - without using the other run time loading flags,
15525 # -berok will link without error, but may produce a broken library.
15526 no_undefined_flag_CXX=' $wl-bernotok'
15527 allow_undefined_flag_CXX=' $wl-berok'
15528 if test yes = "$with_gnu_ld"; then
15529 # We only use this code for GNU lds that support --whole-archive.
15530 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15531 else
15532 # Exported symbols can be pulled into shared objects from archives
15533 whole_archive_flag_spec_CXX='$convenience'
15534 fi
15535 archive_cmds_need_lc_CXX=yes
15536 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15537 # -brtl affects multiple linker settings, -berok does not and is overridden later
15538 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15539 if test svr4 != "$with_aix_soname"; then
15540 # This is similar to how AIX traditionally builds its shared
15541 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15542 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'
15543 fi
15544 if test aix != "$with_aix_soname"; then
15545 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'
15546 else
15547 # used by -dlpreopen to get the symbols
15548 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15549 fi
15550 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15551 fi
15552 fi
15553 ;;
15554
15555 beos*)
15556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15557 allow_undefined_flag_CXX=unsupported
15558 # Joseph Beckenbach <[email protected]> says some releases of gcc
15559 # support --undefined. This deserves some investigation. FIXME
15560 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15561 else
15562 ld_shlibs_CXX=no
15563 fi
15564 ;;
15565
15566 chorus*)
15567 case $cc_basename in
15568 *)
15569 # FIXME: insert proper C++ library support
15570 ld_shlibs_CXX=no
15571 ;;
15572 esac
15573 ;;
15574
15575 cygwin* | mingw* | windows* | pw32* | cegcc*)
15576 case $GXX,$cc_basename in
15577 ,cl* | no,cl* | ,icl* | no,icl*)
15578 # Native MSVC or ICC
15579 # hardcode_libdir_flag_spec is actually meaningless, as there is
15580 # no search path for DLLs.
15581 hardcode_libdir_flag_spec_CXX=' '
15582 allow_undefined_flag_CXX=unsupported
15583 always_export_symbols_CXX=yes
15584 file_list_spec_CXX='@'
15585 # Tell ltmain to make .lib files, not .a files.
15586 libext=lib
15587 # Tell ltmain to make .dll files, not .so files.
15588 shrext_cmds=.dll
15589 # FIXME: Setting linknames here is a bad hack.
15590 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15591 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15592 cp "$export_symbols" "$output_objdir/$soname.def";
15593 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15594 else
15595 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15596 fi~
15597 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15598 linknames='
15599 # The linker will not automatically build a static lib if we build a DLL.
15600 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15601 enable_shared_with_static_runtimes_CXX=yes
15602 # Don't use ranlib
15603 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15604 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15605 lt_tool_outputfile="@TOOL_OUTPUT@"~
15606 case $lt_outputfile in
15607 *.exe|*.EXE) ;;
15608 *)
15609 lt_outputfile=$lt_outputfile.exe
15610 lt_tool_outputfile=$lt_tool_outputfile.exe
15611 ;;
15612 esac~
15613 func_to_tool_file "$lt_outputfile"~
15614 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15615 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15616 $RM "$lt_outputfile.manifest";
15617 fi'
15618 ;;
15619 *)
15620 # g++
15621 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15622 # as there is no search path for DLLs.
15623 hardcode_libdir_flag_spec_CXX='-L$libdir'
15624 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15625 allow_undefined_flag_CXX=unsupported
15626 always_export_symbols_CXX=no
15627 enable_shared_with_static_runtimes_CXX=yes
15628 file_list_spec_CXX='@'
15629
15630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15631 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'
15632 # If the export-symbols file already is a .def file, use it as
15633 # is; otherwise, prepend EXPORTS...
15634 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15635 cp $export_symbols $output_objdir/$soname.def;
15636 else
15637 echo EXPORTS > $output_objdir/$soname.def;
15638 cat $export_symbols >> $output_objdir/$soname.def;
15639 fi~
15640 $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'
15641 else
15642 ld_shlibs_CXX=no
15643 fi
15644 ;;
15645 esac
15646 ;;
15647 darwin* | rhapsody*)
15648
15649
15650 archive_cmds_need_lc_CXX=no
15651 hardcode_direct_CXX=no
15652 hardcode_automatic_CXX=yes
15653 hardcode_shlibpath_var_CXX=unsupported
15654 if test yes = "$lt_cv_ld_force_load"; then
15655 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\"`'
15656
15657 else
15658 whole_archive_flag_spec_CXX=''
15659 fi
15660 link_all_deplibs_CXX=yes
15661 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15662 case $cc_basename in
15663 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15664 *) _lt_dar_can_shared=$GCC ;;
15665 esac
15666 if test yes = "$_lt_dar_can_shared"; then
15667 output_verbose_link_cmd=func_echo_all
15668 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"
15669 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15670 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"
15671 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"
15672 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15673 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"
15674 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"
15675 fi
15676
15677 else
15678 ld_shlibs_CXX=no
15679 fi
15680
15681 ;;
15682
15683 os2*)
15684 hardcode_libdir_flag_spec_CXX='-L$libdir'
15685 hardcode_minus_L_CXX=yes
15686 allow_undefined_flag_CXX=unsupported
15687 shrext_cmds=.dll
15688 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15689 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15690 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15691 $ECHO EXPORTS >> $output_objdir/$libname.def~
15692 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15693 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15694 emximp -o $lib $output_objdir/$libname.def'
15695 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15696 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15697 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15698 $ECHO EXPORTS >> $output_objdir/$libname.def~
15699 prefix_cmds="$SED"~
15700 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15701 prefix_cmds="$prefix_cmds -e 1d";
15702 fi~
15703 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15704 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15705 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15706 emximp -o $lib $output_objdir/$libname.def'
15707 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15708 enable_shared_with_static_runtimes_CXX=yes
15709 file_list_spec_CXX='@'
15710 ;;
15711
15712 dgux*)
15713 case $cc_basename in
15714 ec++*)
15715 # FIXME: insert proper C++ library support
15716 ld_shlibs_CXX=no
15717 ;;
15718 ghcx*)
15719 # Green Hills C++ Compiler
15720 # FIXME: insert proper C++ library support
15721 ld_shlibs_CXX=no
15722 ;;
15723 *)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727 esac
15728 ;;
15729
15730 freebsd2.*)
15731 # C++ shared libraries reported to be fairly broken before
15732 # switch to ELF
15733 ld_shlibs_CXX=no
15734 ;;
15735
15736 freebsd-elf*)
15737 archive_cmds_need_lc_CXX=no
15738 ;;
15739
15740 freebsd* | dragonfly* | midnightbsd*)
15741 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15742 # conventions
15743 ld_shlibs_CXX=yes
15744 ;;
15745
15746 haiku*)
15747 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15748 link_all_deplibs_CXX=no
15749 ;;
15750
15751 hpux9*)
15752 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15753 hardcode_libdir_separator_CXX=:
15754 export_dynamic_flag_spec_CXX='$wl-E'
15755 hardcode_direct_CXX=yes
15756 hardcode_minus_L_CXX=yes # Not in the search PATH,
15757 # but as the default
15758 # location of the library.
15759
15760 case $cc_basename in
15761 CC*)
15762 # FIXME: insert proper C++ library support
15763 ld_shlibs_CXX=no
15764 ;;
15765 aCC*)
15766 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'
15767 # Commands to make compiler produce verbose output that lists
15768 # what "hidden" libraries, object files and flags are used when
15769 # linking a shared library.
15770 #
15771 # There doesn't appear to be a way to prevent this compiler from
15772 # explicitly linking system object files so we need to strip them
15773 # from the output so that they don't get included in the library
15774 # dependencies.
15775 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"'
15776 ;;
15777 *)
15778 if test yes = "$GXX"; then
15779 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'
15780 else
15781 # FIXME: insert proper C++ library support
15782 ld_shlibs_CXX=no
15783 fi
15784 ;;
15785 esac
15786 ;;
15787
15788 hpux10*|hpux11*)
15789 if test no = "$with_gnu_ld"; then
15790 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15791 hardcode_libdir_separator_CXX=:
15792
15793 case $host_cpu in
15794 hppa*64*|ia64*)
15795 ;;
15796 *)
15797 export_dynamic_flag_spec_CXX='$wl-E'
15798 ;;
15799 esac
15800 fi
15801 case $host_cpu in
15802 hppa*64*|ia64*)
15803 hardcode_direct_CXX=no
15804 hardcode_shlibpath_var_CXX=no
15805 ;;
15806 *)
15807 hardcode_direct_CXX=yes
15808 hardcode_direct_absolute_CXX=yes
15809 hardcode_minus_L_CXX=yes # Not in the search PATH,
15810 # but as the default
15811 # location of the library.
15812 ;;
15813 esac
15814
15815 case $cc_basename in
15816 CC*)
15817 # FIXME: insert proper C++ library support
15818 ld_shlibs_CXX=no
15819 ;;
15820 aCC*)
15821 case $host_cpu in
15822 hppa*64*)
15823 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15824 ;;
15825 ia64*)
15826 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15827 ;;
15828 *)
15829 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15830 ;;
15831 esac
15832 # Commands to make compiler produce verbose output that lists
15833 # what "hidden" libraries, object files and flags are used when
15834 # linking a shared library.
15835 #
15836 # There doesn't appear to be a way to prevent this compiler from
15837 # explicitly linking system object files so we need to strip them
15838 # from the output so that they don't get included in the library
15839 # dependencies.
15840 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"'
15841 ;;
15842 *)
15843 if test yes = "$GXX"; then
15844 if test no = "$with_gnu_ld"; then
15845 case $host_cpu in
15846 hppa*64*)
15847 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15848 ;;
15849 ia64*)
15850 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15851 ;;
15852 *)
15853 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'
15854 ;;
15855 esac
15856 fi
15857 else
15858 # FIXME: insert proper C++ library support
15859 ld_shlibs_CXX=no
15860 fi
15861 ;;
15862 esac
15863 ;;
15864
15865 interix[3-9]*)
15866 hardcode_direct_CXX=no
15867 hardcode_shlibpath_var_CXX=no
15868 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15869 export_dynamic_flag_spec_CXX='$wl-E'
15870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15871 # Instead, shared libraries are loaded at an image base (0x10000000 by
15872 # default) and relocated if they conflict, which is a slow very memory
15873 # consuming and fragmenting process. To avoid this, we pick a random,
15874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15876 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'
15877 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'
15878 ;;
15879 irix5* | irix6*)
15880 case $cc_basename in
15881 CC*)
15882 # SGI C++
15883 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'
15884
15885 # Archives containing C++ object files must be created using
15886 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15887 # necessary to make sure instantiated templates are included
15888 # in the archive.
15889 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15890 ;;
15891 *)
15892 if test yes = "$GXX"; then
15893 if test no = "$with_gnu_ld"; then
15894 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'
15895 else
15896 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'
15897 fi
15898 fi
15899 link_all_deplibs_CXX=yes
15900 ;;
15901 esac
15902 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15903 hardcode_libdir_separator_CXX=:
15904 inherit_rpath_CXX=yes
15905 ;;
15906
15907 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15908 case $cc_basename in
15909 KCC*)
15910 # Kuck and Associates, Inc. (KAI) C++ Compiler
15911
15912 # KCC will only create a shared library if the output file
15913 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15914 # to its proper name (with version) after linking.
15915 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'
15916 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'
15917 # Commands to make compiler produce verbose output that lists
15918 # what "hidden" libraries, object files and flags are used when
15919 # linking a shared library.
15920 #
15921 # There doesn't appear to be a way to prevent this compiler from
15922 # explicitly linking system object files so we need to strip them
15923 # from the output so that they don't get included in the library
15924 # dependencies.
15925 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"'
15926
15927 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15928 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15929
15930 # Archives containing C++ object files must be created using
15931 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15932 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15933 ;;
15934 icpc* | ecpc* )
15935 # Intel C++
15936 with_gnu_ld=yes
15937 # version 8.0 and above of icpc choke on multiply defined symbols
15938 # if we add $predep_objects and $postdep_objects, however 7.1 and
15939 # earlier do not add the objects themselves.
15940 case `$CC -V 2>&1` in
15941 *"Version 7."*)
15942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15943 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'
15944 ;;
15945 *) # Version 8.0 or newer
15946 tmp_idyn=
15947 case $host_cpu in
15948 ia64*) tmp_idyn=' -i_dynamic';;
15949 esac
15950 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15951 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'
15952 ;;
15953 esac
15954 archive_cmds_need_lc_CXX=no
15955 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15956 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15957 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15958 ;;
15959 pgCC* | pgcpp*)
15960 # Portland Group C++ compiler
15961 case `$CC -V` in
15962 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15963 prelink_cmds_CXX='tpldir=Template.dir~
15964 rm -rf $tpldir~
15965 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15966 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15967 old_archive_cmds_CXX='tpldir=Template.dir~
15968 rm -rf $tpldir~
15969 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15970 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15971 $RANLIB $oldlib'
15972 archive_cmds_CXX='tpldir=Template.dir~
15973 rm -rf $tpldir~
15974 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15975 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15976 archive_expsym_cmds_CXX='tpldir=Template.dir~
15977 rm -rf $tpldir~
15978 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15979 $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'
15980 ;;
15981 *) # Version 6 and above use weak symbols
15982 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15983 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'
15984 ;;
15985 esac
15986
15987 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15988 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15989 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'
15990 ;;
15991 cxx*)
15992 # Compaq C++
15993 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15994 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'
15995
15996 runpath_var=LD_RUN_PATH
15997 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15998 hardcode_libdir_separator_CXX=:
15999
16000 # Commands to make compiler produce verbose output that lists
16001 # what "hidden" libraries, object files and flags are used when
16002 # linking a shared library.
16003 #
16004 # There doesn't appear to be a way to prevent this compiler from
16005 # explicitly linking system object files so we need to strip them
16006 # from the output so that they don't get included in the library
16007 # dependencies.
16008 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'
16009 ;;
16010 xl* | mpixl* | bgxl*)
16011 # IBM XL 8.0 on PPC, with GNU ld
16012 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16013 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16014 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16015 if test yes = "$supports_anon_versioning"; then
16016 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16017 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16018 echo "local: *; };" >> $output_objdir/$libname.ver~
16019 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16020 fi
16021 ;;
16022 *)
16023 case `$CC -V 2>&1 | $SED 5q` in
16024 *Sun\ C*)
16025 # Sun C++ 5.9
16026 no_undefined_flag_CXX=' -zdefs'
16027 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16028 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'
16029 hardcode_libdir_flag_spec_CXX='-R$libdir'
16030 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'
16031 compiler_needs_object_CXX=yes
16032
16033 # Not sure whether something based on
16034 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16035 # would be better.
16036 output_verbose_link_cmd='func_echo_all'
16037
16038 # Archives containing C++ object files must be created using
16039 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16040 # necessary to make sure instantiated templates are included
16041 # in the archive.
16042 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16043 ;;
16044 esac
16045 ;;
16046 esac
16047 ;;
16048
16049 lynxos*)
16050 # FIXME: insert proper C++ library support
16051 ld_shlibs_CXX=no
16052 ;;
16053
16054 m88k*)
16055 # FIXME: insert proper C++ library support
16056 ld_shlibs_CXX=no
16057 ;;
16058
16059 mvs*)
16060 case $cc_basename in
16061 cxx*)
16062 # FIXME: insert proper C++ library support
16063 ld_shlibs_CXX=no
16064 ;;
16065 *)
16066 # FIXME: insert proper C++ library support
16067 ld_shlibs_CXX=no
16068 ;;
16069 esac
16070 ;;
16071
16072 *-mlibc)
16073 ld_shlibs_CXX=yes
16074 ;;
16075
16076 netbsd*)
16077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16078 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16079 wlarc=
16080 hardcode_libdir_flag_spec_CXX='-R$libdir'
16081 hardcode_direct_CXX=yes
16082 hardcode_shlibpath_var_CXX=no
16083 fi
16084 # Workaround some broken pre-1.5 toolchains
16085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16086 ;;
16087
16088 *nto* | *qnx*)
16089 ld_shlibs_CXX=yes
16090 ;;
16091
16092 openbsd*)
16093 if test -f /usr/libexec/ld.so; then
16094 hardcode_direct_CXX=yes
16095 hardcode_shlibpath_var_CXX=no
16096 hardcode_direct_absolute_CXX=yes
16097 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16098 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16100 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16101 export_dynamic_flag_spec_CXX='$wl-E'
16102 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16103 fi
16104 output_verbose_link_cmd=func_echo_all
16105 else
16106 ld_shlibs_CXX=no
16107 fi
16108 ;;
16109
16110 osf3* | osf4* | osf5*)
16111 case $cc_basename in
16112 KCC*)
16113 # Kuck and Associates, Inc. (KAI) C++ Compiler
16114
16115 # KCC will only create a shared library if the output file
16116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16117 # to its proper name (with version) after linking.
16118 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'
16119
16120 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16121 hardcode_libdir_separator_CXX=:
16122
16123 # Archives containing C++ object files must be created using
16124 # the KAI C++ compiler.
16125 case $host in
16126 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16127 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16128 esac
16129 ;;
16130 RCC*)
16131 # Rational C++ 2.4.1
16132 # FIXME: insert proper C++ library support
16133 ld_shlibs_CXX=no
16134 ;;
16135 cxx*)
16136 case $host in
16137 osf3*)
16138 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16139 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'
16140 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16141 ;;
16142 *)
16143 allow_undefined_flag_CXX=' -expect_unresolved \*'
16144 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'
16145 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16146 echo "-hidden">> $lib.exp~
16147 $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~
16148 $RM $lib.exp'
16149 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16150 ;;
16151 esac
16152
16153 hardcode_libdir_separator_CXX=:
16154
16155 # Commands to make compiler produce verbose output that lists
16156 # what "hidden" libraries, object files and flags are used when
16157 # linking a shared library.
16158 #
16159 # There doesn't appear to be a way to prevent this compiler from
16160 # explicitly linking system object files so we need to strip them
16161 # from the output so that they don't get included in the library
16162 # dependencies.
16163 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"'
16164 ;;
16165 *)
16166 if test yes,no = "$GXX,$with_gnu_ld"; then
16167 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16168 case $host in
16169 osf3*)
16170 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'
16171 ;;
16172 *)
16173 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'
16174 ;;
16175 esac
16176
16177 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16178 hardcode_libdir_separator_CXX=:
16179
16180 # Commands to make compiler produce verbose output that lists
16181 # what "hidden" libraries, object files and flags are used when
16182 # linking a shared library.
16183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16184
16185 else
16186 # FIXME: insert proper C++ library support
16187 ld_shlibs_CXX=no
16188 fi
16189 ;;
16190 esac
16191 ;;
16192
16193 psos*)
16194 # FIXME: insert proper C++ library support
16195 ld_shlibs_CXX=no
16196 ;;
16197
16198 serenity*)
16199 ;;
16200
16201 sunos4*)
16202 case $cc_basename in
16203 CC*)
16204 # Sun C++ 4.x
16205 # FIXME: insert proper C++ library support
16206 ld_shlibs_CXX=no
16207 ;;
16208 lcc*)
16209 # Lucid
16210 # FIXME: insert proper C++ library support
16211 ld_shlibs_CXX=no
16212 ;;
16213 *)
16214 # FIXME: insert proper C++ library support
16215 ld_shlibs_CXX=no
16216 ;;
16217 esac
16218 ;;
16219
16220 solaris*)
16221 case $cc_basename in
16222 CC* | sunCC*)
16223 # Sun C++ 4.2, 5.x and Centerline C++
16224 archive_cmds_need_lc_CXX=yes
16225 no_undefined_flag_CXX=' -zdefs'
16226 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16228 $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'
16229
16230 hardcode_libdir_flag_spec_CXX='-R$libdir'
16231 hardcode_shlibpath_var_CXX=no
16232 case $host_os in
16233 solaris2.[0-5] | solaris2.[0-5].*) ;;
16234 *)
16235 # The compiler driver will combine and reorder linker options,
16236 # but understands '-z linker_flag'.
16237 # Supported since Solaris 2.6 (maybe 2.5.1?)
16238 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16239 ;;
16240 esac
16241 link_all_deplibs_CXX=yes
16242
16243 output_verbose_link_cmd='func_echo_all'
16244
16245 # Archives containing C++ object files must be created using
16246 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16247 # necessary to make sure instantiated templates are included
16248 # in the archive.
16249 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16250 ;;
16251 gcx*)
16252 # Green Hills C++ Compiler
16253 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16254
16255 # The C++ compiler must be used to create the archive.
16256 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16257 ;;
16258 *)
16259 # GNU C++ compiler with Solaris linker
16260 if test yes,no = "$GXX,$with_gnu_ld"; then
16261 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16262 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16263 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16265 $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'
16266
16267 # Commands to make compiler produce verbose output that lists
16268 # what "hidden" libraries, object files and flags are used when
16269 # linking a shared library.
16270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16271 else
16272 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16273 # platform.
16274 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16275 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16276 $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'
16277
16278 # Commands to make compiler produce verbose output that lists
16279 # what "hidden" libraries, object files and flags are used when
16280 # linking a shared library.
16281 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16282 fi
16283
16284 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16285 case $host_os in
16286 solaris2.[0-5] | solaris2.[0-5].*) ;;
16287 *)
16288 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16289 ;;
16290 esac
16291 fi
16292 ;;
16293 esac
16294 ;;
16295
16296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16297 no_undefined_flag_CXX='$wl-z,text'
16298 archive_cmds_need_lc_CXX=no
16299 hardcode_shlibpath_var_CXX=no
16300 runpath_var='LD_RUN_PATH'
16301
16302 case $cc_basename in
16303 CC*)
16304 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16306 ;;
16307 *)
16308 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16309 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 ;;
16311 esac
16312 ;;
16313
16314 sysv5* | sco3.2v5* | sco5v6*)
16315 # Note: We CANNOT use -z defs as we might desire, because we do not
16316 # link with -lc, and that would cause any symbols used from libc to
16317 # always be unresolved, which means just about no library would
16318 # ever link correctly. If we're not using GNU ld we use -z text
16319 # though, which does catch some bad symbols but isn't as heavy-handed
16320 # as -z defs.
16321 no_undefined_flag_CXX='$wl-z,text'
16322 allow_undefined_flag_CXX='$wl-z,nodefs'
16323 archive_cmds_need_lc_CXX=no
16324 hardcode_shlibpath_var_CXX=no
16325 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16326 hardcode_libdir_separator_CXX=':'
16327 link_all_deplibs_CXX=yes
16328 export_dynamic_flag_spec_CXX='$wl-Bexport'
16329 runpath_var='LD_RUN_PATH'
16330
16331 case $cc_basename in
16332 CC*)
16333 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16334 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16335 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16336 '"$old_archive_cmds_CXX"
16337 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16338 '"$reload_cmds_CXX"
16339 ;;
16340 *)
16341 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16342 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16343 ;;
16344 esac
16345 ;;
16346
16347 tandem*)
16348 case $cc_basename in
16349 NCC*)
16350 # NonStop-UX NCC 3.20
16351 # FIXME: insert proper C++ library support
16352 ld_shlibs_CXX=no
16353 ;;
16354 *)
16355 # FIXME: insert proper C++ library support
16356 ld_shlibs_CXX=no
16357 ;;
16358 esac
16359 ;;
16360
16361 vxworks*)
16362 # FIXME: insert proper C++ library support
16363 ld_shlibs_CXX=no
16364 ;;
16365
16366 *)
16367 # FIXME: insert proper C++ library support
16368 ld_shlibs_CXX=no
16369 ;;
16370 esac
16371
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16373 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16374 test no = "$ld_shlibs_CXX" && can_build_shared=no
16375
16376 GCC_CXX=$GXX
16377 LD_CXX=$LD
16378
16379 ## CAVEAT EMPTOR:
16380 ## There is no encapsulation within the following macros, do not change
16381 ## the running order or otherwise move them around unless you know exactly
16382 ## what you are doing...
16383 # Dependencies to place before and after the object being linked:
16384 predep_objects_CXX=
16385 postdep_objects_CXX=
16386 predeps_CXX=
16387 postdeps_CXX=
16388 compiler_lib_search_path_CXX=
16389
16390 cat > conftest.$ac_ext <<_LT_EOF
16391 class Foo
16392 {
16393 public:
16394 Foo (void) { a = 0; }
16395 private:
16396 int a;
16397 };
16398 _LT_EOF
16399
16400
16401 _lt_libdeps_save_CFLAGS=$CFLAGS
16402 case "$CC $CFLAGS " in #(
16403 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16404 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16405 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16406 esac
16407
16408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16409 (eval $ac_compile) 2>&5
16410 ac_status=$?
16411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16412 test $ac_status = 0; }; then
16413 # Parse the compiler output and extract the necessary
16414 # objects, libraries and library flags.
16415
16416 # Sentinel used to keep track of whether or not we are before
16417 # the conftest object file.
16418 pre_test_object_deps_done=no
16419
16420 for p in `eval "$output_verbose_link_cmd"`; do
16421 case $prev$p in
16422
16423 -L* | -R* | -l*)
16424 # Some compilers place space between "-{L,R,l}" and the path.
16425 # Remove the space.
16426 if test x-L = x"$p" ||
16427 test x-R = x"$p" ||
16428 test x-l = x"$p"; then
16429 prev=$p
16430 continue
16431 fi
16432
16433 # Expand the sysroot to ease extracting the directories later.
16434 if test -z "$prev"; then
16435 case $p in
16436 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16437 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16438 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16439 esac
16440 fi
16441 case $p in
16442 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16443 esac
16444 if test no = "$pre_test_object_deps_done"; then
16445 case $prev in
16446 -L | -R)
16447 # Internal compiler library paths should come after those
16448 # provided the user. The postdeps already come after the
16449 # user supplied libs so there is no need to process them.
16450 if test -z "$compiler_lib_search_path_CXX"; then
16451 compiler_lib_search_path_CXX=$prev$p
16452 else
16453 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16454 fi
16455 ;;
16456 # The "-l" case would never come before the object being
16457 # linked, so don't bother handling this case.
16458 esac
16459 else
16460 if test -z "$postdeps_CXX"; then
16461 postdeps_CXX=$prev$p
16462 else
16463 postdeps_CXX="${postdeps_CXX} $prev$p"
16464 fi
16465 fi
16466 prev=
16467 ;;
16468
16469 *.lto.$objext) ;; # Ignore GCC LTO objects
16470 *.$objext)
16471 # This assumes that the test object file only shows up
16472 # once in the compiler output.
16473 if test "$p" = "conftest.$objext"; then
16474 pre_test_object_deps_done=yes
16475 continue
16476 fi
16477
16478 if test no = "$pre_test_object_deps_done"; then
16479 if test -z "$predep_objects_CXX"; then
16480 predep_objects_CXX=$p
16481 else
16482 predep_objects_CXX="$predep_objects_CXX $p"
16483 fi
16484 else
16485 if test -z "$postdep_objects_CXX"; then
16486 postdep_objects_CXX=$p
16487 else
16488 postdep_objects_CXX="$postdep_objects_CXX $p"
16489 fi
16490 fi
16491 ;;
16492
16493 *) ;; # Ignore the rest.
16494
16495 esac
16496 done
16497
16498 # Clean up.
16499 rm -f a.out a.exe
16500 else
16501 echo "libtool.m4: error: problem compiling CXX test program"
16502 fi
16503
16504 $RM -f confest.$objext
16505 CFLAGS=$_lt_libdeps_save_CFLAGS
16506
16507 # PORTME: override above test on systems where it is broken
16508 case $host_os in
16509 interix[3-9]*)
16510 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16511 # hack all around it, let's just trust "g++" to DTRT.
16512 predep_objects_CXX=
16513 postdep_objects_CXX=
16514 postdeps_CXX=
16515 ;;
16516 esac
16517
16518
16519 case " $postdeps_CXX " in
16520 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16521 esac
16522 compiler_lib_search_dirs_CXX=
16523 if test -n "${compiler_lib_search_path_CXX}"; then
16524 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16525 fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557 lt_prog_compiler_wl_CXX=
16558 lt_prog_compiler_pic_CXX=
16559 lt_prog_compiler_static_CXX=
16560
16561
16562 # C++ specific cases for pic, static, wl, etc.
16563 if test yes = "$GXX"; then
16564 lt_prog_compiler_wl_CXX='-Wl,'
16565 lt_prog_compiler_static_CXX='-static'
16566
16567 case $host_os in
16568 aix*)
16569 # All AIX code is PIC.
16570 if test ia64 = "$host_cpu"; then
16571 # AIX 5 now supports IA64 processor
16572 lt_prog_compiler_static_CXX='-Bstatic'
16573 fi
16574 lt_prog_compiler_pic_CXX='-fPIC'
16575 ;;
16576
16577 amigaos*)
16578 case $host_cpu in
16579 powerpc)
16580 # see comment about AmigaOS4 .so support
16581 lt_prog_compiler_pic_CXX='-fPIC'
16582 ;;
16583 m68k)
16584 # FIXME: we need at least 68020 code to build shared libraries, but
16585 # adding the '-m68020' flag to GCC prevents building anything better,
16586 # like '-m68040'.
16587 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16588 ;;
16589 esac
16590 ;;
16591
16592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16593 # PIC is the default for these OSes.
16594 ;;
16595 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16596 # This hack is so that the source file can tell whether it is being
16597 # built for inclusion in a dll (and should export symbols for example).
16598 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16599 # (--disable-auto-import) libraries
16600 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16601 case $host_os in
16602 os2*)
16603 lt_prog_compiler_static_CXX='$wl-static'
16604 ;;
16605 esac
16606 ;;
16607 darwin* | rhapsody*)
16608 # PIC is the default on this platform
16609 # Common symbols not allowed in MH_DYLIB files
16610 lt_prog_compiler_pic_CXX='-fno-common'
16611 ;;
16612 *djgpp*)
16613 # DJGPP does not support shared libraries at all
16614 lt_prog_compiler_pic_CXX=
16615 ;;
16616 haiku*)
16617 # PIC is the default for Haiku.
16618 # The "-static" flag exists, but is broken.
16619 lt_prog_compiler_static_CXX=
16620 ;;
16621 interix[3-9]*)
16622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16623 # Instead, we relocate shared libraries at runtime.
16624 ;;
16625 sysv4*MP*)
16626 if test -d /usr/nec; then
16627 lt_prog_compiler_pic_CXX=-Kconform_pic
16628 fi
16629 ;;
16630 hpux*)
16631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16633 # sets the default TLS model and affects inlining.
16634 case $host_cpu in
16635 hppa*64*)
16636 ;;
16637 *)
16638 lt_prog_compiler_pic_CXX='-fPIC'
16639 ;;
16640 esac
16641 ;;
16642 *qnx* | *nto*)
16643 # QNX uses GNU C++, but need to define -shared option too, otherwise
16644 # it will coredump.
16645 lt_prog_compiler_pic_CXX='-fPIC -shared'
16646 ;;
16647 *)
16648 lt_prog_compiler_pic_CXX='-fPIC'
16649 ;;
16650 esac
16651 else
16652 case $host_os in
16653 aix[4-9]*)
16654 # All AIX code is PIC.
16655 if test ia64 = "$host_cpu"; then
16656 # AIX 5 now supports IA64 processor
16657 lt_prog_compiler_static_CXX='-Bstatic'
16658 else
16659 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16660 fi
16661 ;;
16662 chorus*)
16663 case $cc_basename in
16664 cxch68*)
16665 # Green Hills C++ Compiler
16666 # _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"
16667 ;;
16668 esac
16669 ;;
16670 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16671 # This hack is so that the source file can tell whether it is being
16672 # built for inclusion in a dll (and should export symbols for example).
16673 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16674 ;;
16675 dgux*)
16676 case $cc_basename in
16677 ec++*)
16678 lt_prog_compiler_pic_CXX='-KPIC'
16679 ;;
16680 ghcx*)
16681 # Green Hills C++ Compiler
16682 lt_prog_compiler_pic_CXX='-pic'
16683 ;;
16684 *)
16685 ;;
16686 esac
16687 ;;
16688 freebsd* | dragonfly* | midnightbsd*)
16689 # FreeBSD uses GNU C++
16690 ;;
16691 hpux9* | hpux10* | hpux11*)
16692 case $cc_basename in
16693 CC*)
16694 lt_prog_compiler_wl_CXX='-Wl,'
16695 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16696 if test ia64 != "$host_cpu"; then
16697 lt_prog_compiler_pic_CXX='+Z'
16698 fi
16699 ;;
16700 aCC*)
16701 lt_prog_compiler_wl_CXX='-Wl,'
16702 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16703 case $host_cpu in
16704 hppa*64*|ia64*)
16705 # +Z the default
16706 ;;
16707 *)
16708 lt_prog_compiler_pic_CXX='+Z'
16709 ;;
16710 esac
16711 ;;
16712 *)
16713 ;;
16714 esac
16715 ;;
16716 interix*)
16717 # This is c89, which is MS Visual C++ (no shared libs)
16718 # Anyone wants to do a port?
16719 ;;
16720 irix5* | irix6* | nonstopux*)
16721 case $cc_basename in
16722 CC*)
16723 lt_prog_compiler_wl_CXX='-Wl,'
16724 lt_prog_compiler_static_CXX='-non_shared'
16725 # CC pic flag -KPIC is the default.
16726 ;;
16727 *)
16728 ;;
16729 esac
16730 ;;
16731 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16732 case $cc_basename in
16733 KCC*)
16734 # KAI C++ Compiler
16735 lt_prog_compiler_wl_CXX='--backend -Wl,'
16736 lt_prog_compiler_pic_CXX='-fPIC'
16737 ;;
16738 ecpc* )
16739 # old Intel C++ for x86_64, which still supported -KPIC.
16740 lt_prog_compiler_wl_CXX='-Wl,'
16741 lt_prog_compiler_pic_CXX='-KPIC'
16742 lt_prog_compiler_static_CXX='-static'
16743 ;;
16744 icpc* )
16745 # Intel C++, used to be incompatible with GCC.
16746 # ICC 10 doesn't accept -KPIC any more.
16747 lt_prog_compiler_wl_CXX='-Wl,'
16748 lt_prog_compiler_pic_CXX='-fPIC'
16749 lt_prog_compiler_static_CXX='-static'
16750 ;;
16751 pgCC* | pgcpp*)
16752 # Portland Group C++ compiler
16753 lt_prog_compiler_wl_CXX='-Wl,'
16754 lt_prog_compiler_pic_CXX='-fpic'
16755 lt_prog_compiler_static_CXX='-Bstatic'
16756 ;;
16757 cxx*)
16758 # Compaq C++
16759 # Make sure the PIC flag is empty. It appears that all Alpha
16760 # Linux and Compaq Tru64 Unix objects are PIC.
16761 lt_prog_compiler_pic_CXX=
16762 lt_prog_compiler_static_CXX='-non_shared'
16763 ;;
16764 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16765 # IBM XL 8.0, 9.0 on PPC and BlueGene
16766 lt_prog_compiler_wl_CXX='-Wl,'
16767 lt_prog_compiler_pic_CXX='-qpic'
16768 lt_prog_compiler_static_CXX='-qstaticlink'
16769 ;;
16770 *)
16771 case `$CC -V 2>&1 | $SED 5q` in
16772 *Sun\ C*)
16773 # Sun C++ 5.9
16774 lt_prog_compiler_pic_CXX='-KPIC'
16775 lt_prog_compiler_static_CXX='-Bstatic'
16776 lt_prog_compiler_wl_CXX='-Qoption ld '
16777 ;;
16778 esac
16779 ;;
16780 esac
16781 ;;
16782 lynxos*)
16783 ;;
16784 m88k*)
16785 ;;
16786 mvs*)
16787 case $cc_basename in
16788 cxx*)
16789 lt_prog_compiler_pic_CXX='-W c,exportall'
16790 ;;
16791 *)
16792 ;;
16793 esac
16794 ;;
16795 netbsd* | netbsdelf*-gnu)
16796 ;;
16797 *-mlibc)
16798 ;;
16799 *qnx* | *nto*)
16800 # QNX uses GNU C++, but need to define -shared option too, otherwise
16801 # it will coredump.
16802 lt_prog_compiler_pic_CXX='-fPIC -shared'
16803 ;;
16804 osf3* | osf4* | osf5*)
16805 case $cc_basename in
16806 KCC*)
16807 lt_prog_compiler_wl_CXX='--backend -Wl,'
16808 ;;
16809 RCC*)
16810 # Rational C++ 2.4.1
16811 lt_prog_compiler_pic_CXX='-pic'
16812 ;;
16813 cxx*)
16814 # Digital/Compaq C++
16815 lt_prog_compiler_wl_CXX='-Wl,'
16816 # Make sure the PIC flag is empty. It appears that all Alpha
16817 # Linux and Compaq Tru64 Unix objects are PIC.
16818 lt_prog_compiler_pic_CXX=
16819 lt_prog_compiler_static_CXX='-non_shared'
16820 ;;
16821 *)
16822 ;;
16823 esac
16824 ;;
16825 psos*)
16826 ;;
16827 serenity*)
16828 ;;
16829 solaris*)
16830 case $cc_basename in
16831 CC* | sunCC*)
16832 # Sun C++ 4.2, 5.x and Centerline C++
16833 lt_prog_compiler_pic_CXX='-KPIC'
16834 lt_prog_compiler_static_CXX='-Bstatic'
16835 lt_prog_compiler_wl_CXX='-Qoption ld '
16836 ;;
16837 gcx*)
16838 # Green Hills C++ Compiler
16839 lt_prog_compiler_pic_CXX='-PIC'
16840 ;;
16841 *)
16842 ;;
16843 esac
16844 ;;
16845 sunos4*)
16846 case $cc_basename in
16847 CC*)
16848 # Sun C++ 4.x
16849 lt_prog_compiler_pic_CXX='-pic'
16850 lt_prog_compiler_static_CXX='-Bstatic'
16851 ;;
16852 lcc*)
16853 # Lucid
16854 lt_prog_compiler_pic_CXX='-pic'
16855 ;;
16856 *)
16857 ;;
16858 esac
16859 ;;
16860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16861 case $cc_basename in
16862 CC*)
16863 lt_prog_compiler_wl_CXX='-Wl,'
16864 lt_prog_compiler_pic_CXX='-KPIC'
16865 lt_prog_compiler_static_CXX='-Bstatic'
16866 ;;
16867 esac
16868 ;;
16869 tandem*)
16870 case $cc_basename in
16871 NCC*)
16872 # NonStop-UX NCC 3.20
16873 lt_prog_compiler_pic_CXX='-KPIC'
16874 ;;
16875 *)
16876 ;;
16877 esac
16878 ;;
16879 vxworks*)
16880 ;;
16881 *)
16882 lt_prog_compiler_can_build_shared_CXX=no
16883 ;;
16884 esac
16885 fi
16886
16887 case $host_os in
16888 # For platforms that do not support PIC, -DPIC is meaningless:
16889 *djgpp*)
16890 lt_prog_compiler_pic_CXX=
16891 ;;
16892 *)
16893 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16894 ;;
16895 esac
16896
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16898 printf %s "checking for $compiler option to produce PIC... " >&6; }
16899 if test ${lt_cv_prog_compiler_pic_CXX+y}
16900 then :
16901 printf %s "(cached) " >&6
16902 else case e in #(
16903 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
16904 esac
16905 fi
16906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16907 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16908 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16909
16910 #
16911 # Check to make sure the PIC flag actually works.
16912 #
16913 if test -n "$lt_prog_compiler_pic_CXX"; then
16914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16915 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16916 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16917 then :
16918 printf %s "(cached) " >&6
16919 else case e in #(
16920 e) lt_cv_prog_compiler_pic_works_CXX=no
16921 ac_outfile=conftest.$ac_objext
16922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16923 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16924 # Insert the option either (1) after the last *FLAGS variable, or
16925 # (2) before a word containing "conftest.", or (3) at the end.
16926 # Note that $ac_compile itself does not contain backslashes and begins
16927 # with a dollar sign (not a hyphen), so the echo should work correctly.
16928 # The option is referenced via a variable to avoid confusing sed.
16929 lt_compile=`echo "$ac_compile" | $SED \
16930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16932 -e 's:$: $lt_compiler_flag:'`
16933 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16934 (eval "$lt_compile" 2>conftest.err)
16935 ac_status=$?
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 if (exit $ac_status) && test -s "$ac_outfile"; then
16939 # The compiler can only warn and ignore the option if not recognized
16940 # So say no if there are warnings other than the usual output.
16941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16943 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16944 lt_cv_prog_compiler_pic_works_CXX=yes
16945 fi
16946 fi
16947 $RM conftest*
16948 ;;
16949 esac
16950 fi
16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16952 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16953
16954 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16955 case $lt_prog_compiler_pic_CXX in
16956 "" | " "*) ;;
16957 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16958 esac
16959 else
16960 lt_prog_compiler_pic_CXX=
16961 lt_prog_compiler_can_build_shared_CXX=no
16962 fi
16963
16964 fi
16965
16966
16967
16968
16969
16970 #
16971 # Check to make sure the static flag actually works.
16972 #
16973 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16975 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16976 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16977 then :
16978 printf %s "(cached) " >&6
16979 else case e in #(
16980 e) lt_cv_prog_compiler_static_works_CXX=no
16981 save_LDFLAGS=$LDFLAGS
16982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16985 # The linker can only warn and ignore the option if not recognized
16986 # So say no if there are warnings
16987 if test -s conftest.err; then
16988 # Append any errors to the config.log.
16989 cat conftest.err 1>&5
16990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16992 if diff conftest.exp conftest.er2 >/dev/null; then
16993 lt_cv_prog_compiler_static_works_CXX=yes
16994 fi
16995 else
16996 lt_cv_prog_compiler_static_works_CXX=yes
16997 fi
16998 fi
16999 $RM -r conftest*
17000 LDFLAGS=$save_LDFLAGS
17001 ;;
17002 esac
17003 fi
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17005 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17006
17007 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17008 :
17009 else
17010 lt_prog_compiler_static_CXX=
17011 fi
17012
17013
17014
17015
17016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17017 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17018 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17019 then :
17020 printf %s "(cached) " >&6
17021 else case e in #(
17022 e) lt_cv_prog_compiler_c_o_CXX=no
17023 $RM -r conftest 2>/dev/null
17024 mkdir conftest
17025 cd conftest
17026 mkdir out
17027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17028
17029 lt_compiler_flag="-o out/conftest2.$ac_objext"
17030 # Insert the option either (1) after the last *FLAGS variable, or
17031 # (2) before a word containing "conftest.", or (3) at the end.
17032 # Note that $ac_compile itself does not contain backslashes and begins
17033 # with a dollar sign (not a hyphen), so the echo should work correctly.
17034 lt_compile=`echo "$ac_compile" | $SED \
17035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17037 -e 's:$: $lt_compiler_flag:'`
17038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17039 (eval "$lt_compile" 2>out/conftest.err)
17040 ac_status=$?
17041 cat out/conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17044 then
17045 # The compiler can only warn and ignore the option if not recognized
17046 # So say no if there are warnings
17047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17050 lt_cv_prog_compiler_c_o_CXX=yes
17051 fi
17052 fi
17053 chmod u+w . 2>&5
17054 $RM conftest*
17055 # SGI C++ compiler will create directory out/ii_files/ for
17056 # template instantiation
17057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17058 $RM out/* && rmdir out
17059 cd ..
17060 $RM -r conftest
17061 $RM conftest*
17062 ;;
17063 esac
17064 fi
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17066 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17067
17068
17069
17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17071 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17072 if test ${lt_cv_prog_compiler_c_o_CXX+y}
17073 then :
17074 printf %s "(cached) " >&6
17075 else case e in #(
17076 e) lt_cv_prog_compiler_c_o_CXX=no
17077 $RM -r conftest 2>/dev/null
17078 mkdir conftest
17079 cd conftest
17080 mkdir out
17081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17082
17083 lt_compiler_flag="-o out/conftest2.$ac_objext"
17084 # Insert the option either (1) after the last *FLAGS variable, or
17085 # (2) before a word containing "conftest.", or (3) at the end.
17086 # Note that $ac_compile itself does not contain backslashes and begins
17087 # with a dollar sign (not a hyphen), so the echo should work correctly.
17088 lt_compile=`echo "$ac_compile" | $SED \
17089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091 -e 's:$: $lt_compiler_flag:'`
17092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17093 (eval "$lt_compile" 2>out/conftest.err)
17094 ac_status=$?
17095 cat out/conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17098 then
17099 # The compiler can only warn and ignore the option if not recognized
17100 # So say no if there are warnings
17101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17104 lt_cv_prog_compiler_c_o_CXX=yes
17105 fi
17106 fi
17107 chmod u+w . 2>&5
17108 $RM conftest*
17109 # SGI C++ compiler will create directory out/ii_files/ for
17110 # template instantiation
17111 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17112 $RM out/* && rmdir out
17113 cd ..
17114 $RM -r conftest
17115 $RM conftest*
17116 ;;
17117 esac
17118 fi
17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17120 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17121
17122
17123
17124
17125 hard_links=nottested
17126 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17127 # do not overwrite the value of need_locks provided by the user
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17129 printf %s "checking if we can lock with hard links... " >&6; }
17130 hard_links=yes
17131 $RM conftest*
17132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133 touch conftest.a
17134 ln conftest.a conftest.b 2>&5 || hard_links=no
17135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17137 printf "%s\n" "$hard_links" >&6; }
17138 if test no = "$hard_links"; then
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17140 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17141 need_locks=warn
17142 fi
17143 else
17144 need_locks=no
17145 fi
17146
17147
17148
17149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17150 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17151
17152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17153 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17154 case $host_os in
17155 aix[4-9]*)
17156 # If we're using GNU nm, then we don't want the "-C" option.
17157 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17158 # Without the "-l" option, or with the "-B" option, AIX nm treats
17159 # weak defined symbols like other global defined symbols, whereas
17160 # GNU nm marks them as "W".
17161 # While the 'weak' keyword is ignored in the Export File, we need
17162 # it in the Import File for the 'aix-soname' feature, so we have
17163 # to replace the "-B" option with "-P" for AIX nm.
17164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17165 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'
17166 else
17167 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 == "L") || (\$ 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'
17168 fi
17169 ;;
17170 pw32*)
17171 export_symbols_cmds_CXX=$ltdll_cmds
17172 ;;
17173 cygwin* | mingw* | windows* | cegcc*)
17174 case $cc_basename in
17175 cl* | icl*)
17176 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17177 ;;
17178 *)
17179 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'
17180 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17181 ;;
17182 esac
17183 ;;
17184 linux* | k*bsd*-gnu | gnu*)
17185 link_all_deplibs_CXX=no
17186 ;;
17187 *)
17188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17189 ;;
17190 esac
17191
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17193 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17194 test no = "$ld_shlibs_CXX" && can_build_shared=no
17195
17196 with_gnu_ld_CXX=$with_gnu_ld
17197
17198
17199
17200
17201
17202
17203 #
17204 # Do we need to explicitly link libc?
17205 #
17206 case "x$archive_cmds_need_lc_CXX" in
17207 x|xyes)
17208 # Assume -lc should be added
17209 archive_cmds_need_lc_CXX=yes
17210
17211 if test yes,yes = "$GCC,$enable_shared"; then
17212 case $archive_cmds_CXX in
17213 *'~'*)
17214 # FIXME: we may have to deal with multi-command sequences.
17215 ;;
17216 '$CC '*)
17217 # Test whether the compiler implicitly links with -lc since on some
17218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17219 # to ld, don't add -lc before -lgcc.
17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17221 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17222 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
17223 then :
17224 printf %s "(cached) " >&6
17225 else case e in #(
17226 e) $RM conftest*
17227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17228
17229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17230 (eval $ac_compile) 2>&5
17231 ac_status=$?
17232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; } 2>conftest.err; then
17234 soname=conftest
17235 lib=conftest
17236 libobjs=conftest.$ac_objext
17237 deplibs=
17238 wl=$lt_prog_compiler_wl_CXX
17239 pic_flag=$lt_prog_compiler_pic_CXX
17240 compiler_flags=-v
17241 linker_flags=-v
17242 verstring=
17243 output_objdir=.
17244 libname=conftest
17245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17246 allow_undefined_flag_CXX=
17247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17248 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17249 ac_status=$?
17250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17251 test $ac_status = 0; }
17252 then
17253 lt_cv_archive_cmds_need_lc_CXX=no
17254 else
17255 lt_cv_archive_cmds_need_lc_CXX=yes
17256 fi
17257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17258 else
17259 cat conftest.err 1>&5
17260 fi
17261 $RM conftest*
17262 ;;
17263 esac
17264 fi
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17266 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17267 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17268 ;;
17269 esac
17270 fi
17271 ;;
17272 esac
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17336 printf %s "checking dynamic linker characteristics... " >&6; }
17337
17338 library_names_spec=
17339 libname_spec='lib$name'
17340 soname_spec=
17341 shrext_cmds=.so
17342 postinstall_cmds=
17343 postuninstall_cmds=
17344 finish_cmds=
17345 finish_eval=
17346 shlibpath_var=
17347 shlibpath_overrides_runpath=unknown
17348 version_type=none
17349 dynamic_linker="$host_os ld.so"
17350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17351 need_lib_prefix=unknown
17352 hardcode_into_libs=no
17353
17354 # when you set need_version to no, make sure it does not cause -set_version
17355 # flags to be left without arguments
17356 need_version=unknown
17357
17358
17359
17360 case $host_os in
17361 aix3*)
17362 version_type=linux # correct to gnu/linux during the next big refactor
17363 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17364 shlibpath_var=LIBPATH
17365
17366 # AIX 3 has no versioning support, so we append a major version to the name.
17367 soname_spec='$libname$release$shared_ext$major'
17368 ;;
17369
17370 aix[4-9]*)
17371 version_type=linux # correct to gnu/linux during the next big refactor
17372 need_lib_prefix=no
17373 need_version=no
17374 hardcode_into_libs=yes
17375 if test ia64 = "$host_cpu"; then
17376 # AIX 5 supports IA64
17377 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 else
17380 # With GCC up to 2.95.x, collect2 would create an import file
17381 # for dependence libraries. The import file would start with
17382 # the line '#! .'. This would cause the generated library to
17383 # depend on '.', always an invalid library. This was fixed in
17384 # development snapshots of GCC prior to 3.0.
17385 case $host_os in
17386 aix4 | aix4.[01] | aix4.[01].*)
17387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17388 echo ' yes '
17389 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17390 :
17391 else
17392 can_build_shared=no
17393 fi
17394 ;;
17395 esac
17396 # Using Import Files as archive members, it is possible to support
17397 # filename-based versioning of shared library archives on AIX. While
17398 # this would work for both with and without runtime linking, it will
17399 # prevent static linking of such archives. So we do filename-based
17400 # shared library versioning with .so extension only, which is used
17401 # when both runtime linking and shared linking is enabled.
17402 # Unfortunately, runtime linking may impact performance, so we do
17403 # not want this to be the default eventually. Also, we use the
17404 # versioned .so libs for executables only if there is the -brtl
17405 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17406 # To allow for filename-based versioning support, we need to create
17407 # libNAME.so.V as an archive file, containing:
17408 # *) an Import File, referring to the versioned filename of the
17409 # archive as well as the shared archive member, telling the
17410 # bitwidth (32 or 64) of that shared object, and providing the
17411 # list of exported symbols of that shared object, eventually
17412 # decorated with the 'weak' keyword
17413 # *) the shared object with the F_LOADONLY flag set, to really avoid
17414 # it being seen by the linker.
17415 # At run time we better use the real file rather than another symlink,
17416 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17417
17418 case $with_aix_soname,$aix_use_runtimelinking in
17419 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17420 # soname into executable. Probably we can add versioning support to
17421 # collect2, so additional links can be useful in future.
17422 aix,yes) # traditional libtool
17423 dynamic_linker='AIX unversionable lib.so'
17424 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17425 # instead of lib<name>.a to let people know that these are not
17426 # typical AIX shared libraries.
17427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17428 ;;
17429 aix,no) # traditional AIX only
17430 dynamic_linker='AIX lib.a(lib.so.V)'
17431 # We preserve .a as extension for shared libraries through AIX4.2
17432 # and later when we are not doing run time linking.
17433 library_names_spec='$libname$release.a $libname.a'
17434 soname_spec='$libname$release$shared_ext$major'
17435 ;;
17436 svr4,*) # full svr4 only
17437 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17438 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17439 # We do not specify a path in Import Files, so LIBPATH fires.
17440 shlibpath_overrides_runpath=yes
17441 ;;
17442 *,yes) # both, prefer svr4
17443 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17444 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17445 # unpreferred sharedlib libNAME.a needs extra handling
17446 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"'
17447 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"'
17448 # We do not specify a path in Import Files, so LIBPATH fires.
17449 shlibpath_overrides_runpath=yes
17450 ;;
17451 *,no) # both, prefer aix
17452 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17453 library_names_spec='$libname$release.a $libname.a'
17454 soname_spec='$libname$release$shared_ext$major'
17455 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17456 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)'
17457 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"'
17458 ;;
17459 esac
17460 shlibpath_var=LIBPATH
17461 fi
17462 ;;
17463
17464 amigaos*)
17465 case $host_cpu in
17466 powerpc)
17467 # Since July 2007 AmigaOS4 officially supports .so libraries.
17468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17470 ;;
17471 m68k)
17472 library_names_spec='$libname.ixlibrary $libname.a'
17473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17474 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'
17475 ;;
17476 esac
17477 ;;
17478
17479 beos*)
17480 library_names_spec='$libname$shared_ext'
17481 dynamic_linker="$host_os ld.so"
17482 shlibpath_var=LIBRARY_PATH
17483 ;;
17484
17485 bsdi[45]*)
17486 version_type=linux # correct to gnu/linux during the next big refactor
17487 need_version=no
17488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17489 soname_spec='$libname$release$shared_ext$major'
17490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17494 # the default ld.so.conf also contains /usr/contrib/lib and
17495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17496 # libtool to hard-code these into programs
17497 ;;
17498
17499 cygwin* | mingw* | windows* | pw32* | cegcc*)
17500 version_type=windows
17501 shrext_cmds=.dll
17502 need_version=no
17503 need_lib_prefix=no
17504
17505 case $GCC,$cc_basename in
17506 yes,*)
17507 # gcc
17508 library_names_spec='$libname.dll.a'
17509 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17510 # If user builds GCC with multilib enabled,
17511 # it should just install on $(libdir)
17512 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17513 if test xyes = x"$multilib"; then
17514 postinstall_cmds='base_file=`basename \$file`~
17515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17516 dldir=$destdir/`dirname \$dlpath`~
17517 $install_prog $dir/$dlname $destdir/$dlname~
17518 chmod a+x $destdir/$dlname~
17519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17520 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17521 fi'
17522 else
17523 postinstall_cmds='base_file=`basename \$file`~
17524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17525 dldir=$destdir/`dirname \$dlpath`~
17526 test -d \$dldir || mkdir -p \$dldir~
17527 $install_prog $dir/$dlname \$dldir/$dlname~
17528 chmod a+x \$dldir/$dlname~
17529 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17530 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17531 fi'
17532 fi
17533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17534 dlpath=$dir/\$dldll~
17535 $RM \$dlpath'
17536 shlibpath_overrides_runpath=yes
17537
17538 case $host_os in
17539 cygwin*)
17540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17541 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17542
17543 ;;
17544 mingw* | windows* | cegcc*)
17545 # MinGW DLLs use traditional 'lib' prefix
17546 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17547 ;;
17548 pw32*)
17549 # pw32 DLLs use 'pw' prefix rather than 'lib'
17550 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17551 ;;
17552 esac
17553 dynamic_linker='Win32 ld.exe'
17554 ;;
17555
17556 *,cl* | *,icl*)
17557 # Native MSVC or ICC
17558 libname_spec='$name'
17559 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17560 library_names_spec='$libname.dll.lib'
17561
17562 case $build_os in
17563 mingw* | windows*)
17564 sys_lib_search_path_spec=
17565 lt_save_ifs=$IFS
17566 IFS=';'
17567 for lt_path in $LIB
17568 do
17569 IFS=$lt_save_ifs
17570 # Let DOS variable expansion print the short 8.3 style file name.
17571 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17572 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17573 done
17574 IFS=$lt_save_ifs
17575 # Convert to MSYS style.
17576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17577 ;;
17578 cygwin*)
17579 # Convert to unix form, then to dos form, then back to unix form
17580 # but this time dos style (no spaces!) so that the unix form looks
17581 # like /cygdrive/c/PROGRA~1:/cygdr...
17582 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17583 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17584 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17585 ;;
17586 *)
17587 sys_lib_search_path_spec=$LIB
17588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17589 # It is most probably a Windows format PATH.
17590 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17591 else
17592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17593 fi
17594 # FIXME: find the short name or the path components, as spaces are
17595 # common. (e.g. "Program Files" -> "PROGRA~1")
17596 ;;
17597 esac
17598
17599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17600 postinstall_cmds='base_file=`basename \$file`~
17601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17602 dldir=$destdir/`dirname \$dlpath`~
17603 test -d \$dldir || mkdir -p \$dldir~
17604 $install_prog $dir/$dlname \$dldir/$dlname'
17605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17606 dlpath=$dir/\$dldll~
17607 $RM \$dlpath'
17608 shlibpath_overrides_runpath=yes
17609 dynamic_linker='Win32 link.exe'
17610 ;;
17611
17612 *)
17613 # Assume MSVC and ICC wrapper
17614 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17615 dynamic_linker='Win32 ld.exe'
17616 ;;
17617 esac
17618 # FIXME: first we should search . and the directory the executable is in
17619 shlibpath_var=PATH
17620 ;;
17621
17622 darwin* | rhapsody*)
17623 dynamic_linker="$host_os dyld"
17624 version_type=darwin
17625 need_lib_prefix=no
17626 need_version=no
17627 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17628 soname_spec='$libname$release$major$shared_ext'
17629 shlibpath_overrides_runpath=yes
17630 shlibpath_var=DYLD_LIBRARY_PATH
17631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17632
17633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17634 ;;
17635
17636 dgux*)
17637 version_type=linux # correct to gnu/linux during the next big refactor
17638 need_lib_prefix=no
17639 need_version=no
17640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17641 soname_spec='$libname$release$shared_ext$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 ;;
17644
17645 freebsd* | dragonfly* | midnightbsd*)
17646 # DragonFly does not have aout. When/if they implement a new
17647 # versioning mechanism, adjust this.
17648 if test -x /usr/bin/objformat; then
17649 objformat=`/usr/bin/objformat`
17650 else
17651 case $host_os in
17652 freebsd[23].*) objformat=aout ;;
17653 *) objformat=elf ;;
17654 esac
17655 fi
17656 version_type=freebsd-$objformat
17657 case $version_type in
17658 freebsd-elf*)
17659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17660 soname_spec='$libname$release$shared_ext$major'
17661 need_version=no
17662 need_lib_prefix=no
17663 ;;
17664 freebsd-*)
17665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17666 need_version=yes
17667 ;;
17668 esac
17669 case $host_cpu in
17670 powerpc64)
17671 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17672 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 int test_pointer_size[sizeof (void *) - 5];
17676
17677 _ACEOF
17678 if ac_fn_cxx_try_compile "$LINENO"
17679 then :
17680 shlibpath_var=LD_LIBRARY_PATH
17681 else case e in #(
17682 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17683 esac
17684 fi
17685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17686 ;;
17687 *)
17688 shlibpath_var=LD_LIBRARY_PATH
17689 ;;
17690 esac
17691 case $host_os in
17692 freebsd2.*)
17693 shlibpath_overrides_runpath=yes
17694 ;;
17695 freebsd3.[01]* | freebsdelf3.[01]*)
17696 shlibpath_overrides_runpath=yes
17697 hardcode_into_libs=yes
17698 ;;
17699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17701 shlibpath_overrides_runpath=no
17702 hardcode_into_libs=yes
17703 ;;
17704 *) # from 4.6 on, and DragonFly
17705 shlibpath_overrides_runpath=yes
17706 hardcode_into_libs=yes
17707 ;;
17708 esac
17709 ;;
17710
17711 haiku*)
17712 version_type=linux # correct to gnu/linux during the next big refactor
17713 need_lib_prefix=no
17714 need_version=no
17715 dynamic_linker="$host_os runtime_loader"
17716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17717 soname_spec='$libname$release$shared_ext$major'
17718 shlibpath_var=LIBRARY_PATH
17719 shlibpath_overrides_runpath=no
17720 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17721 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17722 hardcode_into_libs=no
17723 ;;
17724
17725 hpux9* | hpux10* | hpux11*)
17726 # Give a soname corresponding to the major version so that dld.sl refuses to
17727 # link against other versions.
17728 version_type=sunos
17729 need_lib_prefix=no
17730 need_version=no
17731 case $host_cpu in
17732 ia64*)
17733 shrext_cmds='.so'
17734 hardcode_into_libs=yes
17735 dynamic_linker="$host_os dld.so"
17736 shlibpath_var=LD_LIBRARY_PATH
17737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17739 soname_spec='$libname$release$shared_ext$major'
17740 if test 32 = "$HPUX_IA64_MODE"; then
17741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17742 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17743 else
17744 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17745 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17746 fi
17747 ;;
17748 hppa*64*)
17749 shrext_cmds='.sl'
17750 hardcode_into_libs=yes
17751 dynamic_linker="$host_os dld.sl"
17752 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17755 soname_spec='$libname$release$shared_ext$major'
17756 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17758 ;;
17759 *)
17760 shrext_cmds='.sl'
17761 dynamic_linker="$host_os dld.sl"
17762 shlibpath_var=SHLIB_PATH
17763 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17765 soname_spec='$libname$release$shared_ext$major'
17766 ;;
17767 esac
17768 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17769 postinstall_cmds='chmod 555 $lib'
17770 # or fails outright, so override atomically:
17771 install_override_mode=555
17772 ;;
17773
17774 interix[3-9]*)
17775 version_type=linux # correct to gnu/linux during the next big refactor
17776 need_lib_prefix=no
17777 need_version=no
17778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17779 soname_spec='$libname$release$shared_ext$major'
17780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=no
17783 hardcode_into_libs=yes
17784 ;;
17785
17786 irix5* | irix6* | nonstopux*)
17787 case $host_os in
17788 nonstopux*) version_type=nonstopux ;;
17789 *)
17790 if test yes = "$lt_cv_prog_gnu_ld"; then
17791 version_type=linux # correct to gnu/linux during the next big refactor
17792 else
17793 version_type=irix
17794 fi ;;
17795 esac
17796 need_lib_prefix=no
17797 need_version=no
17798 soname_spec='$libname$release$shared_ext$major'
17799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17800 case $host_os in
17801 irix5* | nonstopux*)
17802 libsuff= shlibsuff=
17803 ;;
17804 *)
17805 case $LD in # libtool.m4 will add one of these switches to LD
17806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17807 libsuff= shlibsuff= libmagic=32-bit;;
17808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17809 libsuff=32 shlibsuff=N32 libmagic=N32;;
17810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17812 *) libsuff= shlibsuff= libmagic=never-match;;
17813 esac
17814 ;;
17815 esac
17816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17817 shlibpath_overrides_runpath=no
17818 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17819 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17820 hardcode_into_libs=yes
17821 ;;
17822
17823 # No shared lib support for Linux oldld, aout, or coff.
17824 linux*oldld* | linux*aout* | linux*coff*)
17825 dynamic_linker=no
17826 ;;
17827
17828 linux*android*)
17829 version_type=none # Android doesn't support versioned libraries.
17830 need_lib_prefix=no
17831 need_version=no
17832 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
17833 soname_spec='$libname$release$shared_ext'
17834 finish_cmds=
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17837
17838 # This implies no fast_install, which is unacceptable.
17839 # Some rework will be needed to allow for fast_install
17840 # before this can be enabled.
17841 hardcode_into_libs=yes
17842
17843 dynamic_linker='Android linker'
17844 # -rpath works at least for libraries that are not overridden by
17845 # libraries installed in system locations.
17846 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17847 ;;
17848
17849 # This must be glibc/ELF.
17850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17851 version_type=linux # correct to gnu/linux during the next big refactor
17852 need_lib_prefix=no
17853 need_version=no
17854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17855 soname_spec='$libname$release$shared_ext$major'
17856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=no
17859
17860 # Some binutils ld are patched to set DT_RUNPATH
17861 if test ${lt_cv_shlibpath_overrides_runpath+y}
17862 then :
17863 printf %s "(cached) " >&6
17864 else case e in #(
17865 e) lt_cv_shlibpath_overrides_runpath=no
17866 save_LDFLAGS=$LDFLAGS
17867 save_libdir=$libdir
17868 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17869 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17872
17873 int
17874 main (void)
17875 {
17876
17877 ;
17878 return 0;
17879 }
17880 _ACEOF
17881 if ac_fn_cxx_try_link "$LINENO"
17882 then :
17883 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17884 then :
17885 lt_cv_shlibpath_overrides_runpath=yes
17886 fi
17887 fi
17888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17889 conftest$ac_exeext conftest.$ac_ext
17890 LDFLAGS=$save_LDFLAGS
17891 libdir=$save_libdir
17892 ;;
17893 esac
17894 fi
17895
17896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17897
17898 # This implies no fast_install, which is unacceptable.
17899 # Some rework will be needed to allow for fast_install
17900 # before this can be enabled.
17901 hardcode_into_libs=yes
17902
17903 # Ideally, we could use ldconfig to report *all* directories which are
17904 # searched for libraries, however this is still not possible. Aside from not
17905 # being certain /sbin/ldconfig is available, command
17906 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17907 # even though it is searched at run-time. Try to do the best guess by
17908 # appending ld.so.conf contents (and includes) to the search path.
17909 if test -f /etc/ld.so.conf; then
17910 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' ' '`
17911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17912 fi
17913
17914 # We used to test for /lib/ld.so.1 and disable shared libraries on
17915 # powerpc, because MkLinux only supported shared libraries with the
17916 # GNU dynamic linker. Since this was broken with cross compilers,
17917 # most powerpc-linux boxes support dynamic linking these days and
17918 # people can always --disable-shared, the test was removed, and we
17919 # assume the GNU/Linux dynamic linker is in use.
17920 dynamic_linker='GNU/Linux ld.so'
17921 ;;
17922
17923 netbsdelf*-gnu)
17924 version_type=linux
17925 need_lib_prefix=no
17926 need_version=no
17927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17928 soname_spec='$libname$release$shared_ext$major'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=no
17931 hardcode_into_libs=yes
17932 dynamic_linker='NetBSD ld.elf_so'
17933 ;;
17934
17935 netbsdelf*-gnu)
17936 version_type=linux
17937 need_lib_prefix=no
17938 need_version=no
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=no
17943 hardcode_into_libs=yes
17944 dynamic_linker='NetBSD ld.elf_so'
17945 ;;
17946
17947 netbsd*)
17948 version_type=sunos
17949 need_lib_prefix=no
17950 need_version=no
17951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17954 dynamic_linker='NetBSD (a.out) ld.so'
17955 else
17956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17957 soname_spec='$libname$release$shared_ext$major'
17958 dynamic_linker='NetBSD ld.elf_so'
17959 fi
17960 shlibpath_var=LD_LIBRARY_PATH
17961 shlibpath_overrides_runpath=yes
17962 hardcode_into_libs=yes
17963 ;;
17964
17965 *-mlibc)
17966 version_type=linux # correct to gnu/linux during the next big refactor
17967 need_lib_prefix=no
17968 need_version=no
17969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17970 soname_spec='$libname$release$shared_ext$major'
17971 dynamic_linker='mlibc ld.so'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath=no
17974 hardcode_into_libs=yes
17975 ;;
17976
17977 newsos6)
17978 version_type=linux # correct to gnu/linux during the next big refactor
17979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=yes
17982 ;;
17983
17984 *nto* | *qnx*)
17985 version_type=qnx
17986 need_lib_prefix=no
17987 need_version=no
17988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17989 soname_spec='$libname$release$shared_ext$major'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 hardcode_into_libs=yes
17993 dynamic_linker='ldqnx.so'
17994 ;;
17995
17996 openbsd*)
17997 version_type=sunos
17998 sys_lib_dlsearch_path_spec=/usr/lib
17999 need_lib_prefix=no
18000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18001 need_version=no
18002 else
18003 need_version=yes
18004 fi
18005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=yes
18009 ;;
18010
18011 os2*)
18012 libname_spec='$name'
18013 version_type=windows
18014 shrext_cmds=.dll
18015 need_version=no
18016 need_lib_prefix=no
18017 # OS/2 can only load a DLL with a base name of 8 characters or less.
18018 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18019 v=$($ECHO $release$versuffix | tr -d .-);
18020 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18021 $ECHO $n$v`$shared_ext'
18022 library_names_spec='${libname}_dll.$libext'
18023 dynamic_linker='OS/2 ld.exe'
18024 shlibpath_var=BEGINLIBPATH
18025 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18027 postinstall_cmds='base_file=`basename \$file`~
18028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18029 dldir=$destdir/`dirname \$dlpath`~
18030 test -d \$dldir || mkdir -p \$dldir~
18031 $install_prog $dir/$dlname \$dldir/$dlname~
18032 chmod a+x \$dldir/$dlname~
18033 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18034 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18035 fi'
18036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18037 dlpath=$dir/\$dldll~
18038 $RM \$dlpath'
18039 ;;
18040
18041 osf3* | osf4* | osf5*)
18042 version_type=osf
18043 need_lib_prefix=no
18044 need_version=no
18045 soname_spec='$libname$release$shared_ext$major'
18046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18047 shlibpath_var=LD_LIBRARY_PATH
18048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18050 ;;
18051
18052 rdos*)
18053 dynamic_linker=no
18054 ;;
18055
18056 serenity*)
18057 version_type=linux # correct to gnu/linux during the next big refactor
18058 need_lib_prefix=no
18059 need_version=no
18060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18061 soname_spec='$libname$release$shared_ext$major'
18062 shlibpath_var=LD_LIBRARY_PATH
18063 shlibpath_overrides_runpath=no
18064 dynamic_linker='SerenityOS LibELF'
18065 ;;
18066
18067 solaris*)
18068 version_type=linux # correct to gnu/linux during the next big refactor
18069 need_lib_prefix=no
18070 need_version=no
18071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18072 soname_spec='$libname$release$shared_ext$major'
18073 shlibpath_var=LD_LIBRARY_PATH
18074 shlibpath_overrides_runpath=yes
18075 hardcode_into_libs=yes
18076 # ldd complains unless libraries are executable
18077 postinstall_cmds='chmod +x $lib'
18078 ;;
18079
18080 sunos4*)
18081 version_type=sunos
18082 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=yes
18086 if test yes = "$with_gnu_ld"; then
18087 need_lib_prefix=no
18088 fi
18089 need_version=yes
18090 ;;
18091
18092 sysv4 | sysv4.3*)
18093 version_type=linux # correct to gnu/linux during the next big refactor
18094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18095 soname_spec='$libname$release$shared_ext$major'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 case $host_vendor in
18098 sni)
18099 shlibpath_overrides_runpath=no
18100 need_lib_prefix=no
18101 runpath_var=LD_RUN_PATH
18102 ;;
18103 siemens)
18104 need_lib_prefix=no
18105 ;;
18106 motorola)
18107 need_lib_prefix=no
18108 need_version=no
18109 shlibpath_overrides_runpath=no
18110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18111 ;;
18112 esac
18113 ;;
18114
18115 sysv4*MP*)
18116 if test -d /usr/nec; then
18117 version_type=linux # correct to gnu/linux during the next big refactor
18118 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18119 soname_spec='$libname$shared_ext.$major'
18120 shlibpath_var=LD_LIBRARY_PATH
18121 fi
18122 ;;
18123
18124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18125 version_type=sco
18126 need_lib_prefix=no
18127 need_version=no
18128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18129 soname_spec='$libname$release$shared_ext$major'
18130 shlibpath_var=LD_LIBRARY_PATH
18131 shlibpath_overrides_runpath=yes
18132 hardcode_into_libs=yes
18133 if test yes = "$with_gnu_ld"; then
18134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18135 else
18136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18137 case $host_os in
18138 sco3.2v5*)
18139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18140 ;;
18141 esac
18142 fi
18143 sys_lib_dlsearch_path_spec='/usr/lib'
18144 ;;
18145
18146 tpf*)
18147 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18148 version_type=linux # correct to gnu/linux during the next big refactor
18149 need_lib_prefix=no
18150 need_version=no
18151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath=no
18154 hardcode_into_libs=yes
18155 ;;
18156
18157 uts4*)
18158 version_type=linux # correct to gnu/linux during the next big refactor
18159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18160 soname_spec='$libname$release$shared_ext$major'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 ;;
18163
18164 emscripten*)
18165 version_type=none
18166 need_lib_prefix=no
18167 need_version=no
18168 library_names_spec='$libname$release$shared_ext'
18169 soname_spec='$libname$release$shared_ext'
18170 finish_cmds=
18171 dynamic_linker="Emscripten linker"
18172 lt_prog_compiler_wl_CXX=
18173 lt_prog_compiler_pic_CXX=
18174 lt_prog_compiler_static_CXX=
18175
18176
18177 # C++ specific cases for pic, static, wl, etc.
18178 if test yes = "$GXX"; then
18179 lt_prog_compiler_wl_CXX='-Wl,'
18180 lt_prog_compiler_static_CXX='-static'
18181
18182 case $host_os in
18183 aix*)
18184 # All AIX code is PIC.
18185 if test ia64 = "$host_cpu"; then
18186 # AIX 5 now supports IA64 processor
18187 lt_prog_compiler_static_CXX='-Bstatic'
18188 fi
18189 lt_prog_compiler_pic_CXX='-fPIC'
18190 ;;
18191
18192 amigaos*)
18193 case $host_cpu in
18194 powerpc)
18195 # see comment about AmigaOS4 .so support
18196 lt_prog_compiler_pic_CXX='-fPIC'
18197 ;;
18198 m68k)
18199 # FIXME: we need at least 68020 code to build shared libraries, but
18200 # adding the '-m68020' flag to GCC prevents building anything better,
18201 # like '-m68040'.
18202 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18203 ;;
18204 esac
18205 ;;
18206
18207 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18208 # PIC is the default for these OSes.
18209 ;;
18210 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18211 # This hack is so that the source file can tell whether it is being
18212 # built for inclusion in a dll (and should export symbols for example).
18213 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18214 # (--disable-auto-import) libraries
18215 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18216 case $host_os in
18217 os2*)
18218 lt_prog_compiler_static_CXX='$wl-static'
18219 ;;
18220 esac
18221 ;;
18222 darwin* | rhapsody*)
18223 # PIC is the default on this platform
18224 # Common symbols not allowed in MH_DYLIB files
18225 lt_prog_compiler_pic_CXX='-fno-common'
18226 ;;
18227 *djgpp*)
18228 # DJGPP does not support shared libraries at all
18229 lt_prog_compiler_pic_CXX=
18230 ;;
18231 haiku*)
18232 # PIC is the default for Haiku.
18233 # The "-static" flag exists, but is broken.
18234 lt_prog_compiler_static_CXX=
18235 ;;
18236 interix[3-9]*)
18237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18238 # Instead, we relocate shared libraries at runtime.
18239 ;;
18240 sysv4*MP*)
18241 if test -d /usr/nec; then
18242 lt_prog_compiler_pic_CXX=-Kconform_pic
18243 fi
18244 ;;
18245 hpux*)
18246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18248 # sets the default TLS model and affects inlining.
18249 case $host_cpu in
18250 hppa*64*)
18251 ;;
18252 *)
18253 lt_prog_compiler_pic_CXX='-fPIC'
18254 ;;
18255 esac
18256 ;;
18257 *qnx* | *nto*)
18258 # QNX uses GNU C++, but need to define -shared option too, otherwise
18259 # it will coredump.
18260 lt_prog_compiler_pic_CXX='-fPIC -shared'
18261 ;;
18262 *)
18263 lt_prog_compiler_pic_CXX='-fPIC'
18264 ;;
18265 esac
18266 else
18267 case $host_os in
18268 aix[4-9]*)
18269 # All AIX code is PIC.
18270 if test ia64 = "$host_cpu"; then
18271 # AIX 5 now supports IA64 processor
18272 lt_prog_compiler_static_CXX='-Bstatic'
18273 else
18274 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18275 fi
18276 ;;
18277 chorus*)
18278 case $cc_basename in
18279 cxch68*)
18280 # Green Hills C++ Compiler
18281 # _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"
18282 ;;
18283 esac
18284 ;;
18285 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18286 # This hack is so that the source file can tell whether it is being
18287 # built for inclusion in a dll (and should export symbols for example).
18288 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18289 ;;
18290 dgux*)
18291 case $cc_basename in
18292 ec++*)
18293 lt_prog_compiler_pic_CXX='-KPIC'
18294 ;;
18295 ghcx*)
18296 # Green Hills C++ Compiler
18297 lt_prog_compiler_pic_CXX='-pic'
18298 ;;
18299 *)
18300 ;;
18301 esac
18302 ;;
18303 freebsd* | dragonfly* | midnightbsd*)
18304 # FreeBSD uses GNU C++
18305 ;;
18306 hpux9* | hpux10* | hpux11*)
18307 case $cc_basename in
18308 CC*)
18309 lt_prog_compiler_wl_CXX='-Wl,'
18310 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18311 if test ia64 != "$host_cpu"; then
18312 lt_prog_compiler_pic_CXX='+Z'
18313 fi
18314 ;;
18315 aCC*)
18316 lt_prog_compiler_wl_CXX='-Wl,'
18317 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18318 case $host_cpu in
18319 hppa*64*|ia64*)
18320 # +Z the default
18321 ;;
18322 *)
18323 lt_prog_compiler_pic_CXX='+Z'
18324 ;;
18325 esac
18326 ;;
18327 *)
18328 ;;
18329 esac
18330 ;;
18331 interix*)
18332 # This is c89, which is MS Visual C++ (no shared libs)
18333 # Anyone wants to do a port?
18334 ;;
18335 irix5* | irix6* | nonstopux*)
18336 case $cc_basename in
18337 CC*)
18338 lt_prog_compiler_wl_CXX='-Wl,'
18339 lt_prog_compiler_static_CXX='-non_shared'
18340 # CC pic flag -KPIC is the default.
18341 ;;
18342 *)
18343 ;;
18344 esac
18345 ;;
18346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18347 case $cc_basename in
18348 KCC*)
18349 # KAI C++ Compiler
18350 lt_prog_compiler_wl_CXX='--backend -Wl,'
18351 lt_prog_compiler_pic_CXX='-fPIC'
18352 ;;
18353 ecpc* )
18354 # old Intel C++ for x86_64, which still supported -KPIC.
18355 lt_prog_compiler_wl_CXX='-Wl,'
18356 lt_prog_compiler_pic_CXX='-KPIC'
18357 lt_prog_compiler_static_CXX='-static'
18358 ;;
18359 icpc* )
18360 # Intel C++, used to be incompatible with GCC.
18361 # ICC 10 doesn't accept -KPIC any more.
18362 lt_prog_compiler_wl_CXX='-Wl,'
18363 lt_prog_compiler_pic_CXX='-fPIC'
18364 lt_prog_compiler_static_CXX='-static'
18365 ;;
18366 pgCC* | pgcpp*)
18367 # Portland Group C++ compiler
18368 lt_prog_compiler_wl_CXX='-Wl,'
18369 lt_prog_compiler_pic_CXX='-fpic'
18370 lt_prog_compiler_static_CXX='-Bstatic'
18371 ;;
18372 cxx*)
18373 # Compaq C++
18374 # Make sure the PIC flag is empty. It appears that all Alpha
18375 # Linux and Compaq Tru64 Unix objects are PIC.
18376 lt_prog_compiler_pic_CXX=
18377 lt_prog_compiler_static_CXX='-non_shared'
18378 ;;
18379 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18380 # IBM XL 8.0, 9.0 on PPC and BlueGene
18381 lt_prog_compiler_wl_CXX='-Wl,'
18382 lt_prog_compiler_pic_CXX='-qpic'
18383 lt_prog_compiler_static_CXX='-qstaticlink'
18384 ;;
18385 *)
18386 case `$CC -V 2>&1 | $SED 5q` in
18387 *Sun\ C*)
18388 # Sun C++ 5.9
18389 lt_prog_compiler_pic_CXX='-KPIC'
18390 lt_prog_compiler_static_CXX='-Bstatic'
18391 lt_prog_compiler_wl_CXX='-Qoption ld '
18392 ;;
18393 esac
18394 ;;
18395 esac
18396 ;;
18397 lynxos*)
18398 ;;
18399 m88k*)
18400 ;;
18401 mvs*)
18402 case $cc_basename in
18403 cxx*)
18404 lt_prog_compiler_pic_CXX='-W c,exportall'
18405 ;;
18406 *)
18407 ;;
18408 esac
18409 ;;
18410 netbsd* | netbsdelf*-gnu)
18411 ;;
18412 *-mlibc)
18413 ;;
18414 *qnx* | *nto*)
18415 # QNX uses GNU C++, but need to define -shared option too, otherwise
18416 # it will coredump.
18417 lt_prog_compiler_pic_CXX='-fPIC -shared'
18418 ;;
18419 osf3* | osf4* | osf5*)
18420 case $cc_basename in
18421 KCC*)
18422 lt_prog_compiler_wl_CXX='--backend -Wl,'
18423 ;;
18424 RCC*)
18425 # Rational C++ 2.4.1
18426 lt_prog_compiler_pic_CXX='-pic'
18427 ;;
18428 cxx*)
18429 # Digital/Compaq C++
18430 lt_prog_compiler_wl_CXX='-Wl,'
18431 # Make sure the PIC flag is empty. It appears that all Alpha
18432 # Linux and Compaq Tru64 Unix objects are PIC.
18433 lt_prog_compiler_pic_CXX=
18434 lt_prog_compiler_static_CXX='-non_shared'
18435 ;;
18436 *)
18437 ;;
18438 esac
18439 ;;
18440 psos*)
18441 ;;
18442 serenity*)
18443 ;;
18444 solaris*)
18445 case $cc_basename in
18446 CC* | sunCC*)
18447 # Sun C++ 4.2, 5.x and Centerline C++
18448 lt_prog_compiler_pic_CXX='-KPIC'
18449 lt_prog_compiler_static_CXX='-Bstatic'
18450 lt_prog_compiler_wl_CXX='-Qoption ld '
18451 ;;
18452 gcx*)
18453 # Green Hills C++ Compiler
18454 lt_prog_compiler_pic_CXX='-PIC'
18455 ;;
18456 *)
18457 ;;
18458 esac
18459 ;;
18460 sunos4*)
18461 case $cc_basename in
18462 CC*)
18463 # Sun C++ 4.x
18464 lt_prog_compiler_pic_CXX='-pic'
18465 lt_prog_compiler_static_CXX='-Bstatic'
18466 ;;
18467 lcc*)
18468 # Lucid
18469 lt_prog_compiler_pic_CXX='-pic'
18470 ;;
18471 *)
18472 ;;
18473 esac
18474 ;;
18475 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18476 case $cc_basename in
18477 CC*)
18478 lt_prog_compiler_wl_CXX='-Wl,'
18479 lt_prog_compiler_pic_CXX='-KPIC'
18480 lt_prog_compiler_static_CXX='-Bstatic'
18481 ;;
18482 esac
18483 ;;
18484 tandem*)
18485 case $cc_basename in
18486 NCC*)
18487 # NonStop-UX NCC 3.20
18488 lt_prog_compiler_pic_CXX='-KPIC'
18489 ;;
18490 *)
18491 ;;
18492 esac
18493 ;;
18494 vxworks*)
18495 ;;
18496 *)
18497 lt_prog_compiler_can_build_shared_CXX=no
18498 ;;
18499 esac
18500 fi
18501
18502 case $host_os in
18503 # For platforms that do not support PIC, -DPIC is meaningless:
18504 *djgpp*)
18505 lt_prog_compiler_pic_CXX=
18506 ;;
18507 *)
18508 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18509 ;;
18510 esac
18511
18512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18513 printf %s "checking for $compiler option to produce PIC... " >&6; }
18514 if test ${lt_cv_prog_compiler_pic_CXX+y}
18515 then :
18516 printf %s "(cached) " >&6
18517 else case e in #(
18518 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18519 esac
18520 fi
18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18522 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18523 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18524
18525 #
18526 # Check to make sure the PIC flag actually works.
18527 #
18528 if test -n "$lt_prog_compiler_pic_CXX"; then
18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18530 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18531 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18532 then :
18533 printf %s "(cached) " >&6
18534 else case e in #(
18535 e) lt_cv_prog_compiler_pic_works_CXX=no
18536 ac_outfile=conftest.$ac_objext
18537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18538 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18539 # Insert the option either (1) after the last *FLAGS variable, or
18540 # (2) before a word containing "conftest.", or (3) at the end.
18541 # Note that $ac_compile itself does not contain backslashes and begins
18542 # with a dollar sign (not a hyphen), so the echo should work correctly.
18543 # The option is referenced via a variable to avoid confusing sed.
18544 lt_compile=`echo "$ac_compile" | $SED \
18545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18547 -e 's:$: $lt_compiler_flag:'`
18548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18549 (eval "$lt_compile" 2>conftest.err)
18550 ac_status=$?
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 if (exit $ac_status) && test -s "$ac_outfile"; then
18554 # The compiler can only warn and ignore the option if not recognized
18555 # So say no if there are warnings other than the usual output.
18556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18559 lt_cv_prog_compiler_pic_works_CXX=yes
18560 fi
18561 fi
18562 $RM conftest*
18563 ;;
18564 esac
18565 fi
18566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18567 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18568
18569 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18570 case $lt_prog_compiler_pic_CXX in
18571 "" | " "*) ;;
18572 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18573 esac
18574 else
18575 lt_prog_compiler_pic_CXX=
18576 lt_prog_compiler_can_build_shared_CXX=no
18577 fi
18578
18579 fi
18580
18581
18582
18583
18584
18585 #
18586 # Check to make sure the static flag actually works.
18587 #
18588 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18590 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18591 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18592 then :
18593 printf %s "(cached) " >&6
18594 else case e in #(
18595 e) lt_cv_prog_compiler_static_works_CXX=no
18596 save_LDFLAGS=$LDFLAGS
18597 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18598 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18600 # The linker can only warn and ignore the option if not recognized
18601 # So say no if there are warnings
18602 if test -s conftest.err; then
18603 # Append any errors to the config.log.
18604 cat conftest.err 1>&5
18605 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18607 if diff conftest.exp conftest.er2 >/dev/null; then
18608 lt_cv_prog_compiler_static_works_CXX=yes
18609 fi
18610 else
18611 lt_cv_prog_compiler_static_works_CXX=yes
18612 fi
18613 fi
18614 $RM -r conftest*
18615 LDFLAGS=$save_LDFLAGS
18616 ;;
18617 esac
18618 fi
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18620 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18621
18622 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18623 :
18624 else
18625 lt_prog_compiler_static_CXX=
18626 fi
18627
18628
18629
18630 ='-fPIC'
18631 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18632 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
18633 archive_cmds_need_lc_CXX=no
18634 no_undefined_flag_CXX=
18635 ;;
18636
18637 *)
18638 dynamic_linker=no
18639 ;;
18640 esac
18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18642 printf "%s\n" "$dynamic_linker" >&6; }
18643 test no = "$dynamic_linker" && can_build_shared=no
18644
18645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18646 if test yes = "$GCC"; then
18647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18648 fi
18649
18650 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18651 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18652 fi
18653
18654 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18655 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18656 fi
18657
18658 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18659 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18660
18661 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18662 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18663
18664 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18665 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18707 printf %s "checking how to hardcode library paths into programs... " >&6; }
18708 hardcode_action_CXX=
18709 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18710 test -n "$runpath_var_CXX" ||
18711 test yes = "$hardcode_automatic_CXX"; then
18712
18713 # We can hardcode non-existent directories.
18714 if test no != "$hardcode_direct_CXX" &&
18715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18716 # have to relink, otherwise we might link with an installed library
18717 # when we should be linking with a yet-to-be-installed one
18718 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18719 test no != "$hardcode_minus_L_CXX"; then
18720 # Linking always hardcodes the temporary library directory.
18721 hardcode_action_CXX=relink
18722 else
18723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18724 hardcode_action_CXX=immediate
18725 fi
18726 else
18727 # We cannot hardcode anything, or else we can only hardcode existing
18728 # directories.
18729 hardcode_action_CXX=unsupported
18730 fi
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18732 printf "%s\n" "$hardcode_action_CXX" >&6; }
18733
18734 if test relink = "$hardcode_action_CXX" ||
18735 test yes = "$inherit_rpath_CXX"; then
18736 # Fast installation is not supported
18737 enable_fast_install=no
18738 elif test yes = "$shlibpath_overrides_runpath" ||
18739 test no = "$enable_shared"; then
18740 # Fast installation is not necessary
18741 enable_fast_install=needless
18742 fi
18743
18744
18745
18746
18747
18748
18749
18750 fi # test -n "$compiler"
18751
18752 CC=$lt_save_CC
18753 CFLAGS=$lt_save_CFLAGS
18754 LDCXX=$LD
18755 LD=$lt_save_LD
18756 GCC=$lt_save_GCC
18757 with_gnu_ld=$lt_save_with_gnu_ld
18758 lt_cv_path_LDCXX=$lt_cv_path_LD
18759 lt_cv_path_LD=$lt_save_path_LD
18760 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18761 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18762 fi # test yes != "$_lt_caught_CXX_error"
18763
18764 ac_ext=c
18765 ac_cpp='$CPP $CPPFLAGS'
18766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784 ac_config_commands="$ac_config_commands libtool"
18785
18786
18787
18788
18789 # Only expand once:
18790
18791
18792
18793 ac_config_headers="$ac_config_headers config.h"
18794
18795 ac_config_files="$ac_config_files Makefile protobuf-c/libprotobuf-c.pc"
18796
18797
18798 my_CFLAGS="\
18799 -Wall \
18800 -Wchar-subscripts \
18801 -Wdeclaration-after-statement \
18802 -Wformat-security \
18803 -Wmissing-declarations \
18804 -Wmissing-prototypes \
18805 -Wnested-externs \
18806 -Wpointer-arith \
18807 -Wshadow \
18808 -Wsign-compare \
18809 -Wstrict-prototypes \
18810 -Wtype-limits \
18811 "
18812 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=incompatible-pointer-types"" | sed "$as_sed_sh"`
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"" >&5
18814 printf %s "checking whether C compiler accepts \"-Werror=incompatible-pointer-types\"... " >&6; }
18815 if eval test \${$as_CACHEVAR+y}
18816 then :
18817 printf %s "(cached) " >&6
18818 else case e in #(
18819 e)
18820 ax_check_save_flags=$CFLAGS
18821 CFLAGS="$CFLAGS "-Werror=incompatible-pointer-types""
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18824
18825 int
18826 main (void)
18827 {
18828
18829 ;
18830 return 0;
18831 }
18832 _ACEOF
18833 if ac_fn_c_try_compile "$LINENO"
18834 then :
18835 eval "$as_CACHEVAR=yes"
18836 else case e in #(
18837 e) eval "$as_CACHEVAR=no" ;;
18838 esac
18839 fi
18840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18841 CFLAGS=$ax_check_save_flags ;;
18842 esac
18843 fi
18844 eval ac_res=\$$as_CACHEVAR
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18846 printf "%s\n" "$ac_res" >&6; }
18847 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
18848 then :
18849 my_CFLAGS="$my_CFLAGS -Werror=incompatible-pointer-types"
18850 else case e in #(
18851 e) : ;;
18852 esac
18853 fi
18854
18855 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Werror=int-conversion"" | sed "$as_sed_sh"`
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Werror=int-conversion\"" >&5
18857 printf %s "checking whether C compiler accepts \"-Werror=int-conversion\"... " >&6; }
18858 if eval test \${$as_CACHEVAR+y}
18859 then :
18860 printf %s "(cached) " >&6
18861 else case e in #(
18862 e)
18863 ax_check_save_flags=$CFLAGS
18864 CFLAGS="$CFLAGS "-Werror=int-conversion""
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867
18868 int
18869 main (void)
18870 {
18871
18872 ;
18873 return 0;
18874 }
18875 _ACEOF
18876 if ac_fn_c_try_compile "$LINENO"
18877 then :
18878 eval "$as_CACHEVAR=yes"
18879 else case e in #(
18880 e) eval "$as_CACHEVAR=no" ;;
18881 esac
18882 fi
18883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18884 CFLAGS=$ax_check_save_flags ;;
18885 esac
18886 fi
18887 eval ac_res=\$$as_CACHEVAR
18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18889 printf "%s\n" "$ac_res" >&6; }
18890 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
18891 then :
18892 my_CFLAGS="$my_CFLAGS -Werror=int-conversion"
18893 else case e in #(
18894 e) : ;;
18895 esac
18896 fi
18897
18898 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__"-Wnull-dereference"" | sed "$as_sed_sh"`
18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts \"-Wnull-dereference\"" >&5
18900 printf %s "checking whether C compiler accepts \"-Wnull-dereference\"... " >&6; }
18901 if eval test \${$as_CACHEVAR+y}
18902 then :
18903 printf %s "(cached) " >&6
18904 else case e in #(
18905 e)
18906 ax_check_save_flags=$CFLAGS
18907 CFLAGS="$CFLAGS "-Wnull-dereference""
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18910
18911 int
18912 main (void)
18913 {
18914
18915 ;
18916 return 0;
18917 }
18918 _ACEOF
18919 if ac_fn_c_try_compile "$LINENO"
18920 then :
18921 eval "$as_CACHEVAR=yes"
18922 else case e in #(
18923 e) eval "$as_CACHEVAR=no" ;;
18924 esac
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18927 CFLAGS=$ax_check_save_flags ;;
18928 esac
18929 fi
18930 eval ac_res=\$$as_CACHEVAR
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18932 printf "%s\n" "$ac_res" >&6; }
18933 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
18934 then :
18935 my_CFLAGS="$my_CFLAGS -Wnull-dereference"
18936 else case e in #(
18937 e) : ;;
18938 esac
18939 fi
18940
18941
18942
18943 for ac_prog in doxygen
18944 do
18945 # Extract the first word of "$ac_prog", so it can be a program name with args.
18946 set dummy $ac_prog; ac_word=$2
18947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18948 printf %s "checking for $ac_word... " >&6; }
18949 if test ${ac_cv_prog_DOXYGEN+y}
18950 then :
18951 printf %s "(cached) " >&6
18952 else case e in #(
18953 e) if test -n "$DOXYGEN"; then
18954 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
18955 else
18956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18957 for as_dir in $PATH
18958 do
18959 IFS=$as_save_IFS
18960 case $as_dir in #(((
18961 '') as_dir=./ ;;
18962 */) ;;
18963 *) as_dir=$as_dir/ ;;
18964 esac
18965 for ac_exec_ext in '' $ac_executable_extensions; do
18966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18967 ac_cv_prog_DOXYGEN="$ac_prog"
18968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18969 break 2
18970 fi
18971 done
18972 done
18973 IFS=$as_save_IFS
18974
18975 fi ;;
18976 esac
18977 fi
18978 DOXYGEN=$ac_cv_prog_DOXYGEN
18979 if test -n "$DOXYGEN"; then
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18981 printf "%s\n" "$DOXYGEN" >&6; }
18982 else
18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18984 printf "%s\n" "no" >&6; }
18985 fi
18986
18987
18988 test -n "$DOXYGEN" && break
18989 done
18990
18991 if test -n "$DOXYGEN"; then
18992 HAVE_DOXYGEN_TRUE=
18993 HAVE_DOXYGEN_FALSE='#'
18994 else
18995 HAVE_DOXYGEN_TRUE='#'
18996 HAVE_DOXYGEN_FALSE=
18997 fi
18998
18999 if test -z "$HAVE_DOXYGEN_TRUE"; then :
19000 ac_config_files="$ac_config_files Doxyfile"
19001
19002 DOXYGEN_INPUT="${srcdir}/protobuf-c"
19003
19004
19005 fi
19006
19007
19008
19009
19010
19011
19012
19013
19014 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19015 if test -n "$ac_tool_prefix"; then
19016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19017 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19019 printf %s "checking for $ac_word... " >&6; }
19020 if test ${ac_cv_path_PKG_CONFIG+y}
19021 then :
19022 printf %s "(cached) " >&6
19023 else case e in #(
19024 e) case $PKG_CONFIG in
19025 [\\/]* | ?:[\\/]*)
19026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19027 ;;
19028 *)
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030 for as_dir in $PATH
19031 do
19032 IFS=$as_save_IFS
19033 case $as_dir in #(((
19034 '') as_dir=./ ;;
19035 */) ;;
19036 *) as_dir=$as_dir/ ;;
19037 esac
19038 for ac_exec_ext in '' $ac_executable_extensions; do
19039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19040 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19042 break 2
19043 fi
19044 done
19045 done
19046 IFS=$as_save_IFS
19047
19048 ;;
19049 esac ;;
19050 esac
19051 fi
19052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19053 if test -n "$PKG_CONFIG"; then
19054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19055 printf "%s\n" "$PKG_CONFIG" >&6; }
19056 else
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 printf "%s\n" "no" >&6; }
19059 fi
19060
19061
19062 fi
19063 if test -z "$ac_cv_path_PKG_CONFIG"; then
19064 ac_pt_PKG_CONFIG=$PKG_CONFIG
19065 # Extract the first word of "pkg-config", so it can be a program name with args.
19066 set dummy pkg-config; ac_word=$2
19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068 printf %s "checking for $ac_word... " >&6; }
19069 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
19070 then :
19071 printf %s "(cached) " >&6
19072 else case e in #(
19073 e) case $ac_pt_PKG_CONFIG in
19074 [\\/]* | ?:[\\/]*)
19075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19076 ;;
19077 *)
19078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079 for as_dir in $PATH
19080 do
19081 IFS=$as_save_IFS
19082 case $as_dir in #(((
19083 '') as_dir=./ ;;
19084 */) ;;
19085 *) as_dir=$as_dir/ ;;
19086 esac
19087 for ac_exec_ext in '' $ac_executable_extensions; do
19088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
19090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19091 break 2
19092 fi
19093 done
19094 done
19095 IFS=$as_save_IFS
19096
19097 ;;
19098 esac ;;
19099 esac
19100 fi
19101 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19102 if test -n "$ac_pt_PKG_CONFIG"; then
19103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19104 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
19105 else
19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19107 printf "%s\n" "no" >&6; }
19108 fi
19109
19110 if test "x$ac_pt_PKG_CONFIG" = x; then
19111 PKG_CONFIG=""
19112 else
19113 case $cross_compiling:$ac_tool_warned in
19114 yes:)
19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19116 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19117 ac_tool_warned=yes ;;
19118 esac
19119 PKG_CONFIG=$ac_pt_PKG_CONFIG
19120 fi
19121 else
19122 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19123 fi
19124
19125 fi
19126 if test -n "$PKG_CONFIG"; then
19127 _pkg_min_version=0.9.0
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19129 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19130 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19132 printf "%s\n" "yes" >&6; }
19133 else
19134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135 printf "%s\n" "no" >&6; }
19136 PKG_CONFIG=""
19137 fi
19138 fi
19139 if test -n "$PKG_CONFIG"; then
19140 # Horrible hack for systems where the pkg-config install directory is simply wrong!
19141 if $PKG_CONFIG --variable=pc_path pkg-config 2>/dev/null | grep -q /libdata/; then
19142
19143
19144
19145 # Check whether --with-pkgconfigdir was given.
19146 if test ${with_pkgconfigdir+y}
19147 then :
19148 withval=$with_pkgconfigdir;
19149 else case e in #(
19150 e) with_pkgconfigdir='${prefix}/libdata/pkgconfig' ;;
19151 esac
19152 fi
19153
19154 pkgconfigdir=$with_pkgconfigdir
19155
19156
19157
19158
19159 else
19160
19161
19162
19163 # Check whether --with-pkgconfigdir was given.
19164 if test ${with_pkgconfigdir+y}
19165 then :
19166 withval=$with_pkgconfigdir;
19167 else case e in #(
19168 e) with_pkgconfigdir='${libdir}/pkgconfig' ;;
19169 esac
19170 fi
19171
19172 pkgconfigdir=$with_pkgconfigdir
19173
19174
19175
19176
19177 fi
19178 fi
19179
19180 # Check whether --enable-protoc was given.
19181 if test ${enable_protoc+y}
19182 then :
19183 enableval=$enable_protoc;
19184 fi
19185
19186 if test "x$enable_protoc" != "xno"; then
19187 ac_ext=cpp
19188 ac_cpp='$CXXCPP $CPPFLAGS'
19189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19192
19193 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
19194 ac_ext=cpp
19195 ac_cpp='$CXXCPP $CPPFLAGS'
19196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19199 ac_success=no
19200
19201
19202
19203 if test x$ac_success = xno; then
19204 for alternative in ${ax_cxx_compile_alternatives}; do
19205 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19206 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | sed "$as_sed_sh"`
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
19208 printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
19209 if eval test \${$cachevar+y}
19210 then :
19211 printf %s "(cached) " >&6
19212 else case e in #(
19213 e) ac_save_CXX="$CXX"
19214 CXX="$CXX $switch"
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19217
19218
19219 // If the compiler admits that it is not ready for C++11, why torture it?
19220 // Hopefully, this will speed up the test.
19221
19222 #ifndef __cplusplus
19223
19224 #error "This is not a C++ compiler"
19225
19226 #elif __cplusplus < 201103L
19227
19228 #error "This is not a C++11 compiler"
19229
19230 #else
19231
19232 namespace cxx11
19233 {
19234
19235 namespace test_static_assert
19236 {
19237
19238 template <typename T>
19239 struct check
19240 {
19241 static_assert(sizeof(int) <= sizeof(T), "not big enough");
19242 };
19243
19244 }
19245
19246 namespace test_final_override
19247 {
19248
19249 struct Base
19250 {
19251 virtual void f() {}
19252 };
19253
19254 struct Derived : public Base
19255 {
19256 virtual void f() override {}
19257 };
19258
19259 }
19260
19261 namespace test_double_right_angle_brackets
19262 {
19263
19264 template < typename T >
19265 struct check {};
19266
19267 typedef check<void> single_type;
19268 typedef check<check<void>> double_type;
19269 typedef check<check<check<void>>> triple_type;
19270 typedef check<check<check<check<void>>>> quadruple_type;
19271
19272 }
19273
19274 namespace test_decltype
19275 {
19276
19277 int
19278 f()
19279 {
19280 int a = 1;
19281 decltype(a) b = 2;
19282 return a + b;
19283 }
19284
19285 }
19286
19287 namespace test_type_deduction
19288 {
19289
19290 template < typename T1, typename T2 >
19291 struct is_same
19292 {
19293 static const bool value = false;
19294 };
19295
19296 template < typename T >
19297 struct is_same<T, T>
19298 {
19299 static const bool value = true;
19300 };
19301
19302 template < typename T1, typename T2 >
19303 auto
19304 add(T1 a1, T2 a2) -> decltype(a1 + a2)
19305 {
19306 return a1 + a2;
19307 }
19308
19309 int
19310 test(const int c, volatile int v)
19311 {
19312 static_assert(is_same<int, decltype(0)>::value == true, "");
19313 static_assert(is_same<int, decltype(c)>::value == false, "");
19314 static_assert(is_same<int, decltype(v)>::value == false, "");
19315 auto ac = c;
19316 auto av = v;
19317 auto sumi = ac + av + 'x';
19318 auto sumf = ac + av + 1.0;
19319 static_assert(is_same<int, decltype(ac)>::value == true, "");
19320 static_assert(is_same<int, decltype(av)>::value == true, "");
19321 static_assert(is_same<int, decltype(sumi)>::value == true, "");
19322 static_assert(is_same<int, decltype(sumf)>::value == false, "");
19323 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19324 return (sumf > 0.0) ? sumi : add(c, v);
19325 }
19326
19327 }
19328
19329 namespace test_noexcept
19330 {
19331
19332 int f() { return 0; }
19333 int g() noexcept { return 0; }
19334
19335 static_assert(noexcept(f()) == false, "");
19336 static_assert(noexcept(g()) == true, "");
19337
19338 }
19339
19340 namespace test_constexpr
19341 {
19342
19343 template < typename CharT >
19344 unsigned long constexpr
19345 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19346 {
19347 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19348 }
19349
19350 template < typename CharT >
19351 unsigned long constexpr
19352 strlen_c(const CharT *const s) noexcept
19353 {
19354 return strlen_c_r(s, 0UL);
19355 }
19356
19357 static_assert(strlen_c("") == 0UL, "");
19358 static_assert(strlen_c("1") == 1UL, "");
19359 static_assert(strlen_c("example") == 7UL, "");
19360 static_assert(strlen_c("another\0example") == 7UL, "");
19361
19362 }
19363
19364 namespace test_rvalue_references
19365 {
19366
19367 template < int N >
19368 struct answer
19369 {
19370 static constexpr int value = N;
19371 };
19372
19373 answer<1> f(int&) { return answer<1>(); }
19374 answer<2> f(const int&) { return answer<2>(); }
19375 answer<3> f(int&&) { return answer<3>(); }
19376
19377 void
19378 test()
19379 {
19380 int i = 0;
19381 const int c = 0;
19382 static_assert(decltype(f(i))::value == 1, "");
19383 static_assert(decltype(f(c))::value == 2, "");
19384 static_assert(decltype(f(0))::value == 3, "");
19385 }
19386
19387 }
19388
19389 namespace test_uniform_initialization
19390 {
19391
19392 struct test
19393 {
19394 static const int zero {};
19395 static const int one {1};
19396 };
19397
19398 static_assert(test::zero == 0, "");
19399 static_assert(test::one == 1, "");
19400
19401 }
19402
19403 namespace test_lambdas
19404 {
19405
19406 void
19407 test1()
19408 {
19409 auto lambda1 = [](){};
19410 auto lambda2 = lambda1;
19411 lambda1();
19412 lambda2();
19413 }
19414
19415 int
19416 test2()
19417 {
19418 auto a = [](int i, int j){ return i + j; }(1, 2);
19419 auto b = []() -> int { return '0'; }();
19420 auto c = [=](){ return a + b; }();
19421 auto d = [&](){ return c; }();
19422 auto e = [a, &b](int x) mutable {
19423 const auto identity = [](int y){ return y; };
19424 for (auto i = 0; i < a; ++i)
19425 a += b--;
19426 return x + identity(a + b);
19427 }(0);
19428 return a + b + c + d + e;
19429 }
19430
19431 int
19432 test3()
19433 {
19434 const auto nullary = [](){ return 0; };
19435 const auto unary = [](int x){ return x; };
19436 using nullary_t = decltype(nullary);
19437 using unary_t = decltype(unary);
19438 const auto higher1st = [](nullary_t f){ return f(); };
19439 const auto higher2nd = [unary](nullary_t f1){
19440 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19441 };
19442 return higher1st(nullary) + higher2nd(nullary)(unary);
19443 }
19444
19445 }
19446
19447 namespace test_variadic_templates
19448 {
19449
19450 template <int...>
19451 struct sum;
19452
19453 template <int N0, int... N1toN>
19454 struct sum<N0, N1toN...>
19455 {
19456 static constexpr auto value = N0 + sum<N1toN...>::value;
19457 };
19458
19459 template <>
19460 struct sum<>
19461 {
19462 static constexpr auto value = 0;
19463 };
19464
19465 static_assert(sum<>::value == 0, "");
19466 static_assert(sum<1>::value == 1, "");
19467 static_assert(sum<23>::value == 23, "");
19468 static_assert(sum<1, 2>::value == 3, "");
19469 static_assert(sum<5, 5, 11>::value == 21, "");
19470 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19471
19472 }
19473
19474 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19475 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19476 // because of this.
19477 namespace test_template_alias_sfinae
19478 {
19479
19480 struct foo {};
19481
19482 template<typename T>
19483 using member = typename T::member_type;
19484
19485 template<typename T>
19486 void func(...) {}
19487
19488 template<typename T>
19489 void func(member<T>*) {}
19490
19491 void test();
19492
19493 void test() { func<foo>(0); }
19494
19495 }
19496
19497 } // namespace cxx11
19498
19499 #endif // __cplusplus >= 201103L
19500
19501
19502
19503
19504 // If the compiler admits that it is not ready for C++14, why torture it?
19505 // Hopefully, this will speed up the test.
19506
19507 #ifndef __cplusplus
19508
19509 #error "This is not a C++ compiler"
19510
19511 #elif __cplusplus < 201402L
19512
19513 #error "This is not a C++14 compiler"
19514
19515 #else
19516
19517 namespace cxx14
19518 {
19519
19520 namespace test_polymorphic_lambdas
19521 {
19522
19523 int
19524 test()
19525 {
19526 const auto lambda = [](auto&&... args){
19527 const auto istiny = [](auto x){
19528 return (sizeof(x) == 1UL) ? 1 : 0;
19529 };
19530 const int aretiny[] = { istiny(args)... };
19531 return aretiny[0];
19532 };
19533 return lambda(1, 1L, 1.0f, '1');
19534 }
19535
19536 }
19537
19538 namespace test_binary_literals
19539 {
19540
19541 constexpr auto ivii = 0b0000000000101010;
19542 static_assert(ivii == 42, "wrong value");
19543
19544 }
19545
19546 namespace test_generalized_constexpr
19547 {
19548
19549 template < typename CharT >
19550 constexpr unsigned long
19551 strlen_c(const CharT *const s) noexcept
19552 {
19553 auto length = 0UL;
19554 for (auto p = s; *p; ++p)
19555 ++length;
19556 return length;
19557 }
19558
19559 static_assert(strlen_c("") == 0UL, "");
19560 static_assert(strlen_c("x") == 1UL, "");
19561 static_assert(strlen_c("test") == 4UL, "");
19562 static_assert(strlen_c("another\0test") == 7UL, "");
19563
19564 }
19565
19566 namespace test_lambda_init_capture
19567 {
19568
19569 int
19570 test()
19571 {
19572 auto x = 0;
19573 const auto lambda1 = [a = x](int b){ return a + b; };
19574 const auto lambda2 = [a = lambda1(x)](){ return a; };
19575 return lambda2();
19576 }
19577
19578 }
19579
19580 namespace test_digit_separators
19581 {
19582
19583 constexpr auto ten_million = 100'000'000;
19584 static_assert(ten_million == 100000000, "");
19585
19586 }
19587
19588 namespace test_return_type_deduction
19589 {
19590
19591 auto f(int& x) { return x; }
19592 decltype(auto) g(int& x) { return x; }
19593
19594 template < typename T1, typename T2 >
19595 struct is_same
19596 {
19597 static constexpr auto value = false;
19598 };
19599
19600 template < typename T >
19601 struct is_same<T, T>
19602 {
19603 static constexpr auto value = true;
19604 };
19605
19606 int
19607 test()
19608 {
19609 auto x = 0;
19610 static_assert(is_same<int, decltype(f(x))>::value, "");
19611 static_assert(is_same<int&, decltype(g(x))>::value, "");
19612 return x;
19613 }
19614
19615 }
19616
19617 } // namespace cxx14
19618
19619 #endif // __cplusplus >= 201402L
19620
19621
19622
19623
19624 // If the compiler admits that it is not ready for C++17, why torture it?
19625 // Hopefully, this will speed up the test.
19626
19627 #ifndef __cplusplus
19628
19629 #error "This is not a C++ compiler"
19630
19631 #elif __cplusplus < 201703L
19632
19633 #error "This is not a C++17 compiler"
19634
19635 #else
19636
19637 #include <initializer_list>
19638 #include <utility>
19639 #include <type_traits>
19640
19641 namespace cxx17
19642 {
19643
19644 namespace test_constexpr_lambdas
19645 {
19646
19647 constexpr int foo = [](){return 42;}();
19648
19649 }
19650
19651 namespace test::nested_namespace::definitions
19652 {
19653
19654 }
19655
19656 namespace test_fold_expression
19657 {
19658
19659 template<typename... Args>
19660 int multiply(Args... args)
19661 {
19662 return (args * ... * 1);
19663 }
19664
19665 template<typename... Args>
19666 bool all(Args... args)
19667 {
19668 return (args && ...);
19669 }
19670
19671 }
19672
19673 namespace test_extended_static_assert
19674 {
19675
19676 static_assert (true);
19677
19678 }
19679
19680 namespace test_auto_brace_init_list
19681 {
19682
19683 auto foo = {5};
19684 auto bar {5};
19685
19686 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
19687 static_assert(std::is_same<int, decltype(bar)>::value);
19688 }
19689
19690 namespace test_typename_in_template_template_parameter
19691 {
19692
19693 template<template<typename> typename X> struct D;
19694
19695 }
19696
19697 namespace test_fallthrough_nodiscard_maybe_unused_attributes
19698 {
19699
19700 int f1()
19701 {
19702 return 42;
19703 }
19704
19705 [[nodiscard]] int f2()
19706 {
19707 [[maybe_unused]] auto unused = f1();
19708
19709 switch (f1())
19710 {
19711 case 17:
19712 f1();
19713 [[fallthrough]];
19714 case 42:
19715 f1();
19716 }
19717 return f1();
19718 }
19719
19720 }
19721
19722 namespace test_extended_aggregate_initialization
19723 {
19724
19725 struct base1
19726 {
19727 int b1, b2 = 42;
19728 };
19729
19730 struct base2
19731 {
19732 base2() {
19733 b3 = 42;
19734 }
19735 int b3;
19736 };
19737
19738 struct derived : base1, base2
19739 {
19740 int d;
19741 };
19742
19743 derived d1 {{1, 2}, {}, 4}; // full initialization
19744 derived d2 {{}, {}, 4}; // value-initialized bases
19745
19746 }
19747
19748 namespace test_general_range_based_for_loop
19749 {
19750
19751 struct iter
19752 {
19753 int i;
19754
19755 int& operator* ()
19756 {
19757 return i;
19758 }
19759
19760 const int& operator* () const
19761 {
19762 return i;
19763 }
19764
19765 iter& operator++()
19766 {
19767 ++i;
19768 return *this;
19769 }
19770 };
19771
19772 struct sentinel
19773 {
19774 int i;
19775 };
19776
19777 bool operator== (const iter& i, const sentinel& s)
19778 {
19779 return i.i == s.i;
19780 }
19781
19782 bool operator!= (const iter& i, const sentinel& s)
19783 {
19784 return !(i == s);
19785 }
19786
19787 struct range
19788 {
19789 iter begin() const
19790 {
19791 return {0};
19792 }
19793
19794 sentinel end() const
19795 {
19796 return {5};
19797 }
19798 };
19799
19800 void f()
19801 {
19802 range r {};
19803
19804 for (auto i : r)
19805 {
19806 [[maybe_unused]] auto v = i;
19807 }
19808 }
19809
19810 }
19811
19812 namespace test_lambda_capture_asterisk_this_by_value
19813 {
19814
19815 struct t
19816 {
19817 int i;
19818 int foo()
19819 {
19820 return [*this]()
19821 {
19822 return i;
19823 }();
19824 }
19825 };
19826
19827 }
19828
19829 namespace test_enum_class_construction
19830 {
19831
19832 enum class byte : unsigned char
19833 {};
19834
19835 byte foo {42};
19836
19837 }
19838
19839 namespace test_constexpr_if
19840 {
19841
19842 template <bool cond>
19843 int f ()
19844 {
19845 if constexpr(cond)
19846 {
19847 return 13;
19848 }
19849 else
19850 {
19851 return 42;
19852 }
19853 }
19854
19855 }
19856
19857 namespace test_selection_statement_with_initializer
19858 {
19859
19860 int f()
19861 {
19862 return 13;
19863 }
19864
19865 int f2()
19866 {
19867 if (auto i = f(); i > 0)
19868 {
19869 return 3;
19870 }
19871
19872 switch (auto i = f(); i + 4)
19873 {
19874 case 17:
19875 return 2;
19876
19877 default:
19878 return 1;
19879 }
19880 }
19881
19882 }
19883
19884 namespace test_template_argument_deduction_for_class_templates
19885 {
19886
19887 template <typename T1, typename T2>
19888 struct pair
19889 {
19890 pair (T1 p1, T2 p2)
19891 : m1 {p1},
19892 m2 {p2}
19893 {}
19894
19895 T1 m1;
19896 T2 m2;
19897 };
19898
19899 void f()
19900 {
19901 [[maybe_unused]] auto p = pair{13, 42u};
19902 }
19903
19904 }
19905
19906 namespace test_non_type_auto_template_parameters
19907 {
19908
19909 template <auto n>
19910 struct B
19911 {};
19912
19913 B<5> b1;
19914 B<'a'> b2;
19915
19916 }
19917
19918 namespace test_structured_bindings
19919 {
19920
19921 int arr[2] = { 1, 2 };
19922 std::pair<int, int> pr = { 1, 2 };
19923
19924 auto f1() -> int(&)[2]
19925 {
19926 return arr;
19927 }
19928
19929 auto f2() -> std::pair<int, int>&
19930 {
19931 return pr;
19932 }
19933
19934 struct S
19935 {
19936 int x1 : 2;
19937 volatile double y1;
19938 };
19939
19940 S f3()
19941 {
19942 return {};
19943 }
19944
19945 auto [ x1, y1 ] = f1();
19946 auto& [ xr1, yr1 ] = f1();
19947 auto [ x2, y2 ] = f2();
19948 auto& [ xr2, yr2 ] = f2();
19949 const auto [ x3, y3 ] = f3();
19950
19951 }
19952
19953 namespace test_exception_spec_type_system
19954 {
19955
19956 struct Good {};
19957 struct Bad {};
19958
19959 void g1() noexcept;
19960 void g2();
19961
19962 template<typename T>
19963 Bad
19964 f(T*, T*);
19965
19966 template<typename T1, typename T2>
19967 Good
19968 f(T1*, T2*);
19969
19970 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
19971
19972 }
19973
19974 namespace test_inline_variables
19975 {
19976
19977 template<class T> void f(T)
19978 {}
19979
19980 template<class T> inline T g(T)
19981 {
19982 return T{};
19983 }
19984
19985 template<> inline void f<>(int)
19986 {}
19987
19988 template<> int g<>(int)
19989 {
19990 return 5;
19991 }
19992
19993 }
19994
19995 } // namespace cxx17
19996
19997 #endif // __cplusplus < 201703L
19998
19999
20000
20001 _ACEOF
20002 if ac_fn_cxx_try_compile "$LINENO"
20003 then :
20004 eval $cachevar=yes
20005 else case e in #(
20006 e) eval $cachevar=no ;;
20007 esac
20008 fi
20009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20010 CXX="$ac_save_CXX" ;;
20011 esac
20012 fi
20013 eval ac_res=\$$cachevar
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20015 printf "%s\n" "$ac_res" >&6; }
20016 if eval test x\$$cachevar = xyes; then
20017 CXX="$CXX $switch"
20018 if test -n "$CXXCPP" ; then
20019 CXXCPP="$CXXCPP $switch"
20020 fi
20021 ac_success=yes
20022 break
20023 fi
20024 done
20025 if test x$ac_success = xyes; then
20026 break
20027 fi
20028 done
20029 fi
20030 ac_ext=cpp
20031 ac_cpp='$CXXCPP $CPPFLAGS'
20032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20035
20036 if test x$ax_cxx_compile_cxx17_required = xtrue; then
20037 if test x$ac_success = xno; then
20038 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
20039 fi
20040 fi
20041 if test x$ac_success = xno; then
20042 HAVE_CXX17=0
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
20044 printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
20045 else
20046 HAVE_CXX17=1
20047
20048 printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
20049
20050 fi
20051
20052
20053
20054 pkg_failed=no
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for protobuf" >&5
20056 printf %s "checking for protobuf... " >&6; }
20057
20058 if test -n "$protobuf_CFLAGS"; then
20059 pkg_cv_protobuf_CFLAGS="$protobuf_CFLAGS"
20060 elif test -n "$PKG_CONFIG"; then
20061 if test -n "$PKG_CONFIG" && \
20062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
20063 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
20064 ac_status=$?
20065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20066 test $ac_status = 0; }; then
20067 pkg_cv_protobuf_CFLAGS=`$PKG_CONFIG --cflags "protobuf >= 3.0.0" 2>/dev/null`
20068 test "x$?" != "x0" && pkg_failed=yes
20069 else
20070 pkg_failed=yes
20071 fi
20072 else
20073 pkg_failed=untried
20074 fi
20075 if test -n "$protobuf_LIBS"; then
20076 pkg_cv_protobuf_LIBS="$protobuf_LIBS"
20077 elif test -n "$PKG_CONFIG"; then
20078 if test -n "$PKG_CONFIG" && \
20079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"protobuf >= 3.0.0\""; } >&5
20080 ($PKG_CONFIG --exists --print-errors "protobuf >= 3.0.0") 2>&5
20081 ac_status=$?
20082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20083 test $ac_status = 0; }; then
20084 pkg_cv_protobuf_LIBS=`$PKG_CONFIG --libs "protobuf >= 3.0.0" 2>/dev/null`
20085 test "x$?" != "x0" && pkg_failed=yes
20086 else
20087 pkg_failed=yes
20088 fi
20089 else
20090 pkg_failed=untried
20091 fi
20092
20093
20094
20095 if test $pkg_failed = yes; then
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 printf "%s\n" "no" >&6; }
20098
20099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20100 _pkg_short_errors_supported=yes
20101 else
20102 _pkg_short_errors_supported=no
20103 fi
20104 if test $_pkg_short_errors_supported = yes; then
20105 protobuf_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "protobuf >= 3.0.0" 2>&1`
20106 else
20107 protobuf_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "protobuf >= 3.0.0" 2>&1`
20108 fi
20109 # Put the nasty error message in config.log where it belongs
20110 echo "$protobuf_PKG_ERRORS" >&5
20111
20112 as_fn_error $? "Package requirements (protobuf >= 3.0.0) were not met:
20113
20114 $protobuf_PKG_ERRORS
20115
20116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20117 installed software in a non-standard prefix.
20118
20119 Alternatively, you may set the environment variables protobuf_CFLAGS
20120 and protobuf_LIBS to avoid the need to call pkg-config.
20121 See the pkg-config man page for more details." "$LINENO" 5
20122 elif test $pkg_failed = untried; then
20123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 printf "%s\n" "no" >&6; }
20125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20127 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20128 is in your PATH or set the PKG_CONFIG environment variable to the full
20129 path to pkg-config.
20130
20131 Alternatively, you may set the environment variables protobuf_CFLAGS
20132 and protobuf_LIBS to avoid the need to call pkg-config.
20133 See the pkg-config man page for more details.
20134
20135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20136 See 'config.log' for more details" "$LINENO" 5; }
20137 else
20138 protobuf_CFLAGS=$pkg_cv_protobuf_CFLAGS
20139 protobuf_LIBS=$pkg_cv_protobuf_LIBS
20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20141 printf "%s\n" "yes" >&6; }
20142
20143 fi
20144
20145 save_CPPFLAGS="$CPPFLAGS"
20146 CPPFLAGS="$save_CPPFLAGS $protobuf_CFLAGS"
20147 for ac_header in google/protobuf/compiler/command_line_interface.h
20148 do :
20149 ac_fn_cxx_check_header_compile "$LINENO" "google/protobuf/compiler/command_line_interface.h" "ac_cv_header_google_protobuf_compiler_command_line_interface_h" "$ac_includes_default"
20150 if test "x$ac_cv_header_google_protobuf_compiler_command_line_interface_h" = xyes
20151 then :
20152 printf "%s\n" "#define HAVE_GOOGLE_PROTOBUF_COMPILER_COMMAND_LINE_INTERFACE_H 1" >>confdefs.h
20153
20154 else case e in #(
20155 e) as_fn_error $? "required protobuf header file not found" "$LINENO" 5 ;;
20156 esac
20157 fi
20158
20159 done
20160 CPPFLAGS="$save_CPPFLAGS"
20161
20162
20163 # Extract the first word of "protoc", so it can be a program name with args.
20164 set dummy protoc; ac_word=$2
20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 printf %s "checking for $ac_word... " >&6; }
20167 if test ${ac_cv_path_PROTOC+y}
20168 then :
20169 printf %s "(cached) " >&6
20170 else case e in #(
20171 e) case $PROTOC in
20172 [\\/]* | ?:[\\/]*)
20173 ac_cv_path_PROTOC="$PROTOC" # Let the user override the test with a path.
20174 ;;
20175 *)
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 as_dummy="`$PKG_CONFIG --variable=exec_prefix protobuf`/bin:$PATH"
20178 for as_dir in $as_dummy
20179 do
20180 IFS=$as_save_IFS
20181 case $as_dir in #(((
20182 '') as_dir=./ ;;
20183 */) ;;
20184 *) as_dir=$as_dir/ ;;
20185 esac
20186 for ac_exec_ext in '' $ac_executable_extensions; do
20187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20188 ac_cv_path_PROTOC="$as_dir$ac_word$ac_exec_ext"
20189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20190 break 2
20191 fi
20192 done
20193 done
20194 IFS=$as_save_IFS
20195
20196 ;;
20197 esac ;;
20198 esac
20199 fi
20200 PROTOC=$ac_cv_path_PROTOC
20201 if test -n "$PROTOC"; then
20202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC" >&5
20203 printf "%s\n" "$PROTOC" >&6; }
20204 else
20205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20206 printf "%s\n" "no" >&6; }
20207 fi
20208
20209
20210 if test -z "$PROTOC"; then
20211 as_fn_error $? "Please install the protobuf compiler from https://code.google.com/p/protobuf/." "$LINENO" 5
20212 fi
20213
20214 PROTOBUF_VERSION="$($PROTOC --version)"
20215
20216 else
20217 PROTOBUF_VERSION="not required, not building compiler"
20218 fi
20219
20220 if test "x$enable_protoc" != "xno"; then
20221 BUILD_COMPILER_TRUE=
20222 BUILD_COMPILER_FALSE='#'
20223 else
20224 BUILD_COMPILER_TRUE='#'
20225 BUILD_COMPILER_FALSE=
20226 fi
20227
20228 if test "x$cross_compiling" != "xno"; then
20229 CROSS_COMPILING_TRUE=
20230 CROSS_COMPILING_FALSE='#'
20231 else
20232 CROSS_COMPILING_TRUE='#'
20233 CROSS_COMPILING_FALSE=
20234 fi
20235
20236
20237
20238 # Check whether --enable-ld-version-script was given.
20239 if test ${enable_ld_version_script+y}
20240 then :
20241 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
20242 fi
20243
20244 if test -z "$have_ld_version_script"; then
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
20246 printf %s "checking if LD -Wl,--version-script works... " >&6; }
20247 save_LDFLAGS="$LDFLAGS"
20248 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
20249 cat > conftest.map <<EOF
20250 foo
20251 EOF
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20254
20255 int
20256 main (void)
20257 {
20258
20259 ;
20260 return 0;
20261 }
20262 _ACEOF
20263 if ac_fn_cxx_try_link "$LINENO"
20264 then :
20265 accepts_syntax_errors=yes
20266 else case e in #(
20267 e) accepts_syntax_errors=no ;;
20268 esac
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20271 conftest$ac_exeext conftest.$ac_ext
20272 if test "$accepts_syntax_errors" = no; then
20273 cat > conftest.map <<EOF
20274 VERS_1 {
20275 global: sym;
20276 };
20277
20278 VERS_2 {
20279 global: sym;
20280 } VERS_1;
20281 EOF
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20284
20285 int
20286 main (void)
20287 {
20288
20289 ;
20290 return 0;
20291 }
20292 _ACEOF
20293 if ac_fn_cxx_try_link "$LINENO"
20294 then :
20295 have_ld_version_script=yes
20296 else case e in #(
20297 e) have_ld_version_script=no ;;
20298 esac
20299 fi
20300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20301 conftest$ac_exeext conftest.$ac_ext
20302 else
20303 have_ld_version_script=no
20304 fi
20305 rm -f conftest.map
20306 LDFLAGS="$save_LDFLAGS"
20307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
20308 printf "%s\n" "$have_ld_version_script" >&6; }
20309 fi
20310 if test "$have_ld_version_script" = "yes"; then
20311 HAVE_LD_VERSION_SCRIPT_TRUE=
20312 HAVE_LD_VERSION_SCRIPT_FALSE='#'
20313 else
20314 HAVE_LD_VERSION_SCRIPT_TRUE='#'
20315 HAVE_LD_VERSION_SCRIPT_FALSE=
20316 fi
20317
20318
20319
20320
20321 # Check whether --enable-valgrind-tests was given.
20322 if test ${enable_valgrind_tests+y}
20323 then :
20324 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
20325 else case e in #(
20326 e) opt_valgrind_tests=no ;;
20327 esac
20328 fi
20329
20330
20331 # Run self-tests under valgrind?
20332 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
20333 for ac_prog in valgrind
20334 do
20335 # Extract the first word of "$ac_prog", so it can be a program name with args.
20336 set dummy $ac_prog; ac_word=$2
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20338 printf %s "checking for $ac_word... " >&6; }
20339 if test ${ac_cv_prog_VALGRIND+y}
20340 then :
20341 printf %s "(cached) " >&6
20342 else case e in #(
20343 e) if test -n "$VALGRIND"; then
20344 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
20345 else
20346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20347 for as_dir in $PATH
20348 do
20349 IFS=$as_save_IFS
20350 case $as_dir in #(((
20351 '') as_dir=./ ;;
20352 */) ;;
20353 *) as_dir=$as_dir/ ;;
20354 esac
20355 for ac_exec_ext in '' $ac_executable_extensions; do
20356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20357 ac_cv_prog_VALGRIND="$ac_prog"
20358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20359 break 2
20360 fi
20361 done
20362 done
20363 IFS=$as_save_IFS
20364
20365 fi ;;
20366 esac
20367 fi
20368 VALGRIND=$ac_cv_prog_VALGRIND
20369 if test -n "$VALGRIND"; then
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
20371 printf "%s\n" "$VALGRIND" >&6; }
20372 else
20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20374 printf "%s\n" "no" >&6; }
20375 fi
20376
20377
20378 test -n "$VALGRIND" && break
20379 done
20380
20381 fi
20382
20383 if test -n "$VALGRIND" && $VALGRIND -q true > /dev/null 2>&1; then
20384 opt_valgrind_tests=yes
20385 VALGRIND="$VALGRIND -q --error-exitcode=1 --leak-check=full \
20386 --trace-children=yes --trace-children-skip=/usr/*,/bin/*"
20387 else
20388 opt_valgrind_tests=no
20389 VALGRIND=
20390 fi
20391
20392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
20393 printf %s "checking whether self tests are run under valgrind... " >&6; }
20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
20395 printf "%s\n" "$opt_valgrind_tests" >&6; }
20396
20397
20398
20399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
20400 printf %s "checking whether to build with code coverage support... " >&6; }
20401 # Check whether --enable-code-coverage was given.
20402 if test ${enable_code_coverage+y}
20403 then :
20404 enableval=$enable_code_coverage;
20405 else case e in #(
20406 e) enable_code_coverage=no ;;
20407 esac
20408 fi
20409
20410 if test x$enable_code_coverage = xyes; then
20411 CODE_COVERAGE_ENABLED_TRUE=
20412 CODE_COVERAGE_ENABLED_FALSE='#'
20413 else
20414 CODE_COVERAGE_ENABLED_TRUE='#'
20415 CODE_COVERAGE_ENABLED_FALSE=
20416 fi
20417
20418 CODE_COVERAGE_ENABLED=$enable_code_coverage
20419
20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
20421 printf "%s\n" "$enable_code_coverage" >&6; }
20422
20423 if test "$enable_code_coverage" = "yes"
20424 then :
20425
20426 if test "$GCC" = "no"
20427 then :
20428
20429 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
20430
20431 fi
20432
20433 # Extract the first word of "lcov", so it can be a program name with args.
20434 set dummy lcov; ac_word=$2
20435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20436 printf %s "checking for $ac_word... " >&6; }
20437 if test ${ac_cv_prog_LCOV+y}
20438 then :
20439 printf %s "(cached) " >&6
20440 else case e in #(
20441 e) if test -n "$LCOV"; then
20442 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
20443 else
20444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20445 for as_dir in $PATH
20446 do
20447 IFS=$as_save_IFS
20448 case $as_dir in #(((
20449 '') as_dir=./ ;;
20450 */) ;;
20451 *) as_dir=$as_dir/ ;;
20452 esac
20453 for ac_exec_ext in '' $ac_executable_extensions; do
20454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20455 ac_cv_prog_LCOV="lcov"
20456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20457 break 2
20458 fi
20459 done
20460 done
20461 IFS=$as_save_IFS
20462
20463 fi ;;
20464 esac
20465 fi
20466 LCOV=$ac_cv_prog_LCOV
20467 if test -n "$LCOV"; then
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
20469 printf "%s\n" "$LCOV" >&6; }
20470 else
20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472 printf "%s\n" "no" >&6; }
20473 fi
20474
20475
20476 # Extract the first word of "genhtml", so it can be a program name with args.
20477 set dummy genhtml; ac_word=$2
20478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20479 printf %s "checking for $ac_word... " >&6; }
20480 if test ${ac_cv_prog_GENHTML+y}
20481 then :
20482 printf %s "(cached) " >&6
20483 else case e in #(
20484 e) if test -n "$GENHTML"; then
20485 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
20486 else
20487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20488 for as_dir in $PATH
20489 do
20490 IFS=$as_save_IFS
20491 case $as_dir in #(((
20492 '') as_dir=./ ;;
20493 */) ;;
20494 *) as_dir=$as_dir/ ;;
20495 esac
20496 for ac_exec_ext in '' $ac_executable_extensions; do
20497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20498 ac_cv_prog_GENHTML="genhtml"
20499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20500 break 2
20501 fi
20502 done
20503 done
20504 IFS=$as_save_IFS
20505
20506 fi ;;
20507 esac
20508 fi
20509 GENHTML=$ac_cv_prog_GENHTML
20510 if test -n "$GENHTML"; then
20511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
20512 printf "%s\n" "$GENHTML" >&6; }
20513 else
20514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20515 printf "%s\n" "no" >&6; }
20516 fi
20517
20518
20519
20520 if test -z "$LCOV"
20521 then :
20522
20523 as_fn_error $? "The lcov program was not found. Please install lcov!" "$LINENO" 5
20524
20525 fi
20526
20527 if test -z "$GENHTML"
20528 then :
20529
20530 as_fn_error $? "The genhtml program was not found. Please install lcov!" "$LINENO" 5
20531
20532 fi
20533
20534 CODE_COVERAGE_CFLAGS="-O0 -g --coverage"
20535 CODE_COVERAGE_LDFLAGS="--coverage"
20536
20537
20538
20539
20540
20541 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
20542
20543
20544 fi
20545
20546 CODE_COVERAGE_RULES='
20547 # Code coverage
20548 #
20549 # Optional:
20550 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
20551 # (Default: $(top_builddir))
20552 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
20553 # by lcov for code coverage. (Default:
20554 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
20555 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
20556 # reports to be created. (Default:
20557 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
20558 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
20559 # (Default: empty)
20560 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
20561 # instance. (Default: empty)
20562 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
20563 #
20564 # The generated report will be titled using the $(PACKAGE_NAME) and
20565 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
20566 # use the git-version-gen script, available online.
20567
20568 # Optional variables
20569 CODE_COVERAGE_DIRECTORY ?= $(abs_top_builddir)
20570 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
20571 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
20572 CODE_COVERAGE_LCOV_OPTIONS ?=
20573 CODE_COVERAGE_GENHTML_OPTIONS ?=
20574 CODE_COVERAGE_IGNORE_PATTERN ?=
20575
20576 code_coverage_quiet = $(code_coverage_quiet_$(V))
20577 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
20578 code_coverage_quiet_0 = --quiet
20579
20580 # Use recursive makes in order to ignore errors during check
20581 check-code-coverage:
20582 ifeq ($(CODE_COVERAGE_ENABLED),yes)
20583 -$(MAKE) $(AM_MAKEFLAGS) -k check
20584 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
20585 else
20586 @echo "Need to reconfigure with --enable-code-coverage"
20587 endif
20588
20589 # Capture code coverage data
20590 code-coverage-capture: code-coverage-capture-hook
20591 ifeq ($(CODE_COVERAGE_ENABLED),yes)
20592 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
20593 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
20594 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
20595 LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
20596 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
20597 else
20598 @echo "Need to reconfigure with --enable-code-coverage"
20599 endif
20600
20601 # Hook rule executed before code-coverage-capture, overridable by the user
20602 code-coverage-capture-hook:
20603
20604 ifeq ($(CODE_COVERAGE_ENABLED),yes)
20605 clean: code-coverage-clean
20606 code-coverage-clean:
20607 -$(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) -z
20608 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
20609 -find . -name "*.gcda" -o -name "*.gcov" -delete
20610 endif
20611
20612 GITIGNOREFILES ?=
20613 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
20614
20615 DISTCHECK_CONFIGURE_FLAGS ?=
20616 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
20617
20618 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
20619 '
20620
20621
20622
20623
20624
20625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20626 printf %s "checking whether byte ordering is bigendian... " >&6; }
20627 if test ${ac_cv_c_bigendian+y}
20628 then :
20629 printf %s "(cached) " >&6
20630 else case e in #(
20631 e) ac_cv_c_bigendian=unknown
20632 # See if we're dealing with a universal compiler.
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635 #ifndef __APPLE_CC__
20636 not a universal capable compiler
20637 #endif
20638 typedef int dummy;
20639
20640 _ACEOF
20641 if ac_fn_cxx_try_compile "$LINENO"
20642 then :
20643
20644 # Check for potential -arch flags. It is not universal unless
20645 # there are at least two -arch flags with different values.
20646 ac_arch=
20647 ac_prev=
20648 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20649 if test -n "$ac_prev"; then
20650 case $ac_word in
20651 i?86 | x86_64 | ppc | ppc64)
20652 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20653 ac_arch=$ac_word
20654 else
20655 ac_cv_c_bigendian=universal
20656 break
20657 fi
20658 ;;
20659 esac
20660 ac_prev=
20661 elif test "x$ac_word" = "x-arch"; then
20662 ac_prev=arch
20663 fi
20664 done
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20667 if test $ac_cv_c_bigendian = unknown; then
20668 # See if sys/param.h defines the BYTE_ORDER macro.
20669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h. */
20671 #include <sys/types.h>
20672 #include <sys/param.h>
20673
20674 int
20675 main (void)
20676 {
20677 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
20678 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
20679 && LITTLE_ENDIAN)
20680 bogus endian macros
20681 #endif
20682
20683 ;
20684 return 0;
20685 }
20686 _ACEOF
20687 if ac_fn_cxx_try_compile "$LINENO"
20688 then :
20689 # It does; now see whether it defined to BIG_ENDIAN or not.
20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h. */
20692 #include <sys/types.h>
20693 #include <sys/param.h>
20694
20695 int
20696 main (void)
20697 {
20698 #if BYTE_ORDER != BIG_ENDIAN
20699 not big endian
20700 #endif
20701
20702 ;
20703 return 0;
20704 }
20705 _ACEOF
20706 if ac_fn_cxx_try_compile "$LINENO"
20707 then :
20708 ac_cv_c_bigendian=yes
20709 else case e in #(
20710 e) ac_cv_c_bigendian=no ;;
20711 esac
20712 fi
20713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20714 fi
20715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20716 fi
20717 if test $ac_cv_c_bigendian = unknown; then
20718 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720 /* end confdefs.h. */
20721 #include <limits.h>
20722
20723 int
20724 main (void)
20725 {
20726 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20727 bogus endian macros
20728 #endif
20729
20730 ;
20731 return 0;
20732 }
20733 _ACEOF
20734 if ac_fn_cxx_try_compile "$LINENO"
20735 then :
20736 # It does; now see whether it defined to _BIG_ENDIAN or not.
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20739 #include <limits.h>
20740
20741 int
20742 main (void)
20743 {
20744 #ifndef _BIG_ENDIAN
20745 not big endian
20746 #endif
20747
20748 ;
20749 return 0;
20750 }
20751 _ACEOF
20752 if ac_fn_cxx_try_compile "$LINENO"
20753 then :
20754 ac_cv_c_bigendian=yes
20755 else case e in #(
20756 e) ac_cv_c_bigendian=no ;;
20757 esac
20758 fi
20759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20760 fi
20761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20762 fi
20763 if test $ac_cv_c_bigendian = unknown; then
20764 # Compile a test program.
20765 if test "$cross_compiling" = yes
20766 then :
20767 # Try to guess by grepping values from an object file.
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20770 unsigned short int ascii_mm[] =
20771 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20772 unsigned short int ascii_ii[] =
20773 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20774 int use_ascii (int i) {
20775 return ascii_mm[i] + ascii_ii[i];
20776 }
20777 unsigned short int ebcdic_ii[] =
20778 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20779 unsigned short int ebcdic_mm[] =
20780 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20781 int use_ebcdic (int i) {
20782 return ebcdic_mm[i] + ebcdic_ii[i];
20783 }
20784 int
20785 main (int argc, char **argv)
20786 {
20787 /* Intimidate the compiler so that it does not
20788 optimize the arrays away. */
20789 char *p = argv[0];
20790 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
20791 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
20792 return use_ascii (argc) == use_ebcdic (*p);
20793 }
20794 _ACEOF
20795 if ac_fn_cxx_try_link "$LINENO"
20796 then :
20797 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
20798 ac_cv_c_bigendian=yes
20799 fi
20800 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
20801 if test "$ac_cv_c_bigendian" = unknown; then
20802 ac_cv_c_bigendian=no
20803 else
20804 # finding both strings is unlikely to happen, but who knows?
20805 ac_cv_c_bigendian=unknown
20806 fi
20807 fi
20808 fi
20809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20810 conftest$ac_exeext conftest.$ac_ext
20811 else case e in #(
20812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20814 $ac_includes_default
20815 int
20816 main (void)
20817 {
20818
20819 /* Are we little or big endian? From Harbison&Steele. */
20820 union
20821 {
20822 long int l;
20823 char c[sizeof (long int)];
20824 } u;
20825 u.l = 1;
20826 return u.c[sizeof (long int) - 1] == 1;
20827
20828 ;
20829 return 0;
20830 }
20831 _ACEOF
20832 if ac_fn_cxx_try_run "$LINENO"
20833 then :
20834 ac_cv_c_bigendian=no
20835 else case e in #(
20836 e) ac_cv_c_bigendian=yes ;;
20837 esac
20838 fi
20839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20840 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20841 esac
20842 fi
20843
20844 fi ;;
20845 esac
20846 fi
20847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20848 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20849 case $ac_cv_c_bigendian in #(
20850 yes)
20851 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20852 ;; #(
20853 no)
20854 ;; #(
20855 universal)
20856
20857 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20858
20859 ;; #(
20860 *)
20861 as_fn_error $? "unknown endianness
20862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20863 esac
20864
20865
20866 cat >confcache <<\_ACEOF
20867 # This file is a shell script that caches the results of configure
20868 # tests run on this system so they can be shared between configure
20869 # scripts and configure runs, see configure's option --config-cache.
20870 # It is not useful on other systems. If it contains results you don't
20871 # want to keep, you may remove or edit it.
20872 #
20873 # config.status only pays attention to the cache file if you give it
20874 # the --recheck option to rerun configure.
20875 #
20876 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20877 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20878 # following values.
20879
20880 _ACEOF
20881
20882 # The following way of writing the cache mishandles newlines in values,
20883 # but we know of no workaround that is simple, portable, and efficient.
20884 # So, we kill variables containing newlines.
20885 # Ultrix sh set writes to stderr and can't be redirected directly,
20886 # and sets the high bit in the cache file unless we assign to the vars.
20887 (
20888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20889 eval ac_val=\$$ac_var
20890 case $ac_val in #(
20891 *${as_nl}*)
20892 case $ac_var in #(
20893 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20894 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20895 esac
20896 case $ac_var in #(
20897 _ | IFS | as_nl) ;; #(
20898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20899 *) { eval $ac_var=; unset $ac_var;} ;;
20900 esac ;;
20901 esac
20902 done
20903
20904 (set) 2>&1 |
20905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20906 *${as_nl}ac_space=\ *)
20907 # 'set' does not quote correctly, so add quotes: double-quote
20908 # substitution turns \\\\ into \\, and sed turns \\ into \.
20909 sed -n \
20910 "s/'/'\\\\''/g;
20911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20912 ;; #(
20913 *)
20914 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20916 ;;
20917 esac |
20918 sort
20919 ) |
20920 sed '
20921 /^ac_cv_env_/b end
20922 t clear
20923 :clear
20924 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20925 t end
20926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20927 :end' >>confcache
20928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20929 if test -w "$cache_file"; then
20930 if test "x$cache_file" != "x/dev/null"; then
20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20932 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20933 if test ! -f "$cache_file" || test -h "$cache_file"; then
20934 cat confcache >"$cache_file"
20935 else
20936 case $cache_file in #(
20937 */* | ?:*)
20938 mv -f confcache "$cache_file"$$ &&
20939 mv -f "$cache_file"$$ "$cache_file" ;; #(
20940 *)
20941 mv -f confcache "$cache_file" ;;
20942 esac
20943 fi
20944 fi
20945 else
20946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20947 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20948 fi
20949 fi
20950 rm -f confcache
20951
20952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20953 # Let make expand exec_prefix.
20954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20955
20956 DEFS=-DHAVE_CONFIG_H
20957
20958 ac_libobjs=
20959 ac_ltlibobjs=
20960 U=
20961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20962 # 1. Remove the extension, and $U if already installed.
20963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20964 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20966 # will be set to the directory where LIBOBJS objects are built.
20967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20968 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20969 done
20970 LIBOBJS=$ac_libobjs
20971
20972 LTLIBOBJS=$ac_ltlibobjs
20973
20974
20975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20976 printf %s "checking that generated files are newer than configure... " >&6; }
20977 if test -n "$am_sleep_pid"; then
20978 # Hide warnings about reused PIDs.
20979 wait $am_sleep_pid 2>/dev/null
20980 fi
20981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20982 printf "%s\n" "done" >&6; }
20983 case $enable_silent_rules in # (((
20984 yes) AM_DEFAULT_VERBOSITY=0;;
20985 no) AM_DEFAULT_VERBOSITY=1;;
20986 esac
20987 if test $am_cv_make_support_nested_variables = yes; then
20988 AM_V='$(V)'
20989 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20990 else
20991 AM_V=$AM_DEFAULT_VERBOSITY
20992 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20993 fi
20994
20995 if test -n "$EXEEXT"; then
20996 am__EXEEXT_TRUE=
20997 am__EXEEXT_FALSE='#'
20998 else
20999 am__EXEEXT_TRUE='#'
21000 am__EXEEXT_FALSE=
21001 fi
21002
21003 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21004 as_fn_error $? "conditional \"AMDEP\" was never defined.
21005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21006 fi
21007 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21008 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21010 fi
21011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21012 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21014 fi
21015 # Check whether --enable-year2038 was given.
21016 if test ${enable_year2038+y}
21017 then :
21018 enableval=$enable_year2038;
21019 fi
21020
21021 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21022 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
21023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21024 fi
21025 if test -z "${BUILD_COMPILER_TRUE}" && test -z "${BUILD_COMPILER_FALSE}"; then
21026 as_fn_error $? "conditional \"BUILD_COMPILER\" was never defined.
21027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21028 fi
21029 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
21030 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
21031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21032 fi
21033 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21034 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21036 fi
21037 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21038 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21040 fi
21041
21042
21043 : "${CONFIG_STATUS=./config.status}"
21044 ac_write_fail=0
21045 ac_clean_files_save=$ac_clean_files
21046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21048 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21049 as_write_fail=0
21050 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21051 #! $SHELL
21052 # Generated by $as_me.
21053 # Run this file to recreate the current configuration.
21054 # Compiler output produced by configure, useful for debugging
21055 # configure, is in config.log if it exists.
21056
21057 debug=false
21058 ac_cs_recheck=false
21059 ac_cs_silent=false
21060
21061 SHELL=\${CONFIG_SHELL-$SHELL}
21062 export SHELL
21063 _ASEOF
21064 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21065 ## -------------------- ##
21066 ## M4sh Initialization. ##
21067 ## -------------------- ##
21068
21069 # Be more Bourne compatible
21070 DUALCASE=1; export DUALCASE # for MKS sh
21071 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21072 then :
21073 emulate sh
21074 NULLCMD=:
21075 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21076 # is contrary to our usage. Disable this feature.
21077 alias -g '${1+"$@"}'='"$@"'
21078 setopt NO_GLOB_SUBST
21079 else case e in #(
21080 e) case `(set -o) 2>/dev/null` in #(
21081 *posix*) :
21082 set -o posix ;; #(
21083 *) :
21084 ;;
21085 esac ;;
21086 esac
21087 fi
21088
21089
21090
21091 # Reset variables that may have inherited troublesome values from
21092 # the environment.
21093
21094 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21095 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21096 # side effect of setting IFS to empty, thus disabling word splitting.)
21097 # Quoting is to prevent editors from complaining about space-tab.
21098 as_nl='
21099 '
21100 export as_nl
21101 IFS=" "" $as_nl"
21102
21103 PS1='$ '
21104 PS2='> '
21105 PS4='+ '
21106
21107 # Ensure predictable behavior from utilities with locale-dependent output.
21108 LC_ALL=C
21109 export LC_ALL
21110 LANGUAGE=C
21111 export LANGUAGE
21112
21113 # We cannot yet rely on "unset" to work, but we need these variables
21114 # to be unset--not just set to an empty or harmless value--now, to
21115 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21116 # also avoids known problems related to "unset" and subshell syntax
21117 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21118 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21119 do eval test \${$as_var+y} \
21120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21121 done
21122
21123 # Ensure that fds 0, 1, and 2 are open.
21124 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21125 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21126 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21127
21128 # The user is always right.
21129 if ${PATH_SEPARATOR+false} :; then
21130 PATH_SEPARATOR=:
21131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21133 PATH_SEPARATOR=';'
21134 }
21135 fi
21136
21137
21138 # Find who we are. Look in the path if we contain no directory separator.
21139 as_myself=
21140 case $0 in #((
21141 *[\\/]* ) as_myself=$0 ;;
21142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21143 for as_dir in $PATH
21144 do
21145 IFS=$as_save_IFS
21146 case $as_dir in #(((
21147 '') as_dir=./ ;;
21148 */) ;;
21149 *) as_dir=$as_dir/ ;;
21150 esac
21151 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21152 done
21153 IFS=$as_save_IFS
21154
21155 ;;
21156 esac
21157 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21158 # in which case we are not to be found in the path.
21159 if test "x$as_myself" = x; then
21160 as_myself=$0
21161 fi
21162 if test ! -f "$as_myself"; then
21163 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21164 exit 1
21165 fi
21166
21167
21168
21169 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21170 # ----------------------------------------
21171 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21172 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21173 # script with STATUS, using 1 if that was 0.
21174 as_fn_error ()
21175 {
21176 as_status=$1; test $as_status -eq 0 && as_status=1
21177 if test "$4"; then
21178 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21180 fi
21181 printf "%s\n" "$as_me: error: $2" >&2
21182 as_fn_exit $as_status
21183 } # as_fn_error
21184
21185
21186 # as_fn_set_status STATUS
21187 # -----------------------
21188 # Set $? to STATUS, without forking.
21189 as_fn_set_status ()
21190 {
21191 return $1
21192 } # as_fn_set_status
21193
21194 # as_fn_exit STATUS
21195 # -----------------
21196 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21197 as_fn_exit ()
21198 {
21199 set +e
21200 as_fn_set_status $1
21201 exit $1
21202 } # as_fn_exit
21203
21204 # as_fn_unset VAR
21205 # ---------------
21206 # Portably unset VAR.
21207 as_fn_unset ()
21208 {
21209 { eval $1=; unset $1;}
21210 }
21211 as_unset=as_fn_unset
21212
21213 # as_fn_append VAR VALUE
21214 # ----------------------
21215 # Append the text in VALUE to the end of the definition contained in VAR. Take
21216 # advantage of any shell optimizations that allow amortized linear growth over
21217 # repeated appends, instead of the typical quadratic growth present in naive
21218 # implementations.
21219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21220 then :
21221 eval 'as_fn_append ()
21222 {
21223 eval $1+=\$2
21224 }'
21225 else case e in #(
21226 e) as_fn_append ()
21227 {
21228 eval $1=\$$1\$2
21229 } ;;
21230 esac
21231 fi # as_fn_append
21232
21233 # as_fn_arith ARG...
21234 # ------------------
21235 # Perform arithmetic evaluation on the ARGs, and store the result in the
21236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21237 # must be portable across $(()) and expr.
21238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21239 then :
21240 eval 'as_fn_arith ()
21241 {
21242 as_val=$(( $* ))
21243 }'
21244 else case e in #(
21245 e) as_fn_arith ()
21246 {
21247 as_val=`expr "$@" || test $? -eq 1`
21248 } ;;
21249 esac
21250 fi # as_fn_arith
21251
21252
21253 if expr a : '\(a\)' >/dev/null 2>&1 &&
21254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21255 as_expr=expr
21256 else
21257 as_expr=false
21258 fi
21259
21260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21261 as_basename=basename
21262 else
21263 as_basename=false
21264 fi
21265
21266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21267 as_dirname=dirname
21268 else
21269 as_dirname=false
21270 fi
21271
21272 as_me=`$as_basename -- "$0" ||
21273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21274 X"$0" : 'X\(//\)$' \| \
21275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21276 printf "%s\n" X/"$0" |
21277 sed '/^.*\/\([^/][^/]*\)\/*$/{
21278 s//\1/
21279 q
21280 }
21281 /^X\/\(\/\/\)$/{
21282 s//\1/
21283 q
21284 }
21285 /^X\/\(\/\).*/{
21286 s//\1/
21287 q
21288 }
21289 s/.*/./; q'`
21290
21291 # Avoid depending upon Character Ranges.
21292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21295 as_cr_digits='0123456789'
21296 as_cr_alnum=$as_cr_Letters$as_cr_digits
21297
21298
21299 # Determine whether it's possible to make 'echo' print without a newline.
21300 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21301 # for compatibility with existing Makefiles.
21302 ECHO_C= ECHO_N= ECHO_T=
21303 case `echo -n x` in #(((((
21304 -n*)
21305 case `echo 'xy\c'` in
21306 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21307 xy) ECHO_C='\c';;
21308 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21309 ECHO_T=' ';;
21310 esac;;
21311 *)
21312 ECHO_N='-n';;
21313 esac
21314
21315 # For backward compatibility with old third-party macros, we provide
21316 # the shell variables $as_echo and $as_echo_n. New code should use
21317 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21318 as_echo='printf %s\n'
21319 as_echo_n='printf %s'
21320
21321 rm -f conf$$ conf$$.exe conf$$.file
21322 if test -d conf$$.dir; then
21323 rm -f conf$$.dir/conf$$.file
21324 else
21325 rm -f conf$$.dir
21326 mkdir conf$$.dir 2>/dev/null
21327 fi
21328 if (echo >conf$$.file) 2>/dev/null; then
21329 if ln -s conf$$.file conf$$ 2>/dev/null; then
21330 as_ln_s='ln -s'
21331 # ... but there are two gotchas:
21332 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21333 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21334 # In both cases, we have to default to 'cp -pR'.
21335 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21336 as_ln_s='cp -pR'
21337 elif ln conf$$.file conf$$ 2>/dev/null; then
21338 as_ln_s=ln
21339 else
21340 as_ln_s='cp -pR'
21341 fi
21342 else
21343 as_ln_s='cp -pR'
21344 fi
21345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21346 rmdir conf$$.dir 2>/dev/null
21347
21348
21349 # as_fn_mkdir_p
21350 # -------------
21351 # Create "$as_dir" as a directory, including parents if necessary.
21352 as_fn_mkdir_p ()
21353 {
21354
21355 case $as_dir in #(
21356 -*) as_dir=./$as_dir;;
21357 esac
21358 test -d "$as_dir" || eval $as_mkdir_p || {
21359 as_dirs=
21360 while :; do
21361 case $as_dir in #(
21362 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21363 *) as_qdir=$as_dir;;
21364 esac
21365 as_dirs="'$as_qdir' $as_dirs"
21366 as_dir=`$as_dirname -- "$as_dir" ||
21367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21368 X"$as_dir" : 'X\(//\)[^/]' \| \
21369 X"$as_dir" : 'X\(//\)$' \| \
21370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21371 printf "%s\n" X"$as_dir" |
21372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21373 s//\1/
21374 q
21375 }
21376 /^X\(\/\/\)[^/].*/{
21377 s//\1/
21378 q
21379 }
21380 /^X\(\/\/\)$/{
21381 s//\1/
21382 q
21383 }
21384 /^X\(\/\).*/{
21385 s//\1/
21386 q
21387 }
21388 s/.*/./; q'`
21389 test -d "$as_dir" && break
21390 done
21391 test -z "$as_dirs" || eval "mkdir $as_dirs"
21392 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21393
21394
21395 } # as_fn_mkdir_p
21396 if mkdir -p . 2>/dev/null; then
21397 as_mkdir_p='mkdir -p "$as_dir"'
21398 else
21399 test -d ./-p && rmdir ./-p
21400 as_mkdir_p=false
21401 fi
21402
21403
21404 # as_fn_executable_p FILE
21405 # -----------------------
21406 # Test if FILE is an executable regular file.
21407 as_fn_executable_p ()
21408 {
21409 test -f "$1" && test -x "$1"
21410 } # as_fn_executable_p
21411 as_test_x='test -x'
21412 as_executable_p=as_fn_executable_p
21413
21414 # Sed expression to map a string onto a valid CPP name.
21415 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21416 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21417
21418 # Sed expression to map a string onto a valid variable name.
21419 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21420 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21421
21422
21423 exec 6>&1
21424 ## ----------------------------------- ##
21425 ## Main body of $CONFIG_STATUS script. ##
21426 ## ----------------------------------- ##
21427 _ASEOF
21428 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21429
21430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21431 # Save the log message, to keep $0 and so on meaningful, and to
21432 # report actual input values of CONFIG_FILES etc. instead of their
21433 # values after options handling.
21434 ac_log="
21435 This file was extended by protobuf-c $as_me 1.5.1, which was
21436 generated by GNU Autoconf 2.72. Invocation command line was
21437
21438 CONFIG_FILES = $CONFIG_FILES
21439 CONFIG_HEADERS = $CONFIG_HEADERS
21440 CONFIG_LINKS = $CONFIG_LINKS
21441 CONFIG_COMMANDS = $CONFIG_COMMANDS
21442 $ $0 $@
21443
21444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21445 "
21446
21447 _ACEOF
21448
21449 case $ac_config_files in *"
21450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21451 esac
21452
21453 case $ac_config_headers in *"
21454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21455 esac
21456
21457
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 # Files that config.status was made for.
21460 config_files="$ac_config_files"
21461 config_headers="$ac_config_headers"
21462 config_commands="$ac_config_commands"
21463
21464 _ACEOF
21465
21466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21467 ac_cs_usage="\
21468 '$as_me' instantiates files and other configuration actions
21469 from templates according to the current configuration. Unless the files
21470 and actions are specified as TAGs, all are instantiated by default.
21471
21472 Usage: $0 [OPTION]... [TAG]...
21473
21474 -h, --help print this help, then exit
21475 -V, --version print version number and configuration settings, then exit
21476 --config print configuration, then exit
21477 -q, --quiet, --silent
21478 do not print progress messages
21479 -d, --debug don't remove temporary files
21480 --recheck update $as_me by reconfiguring in the same conditions
21481 --file=FILE[:TEMPLATE]
21482 instantiate the configuration file FILE
21483 --header=FILE[:TEMPLATE]
21484 instantiate the configuration header FILE
21485
21486 Configuration files:
21487 $config_files
21488
21489 Configuration headers:
21490 $config_headers
21491
21492 Configuration commands:
21493 $config_commands
21494
21495 Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
21496 protobuf-c home page: <https://github.com/protobuf-c/protobuf-c>."
21497
21498 _ACEOF
21499 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21500 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21502 ac_cs_config='$ac_cs_config_escaped'
21503 ac_cs_version="\\
21504 protobuf-c config.status 1.5.1
21505 configured by $0, generated by GNU Autoconf 2.72,
21506 with options \\"\$ac_cs_config\\"
21507
21508 Copyright (C) 2023 Free Software Foundation, Inc.
21509 This config.status script is free software; the Free Software Foundation
21510 gives unlimited permission to copy, distribute and modify it."
21511
21512 ac_pwd='$ac_pwd'
21513 srcdir='$srcdir'
21514 INSTALL='$INSTALL'
21515 MKDIR_P='$MKDIR_P'
21516 AWK='$AWK'
21517 test -n "\$AWK" || AWK=awk
21518 _ACEOF
21519
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521 # The default lists apply if the user does not specify any file.
21522 ac_need_defaults=:
21523 while test $# != 0
21524 do
21525 case $1 in
21526 --*=?*)
21527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21529 ac_shift=:
21530 ;;
21531 --*=)
21532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21533 ac_optarg=
21534 ac_shift=:
21535 ;;
21536 *)
21537 ac_option=$1
21538 ac_optarg=$2
21539 ac_shift=shift
21540 ;;
21541 esac
21542
21543 case $ac_option in
21544 # Handling of the options.
21545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21546 ac_cs_recheck=: ;;
21547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21548 printf "%s\n" "$ac_cs_version"; exit ;;
21549 --config | --confi | --conf | --con | --co | --c )
21550 printf "%s\n" "$ac_cs_config"; exit ;;
21551 --debug | --debu | --deb | --de | --d | -d )
21552 debug=: ;;
21553 --file | --fil | --fi | --f )
21554 $ac_shift
21555 case $ac_optarg in
21556 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21557 '') as_fn_error $? "missing file argument" ;;
21558 esac
21559 as_fn_append CONFIG_FILES " '$ac_optarg'"
21560 ac_need_defaults=false;;
21561 --header | --heade | --head | --hea )
21562 $ac_shift
21563 case $ac_optarg in
21564 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21565 esac
21566 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21567 ac_need_defaults=false;;
21568 --he | --h)
21569 # Conflict between --help and --header
21570 as_fn_error $? "ambiguous option: '$1'
21571 Try '$0 --help' for more information.";;
21572 --help | --hel | -h )
21573 printf "%s\n" "$ac_cs_usage"; exit ;;
21574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21576 ac_cs_silent=: ;;
21577
21578 # This is an error.
21579 -*) as_fn_error $? "unrecognized option: '$1'
21580 Try '$0 --help' for more information." ;;
21581
21582 *) as_fn_append ac_config_targets " $1"
21583 ac_need_defaults=false ;;
21584
21585 esac
21586 shift
21587 done
21588
21589 ac_configure_extra_args=
21590
21591 if $ac_cs_silent; then
21592 exec 6>/dev/null
21593 ac_configure_extra_args="$ac_configure_extra_args --silent"
21594 fi
21595
21596 _ACEOF
21597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21598 if \$ac_cs_recheck; then
21599 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21600 shift
21601 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21602 CONFIG_SHELL='$SHELL'
21603 export CONFIG_SHELL
21604 exec "\$@"
21605 fi
21606
21607 _ACEOF
21608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21609 exec 5>>config.log
21610 {
21611 echo
21612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21613 ## Running $as_me. ##
21614 _ASBOX
21615 printf "%s\n" "$ac_log"
21616 } >&5
21617
21618 _ACEOF
21619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21620 #
21621 # INIT-COMMANDS
21622 #
21623 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21624
21625
21626 # The HP-UX ksh and POSIX shell print the target directory to stdout
21627 # if CDPATH is set.
21628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21629
21630 sed_quote_subst='$sed_quote_subst'
21631 double_quote_subst='$double_quote_subst'
21632 delay_variable_subst='$delay_variable_subst'
21633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21636 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21637 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21638 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21639 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21640 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21641 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21642 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21643 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21644 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21645 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21646 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21647 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21648 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21649 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21650 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21651 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21652 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21653 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21654 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21655 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21656 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21657 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21658 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21659 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21660 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21661 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21662 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21663 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21664 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21665 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21666 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21667 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21668 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21669 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21670 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21671 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21672 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21673 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21674 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21675 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21676 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21677 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21678 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21679 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21680 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21681 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21682 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21683 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21684 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21685 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21686 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21687 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21688 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21689 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21690 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21691 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21692 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21693 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"`'
21694 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21695 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21696 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21697 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21698 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21699 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21700 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21701 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21702 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21703 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21704 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21705 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21706 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21707 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21708 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21709 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21710 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21711 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21712 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21713 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21714 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21715 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21716 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21717 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21718 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21719 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21720 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21721 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21722 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21723 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21724 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21725 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21726 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21727 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21728 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21729 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21730 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21731 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21732 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21733 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21734 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21735 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21736 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21737 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21738 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21739 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21740 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21741 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21742 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21743 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21744 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21745 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21746 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21747 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21748 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21749 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21750 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21751 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21752 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21753 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21754 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21755 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21756 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21757 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21758 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21759 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21760 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21761 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21762 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21763 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21764 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21765 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21766 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21767 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21768 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21769 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21770 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21771 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21772 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21773 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21774 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21775 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21776 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21777 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21778 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21779 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21780 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21781 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21782 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21783 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21784 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21785 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21786 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21787 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21788 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21789 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21790 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21791 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21792 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21793 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21794 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21795 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21796 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21797 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21798 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21799 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21800 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21801 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21802 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21803 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21804 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21805 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21806 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21807 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21808 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21809 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21810 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21811 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21812 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21813 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21814 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21815 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21816 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21817 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21818 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21819 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21820 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21821 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21822 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21823 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21824
21825 LTCC='$LTCC'
21826 LTCFLAGS='$LTCFLAGS'
21827 compiler='$compiler_DEFAULT'
21828
21829 # A function that is used when there is no print builtin or printf.
21830 func_fallback_echo ()
21831 {
21832 eval 'cat <<_LTECHO_EOF
21833 \$1
21834 _LTECHO_EOF'
21835 }
21836
21837 # Quote evaled strings.
21838 for var in SHELL \
21839 ECHO \
21840 PATH_SEPARATOR \
21841 SED \
21842 GREP \
21843 EGREP \
21844 FGREP \
21845 LD \
21846 NM \
21847 LN_S \
21848 lt_SP2NL \
21849 lt_NL2SP \
21850 reload_flag \
21851 FILECMD \
21852 OBJDUMP \
21853 deplibs_check_method \
21854 file_magic_cmd \
21855 file_magic_glob \
21856 want_nocaseglob \
21857 DLLTOOL \
21858 sharedlib_from_linklib_cmd \
21859 AR \
21860 archiver_list_spec \
21861 STRIP \
21862 RANLIB \
21863 CC \
21864 CFLAGS \
21865 compiler \
21866 lt_cv_sys_global_symbol_pipe \
21867 lt_cv_sys_global_symbol_to_cdecl \
21868 lt_cv_sys_global_symbol_to_import \
21869 lt_cv_sys_global_symbol_to_c_name_address \
21870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21871 lt_cv_nm_interface \
21872 nm_file_list_spec \
21873 lt_cv_truncate_bin \
21874 lt_prog_compiler_no_builtin_flag \
21875 lt_prog_compiler_pic \
21876 lt_prog_compiler_wl \
21877 lt_prog_compiler_static \
21878 lt_cv_prog_compiler_c_o \
21879 need_locks \
21880 MANIFEST_TOOL \
21881 DSYMUTIL \
21882 NMEDIT \
21883 LIPO \
21884 OTOOL \
21885 OTOOL64 \
21886 shrext_cmds \
21887 export_dynamic_flag_spec \
21888 whole_archive_flag_spec \
21889 compiler_needs_object \
21890 with_gnu_ld \
21891 allow_undefined_flag \
21892 no_undefined_flag \
21893 hardcode_libdir_flag_spec \
21894 hardcode_libdir_separator \
21895 exclude_expsyms \
21896 include_expsyms \
21897 file_list_spec \
21898 variables_saved_for_relink \
21899 libname_spec \
21900 library_names_spec \
21901 soname_spec \
21902 install_override_mode \
21903 finish_eval \
21904 old_striplib \
21905 striplib \
21906 compiler_lib_search_dirs \
21907 predep_objects \
21908 postdep_objects \
21909 predeps \
21910 postdeps \
21911 compiler_lib_search_path \
21912 LD_CXX \
21913 reload_flag_CXX \
21914 compiler_CXX \
21915 lt_prog_compiler_no_builtin_flag_CXX \
21916 lt_prog_compiler_pic_CXX \
21917 lt_prog_compiler_wl_CXX \
21918 lt_prog_compiler_static_CXX \
21919 lt_cv_prog_compiler_c_o_CXX \
21920 export_dynamic_flag_spec_CXX \
21921 whole_archive_flag_spec_CXX \
21922 compiler_needs_object_CXX \
21923 with_gnu_ld_CXX \
21924 allow_undefined_flag_CXX \
21925 no_undefined_flag_CXX \
21926 hardcode_libdir_flag_spec_CXX \
21927 hardcode_libdir_separator_CXX \
21928 exclude_expsyms_CXX \
21929 include_expsyms_CXX \
21930 file_list_spec_CXX \
21931 compiler_lib_search_dirs_CXX \
21932 predep_objects_CXX \
21933 postdep_objects_CXX \
21934 predeps_CXX \
21935 postdeps_CXX \
21936 compiler_lib_search_path_CXX; do
21937 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21938 *[\\\\\\\`\\"\\\$]*)
21939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21940 ;;
21941 *)
21942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21943 ;;
21944 esac
21945 done
21946
21947 # Double-quote double-evaled strings.
21948 for var in reload_cmds \
21949 old_postinstall_cmds \
21950 old_postuninstall_cmds \
21951 old_archive_cmds \
21952 extract_expsyms_cmds \
21953 old_archive_from_new_cmds \
21954 old_archive_from_expsyms_cmds \
21955 archive_cmds \
21956 archive_expsym_cmds \
21957 module_cmds \
21958 module_expsym_cmds \
21959 export_symbols_cmds \
21960 prelink_cmds \
21961 postlink_cmds \
21962 postinstall_cmds \
21963 postuninstall_cmds \
21964 finish_cmds \
21965 sys_lib_search_path_spec \
21966 configure_time_dlsearch_path \
21967 configure_time_lt_sys_library_path \
21968 reload_cmds_CXX \
21969 old_archive_cmds_CXX \
21970 old_archive_from_new_cmds_CXX \
21971 old_archive_from_expsyms_cmds_CXX \
21972 archive_cmds_CXX \
21973 archive_expsym_cmds_CXX \
21974 module_cmds_CXX \
21975 module_expsym_cmds_CXX \
21976 export_symbols_cmds_CXX \
21977 prelink_cmds_CXX \
21978 postlink_cmds_CXX; do
21979 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21980 *[\\\\\\\`\\"\\\$]*)
21981 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21982 ;;
21983 *)
21984 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21985 ;;
21986 esac
21987 done
21988
21989 ac_aux_dir='$ac_aux_dir'
21990
21991 # See if we are running on zsh, and set the options that allow our
21992 # commands through without removal of \ escapes INIT.
21993 if test -n "\${ZSH_VERSION+set}"; then
21994 setopt NO_GLOB_SUBST
21995 fi
21996
21997
21998 PACKAGE='$PACKAGE'
21999 VERSION='$VERSION'
22000 RM='$RM'
22001 ofile='$ofile'
22002
22003
22004
22005
22006
22007
22008 _ACEOF
22009
22010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22011
22012 # Handling of arguments.
22013 for ac_config_target in $ac_config_targets
22014 do
22015 case $ac_config_target in
22016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22017 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22018 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22019 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22020 "protobuf-c/libprotobuf-c.pc") CONFIG_FILES="$CONFIG_FILES protobuf-c/libprotobuf-c.pc" ;;
22021 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
22022
22023 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22024 esac
22025 done
22026
22027
22028 # If the user did not use the arguments to specify the items to instantiate,
22029 # then the envvar interface is used. Set only those that are not.
22030 # We use the long form for the default assignment because of an extremely
22031 # bizarre bug on SunOS 4.1.3.
22032 if $ac_need_defaults; then
22033 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22034 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22035 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22036 fi
22037
22038 # Have a temporary directory for convenience. Make it in the build tree
22039 # simply because there is no reason against having it here, and in addition,
22040 # creating and moving files from /tmp can sometimes cause problems.
22041 # Hook for its removal unless debugging.
22042 # Note that there is a small window in which the directory will not be cleaned:
22043 # after its creation but before its name has been assigned to '$tmp'.
22044 $debug ||
22045 {
22046 tmp= ac_tmp=
22047 trap 'exit_status=$?
22048 : "${ac_tmp:=$tmp}"
22049 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22050 ' 0
22051 trap 'as_fn_exit 1' 1 2 13 15
22052 }
22053 # Create a (secure) tmp directory for tmp files.
22054
22055 {
22056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22057 test -d "$tmp"
22058 } ||
22059 {
22060 tmp=./conf$$-$RANDOM
22061 (umask 077 && mkdir "$tmp")
22062 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22063 ac_tmp=$tmp
22064
22065 # Set up the scripts for CONFIG_FILES section.
22066 # No need to generate them if there are no CONFIG_FILES.
22067 # This happens for instance with './config.status config.h'.
22068 if test -n "$CONFIG_FILES"; then
22069
22070
22071 ac_cr=`echo X | tr X '\015'`
22072 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22073 # But we know of no other shell where ac_cr would be empty at this
22074 # point, so we can use a bashism as a fallback.
22075 if test "x$ac_cr" = x; then
22076 eval ac_cr=\$\'\\r\'
22077 fi
22078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22080 ac_cs_awk_cr='\\r'
22081 else
22082 ac_cs_awk_cr=$ac_cr
22083 fi
22084
22085 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22086 _ACEOF
22087
22088
22089 {
22090 echo "cat >conf$$subs.awk <<_ACEOF" &&
22091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22092 echo "_ACEOF"
22093 } >conf$$subs.sh ||
22094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22095 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22096 ac_delim='%!_!# '
22097 for ac_last_try in false false false false false :; do
22098 . ./conf$$subs.sh ||
22099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22100
22101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22102 if test $ac_delim_n = $ac_delim_num; then
22103 break
22104 elif $ac_last_try; then
22105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22106 else
22107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22108 fi
22109 done
22110 rm -f conf$$subs.sh
22111
22112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22113 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22114 _ACEOF
22115 sed -n '
22116 h
22117 s/^/S["/; s/!.*/"]=/
22118 p
22119 g
22120 s/^[^!]*!//
22121 :repl
22122 t repl
22123 s/'"$ac_delim"'$//
22124 t delim
22125 :nl
22126 h
22127 s/\(.\{148\}\)..*/\1/
22128 t more1
22129 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22130 p
22131 n
22132 b repl
22133 :more1
22134 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22135 p
22136 g
22137 s/.\{148\}//
22138 t nl
22139 :delim
22140 h
22141 s/\(.\{148\}\)..*/\1/
22142 t more2
22143 s/["\\]/\\&/g; s/^/"/; s/$/"/
22144 p
22145 b
22146 :more2
22147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22148 p
22149 g
22150 s/.\{148\}//
22151 t delim
22152 ' <conf$$subs.awk | sed '
22153 /^[^""]/{
22154 N
22155 s/\n//
22156 }
22157 ' >>$CONFIG_STATUS || ac_write_fail=1
22158 rm -f conf$$subs.awk
22159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22160 _ACAWK
22161 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22162 for (key in S) S_is_set[key] = 1
22163 FS = ""
22164
22165 }
22166 {
22167 line = $ 0
22168 nfields = split(line, field, "@")
22169 substed = 0
22170 len = length(field[1])
22171 for (i = 2; i < nfields; i++) {
22172 key = field[i]
22173 keylen = length(key)
22174 if (S_is_set[key]) {
22175 value = S[key]
22176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22177 len += length(value) + length(field[++i])
22178 substed = 1
22179 } else
22180 len += 1 + keylen
22181 }
22182
22183 print line
22184 }
22185
22186 _ACAWK
22187 _ACEOF
22188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22189 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22191 else
22192 cat
22193 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22194 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22195 _ACEOF
22196
22197 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22198 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22199 # trailing colons and then remove the whole line if VPATH becomes empty
22200 # (actually we leave an empty line to preserve line numbers).
22201 if test "x$srcdir" = x.; then
22202 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22203 h
22204 s///
22205 s/^/:/
22206 s/[ ]*$/:/
22207 s/:\$(srcdir):/:/g
22208 s/:\${srcdir}:/:/g
22209 s/:@srcdir@:/:/g
22210 s/^:*//
22211 s/:*$//
22212 x
22213 s/\(=[ ]*\).*/\1/
22214 G
22215 s/\n//
22216 s/^[^=]*=[ ]*$//
22217 }'
22218 fi
22219
22220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22221 fi # test -n "$CONFIG_FILES"
22222
22223 # Set up the scripts for CONFIG_HEADERS section.
22224 # No need to generate them if there are no CONFIG_HEADERS.
22225 # This happens for instance with './config.status Makefile'.
22226 if test -n "$CONFIG_HEADERS"; then
22227 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22228 BEGIN {
22229 _ACEOF
22230
22231 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22232 # here-document in config.status, that substitutes the proper values into
22233 # config.h.in to produce config.h.
22234
22235 # Create a delimiter string that does not exist in confdefs.h, to ease
22236 # handling of long lines.
22237 ac_delim='%!_!# '
22238 for ac_last_try in false false :; do
22239 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22240 if test -z "$ac_tt"; then
22241 break
22242 elif $ac_last_try; then
22243 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22244 else
22245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22246 fi
22247 done
22248
22249 # For the awk script, D is an array of macro values keyed by name,
22250 # likewise P contains macro parameters if any. Preserve backslash
22251 # newline sequences.
22252
22253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22254 sed -n '
22255 s/.\{148\}/&'"$ac_delim"'/g
22256 t rset
22257 :rset
22258 s/^[ ]*#[ ]*define[ ][ ]*/ /
22259 t def
22260 d
22261 :def
22262 s/\\$//
22263 t bsnl
22264 s/["\\]/\\&/g
22265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22266 D["\1"]=" \3"/p
22267 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22268 d
22269 :bsnl
22270 s/["\\]/\\&/g
22271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22272 D["\1"]=" \3\\\\\\n"\\/p
22273 t cont
22274 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22275 t cont
22276 d
22277 :cont
22278 n
22279 s/.\{148\}/&'"$ac_delim"'/g
22280 t clear
22281 :clear
22282 s/\\$//
22283 t bsnlc
22284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22285 d
22286 :bsnlc
22287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22288 b cont
22289 ' <confdefs.h | sed '
22290 s/'"$ac_delim"'/"\\\
22291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22292
22293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22294 for (key in D) D_is_set[key] = 1
22295 FS = ""
22296 }
22297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22298 line = \$ 0
22299 split(line, arg, " ")
22300 if (arg[1] == "#") {
22301 defundef = arg[2]
22302 mac1 = arg[3]
22303 } else {
22304 defundef = substr(arg[1], 2)
22305 mac1 = arg[2]
22306 }
22307 split(mac1, mac2, "(") #)
22308 macro = mac2[1]
22309 prefix = substr(line, 1, index(line, defundef) - 1)
22310 if (D_is_set[macro]) {
22311 # Preserve the white space surrounding the "#".
22312 print prefix "define", macro P[macro] D[macro]
22313 next
22314 } else {
22315 # Replace #undef with comments. This is necessary, for example,
22316 # in the case of _POSIX_SOURCE, which is predefined and required
22317 # on some systems where configure will not decide to define it.
22318 if (defundef == "undef") {
22319 print "/*", prefix defundef, macro, "*/"
22320 next
22321 }
22322 }
22323 }
22324 { print }
22325 _ACAWK
22326 _ACEOF
22327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22328 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22329 fi # test -n "$CONFIG_HEADERS"
22330
22331
22332 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22333 shift
22334 for ac_tag
22335 do
22336 case $ac_tag in
22337 :[FHLC]) ac_mode=$ac_tag; continue;;
22338 esac
22339 case $ac_mode$ac_tag in
22340 :[FHL]*:*);;
22341 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22342 :[FH]-) ac_tag=-:-;;
22343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22344 esac
22345 ac_save_IFS=$IFS
22346 IFS=:
22347 set x $ac_tag
22348 IFS=$ac_save_IFS
22349 shift
22350 ac_file=$1
22351 shift
22352
22353 case $ac_mode in
22354 :L) ac_source=$1;;
22355 :[FH])
22356 ac_file_inputs=
22357 for ac_f
22358 do
22359 case $ac_f in
22360 -) ac_f="$ac_tmp/stdin";;
22361 *) # Look for the file first in the build tree, then in the source tree
22362 # (if the path is not absolute). The absolute path cannot be DOS-style,
22363 # because $ac_f cannot contain ':'.
22364 test -f "$ac_f" ||
22365 case $ac_f in
22366 [\\/$]*) false;;
22367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22368 esac ||
22369 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22370 esac
22371 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22372 as_fn_append ac_file_inputs " '$ac_f'"
22373 done
22374
22375 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22376 # use $as_me), people would be surprised to read:
22377 # /* config.h. Generated by config.status. */
22378 configure_input='Generated from '`
22379 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22380 `' by configure.'
22381 if test x"$ac_file" != x-; then
22382 configure_input="$ac_file. $configure_input"
22383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22384 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22385 fi
22386 # Neutralize special characters interpreted by sed in replacement strings.
22387 case $configure_input in #(
22388 *\&* | *\|* | *\\* )
22389 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22391 *) ac_sed_conf_input=$configure_input;;
22392 esac
22393
22394 case $ac_tag in
22395 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22397 esac
22398 ;;
22399 esac
22400
22401 ac_dir=`$as_dirname -- "$ac_file" ||
22402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22403 X"$ac_file" : 'X\(//\)[^/]' \| \
22404 X"$ac_file" : 'X\(//\)$' \| \
22405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22406 printf "%s\n" X"$ac_file" |
22407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22408 s//\1/
22409 q
22410 }
22411 /^X\(\/\/\)[^/].*/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\/\)$/{
22416 s//\1/
22417 q
22418 }
22419 /^X\(\/\).*/{
22420 s//\1/
22421 q
22422 }
22423 s/.*/./; q'`
22424 as_dir="$ac_dir"; as_fn_mkdir_p
22425 ac_builddir=.
22426
22427 case "$ac_dir" in
22428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22429 *)
22430 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22431 # A ".." for each directory in $ac_dir_suffix.
22432 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22433 case $ac_top_builddir_sub in
22434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22436 esac ;;
22437 esac
22438 ac_abs_top_builddir=$ac_pwd
22439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22440 # for backward compatibility:
22441 ac_top_builddir=$ac_top_build_prefix
22442
22443 case $srcdir in
22444 .) # We are building in place.
22445 ac_srcdir=.
22446 ac_top_srcdir=$ac_top_builddir_sub
22447 ac_abs_top_srcdir=$ac_pwd ;;
22448 [\\/]* | ?:[\\/]* ) # Absolute name.
22449 ac_srcdir=$srcdir$ac_dir_suffix;
22450 ac_top_srcdir=$srcdir
22451 ac_abs_top_srcdir=$srcdir ;;
22452 *) # Relative name.
22453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22454 ac_top_srcdir=$ac_top_build_prefix$srcdir
22455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22456 esac
22457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22458
22459
22460 case $ac_mode in
22461 :F)
22462 #
22463 # CONFIG_FILE
22464 #
22465
22466 case $INSTALL in
22467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22469 esac
22470 ac_MKDIR_P=$MKDIR_P
22471 case $MKDIR_P in
22472 [\\/$]* | ?:[\\/]* ) ;;
22473 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22474 esac
22475 _ACEOF
22476
22477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22478 # If the template does not know about datarootdir, expand it.
22479 # FIXME: This hack should be removed a few years after 2.60.
22480 ac_datarootdir_hack=; ac_datarootdir_seen=
22481 ac_sed_dataroot='
22482 /datarootdir/ {
22483 p
22484 q
22485 }
22486 /@datadir@/p
22487 /@docdir@/p
22488 /@infodir@/p
22489 /@localedir@/p
22490 /@mandir@/p'
22491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22492 *datarootdir*) ac_datarootdir_seen=yes;;
22493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22495 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22496 _ACEOF
22497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22498 ac_datarootdir_hack='
22499 s&@datadir@&$datadir&g
22500 s&@docdir@&$docdir&g
22501 s&@infodir@&$infodir&g
22502 s&@localedir@&$localedir&g
22503 s&@mandir@&$mandir&g
22504 s&\\\${datarootdir}&$datarootdir&g' ;;
22505 esac
22506 _ACEOF
22507
22508 # Neutralize VPATH when '$srcdir' = '.'.
22509 # Shell code in configure.ac might set extrasub.
22510 # FIXME: do we really want to maintain this feature?
22511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22512 ac_sed_extra="$ac_vpsub
22513 $extrasub
22514 _ACEOF
22515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22516 :t
22517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22518 s|@configure_input@|$ac_sed_conf_input|;t t
22519 s&@top_builddir@&$ac_top_builddir_sub&;t t
22520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22521 s&@srcdir@&$ac_srcdir&;t t
22522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22523 s&@top_srcdir@&$ac_top_srcdir&;t t
22524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22525 s&@builddir@&$ac_builddir&;t t
22526 s&@abs_builddir@&$ac_abs_builddir&;t t
22527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22528 s&@INSTALL@&$ac_INSTALL&;t t
22529 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22530 $ac_datarootdir_hack
22531 "
22532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22533 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22534
22535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22536 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22538 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22540 which seems to be undefined. Please make sure it is defined" >&5
22541 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22542 which seems to be undefined. Please make sure it is defined" >&2;}
22543
22544 rm -f "$ac_tmp/stdin"
22545 case $ac_file in
22546 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22547 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22548 esac \
22549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22550 ;;
22551 :H)
22552 #
22553 # CONFIG_HEADER
22554 #
22555 if test x"$ac_file" != x-; then
22556 {
22557 printf "%s\n" "/* $configure_input */" >&1 \
22558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22559 } >"$ac_tmp/config.h" \
22560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22561 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22563 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22564 else
22565 rm -f "$ac_file"
22566 mv "$ac_tmp/config.h" "$ac_file" \
22567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22568 fi
22569 else
22570 printf "%s\n" "/* $configure_input */" >&1 \
22571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22572 || as_fn_error $? "could not create -" "$LINENO" 5
22573 fi
22574 # Compute "$ac_file"'s index in $config_headers.
22575 _am_arg="$ac_file"
22576 _am_stamp_count=1
22577 for _am_header in $config_headers :; do
22578 case $_am_header in
22579 $_am_arg | $_am_arg:* )
22580 break ;;
22581 * )
22582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22583 esac
22584 done
22585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22587 X"$_am_arg" : 'X\(//\)[^/]' \| \
22588 X"$_am_arg" : 'X\(//\)$' \| \
22589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22590 printf "%s\n" X"$_am_arg" |
22591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22592 s//\1/
22593 q
22594 }
22595 /^X\(\/\/\)[^/].*/{
22596 s//\1/
22597 q
22598 }
22599 /^X\(\/\/\)$/{
22600 s//\1/
22601 q
22602 }
22603 /^X\(\/\).*/{
22604 s//\1/
22605 q
22606 }
22607 s/.*/./; q'`/stamp-h$_am_stamp_count
22608 ;;
22609
22610 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22611 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22612 ;;
22613 esac
22614
22615
22616 case $ac_file$ac_mode in
22617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22618 # Older Autoconf quotes --file arguments for eval, but not when files
22619 # are listed without --file. Let's play safe and only enable the eval
22620 # if we detect the quoting.
22621 # TODO: see whether this extra hack can be removed once we start
22622 # requiring Autoconf 2.70 or later.
22623 case $CONFIG_FILES in #(
22624 *\'*) :
22625 eval set x "$CONFIG_FILES" ;; #(
22626 *) :
22627 set x $CONFIG_FILES ;; #(
22628 *) :
22629 ;;
22630 esac
22631 shift
22632 # Used to flag and report bootstrapping failures.
22633 am_rc=0
22634 for am_mf
22635 do
22636 # Strip MF so we end up with the name of the file.
22637 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22638 # Check whether this is an Automake generated Makefile which includes
22639 # dependency-tracking related rules and includes.
22640 # Grep'ing the whole file directly is not great: AIX grep has a line
22641 # limit of 2048, but all sed's we know have understand at least 4000.
22642 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22643 || continue
22644 am_dirpart=`$as_dirname -- "$am_mf" ||
22645 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22646 X"$am_mf" : 'X\(//\)[^/]' \| \
22647 X"$am_mf" : 'X\(//\)$' \| \
22648 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22649 printf "%s\n" X"$am_mf" |
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 am_filepart=`$as_basename -- "$am_mf" ||
22668 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22669 X"$am_mf" : 'X\(//\)$' \| \
22670 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22671 printf "%s\n" X/"$am_mf" |
22672 sed '/^.*\/\([^/][^/]*\)\/*$/{
22673 s//\1/
22674 q
22675 }
22676 /^X\/\(\/\/\)$/{
22677 s//\1/
22678 q
22679 }
22680 /^X\/\(\/\).*/{
22681 s//\1/
22682 q
22683 }
22684 s/.*/./; q'`
22685 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22686 && sed -e '/# am--include-marker/d' "$am_filepart" \
22687 | $MAKE -f - am--depfiles" >&5
22688 (cd "$am_dirpart" \
22689 && sed -e '/# am--include-marker/d' "$am_filepart" \
22690 | $MAKE -f - am--depfiles) >&5 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } || am_rc=$?
22694 done
22695 if test $am_rc -ne 0; then
22696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22697 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22698 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22699 for automatic dependency tracking. If GNU make was not used, consider
22700 re-running the configure script with MAKE=\"gmake\" (or whatever is
22701 necessary). You can also try re-running configure with the
22702 '--disable-dependency-tracking' option to at least be able to build
22703 the package (albeit without support for automatic dependency tracking).
22704 See 'config.log' for more details" "$LINENO" 5; }
22705 fi
22706 { am_dirpart=; unset am_dirpart;}
22707 { am_filepart=; unset am_filepart;}
22708 { am_mf=; unset am_mf;}
22709 { am_rc=; unset am_rc;}
22710 rm -f conftest-deps.mk
22711 }
22712 ;;
22713 "libtool":C)
22714
22715 # See if we are running on zsh, and set the options that allow our
22716 # commands through without removal of \ escapes.
22717 if test -n "${ZSH_VERSION+set}"; then
22718 setopt NO_GLOB_SUBST
22719 fi
22720
22721 cfgfile=${ofile}T
22722 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22723 $RM "$cfgfile"
22724
22725 cat <<_LT_EOF >> "$cfgfile"
22726 #! $SHELL
22727 # Generated automatically by $as_me ($PACKAGE) $VERSION
22728 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22729
22730 # Provide generalized library-building support services.
22731 # Written by Gordon Matzigkeit, 1996
22732
22733 # Copyright (C) 2024 Free Software Foundation, Inc.
22734 # This is free software; see the source for copying conditions. There is NO
22735 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22736
22737 # GNU Libtool is free software; you can redistribute it and/or modify
22738 # it under the terms of the GNU General Public License as published by
22739 # the Free Software Foundation; either version 2 of the License, or
22740 # (at your option) any later version.
22741 #
22742 # As a special exception to the GNU General Public License, if you
22743 # distribute this file as part of a program or library that is built
22744 # using GNU Libtool, you may include this file under the same
22745 # distribution terms that you use for the rest of that program.
22746 #
22747 # GNU Libtool is distributed in the hope that it will be useful, but
22748 # WITHOUT ANY WARRANTY; without even the implied warranty of
22749 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22750 # GNU General Public License for more details.
22751 #
22752 # You should have received a copy of the GNU General Public License
22753 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22754
22755
22756 # The names of the tagged configurations supported by this script.
22757 available_tags='CXX '
22758
22759 # Configured defaults for sys_lib_dlsearch_path munging.
22760 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22761
22762 # ### BEGIN LIBTOOL CONFIG
22763
22764 # Which release of libtool.m4 was used?
22765 macro_version=$macro_version
22766 macro_revision=$macro_revision
22767
22768 # Whether or not to build shared libraries.
22769 build_libtool_libs=$enable_shared
22770
22771 # Whether or not to build static libraries.
22772 build_old_libs=$enable_static
22773
22774 # What type of objects to build.
22775 pic_mode=$pic_mode
22776
22777 # Whether or not to optimize for fast installation.
22778 fast_install=$enable_fast_install
22779
22780 # Shared archive member basename,for filename based shared library versioning on AIX.
22781 shared_archive_member_spec=$shared_archive_member_spec
22782
22783 # Shell to use when invoking shell scripts.
22784 SHELL=$lt_SHELL
22785
22786 # An echo program that protects backslashes.
22787 ECHO=$lt_ECHO
22788
22789 # The PATH separator for the build system.
22790 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22791
22792 # The host system.
22793 host_alias=$host_alias
22794 host=$host
22795 host_os=$host_os
22796
22797 # The build system.
22798 build_alias=$build_alias
22799 build=$build
22800 build_os=$build_os
22801
22802 # A sed program that does not truncate output.
22803 SED=$lt_SED
22804
22805 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22806 Xsed="\$SED -e 1s/^X//"
22807
22808 # A grep program that handles long lines.
22809 GREP=$lt_GREP
22810
22811 # An ERE matcher.
22812 EGREP=$lt_EGREP
22813
22814 # A literal string matcher.
22815 FGREP=$lt_FGREP
22816
22817 # A BSD- or MS-compatible name lister.
22818 NM=$lt_NM
22819
22820 # Whether we need soft or hard links.
22821 LN_S=$lt_LN_S
22822
22823 # What is the maximum length of a command?
22824 max_cmd_len=$max_cmd_len
22825
22826 # Object file suffix (normally "o").
22827 objext=$ac_objext
22828
22829 # Executable file suffix (normally "").
22830 exeext=$exeext
22831
22832 # whether the shell understands "unset".
22833 lt_unset=$lt_unset
22834
22835 # turn spaces into newlines.
22836 SP2NL=$lt_lt_SP2NL
22837
22838 # turn newlines into spaces.
22839 NL2SP=$lt_lt_NL2SP
22840
22841 # convert \$build file names to \$host format.
22842 to_host_file_cmd=$lt_cv_to_host_file_cmd
22843
22844 # convert \$build files to toolchain format.
22845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22846
22847 # A file(cmd) program that detects file types.
22848 FILECMD=$lt_FILECMD
22849
22850 # An object symbol dumper.
22851 OBJDUMP=$lt_OBJDUMP
22852
22853 # Method to check whether dependent libraries are shared objects.
22854 deplibs_check_method=$lt_deplibs_check_method
22855
22856 # Command to use when deplibs_check_method = "file_magic".
22857 file_magic_cmd=$lt_file_magic_cmd
22858
22859 # How to find potential files when deplibs_check_method = "file_magic".
22860 file_magic_glob=$lt_file_magic_glob
22861
22862 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22863 want_nocaseglob=$lt_want_nocaseglob
22864
22865 # DLL creation program.
22866 DLLTOOL=$lt_DLLTOOL
22867
22868 # Command to associate shared and link libraries.
22869 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22870
22871 # The archiver.
22872 AR=$lt_AR
22873
22874 # Flags to create an archive (by configure).
22875 lt_ar_flags=$lt_ar_flags
22876
22877 # Flags to create an archive.
22878 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22879
22880 # How to feed a file listing to the archiver.
22881 archiver_list_spec=$lt_archiver_list_spec
22882
22883 # A symbol stripping program.
22884 STRIP=$lt_STRIP
22885
22886 # Commands used to install an old-style archive.
22887 RANLIB=$lt_RANLIB
22888 old_postinstall_cmds=$lt_old_postinstall_cmds
22889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22890
22891 # Whether to use a lock for old archive extraction.
22892 lock_old_archive_extraction=$lock_old_archive_extraction
22893
22894 # A C compiler.
22895 LTCC=$lt_CC
22896
22897 # LTCC compiler flags.
22898 LTCFLAGS=$lt_CFLAGS
22899
22900 # Take the output of nm and produce a listing of raw symbols and C names.
22901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22902
22903 # Transform the output of nm in a proper C declaration.
22904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22905
22906 # Transform the output of nm into a list of symbols to manually relocate.
22907 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22908
22909 # Transform the output of nm in a C name address pair.
22910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22911
22912 # Transform the output of nm in a C name address pair when lib prefix is needed.
22913 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22914
22915 # The name lister interface.
22916 nm_interface=$lt_lt_cv_nm_interface
22917
22918 # Specify filename containing input files for \$NM.
22919 nm_file_list_spec=$lt_nm_file_list_spec
22920
22921 # The root where to search for dependent libraries,and where our libraries should be installed.
22922 lt_sysroot=$lt_sysroot
22923
22924 # Command to truncate a binary pipe.
22925 lt_truncate_bin=$lt_lt_cv_truncate_bin
22926
22927 # The name of the directory that contains temporary libtool files.
22928 objdir=$objdir
22929
22930 # Used to examine libraries when file_magic_cmd begins with "file".
22931 MAGIC_CMD=$MAGIC_CMD
22932
22933 # Must we lock files when doing compilation?
22934 need_locks=$lt_need_locks
22935
22936 # Manifest tool.
22937 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22938
22939 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22940 DSYMUTIL=$lt_DSYMUTIL
22941
22942 # Tool to change global to local symbols on Mac OS X.
22943 NMEDIT=$lt_NMEDIT
22944
22945 # Tool to manipulate fat objects and archives on Mac OS X.
22946 LIPO=$lt_LIPO
22947
22948 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22949 OTOOL=$lt_OTOOL
22950
22951 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22952 OTOOL64=$lt_OTOOL64
22953
22954 # Old archive suffix (normally "a").
22955 libext=$libext
22956
22957 # Shared library suffix (normally ".so").
22958 shrext_cmds=$lt_shrext_cmds
22959
22960 # The commands to extract the exported symbol list from a shared archive.
22961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22962
22963 # Variables whose values should be saved in libtool wrapper scripts and
22964 # restored at link time.
22965 variables_saved_for_relink=$lt_variables_saved_for_relink
22966
22967 # Do we need the "lib" prefix for modules?
22968 need_lib_prefix=$need_lib_prefix
22969
22970 # Do we need a version for libraries?
22971 need_version=$need_version
22972
22973 # Library versioning type.
22974 version_type=$version_type
22975
22976 # Shared library runtime path variable.
22977 runpath_var=$runpath_var
22978
22979 # Shared library path variable.
22980 shlibpath_var=$shlibpath_var
22981
22982 # Is shlibpath searched before the hard-coded library search path?
22983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22984
22985 # Format of library name prefix.
22986 libname_spec=$lt_libname_spec
22987
22988 # List of archive names. First name is the real one, the rest are links.
22989 # The last name is the one that the linker finds with -lNAME
22990 library_names_spec=$lt_library_names_spec
22991
22992 # The coded name of the library, if different from the real name.
22993 soname_spec=$lt_soname_spec
22994
22995 # Permission mode override for installation of shared libraries.
22996 install_override_mode=$lt_install_override_mode
22997
22998 # Command to use after installation of a shared archive.
22999 postinstall_cmds=$lt_postinstall_cmds
23000
23001 # Command to use after uninstallation of a shared archive.
23002 postuninstall_cmds=$lt_postuninstall_cmds
23003
23004 # Commands used to finish a libtool library installation in a directory.
23005 finish_cmds=$lt_finish_cmds
23006
23007 # As "finish_cmds", except a single script fragment to be evaled but
23008 # not shown.
23009 finish_eval=$lt_finish_eval
23010
23011 # Whether we should hardcode library paths into libraries.
23012 hardcode_into_libs=$hardcode_into_libs
23013
23014 # Compile-time system search path for libraries.
23015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23016
23017 # Detected run-time system search path for libraries.
23018 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23019
23020 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23021 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23022
23023 # Whether dlopen is supported.
23024 dlopen_support=$enable_dlopen
23025
23026 # Whether dlopen of programs is supported.
23027 dlopen_self=$enable_dlopen_self
23028
23029 # Whether dlopen of statically linked programs is supported.
23030 dlopen_self_static=$enable_dlopen_self_static
23031
23032 # Commands to strip libraries.
23033 old_striplib=$lt_old_striplib
23034 striplib=$lt_striplib
23035
23036
23037 # The linker used to build libraries.
23038 LD=$lt_LD
23039
23040 # How to create reloadable object files.
23041 reload_flag=$lt_reload_flag
23042 reload_cmds=$lt_reload_cmds
23043
23044 # Commands used to build an old-style archive.
23045 old_archive_cmds=$lt_old_archive_cmds
23046
23047 # A language specific compiler.
23048 CC=$lt_compiler
23049
23050 # Is the compiler the GNU compiler?
23051 with_gcc=$GCC
23052
23053 # Compiler flag to turn off builtin functions.
23054 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23055
23056 # Additional compiler flags for building library objects.
23057 pic_flag=$lt_lt_prog_compiler_pic
23058
23059 # How to pass a linker flag through the compiler.
23060 wl=$lt_lt_prog_compiler_wl
23061
23062 # Compiler flag to prevent dynamic linking.
23063 link_static_flag=$lt_lt_prog_compiler_static
23064
23065 # Does compiler simultaneously support -c and -o options?
23066 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23067
23068 # Whether or not to add -lc for building shared libraries.
23069 build_libtool_need_lc=$archive_cmds_need_lc
23070
23071 # Whether or not to disallow shared libs when runtime libs are static.
23072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23073
23074 # Compiler flag to allow reflexive dlopens.
23075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23076
23077 # Compiler flag to generate shared objects directly from archives.
23078 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23079
23080 # Whether the compiler copes with passing no objects directly.
23081 compiler_needs_object=$lt_compiler_needs_object
23082
23083 # Create an old-style archive from a shared archive.
23084 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23085
23086 # Create a temporary old-style archive to link instead of a shared archive.
23087 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23088
23089 # Commands used to build a shared archive.
23090 archive_cmds=$lt_archive_cmds
23091 archive_expsym_cmds=$lt_archive_expsym_cmds
23092
23093 # Commands used to build a loadable module if different from building
23094 # a shared archive.
23095 module_cmds=$lt_module_cmds
23096 module_expsym_cmds=$lt_module_expsym_cmds
23097
23098 # Whether we are building with GNU ld or not.
23099 with_gnu_ld=$lt_with_gnu_ld
23100
23101 # Flag that allows shared libraries with undefined symbols to be built.
23102 allow_undefined_flag=$lt_allow_undefined_flag
23103
23104 # Flag that enforces no undefined symbols.
23105 no_undefined_flag=$lt_no_undefined_flag
23106
23107 # Flag to hardcode \$libdir into a binary during linking.
23108 # This must work even if \$libdir does not exist
23109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23110
23111 # Whether we need a single "-rpath" flag with a separated argument.
23112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23113
23114 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23115 # DIR into the resulting binary.
23116 hardcode_direct=$hardcode_direct
23117
23118 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23119 # DIR into the resulting binary and the resulting library dependency is
23120 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23121 # library is relocated.
23122 hardcode_direct_absolute=$hardcode_direct_absolute
23123
23124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23125 # into the resulting binary.
23126 hardcode_minus_L=$hardcode_minus_L
23127
23128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23129 # into the resulting binary.
23130 hardcode_shlibpath_var=$hardcode_shlibpath_var
23131
23132 # Set to "yes" if building a shared library automatically hardcodes DIR
23133 # into the library and all subsequent libraries and executables linked
23134 # against it.
23135 hardcode_automatic=$hardcode_automatic
23136
23137 # Set to yes if linker adds runtime paths of dependent libraries
23138 # to runtime path list.
23139 inherit_rpath=$inherit_rpath
23140
23141 # Whether libtool must link a program against all its dependency libraries.
23142 link_all_deplibs=$link_all_deplibs
23143
23144 # Set to "yes" if exported symbols are required.
23145 always_export_symbols=$always_export_symbols
23146
23147 # The commands to list exported symbols.
23148 export_symbols_cmds=$lt_export_symbols_cmds
23149
23150 # Symbols that should not be listed in the preloaded symbols.
23151 exclude_expsyms=$lt_exclude_expsyms
23152
23153 # Symbols that must always be exported.
23154 include_expsyms=$lt_include_expsyms
23155
23156 # Commands necessary for linking programs (against libraries) with templates.
23157 prelink_cmds=$lt_prelink_cmds
23158
23159 # Commands necessary for finishing linking programs.
23160 postlink_cmds=$lt_postlink_cmds
23161
23162 # Specify filename containing input files.
23163 file_list_spec=$lt_file_list_spec
23164
23165 # How to hardcode a shared library path into an executable.
23166 hardcode_action=$hardcode_action
23167
23168 # The directories searched by this compiler when creating a shared library.
23169 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23170
23171 # Dependencies to place before and after the objects being linked to
23172 # create a shared library.
23173 predep_objects=$lt_predep_objects
23174 postdep_objects=$lt_postdep_objects
23175 predeps=$lt_predeps
23176 postdeps=$lt_postdeps
23177
23178 # The library search path used internally by the compiler when linking
23179 # a shared library.
23180 compiler_lib_search_path=$lt_compiler_lib_search_path
23181
23182 # ### END LIBTOOL CONFIG
23183
23184 _LT_EOF
23185
23186 cat <<'_LT_EOF' >> "$cfgfile"
23187
23188 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23189
23190 # func_munge_path_list VARIABLE PATH
23191 # -----------------------------------
23192 # VARIABLE is name of variable containing _space_ separated list of
23193 # directories to be munged by the contents of PATH, which is string
23194 # having a format:
23195 # "DIR[:DIR]:"
23196 # string "DIR[ DIR]" will be prepended to VARIABLE
23197 # ":DIR[:DIR]"
23198 # string "DIR[ DIR]" will be appended to VARIABLE
23199 # "DIRP[:DIRP]::[DIRA:]DIRA"
23200 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23201 # "DIRA[ DIRA]" will be appended to VARIABLE
23202 # "DIR[:DIR]"
23203 # VARIABLE will be replaced by "DIR[ DIR]"
23204 func_munge_path_list ()
23205 {
23206 case x$2 in
23207 x)
23208 ;;
23209 *:)
23210 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23211 ;;
23212 x:*)
23213 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23214 ;;
23215 *::*)
23216 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23217 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23218 ;;
23219 *)
23220 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23221 ;;
23222 esac
23223 }
23224
23225
23226 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23227 func_cc_basename ()
23228 {
23229 for cc_temp in $*""; do
23230 case $cc_temp in
23231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23233 \-*) ;;
23234 *) break;;
23235 esac
23236 done
23237 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23238 }
23239
23240
23241 # ### END FUNCTIONS SHARED WITH CONFIGURE
23242
23243 _LT_EOF
23244
23245 case $host_os in
23246 aix3*)
23247 cat <<\_LT_EOF >> "$cfgfile"
23248 # AIX sometimes has problems with the GCC collect2 program. For some
23249 # reason, if we set the COLLECT_NAMES environment variable, the problems
23250 # vanish in a puff of smoke.
23251 if test set != "${COLLECT_NAMES+set}"; then
23252 COLLECT_NAMES=
23253 export COLLECT_NAMES
23254 fi
23255 _LT_EOF
23256 ;;
23257 esac
23258
23259
23260
23261 ltmain=$ac_aux_dir/ltmain.sh
23262
23263
23264 # We use sed instead of cat because bash on DJGPP gets confused if
23265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23266 # text mode, it properly converts lines to CR/LF. This bash problem
23267 # is reportedly fixed, but why not run on old versions too?
23268 $SED '$q' "$ltmain" >> "$cfgfile" \
23269 || (rm -f "$cfgfile"; exit 1)
23270
23271 mv -f "$cfgfile" "$ofile" ||
23272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23273 chmod +x "$ofile"
23274
23275
23276 cat <<_LT_EOF >> "$ofile"
23277
23278 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23279
23280 # The linker used to build libraries.
23281 LD=$lt_LD_CXX
23282
23283 # How to create reloadable object files.
23284 reload_flag=$lt_reload_flag_CXX
23285 reload_cmds=$lt_reload_cmds_CXX
23286
23287 # Commands used to build an old-style archive.
23288 old_archive_cmds=$lt_old_archive_cmds_CXX
23289
23290 # A language specific compiler.
23291 CC=$lt_compiler_CXX
23292
23293 # Is the compiler the GNU compiler?
23294 with_gcc=$GCC_CXX
23295
23296 # Compiler flag to turn off builtin functions.
23297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23298
23299 # Additional compiler flags for building library objects.
23300 pic_flag=$lt_lt_prog_compiler_pic_CXX
23301
23302 # How to pass a linker flag through the compiler.
23303 wl=$lt_lt_prog_compiler_wl_CXX
23304
23305 # Compiler flag to prevent dynamic linking.
23306 link_static_flag=$lt_lt_prog_compiler_static_CXX
23307
23308 # Does compiler simultaneously support -c and -o options?
23309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23310
23311 # Whether or not to add -lc for building shared libraries.
23312 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23313
23314 # Whether or not to disallow shared libs when runtime libs are static.
23315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23316
23317 # Compiler flag to allow reflexive dlopens.
23318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23319
23320 # Compiler flag to generate shared objects directly from archives.
23321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23322
23323 # Whether the compiler copes with passing no objects directly.
23324 compiler_needs_object=$lt_compiler_needs_object_CXX
23325
23326 # Create an old-style archive from a shared archive.
23327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23328
23329 # Create a temporary old-style archive to link instead of a shared archive.
23330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23331
23332 # Commands used to build a shared archive.
23333 archive_cmds=$lt_archive_cmds_CXX
23334 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23335
23336 # Commands used to build a loadable module if different from building
23337 # a shared archive.
23338 module_cmds=$lt_module_cmds_CXX
23339 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23340
23341 # Whether we are building with GNU ld or not.
23342 with_gnu_ld=$lt_with_gnu_ld_CXX
23343
23344 # Flag that allows shared libraries with undefined symbols to be built.
23345 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23346
23347 # Flag that enforces no undefined symbols.
23348 no_undefined_flag=$lt_no_undefined_flag_CXX
23349
23350 # Flag to hardcode \$libdir into a binary during linking.
23351 # This must work even if \$libdir does not exist
23352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23353
23354 # Whether we need a single "-rpath" flag with a separated argument.
23355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23356
23357 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23358 # DIR into the resulting binary.
23359 hardcode_direct=$hardcode_direct_CXX
23360
23361 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23362 # DIR into the resulting binary and the resulting library dependency is
23363 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23364 # library is relocated.
23365 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23366
23367 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23368 # into the resulting binary.
23369 hardcode_minus_L=$hardcode_minus_L_CXX
23370
23371 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23372 # into the resulting binary.
23373 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23374
23375 # Set to "yes" if building a shared library automatically hardcodes DIR
23376 # into the library and all subsequent libraries and executables linked
23377 # against it.
23378 hardcode_automatic=$hardcode_automatic_CXX
23379
23380 # Set to yes if linker adds runtime paths of dependent libraries
23381 # to runtime path list.
23382 inherit_rpath=$inherit_rpath_CXX
23383
23384 # Whether libtool must link a program against all its dependency libraries.
23385 link_all_deplibs=$link_all_deplibs_CXX
23386
23387 # Set to "yes" if exported symbols are required.
23388 always_export_symbols=$always_export_symbols_CXX
23389
23390 # The commands to list exported symbols.
23391 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23392
23393 # Symbols that should not be listed in the preloaded symbols.
23394 exclude_expsyms=$lt_exclude_expsyms_CXX
23395
23396 # Symbols that must always be exported.
23397 include_expsyms=$lt_include_expsyms_CXX
23398
23399 # Commands necessary for linking programs (against libraries) with templates.
23400 prelink_cmds=$lt_prelink_cmds_CXX
23401
23402 # Commands necessary for finishing linking programs.
23403 postlink_cmds=$lt_postlink_cmds_CXX
23404
23405 # Specify filename containing input files.
23406 file_list_spec=$lt_file_list_spec_CXX
23407
23408 # How to hardcode a shared library path into an executable.
23409 hardcode_action=$hardcode_action_CXX
23410
23411 # The directories searched by this compiler when creating a shared library.
23412 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23413
23414 # Dependencies to place before and after the objects being linked to
23415 # create a shared library.
23416 predep_objects=$lt_predep_objects_CXX
23417 postdep_objects=$lt_postdep_objects_CXX
23418 predeps=$lt_predeps_CXX
23419 postdeps=$lt_postdeps_CXX
23420
23421 # The library search path used internally by the compiler when linking
23422 # a shared library.
23423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23424
23425 # ### END LIBTOOL TAG CONFIG: CXX
23426 _LT_EOF
23427
23428 ;;
23429
23430 esac
23431 done # for ac_tag
23432
23433
23434 as_fn_exit 0
23435 _ACEOF
23436 ac_clean_files=$ac_clean_files_save
23437
23438 test $ac_write_fail = 0 ||
23439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23440
23441
23442 # configure is writing to config.log, and then calls config.status.
23443 # config.status does its own redirection, appending to config.log.
23444 # Unfortunately, on DOS this fails, as config.log is still kept open
23445 # by configure, so config.status won't be able to write to it; its
23446 # output is simply discarded. So we exec the FD to /dev/null,
23447 # effectively closing config.log, so it can be properly (re)opened and
23448 # appended to by config.status. When coming back to configure, we
23449 # need to make the FD available again.
23450 if test "$no_create" != yes; then
23451 ac_cs_success=:
23452 ac_config_status_args=
23453 test "$silent" = yes &&
23454 ac_config_status_args="$ac_config_status_args --quiet"
23455 exec 5>/dev/null
23456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23457 exec 5>>config.log
23458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23459 # would make configure fail if this is the last instruction.
23460 $ac_cs_success || as_fn_exit 1
23461 fi
23462 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23464 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23465 fi
23466
23467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
23468 $PACKAGE $VERSION
23469
23470 CC: ${CC}
23471 CFLAGS: ${CFLAGS}
23472 CXX: ${CXX}
23473 CXXFLAGS: ${CXXFLAGS}
23474 LDFLAGS: ${LDFLAGS}
23475 LIBS: ${LIBS}
23476
23477 prefix: ${prefix}
23478 sysconfdir: ${sysconfdir}
23479 libdir: ${libdir}
23480 includedir: ${includedir}
23481 pkgconfigdir: ${pkgconfigdir}
23482
23483 bigendian: ${ac_cv_c_bigendian}
23484 protobuf version: ${PROTOBUF_VERSION}
23485 " >&5
23486 printf "%s\n" "
23487 $PACKAGE $VERSION
23488
23489 CC: ${CC}
23490 CFLAGS: ${CFLAGS}
23491 CXX: ${CXX}
23492 CXXFLAGS: ${CXXFLAGS}
23493 LDFLAGS: ${LDFLAGS}
23494 LIBS: ${LIBS}
23495
23496 prefix: ${prefix}
23497 sysconfdir: ${sysconfdir}
23498 libdir: ${libdir}
23499 includedir: ${includedir}
23500 pkgconfigdir: ${pkgconfigdir}
23501
23502 bigendian: ${ac_cv_c_bigendian}
23503 protobuf version: ${PROTOBUF_VERSION}
23504 " >&6; }
23505